mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			224 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			224 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| read_verilog <<EOT
 | |
| module test (
 | |
|         input [1:0] a,
 | |
|         input [1:0] b,
 | |
|         output [5:0] y
 | |
| );
 | |
| 
 | |
| wire [5:0] aa = {a, 4'h0};
 | |
| wire [5:0] bb = {b, 4'h0};
 | |
| 
 | |
| assign y = aa * bb;
 | |
| 
 | |
| endmodule
 | |
| EOT
 | |
| 
 | |
| equiv_opt -assert opt_expr
 |