mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			250 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			250 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
module top(input a, b, output o);
 | 
						|
assign o = a & b;
 | 
						|
endmodule
 | 
						|
 | 
						|
(* blackbox *)
 | 
						|
module bb(input a, b, output o);
 | 
						|
assign o = a | b;
 | 
						|
specify
 | 
						|
	(a => o) = 1;
 | 
						|
endspecify
 | 
						|
endmodule
 | 
						|
 | 
						|
(* whitebox *)
 | 
						|
module wb(input a, b, output o);
 | 
						|
assign o = a ^ b;
 | 
						|
endmodule
 |