From 303dec816548404af956fec51ee513e85d922831 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Wed, 19 Jun 2019 00:25:41 -0700 Subject: [PATCH] Sum errors across data and header --- rtl/eth_phy_10g_rx_if.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtl/eth_phy_10g_rx_if.v b/rtl/eth_phy_10g_rx_if.v index 996afcfec..cbd0d2a7c 100644 --- a/rtl/eth_phy_10g_rx_if.v +++ b/rtl/eth_phy_10g_rx_if.v @@ -158,7 +158,7 @@ integer i; always @* begin rx_error_count_1_temp = 0; rx_error_count_2_temp = 0; - for (i = 0; i < DATA_WIDTH; i = i + 1) begin + for (i = 0; i < DATA_WIDTH+HDR_WIDTH; i = i + 1) begin if (i & 1) begin rx_error_count_1_temp = rx_error_count_1_temp + prbs31_data[i]; end else begin