mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			205 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			205 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| read_verilog <<EOT
 | |
| 
 | |
| module top(input [3:0] A, B, C, input S, output [2:0] O);
 | |
| 
 | |
| wire [3:0] tb = A + B;
 | |
| wire [3:0] tc = A + C;
 | |
| 
 | |
| assign O = S ? tb[3:1] : tc[3:1];
 | |
| 
 | |
| endmodule
 | |
| 
 | |
| EOT
 | |
| 
 | |
| equiv_opt -assert opt_share
 |