futilehdl/doc/examples/comparator.fut

8 lines
94 B
Plaintext
Raw Normal View History

2022-01-04 19:37:54 +00:00
module comparator (
2022-02-02 00:13:33 +00:00
a: Logic<8>,
b: Logic<8>
) -> Logic
{
2022-01-17 18:20:51 +00:00
assign eq = ~reduce_or(a ^ b);
2022-01-04 19:37:54 +00:00
}