CLHS System Monitor Control – Parameter Description
The System Monitor Control category provides per-lane link statistics and built-in test modes for the CLHS link. The device uses the CLHS X-protocol (10G-class lanes, 64b/66b encoding, with forward error correction (FEC) and an XGMII-based PCS).
Lane selection and reset
Connection Channel Selector (ConnectionChannelSelector)
Selects which CLHS lane (connection) the parameters below apply to. All other parameters in this category are indexed by this selector. To view the statistics or change the test mode of another lane, change the selector value first.
Connection Counters Reset (ConnectionStatisticsReset)
Command. Clears all statistics counters of the selected lane. It is recommended to reset the counters before starting a measurement.
Protocol packet counters (read-only)
Revision Packets (ConnectionRevisionPackets)
Number of CLHS Revision messages received on the selected lane. Revision messages are exchanged periodically between host and device and also serve as a link heartbeat. On an active link this counter increases continuously. If it stops increasing, the lane is down.
Command Packets (ConnectionCommandPackets)
Number of control-channel command packets (register read/write requests and responses) on the selected lane. Every access to a device feature increases this counter. Video data is not included.
FEC counters (read-only)
FEC Received Packets (ConnectionFECRxPackets)
Total number of packets processed by the FEC decoder on the selected lane. This is effectively the total amount of received traffic.
FEC Corrected Packets (ConnectionFECCorrectedPackets)
Number of packets that were received with bit errors that FEC corrected. Data integrity is preserved, but a non-zero value means the physical link has bit errors. A growing value is an early warning of a marginal cable, connector or signal-integrity issue.
FEC Corrupted Packets (ConnectionFECCorruptedPackets)
Number of packets that contained more errors than FEC can correct. These are actual data errors. On a healthy link this counter stays at zero.
Healthy link: FEC Corrected Packets and FEC Corrupted Packets both stay at zero while FEC Received Packets keeps increasing.
PCS Test Mode (physical-layer test)
PCS Test Mode (PCS_TestMode)
Replaces normal traffic on the selected lane with a raw test pattern on the serial line. This is used for bit-error-rate (BER) testing and for checking the transceiver, cable and connectors independently of the CLHS protocol.
| Value | Name | Description |
|---|---|---|
| 0 | PCSTEST_NORMAL | Normal operation (CLHS traffic) |
| 1 | PCSTEST_PRBS7 | PRBS-7 pseudo-random pattern |
| 2 | PCSTEST_PRBS9 | PRBS-9 pseudo-random pattern |
| 3 | PCSTEST_PRBS15 | PRBS-15 pseudo-random pattern |
| 4 | PCSTEST_PRBS23 | PRBS-23 pseudo-random pattern |
| 5 | PCSTEST_PRBS31 | PRBS-31 pseudo-random pattern (most demanding; standard stress test) |
| 6 | PCSTEST_HIGHFREQDATA | High-frequency toggling pattern (1010…), for jitter and eye checks |
| 7 | PCSTEST_LOWFREQDATA | Low-frequency pattern (long runs of 1s and 0s), stresses clock recovery |
Note: while a test pattern is active, the selected lane carries no CLHS traffic and the link on that lane is interrupted. Both ends of the link should be set to the same pattern so that the receiving side's checker can lock. Return to Normal operation after the test.
XGMII Test Mode (logic-level test)
XGMII Test Mode (XGMII_TestMode)
XGMII is the internal interface between the CLHS packet layer and the PCS. This mode tests the link path at that interface, above the physical layer.
| Value | Name | Description |
|---|---|---|
| 0 | XGMIITEST_NORMAL | Normal operation |
| 1 | XGMIITEST_LOOPBACK | Received data is looped back toward the transmitter at the XGMII interface |
| 2 | XGMIITEST_PATTERNGENERATOR | Internal generator transmits test packets, and the internal checker verifies received packets |
A typical setup is one side in PATTERNGENERATOR mode and the other side in LOOPBACK mode. The generating side then checks its own packets after they have made a full round trip over the link.
XGMII Tester TX Packets (XGMIITester_TXPackets)
Number of test packets transmitted by the internal pattern generator.
XGMII Tester RX Packets (XGMIITester_RXPackets)
Number of test packets received by the internal checker.
XGMII Tester Error Packets (XGMIITester_ErrorPackets)
Number of received test packets that failed verification. On a healthy link this stays at zero, and RX Packets follows TX Packets.