Promo 258738 Fig 01 5ebabba59db6a

Critical Design Issues for a Functioning JESD204B Interface

May 12, 2020
As with any standard, some specifics are subject to interpretation. This article explains the JESD204B interface, shows how to identify when it’s working correctly, and how to troubleshoot when things aren’t working as expected.

Series: The JESD204 Story

JESD204B is a recently approved JEDEC standard for serial data interfacing between converters and digital processing devices. As a third-generation standard, it addresses some of the limitations of the earlier versions. Among the benefits of this interface are reductions in required board area for data-interface routing, reductions in setup-and-hold timing requirements, and the enablement of smaller packages for converter and logic devices. New analog/digital converters from various vendors, such as the AD9250 from Analog Devices, use this interface.

There’s a tradeoff to realizing the benefits of the JESD204B interface, due to the complexities and subtleties that distinguish it from existing interface formats and protocols. As with any standard, it’s clear that the interface must function seamlessly to gain popularity and traction versus more common interfaces, such as single-data-rate or double-data-rate CMOS or LVDS.

Although the JESD204B standard is documented by JEDEC, some specific information about it is subject to interpretation or may be spread over multiple references. It also would be extremely helpful if there were a concise guide that provided an overview of the standard, how it works, and how to troubleshoot it if issues arise.

This article explains the interface from an ADC to an FPGA for JESD204B, how to identify when it’s working correctly, and, perhaps more importantly, how to troubleshoot it if something isn’t quite right. The troubleshooting techniques discussed can use commonly available test-and-measurement equipment including oscilloscopes and logic analyzers, along with software tools such as the ChipScope from Xilinx or SignalTap from Altera. Interface signaling is explained as well, allowing for a single approach or multiple approaches to visualize the signaling.

JESD204B Overview

The JESD204B standard provides a method to interface one or multiple data converters to a digital-signal-processing device (typically, an ADC or DAC to an FPGA) over a higher-speed serial interface compared to the more typical parallel data transfers. The interface, which runs at up to 12.5 Gb/s/lane, uses a framed serial data link with embedded clock and alignment characters.

The interface eases implementation of the data interface of high-speed converters by reducing the number of traces between devices, thus reducing trace-matching requirements, and removing setup-and-hold timing-constraint issues. Since a link needs to be established prior to data transfer, new challenges arise and techniques are required to identify that the interface is working properly—and, if not, what to do.

The JESD204B interface uses three phases to establish the synchronized link: code group synchronization (CGS), initial lane synchronization (ILAS), and data-transmission phase. The required signals for the link are a shared reference clock (device clock), at least one differential CML physical data electrical connection (called a lane), and at least one other synchronization signal (SYNC~ and possibly SYSREF). The signals used depend on the subclass:

  • Subclass 0 uses device clock, lanes, and SYNC~
  • Subclass 1 uses device clock, lanes, SYNC~, and SYSREF
  • Subclass 2 uses device clock, lanes, and SYNC~

Subclass 0 is adequate in many cases and will be the focus of this article. Subclass 1 and Subclass 2 provide a method to establish deterministic latency. This is important in applications wherein synchronizing multiple devices or system synchronization or fixed latency is required (such as when a system needs a known sampling edge for an event, or an event must react to an input signal within a specified time).

Figure 1 shows a simplified JESD204B link from the transmit device (ADC) to the receive device (FPGA), with data from one ADC going over one lane.

Although many variables exist within the JESD204B specification, some have particular importance when establishing a link. These key variables from the specification are (note that these values are typically represented as “X − 1”):

  • M: number of converters.
  • L: number of physical lanes.
  • F: number of octets per frame.
  • K: number of frames per multiframe.
  • N and N’: converter resolution and number of bits used per sample (multiple of 4), respectively. N’ value is N value, plus control and dummy bits.

Subclass 0: Synchronization Steps

As noted above, many applications can use the relatively simpler Subclass 0 mode of operation. This is also the easiest mode to establish and for which to verify a link. Subclass 0 uses three phases to establish and monitor synchronization: CGS phase, ILAS phase, and data phase. The figures associated with each phase present the data in different formats, because they might be seen on an oscilloscope, logic analyzer, or FPGA virtual I/O analyzer such as the Xilinx ChipScope or Altera SignalTap.

