futilehdl/doc/examples/comparator.fut

8 lines
82 B
Plaintext

comb comparator (
a: Logic<8>,
b: Logic<8>
) -> Logic<1>
{
~reduce_or(a ^ b)
}