N
Niall 84
Guest
Hi all,
I'm doing an assignment and am having trouble with the following part:
I'm looking to compare two separate data streams (hex). I have to
identify and mark the locations when the data in the two streams are
equal. The output should be the block number for those blocks of equal
value.
These are the two data streams:
dataword1 = 128'h0AAF37a000AA23600AA0738000AAAAbe
dataword2 = 128'h0AA237a000AA23600AA0731000AAAAle
This is treated as 8 separate 4-bit words, i.e. 0AAF is a word where
0A is the address and AF is the part to compare with the equivalent in
the second data word.
In the hdl file we have:
module comparator (channel1, channel2, reset_n, clock, op)
input [127:0] channel1, channel2;
input clock, reset_n;
output op;
reg op;
I also have a testbench set up.
Can anyone help me with the comparator module?
Thanks
I'm doing an assignment and am having trouble with the following part:
I'm looking to compare two separate data streams (hex). I have to
identify and mark the locations when the data in the two streams are
equal. The output should be the block number for those blocks of equal
value.
These are the two data streams:
dataword1 = 128'h0AAF37a000AA23600AA0738000AAAAbe
dataword2 = 128'h0AA237a000AA23600AA0731000AAAAle
This is treated as 8 separate 4-bit words, i.e. 0AAF is a word where
0A is the address and AF is the part to compare with the equivalent in
the second data word.
In the hdl file we have:
module comparator (channel1, channel2, reset_n, clock, op)
input [127:0] channel1, channel2;
input clock, reset_n;
output op;
reg op;
I also have a testbench set up.
Can anyone help me with the comparator module?
Thanks