Skip to content

Commit

Permalink
cores/e1: Fix CRC error marker in BD out fifo
Browse files Browse the repository at this point in the history
bd_done isn't aligned with df_valid so can't use the latter as the
clock enable

Signed-off-by: Sylvain Munaut <[email protected]>
  • Loading branch information
smunaut committed May 20, 2020
1 parent 883ecfa commit 51b60b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rtl/e1_rx.v
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ module e1_rx #(
always @(posedge clk or posedge rst)
if (rst)
bd_crc_e <= 2'b00;
else if (df_valid)
else
bd_crc_e <= (bd_done) ? 2'b00 : (bd_crc_e | {
df_err_crc & df_frame[3], // CRC error in second SMF
df_err_crc & ~df_frame[3] // CRC error in first SMF
df_valid & df_err_crc & df_frame[3], // CRC error in second SMF
df_valid & df_err_crc & ~df_frame[3] // CRC error in first SMF
});

// Buffer write
Expand Down

0 comments on commit 51b60b6

Please sign in to comment.