mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			226 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			226 B
		
	
	
	
		
			Text
		
	
	
	
	
	
read_verilog -specify <<EOT
 | 
						|
(* abc9_box, whitebox *)
 | 
						|
module box(input [1:0] i, output o);
 | 
						|
specify
 | 
						|
(i *> o) = 1;
 | 
						|
endspecify
 | 
						|
assign o = ^i;
 | 
						|
endmodule
 | 
						|
 | 
						|
module top(input [1:0] i, output o);
 | 
						|
box i1(i, o);
 | 
						|
endmodule
 | 
						|
EOT
 | 
						|
abc9 -lut 4
 |