~ruther/jesd204b-vhdl

5342925a2dddb224b6ad2e8d4845e8caef151a52 — František Boháček 1 year, 11 months ago 362b25b
fix: correctly count error counts in error handler
1 files changed, 6 insertions(+), 6 deletions(-)

M src/data_link/error_handler.vhd
M src/data_link/error_handler.vhd => src/data_link/error_handler.vhd +6 -6
@@ 90,13 90,13 @@ begin  -- architecture a1
                       '0';

  next_missing_count <= 0 when next_index = 0 else
                        next_missing_count when di_char.missing_error = '0' else
                        next_missing_count + 1;
                        reg_missing_count when di_char.missing_error = '0' else
                        reg_missing_count + 1;
  next_disparity_count <= 0 when next_index = 0 else
                        next_disparity_count when di_char.disparity_error = '0' else
                        next_disparity_count + 1;
                        reg_disparity_count when di_char.disparity_error = '0' else
                        reg_disparity_count + 1;
  next_unexpected_count <= 0 when next_index = 0 else
                          next_unexpected_count when ci_state = DATA and di_char.kout = '1' and not (di_char.d8b = "11111100" or di_char.d8b = "01111100") else
                          next_unexpected_count + 1;
                          reg_unexpected_count when ci_state = DATA and di_char.kout = '1' and not (di_char.d8b = "11111100" or di_char.d8b = "01111100") else
                          reg_unexpected_count + 1;

end architecture a1;

Do not follow this link