From cd7901f9fa870bbc7935e44f22c07273bd126811 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Sat, 1 Aug 2026 15:48:26 -0700 Subject: [PATCH] eth: Clean up framing error detection in 64-bit BASE-R RX Signed-off-by: Alex Forencich --- src/eth/rtl/taxi_axis_baser_rx_64.sv | 46 +++++++--------------------- 1 file changed, 11 insertions(+), 35 deletions(-) diff --git a/src/eth/rtl/taxi_axis_baser_rx_64.sv b/src/eth/rtl/taxi_axis_baser_rx_64.sv index 98898be..f53d8df 100644 --- a/src/eth/rtl/taxi_axis_baser_rx_64.sv +++ b/src/eth/rtl/taxi_axis_baser_rx_64.sv @@ -795,48 +795,24 @@ always_ff @(posedge clk) begin BLOCK_TYPE_CTRL[7:4]: begin framing_error_reg <= frame_reg; end - BLOCK_TYPE_OS_4[7:4]: begin - framing_error_reg <= frame_reg; - end - BLOCK_TYPE_START_4[7:4]: begin - frame_reg <= 1'b1; - framing_error_reg <= frame_reg; - end + BLOCK_TYPE_START_0[7:4], + BLOCK_TYPE_START_4[7:4], BLOCK_TYPE_OS_START[7:4]: begin frame_reg <= 1'b1; framing_error_reg <= frame_reg; end + BLOCK_TYPE_OS_0[7:4], + BLOCK_TYPE_OS_4[7:4], BLOCK_TYPE_OS_04[7:4]: begin framing_error_reg <= frame_reg; end - BLOCK_TYPE_START_0[7:4]: begin - frame_reg <= 1'b1; - framing_error_reg <= frame_reg; - end - BLOCK_TYPE_OS_0[7:4]: begin - framing_error_reg <= frame_reg; - end - BLOCK_TYPE_TERM_0[7:4]: begin - framing_error_reg <= !frame_reg; - end - BLOCK_TYPE_TERM_1[7:4]: begin - framing_error_reg <= !frame_reg; - end - BLOCK_TYPE_TERM_2[7:4]: begin - framing_error_reg <= !frame_reg; - end - BLOCK_TYPE_TERM_3[7:4]: begin - framing_error_reg <= !frame_reg; - end - BLOCK_TYPE_TERM_4[7:4]: begin - framing_error_reg <= !frame_reg; - end - BLOCK_TYPE_TERM_5[7:4]: begin - framing_error_reg <= !frame_reg; - end - BLOCK_TYPE_TERM_6[7:4]: begin - framing_error_reg <= !frame_reg; - end + BLOCK_TYPE_TERM_0[7:4], + BLOCK_TYPE_TERM_1[7:4], + BLOCK_TYPE_TERM_2[7:4], + BLOCK_TYPE_TERM_3[7:4], + BLOCK_TYPE_TERM_4[7:4], + BLOCK_TYPE_TERM_5[7:4], + BLOCK_TYPE_TERM_6[7:4], BLOCK_TYPE_TERM_7[7:4]: begin framing_error_reg <= !frame_reg; end