The Code Group Synchronization (CGS) Phase

The most significant parts of the CGS phase that can be observed over the link are shown in Figure 2, along with a description of the five highlighted points of the figure.

  • The receiver issues a synchronization request by driving the SYNC~ pin low.
  • The transceiver transmits /K28.5/ symbols (10 bits/symbol); unscrambled beginning on the next symbol.
  • The receiver synchronizes when it receives at least four consecutive/K28.5/symbols without error; then the receiver drives the SYNC~ pin high.
  • Receiver must receive at least four 8B/10B characters without error, otherwise synchronization fails and the link stays in CGS phase.
  • CGS phase ends and ILAS phase begins.

The /K28.5/ character, also just known as /K/, within the JESD204B standard can be exhibited as shown in Figure 3. The standard requires a running neutral disparity. The 8B/10B coding allows for a balanced sequence that, on average, contains an equal amount of 1s and 0s. Each 8B/10B character can have a positive (more 1s) or negative (more 0s) disparity, and the parity of the current character is determined by the current sum of the previous characters sent. This is typically accomplished by alternately transmitting a  positive parity word, followed by a negative parity word; the figure shows both polarities of the /K28.5/ symbol.

Note these key points:

  • Serial value represents the logic levels of the 10 bits transmitted over the lane, as would be seen by an oscilloscope measuring the physical interface.
  • 8B/10B value represents the logic values (10 bits) transmitted over the lane, as might be seen by a logic analyzer measuring the physical interface.
  • Data value and data logic represent the logic levels of the symbol inside the JESD204B transceiver block before 8B/10B coding, as would be seen on an FPGA logic-analysis tool such as the Xilinx ChipScope or Altera SignalTap.
  • Symbol represents the hex value of the character thats to be transmitted, noting parity for PHY layer.
  • Character is shown to indicate the JESD204B character as it’s referred to in the JEDEC specification.

The ILAS Phase

In the ILAS phase, four multiframes allow the receiver to align lanes from all links and the receiver to verify the link parameters. Alignment is required to accommodate trace-length differences and any character skew introduced by the receivers. Each successive multiframe immediately follows the previous one of four (Fig. 4). Whether or not the scrambling link parameter is enabled, ILAS is always transmitted without scrambling.

The ILAS phase begins after SYNC~ has been deasserted (goes high). After the transmit block has internally tracked (within the ADC) a full multiframe, it will begin to transmit four multiframes. Dummy samples are inserted between the required characters so that full multiframes are transmitted (Fig. 5).

The four multiframes consist of the following:

  • Multiframe 1: Begins with an /R/ character [K28.0] and ends with an /A/ character [K28.3].
  • Multiframe 2: Begins with an /R/ character followed by a /Q/ [K28.4] character, followed by link configuration parameters over 14 configuration octets (see table below), and ends with an /A/ character.
  • Multiframe 3: The same as Multiframe 1.
  • Multiframe 4: The same as Multiframe 1.

The frame length can be calculated for the JESD204B parameters:

(S) × (1/Sample Rate)

Translation:

(Number of Samples/Converter/Frame) × (1/Sample Rate)

Example:

A converter running at 250 MS/s that has one sample per converter per frame (note: “S” is 0 in this case, since it’s encoded as binary value –1) has a 4-ns frame length:

(1) × (1/250 MHz) = 4 ns               (1)

The multiframe length can be calculated for the JESD204B parameters:

K × S × (1/Sample Rate)               (2)

Translation:

(Number of Samples/Converter/Frame) × (Number of Frames/ Multiframe) × (1/Sample Rate)

Example:

A converter running at 250 MS/s that has one sample per converter per frame and 32 frames per multiframes has a 128-ns multiframe length.

(1) × (32) × (1/250 MHz) = 128 ns          (3)

Data Phase with Character Replacement Enabled

In the data-transmission phase, frame alignment is monitored with control characters. Character replacement is used at the end of frames. Theres no additional overhead to accommodate data or frame alignment during the data phase. Character replacement allows an alignment character to be issued at a frame boundary if and only if the last character of the current frame may be replaced with the last character of the last frame. This facilitates (occasional) confirmation that the alignment hasn’t changed since the ILAS sequence.

