The JCAP registers can be used to capture the output of the link layer for general
debugging.
The following procedure can be used:
- Set up the part for JESD204C operation (see Startup Procedure, but return here before setting SYS_EN=1).
- Program JCAP_MODE=1 to capture the link layer output.
- Apply JESD204C compliant data to the PHY inputs.
- Program JCAP_ARM=1.
- Program JCAP_OFFSET to the desired capture offset. This is especially useful for
capturing link configuration octets in the ILAS. See JCAP_OFFSET description.
- Once registers are configured, set SYS_EN=1.
- For each logical lane n from 0 to L-1:
- Program JCAP_PAGE = n. This allows access to data from lane n.
- Read JCAP_STATUS and confirm JCAP_STATUS returns 1 to indicate that lane n has captured data. If JCAP_STATUS returns 0, wait longer for the lane to capture data, and timeout
if no data is captured. If this occurs, verify the PLL is locked (see PLL_LOCKED), and all chip programming is correct. If the PLL is locked, but
no capture is performed, the link layer can have trouble to identifying the multiframe
or EMB boundary. Check the transmitter or perform a PHY capture to debug the
problem.
- Read JCAP[0-15] to return up to 16 bytes of data per lane.
- Repeat steps (a) thru (c) to inspect
data from each lane.
- Another capture (of non-ILAS or payload
data) can be performed simply by clearing and then setting JCAP_ARM again. Return to step 7 to read the results of the new capture. To
capture the ILAS again, set SYS_EN=0, then return to step 5.