futilehdl/doc/examples/comparator.fut

8 lines
120 B
Plaintext

module comparator (
input wire [8] a,
input wire [8] b,
output wire eq
) {
assign eq = not(reduce_or(xor(a, b)));
}