mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	opt_expr: add failing $xnor test
This commit is contained in:
		
							parent
							
								
									317c18fc6f
								
							
						
					
					
						commit
						6274f0b075
					
				
					 1 changed files with 13 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -14,7 +14,7 @@ equiv_opt opt_expr
 | 
			
		|||
design -load postopt
 | 
			
		||||
select -assert-none t:$xor
 | 
			
		||||
select -assert-none t:$xnor
 | 
			
		||||
select -assert-count 2 t:$_NOT_
 | 
			
		||||
select -assert-count 2 t:$not
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
design -load read
 | 
			
		||||
| 
						 | 
				
			
			@ -38,3 +38,15 @@ equiv_opt opt_expr
 | 
			
		|||
design -load postopt
 | 
			
		||||
select -assert-none t:$_XNOR_ # NB: simplemap does $xnor -> $_XOR_+$_NOT_
 | 
			
		||||
select -assert-count 1 t:$_NOT_
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
design -reset
 | 
			
		||||
read_verilog <<EOT
 | 
			
		||||
module top(input a, output [1:0] w, x, y, z);
 | 
			
		||||
assign w = a^1'b0;
 | 
			
		||||
assign x = a^1'b1;
 | 
			
		||||
assign y = a~^1'b0;
 | 
			
		||||
assign z = a~^1'b1;
 | 
			
		||||
endmodule
 | 
			
		||||
EOT
 | 
			
		||||
equiv_opt opt_expr
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue