mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			301 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			301 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
| 
 | |
| module test01(a, b, y);
 | |
| 
 | |
| input [3:0] a, b;
 | |
| output [3:0] y;
 | |
| 
 | |
| assign temp1 = a + b;
 | |
| assign temp2 = ~temp1;
 | |
| assign y = temp2;
 | |
| 
 | |
| endmodule
 | |
| 
 | |
| // ------------------------------
 | |
| 
 | |
| module test02(a, b, y);
 | |
| 
 | |
| input [3:0] a, b;
 | |
| output [3:0] y;
 | |
| 
 | |
| test01 test01_cell(A, B, Y);
 | |
| 
 | |
| assign A = a, B = b, y = Y;
 | |
| 
 | |
| endmodule
 | |
| 
 |