mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Merge pull request #5152 from garytwong/unique-if
verilog: implement SystemVerilog unique/unique0/priority if semantics.
This commit is contained in:
		
						commit
						82888580ac
					
				
					 6 changed files with 204 additions and 17 deletions
				
			
		| 
						 | 
				
			
			@ -24,8 +24,8 @@ are zero, the value from ``A`` input is sent to the output. If the :math:`n`\
 | 
			
		|||
'th bit from ``S`` is set, the value :math:`n`\ 'th ``WIDTH`` bits wide slice of
 | 
			
		||||
the ``B`` input is sent to the output. When more than one bit from ``S`` is set
 | 
			
		||||
the output is undefined. Cells of this type are used to model "parallel cases"
 | 
			
		||||
(defined by using the ``parallel_case`` attribute or detected by an
 | 
			
		||||
optimization).
 | 
			
		||||
(defined by using the ``parallel_case`` attribute, the ``unique`` or ``unique0``
 | 
			
		||||
SystemVerilog keywords, or detected by an optimization).
 | 
			
		||||
 | 
			
		||||
The `$tribuf` cell is used to implement tristate logic. Cells of this type have
 | 
			
		||||
a ``WIDTH`` parameter and inputs ``A`` and ``EN`` and an output ``Y``. The ``A``
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -377,7 +377,7 @@ from SystemVerilog:
 | 
			
		|||
- Assignments within expressions are supported.
 | 
			
		||||
 | 
			
		||||
- The ``unique``, ``unique0``, and ``priority`` SystemVerilog keywords are
 | 
			
		||||
  accepted on ``if`` and ``case`` conditionals.  (Those keywords are currently
 | 
			
		||||
  handled in the same way as their equivalent ``full_case`` and
 | 
			
		||||
  ``parallel_case`` attributes on ``case`` statements, and checked
 | 
			
		||||
  for syntactic validity but otherwise ignored on ``if`` statements.)
 | 
			
		||||
  supported on ``if`` and ``case`` conditionals.  (The Verilog frontend
 | 
			
		||||
  will process conditionals using these keywords by annotating their
 | 
			
		||||
  representation with the appropriate ``full_case`` and/or ``parallel_case``
 | 
			
		||||
  attributes, which are described above.)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue