Header CRC16 failures are counted in both builds, as bad copies and as lost headers. The CRC build counts
payload CRC32 failures and keeps the Line Number of the last failing line; the ECC build counts corrected
bytes per frame and in total, and uncorrectable blocks in total. Counters that belong to the other build
read 0. CRC_ERR_LINE[31] is one sticky bit that says whether anything went wrong since the
last clear.
Controls the running error counters C_ERR_CNT and ECC_FAIL_CNT and the CRC error registers HDR_CRC_ERR_CNT, PAY_CRC_ERR_CNT and CRC_ERR_LINE. FRAME_ERR_CNT is cleared by the core at every Frame Start. The CRC error registers are cleared only by this bit and the core reset.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| [31:2] | reserved | 0 | Reserved, write 0. | |
| [1] | FREEZE | RW | 0 | 1 = hold the running error counters at their current values. |
| [0] | CLEAR | RW | 0 | 1 = clear the running error counters, held at 0 while the bit is 1. Write 1 then 0. |
Bytes corrected by the Reed-Solomon decoder since the last clear. A slow count is the ECC doing its job; a fast count points at signal integrity. Reads 0 in the CRC build.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| [31:0] | C_ERR_CNT | RO | 0 | Corrected symbols. |
Bytes corrected since the last Frame Start. Reads 0 in the CRC build.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| [31:0] | FRAME_ERR_CNT | RO | 0 | Corrected symbols since the last Frame Start. |
Reed-Solomon blocks with more errors than the selected option corrects. Such a block is passed on unchanged and counted here; on a healthy link this stays at 0. Reads 0 in the CRC build.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| [31:0] | ECC_FAIL_CNT | RO | 0 | Uncorrectable blocks. |
Every packet header is sent three times, each copy with its own CRC16. The core checks a packet once its third copy is in. One or two bad copies are recovered from a good one and point at a marginal link; a lost header (all three copies bad) loses the packet. Lost headers at bring-up almost always mean lane order, byte order or deskew. Counts in both builds; each field stops at 0xFFFF.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| [31:16] | HDR_LOST | RO | 0 | Headers lost: all three copies failed CRC16. |
| [15:0] | COPY_ERR | RO | 0 | Header copies that failed CRC16, 0 to 3 per packet. |
Packets whose CRC32 footer does not match their payload, counted with CRC_OPTION on. The pixels are passed on as received. The ECC build has no CRC32 footer: the register reads 0 there and ECC_FAIL_CNT counts uncorrectable blocks instead. Stops at 0xFFFFFFFF.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| [31:0] | PAY_CRC_ERR | RO | 0 | Packets with a payload CRC32 mismatch. |
Bit 31 sets with the first lost header or payload CRC32 error after a clear, one bit for software to poll. Bits [12:0] take the Line Number of every packet with a payload CRC32 error, so they hold the last one. A packet whose header was lost as well has no Line Number: it is counted in PAY_CRC_ERR_CNT and leaves the line field as it was.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| [31] | ERR_SEEN | RO | 0 | 1 = a lost header or a payload CRC32 error since the last clear. |
| [30:13] | reserved | 0 | Reserved, reads 0. | |
| [12:0] | LINE_NUM | RO | 0 | Line Number of the last packet with a payload CRC32 error. |