add comparator example
This commit is contained in:
parent
401e7a3dba
commit
bd2e6702f6
|
@ -0,0 +1,7 @@
|
||||||
|
module comparator (
|
||||||
|
input wire [8] a,
|
||||||
|
input wire [8] b,
|
||||||
|
output wire eq
|
||||||
|
) {
|
||||||
|
assign eq = not(reduce_or(xor(a, b)));
|
||||||
|
}
|
Loading…
Reference in New Issue