yosys/tests/arch/gowin/compare.v

21 lines
297 B
Verilog
Raw Normal View History

2023-05-01 10:56:41 -05:00
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