Assume tkeep[0] always high

This commit is contained in:
Alex Forencich 2020-05-05 16:17:51 -07:00
parent 4d4c7df5b6
commit b31c390d3e

View File

@ -115,6 +115,7 @@ always @(posedge clk) begin
if (s_axis_tlast) begin if (s_axis_tlast) begin
crc_state <= 32'hFFFFFFFF; crc_state <= 32'hFFFFFFFF;
if (KEEP_ENABLE) begin if (KEEP_ENABLE) begin
fcs_reg <= ~crc_next[0];
for (i = 0; i < KEEP_WIDTH; i = i + 1) begin for (i = 0; i < KEEP_WIDTH; i = i + 1) begin
if (s_axis_tkeep[i]) begin if (s_axis_tkeep[i]) begin
fcs_reg <= ~crc_next[i]; fcs_reg <= ~crc_next[i];