The user can perform bit-error-rate (BER) testing
using an error counter that is placed after the crossbar.
BER testing is a PHY level test and the JESD204C link layer encoding (8b/10b or
64b/66b) is not applicable, however JENC still influences the serial bit rate
relative to DACCLK.
The user programs JTEST to select which PRBS sequence the receiver expects on all
active lanes. When performing BER testing, the serial bit rate (FBIT) is
determined in the same fashion as normal modes. The expected PRBS sequences are
defined in the following table:
Table 7-40 PRBS Test Modes
| PRBS Test Mode |
Sequence |
Sequence Length (bits) |
Notes |
| PRBS7 |
y[n] = y[n-6] ^ y[n-7] |
127 |
|
| PRBS9 |
y[n] = y[n-5] ^ y[n-9] |
511 |
See JESD204C, Annex K |
| PRBS15 |
y[n] = y[n-14] ^ y[n-15] |
32767 |
See JESD204C, Annex K |
| PRBS31 |
y[n] = y[n-28] ^ y[n-31] |
2,147,483,647 |
See JESD204C, Annex K |
The steps to use the BER tester are
- Set up the chip and operational parameters according to JESD204C Usage, however
do not set SYS_EN.
- Program parameters that
affect the physical layer such as: JMODE, JESD_M, DSP_L, JENC, LANE_SEL,
LANE_INV, REFDIV, MPY and RATE.
- You must enable at least one DSP using DSP_MODEn if you want LT to be greater than 1
(which affects the link rate). For LT=1, leave all DSPs disabled.
- There is no need to program parameters that only impact the link or
transport layers, such as SUBCLASS, SFORMAT, SCR, KM1, JESD_M, or
RBD.
- There is no need to use SYSREF or program SYSREF related
parameters.
- Program JTEST to select the PRBS sequence to verify.
- Enable the transmitter to send the PRBS sequence on all active lanes.
- Program SYS_EN=1.
- Poll the PLL_LOCKED register and wait for PLL_LOCKED to return 1.
- Wait 4 microseconds (for the PHY to fully initialize and provide valid data to
the BER tester).
- Program BER_EN=1 and LEC_CNT_SEL=0.
- Read LEC_CNT[n] to get the error
count for logical lane n.
- Program BER_EN=0 and then BER_EN=1 to reset the LEC_CNT values for all lanes and
begin counting again.