Skip to content

Implement CRC error counters

Dinyar Rabady requested to merge feature/check_crc_from_mp7 into master

This MR adds CRC error counters as well as expands the address space available for registers (out of necessity).

The CRC error counters take the input data from right behind the comma gap cleaner. We compute the CRC of all words that are both valid='1' and strobe='1' per orbit and then compare it with the CRC value written into the trailer of the link protocol. Counters are only reset on board reset and from then increment continuously (this shouldn't be a problem, given that the 32 bit counter will saturate only after ~4.5 days at 11 kHz). They are exposed as AXI registers. The CRC mechanism was checked in the branch test/check_crc_counters, where I on purpose compared the computed value with the value from a fixed channel. On all but one channel CRC errors increment, indicating that the logic works as intended.

As we ran out of address space I needed to increase it.

Belongs to #83 (closed).

Merge request reports