mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			297 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			297 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
module top
 | 
						|
(
 | 
						|
    input [4:0] x,
 | 
						|
    input [4:0] y,
 | 
						|
 | 
						|
    output lt,
 | 
						|
    output le,
 | 
						|
    output gt,
 | 
						|
    output ge,
 | 
						|
    output eq,
 | 
						|
    output ne
 | 
						|
);
 | 
						|
 | 
						|
    assign lt = x < y;
 | 
						|
    assign le = x <= y;
 | 
						|
    assign gt = x > y;
 | 
						|
    assign ge = x >= y;
 | 
						|
    assign eq = x == y;
 | 
						|
    assign ne = x != y;
 | 
						|
endmodule
 |