mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			169 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			169 B
		
	
	
	
		
			Text
		
	
	
	
	
	
read_verilog <<EOT
 | 
						|
module test (
 | 
						|
        input signed [1:0] n,
 | 
						|
        output [3:0] dout
 | 
						|
);
 | 
						|
        assign dout = n + 4'sd 4;
 | 
						|
endmodule
 | 
						|
EOT
 | 
						|
 | 
						|
equiv_opt -assert opt -fine
 |