Character replacement in the transmitter occurs in the following instances:

  • If scrambling is disabled and the last octet of the frame or multiframe equals the octet value of the previous frame.
  • If scrambling is enabled and the last octet of the multiframe is equal to 0x7C, or the last octet of a frame is equal to 0xFC.

Transmitters and receivers each maintain a local multiframe counter (LMFC) that perpetually counts to (F × K) − 1 and then wraps back to “0” to count again (ignoring internal word width). A common (sourced) SYSREF is issued to all transmitters and receivers that use the SYSREF to reset their LMFCs, after which all LMFCs should be synchronized (within one clock) to each other.

At the release of SYNC (seen by all devices) the transmitter begins ILAS at the next (Tx) LMFC wrap to “0.” If F × K has been properly set to be greater than the (transmit encode time) + (line propagation time) + (receiver decode time), received data will propagate out of the receiver’s SERDES before the next LMFC. The receiver will pass the data into a FIFO, which will begin outputting data at the next (Rx) LMFC boundary. This known relationship between the transmitter’s SERDES input and the receiver’s FIFO output are known as the deterministic latency.

What Can Go Wrong?

JESD204B can be a complicated interface standard, with many operational subtleties. Finding out why it’s not working requires a good understanding of likely scenarios:

Stuck in CGS mode: if SYNC stays at logic low level, or pulse high for <4 multiframes:

Checking the board, unpowered:

  • SYSREF and SYNC~ signaling should be dc-coupled.
  • With the board unpowered, check that the board SYNC~ connections from the SYNC~ source (typically from the FPGA or DAC) to the SYNC~ input (typically ADC or FPGA) are good and low impedance.
  • Check that the pull-down or pull-up resistors aren’t dominating the signaling; for example, if values are too small or shorted and therefore can’t be driven correctly.
  • Verify that the differential-pairs traces (and cables, if used) of JESD204B link are matched.
  • Verify differential impedance of the traces is 100 Ω.

Checking the board, powered:

  • If there’s a buffer/translator in the SYNC path, make sure it’s functioning properly.
  • Check that SYNC~ source and board circuitry (both SYNC+ and SYNC−, if differential) are properly configured to produce logic levels compliant for the SYNC~ receive device. If logic level isn’t compliant, then review circuitry for source and receive configurations to find the problem. Otherwise, consult device manufacturer.
  • Check that the JESD204B serial transmitter and board circuitry are properly configured to produce the correct logic levels for the JESD204B serial data receiver. If logic level isn’t compliant, review circuitry of source and receive configurations to find the problem. Otherwise, consult device manufacturer.

Checking SYNC~ signaling:

  • If SYNC~ is static and logic low, the link isn’t progressing beyond the CGS phase. There’s either an issue with the data being sent, or the JESD204B receiver isn’t decoding the samples properly. Verify /K/ characters are being sent, verify receive configuration settings, verify SYNC~ source, review board circuitry, and consider overdriving SYNC~ signal and attempt to force link into ILAS mode to isolate link receiver vs. transceiver issues. Otherwise, consult device manufacturer.
  • If SYNC~ is static and logic high, verify the SYNC~ logic level is configured correctly in the source device. Check pull-up and pull-down resistors.
  • If SYNC~ pulses high and returns to logic-low state for less than six multiframe periods, the JESD204B link is progressing beyond the CGS phase but not beyond ILAS phase. This would suggest the /K/ characters are okay and the basic function of the CDR are working. Proceed to the ILAS troubleshooting section.
  • If SYNC~ pulses high for a duration of more than six multiframe periods, the link is progressing beyond the ILAS phase and malfunctioning in the data phase; see the data phase section for troubleshooting tips.

