1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

Sum errors across data and header

This commit is contained in:
Alex Forencich 2019-06-19 00:25:41 -07:00
parent 1d3554c37e
commit 303dec8165

View File

@ -158,7 +158,7 @@ integer i;
always @* begin always @* begin
rx_error_count_1_temp = 0; rx_error_count_1_temp = 0;
rx_error_count_2_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 if (i & 1) begin
rx_error_count_1_temp = rx_error_count_1_temp + prbs31_data[i]; rx_error_count_1_temp = rx_error_count_1_temp + prbs31_data[i];
end else begin end else begin