add comparator example

This commit is contained in:
notafile 2022-01-04 20:37:54 +01:00
parent 401e7a3dba
commit bd2e6702f6
1 changed files with 7 additions and 0 deletions

View File

@ -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)));
}