ethernet crc algorithm
Hi
My code implements the parallel crc32 where the data width is a nibble (4 bits) which is applied for ethernet
Now, I made a testbench that examines the value of the generated CRC and counts the number of clocks required to get it
It examines the value of the CRC by comparing it with a value I obtained by the calculator from
http://www.zorc.breitbandkatze.de/crc.html
for example:
using this calculator for a Data message=U (which is 8'h55) we will get CRC=C9034AF6
to check my work I made this testbench
// eb1 1
always @(posedge Clk)
begin
Data = 4'b0101;
if (Crc[31:0] == 32'hc9034af6) begin
$display("the CRC is given after", Clk_Counter," clocks");
#5 $finish;
end
end
when running the simulator and make a break point at the $display line I found it doesn't stop and continue running forever
Do you think there is a mistake with my work?
Do you think the result of this calculator is not right?
I appreciate ur help
Thanks