mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	If the `$ge` cell we are replacing has wide output port, the upper bits on the port should be driven to zero. That's not what a `$not` cell with a single-bit input does. Instead opt for a `$logic_not` cell, which does zero-pad its output. Fixes #3867.
		
			
				
	
	
		
			7 lines
		
	
	
	
		
			140 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
	
		
			140 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| read_verilog <<EOF
 | |
| module test (input signed [4:0] i, output [5:0] o);
 | |
| assign o = (i >= 0);
 | |
| endmodule
 | |
| EOF
 | |
| 
 | |
| equiv_opt -assert opt_expr -fine
 |