futilehdl/doc/examples/comparator.fut

8 lines
82 B
Plaintext
Raw Normal View History

2022-02-04 23:58:47 +00:00
comb comparator (
2022-02-02 00:13:33 +00:00
a: Logic<8>,
b: Logic<8>
) -> Logic<1>
2022-02-02 00:13:33 +00:00
{
2022-02-04 23:58:47 +00:00
~reduce_or(a ^ b)
2022-01-04 19:37:54 +00:00
}