Checking serial data:

  • Verify the transceiver’s data rate and the receiver’s expected rate are the same.
  • Measure lanes with high-impedance probe (differential probe, if possible); if characters appear incorrect, make sure lane differential traces are matched, the return path on the PCB isn’t interrupted, and devices are properly soldered on the printed circuit assembly. Unlike the (seemingly) random characters of ILAS and data phase, CGS characters are easily recognizable on a scope (if a high-enough speed scope is available).
  • Verify /K/ characters with high impedance probe:
  1.     If /K/ characters are correct, the transceiver side of the link is working properly.
  2.     If /K/ characters aren’t correct, the transceiver device or the board Lanes signal have an issue.
  3.     If dc-coupled, verify that the transmitter and receiver common-mode voltage is within specification for the devices:
  4.     Depending on implementation, the transmitter common-mode voltage can range from 490 to 1135 mV.
  5.     Depending on implementation, the receiver common-mode voltage can range from 490 to 1300 mV.
  • Verify the transmitter CML differential voltage on the data lanes (note that the CML differential voltage is calculated as two times the voltage swing of each leg of the signal):
  1. The transmitter CML differential voltage can range from 0.5 to 1.0 V p-p for speeds up to 3.125 Gb/s.
  2. The transmitter CML differential voltage can range from 0.4 to 0.75 V p-p for speeds up to 6.374 Gb/s.
  3. The transmitter CML differential voltage can range from 0.360 to 0.770 V p-p for speeds up to 12.5 Gb/s.
  • Verify the receiver CML differential voltage on the data lanes (note that the CML differential voltage is calculated as two times the voltage swing of each leg of the signal):
  1. The receiver CML differential voltage can range from 0.175 to 1.0 V p-p for speeds up to 3.125 Gb/s.
  2. The receiver CML differential voltage can range from 0.125 to 0.75 V p-p for speeds up to 6.374 Gb/s.
  3. The receiver CML differential voltage can range from 0.110 to 1.05 V p-p for speeds up to 12.5 Gb/s.
  • If preemphasis is an option, enable and observe data signals along the data path.
  • Verify that the M and L values match between the transmitter and receiver, otherwise the data rates may not match. For example, M = 2 and L = 2 will expect half the data rate over the serial interface as compared to the M = 2 and L = 1 case.
  • Ensure the device clock going to the transmitter and receiver is phase-locked and at the correct frequency.
Can’t get beyond ILAS mode if SYNC pulses high for approximately four multiframes:
  • Link parameter conflicts:
  1. Verify link parameters aren’t offset by 1 (many parameters are specified as value −1).
  2. Verify ILAS multiframes are transmitting properly; verify link parameters on the transceiver device, the receiver device, and those transmitted in ILAS second multiframe.
  3. Calculate expected ILAS length (tframe, tmultiframe, 4 × tmultiframe); verify ILAS is attempted for approximately four multiframes.
  • Verify all lanes are functioning properly. Ensure there are no multilane/ multilink conflicts.
Get into data phase but occasionally link resets (returns to CGS and ILAS before returning to data phase):
  • Invalid setup-and-hold time of periodic or gapped periodic SYSREF or SYNC~ signal.
  • Link parameter conflicts.
  • Character replacement conflicts.
  • Scrambling problem, if enabled.
  • Lane data corruption, noise, or jitter could force the eye diagram to close.
  • Spurious clocking or excessive jitter on device clock.
Other general tips when troubleshooting link:
  • Run converter and link at the slowest allowed speed, as this allows use of lower-bandwidth measurement instruments that are more readily available.
  • Set minimum allowed combinations of M, L, K, S.
  • Use test modes when possible.
  • Use Subclass 0 for troubleshooting.
  • Disable scrambling while troubleshooting.

This troubleshooting guide can’t be all inclusive, but it provides a good basic baseline for an engineer working with and wanting to learn about a JESD204B link. Hopefully, engineers getting involved with this latest high-performance interface standard will find it informative and helpful if troubleshooting is required.

Series: The JESD204 Story

 Anthony Desimone is an Application Engineer in the High Speed Converter Group, and Michael Giancioppo is an Application Engineer in the Applications Technology Group, at Analog Devices.

About the Author

Anthony Desimone | Application Engineer, High Speed Converter Group, Analog Devices

Anthony Desimone is an Application Engineer in the High Speed Converter Group at Analog Devices. He holds a BSEE from the University of Massachusetts (Lowell) and an MSEE from Tufts University.

Sponsored Recommendations

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!