Understanding the control characters in JESD204B
Keywords:JESD204B? analogue-to-digital converters? control character? serial data stream? 8b/10b encoding?
JESD204B differs from its predecessors in up-front complexity due to the new terms and parameters that it introduces. In this article, we'll take a closer examination of the control characters that are used in the JESD204 interface. Understanding the control characters helps provide a better understanding of how a link is synchronised and aligned. This helps designers to understand how to debug link issues that may arise when prototyping a design with the JESD204 interface. Each of the control characters performs a different function and helps maintain the alignment of data on the link as well as synchronisation and error monitoring. If an expected character is missed or an unexpected character is received, the receiver knows that an error exists.
How it works is that the JESD204B words get mapped into valid 8b/10b encoded words and are set up in frames and multi-frames with specific rules. In the process, the 8b/10b encoding provides some benefits for the serial data link by using control characters that provide the ability to perform various lane alignment functions. There are five main control characters utilised in the 8b/10b encoding that allow for various functions in the JESD204B data stream. These characters are /K/, /F/, /A/, /R/, and /Q/ control characters.
What a bunch of characters!
The /K/ = /K28.5/ control character is used in the code group synchronisation process via the synchronisation interface (by asserting !SYNC). Once the receiver issues a synchronisation request, the transmitter begins emitting /K/ = /K28.5/ characters. The receiver synchronises and will wait for at least four consecutive /K/ = /K28.5/ characters. The receiver then deactivates its synchronisation request. This process is done according to the subclass of operation. For subclass 0 (no deterministic latency), the receiver deactivates the synchronisation request on any frame boundary after four consecutive /K/ = /K28.5/ characters have been received. For subclass 1 and 2 (deterministic latency with SYSREF or !SYNC, respectively), the receiver deactivates the synchronisation request on any local multi-frame clock boundary after four consecutive /K/ = /K28.5/ characters have been received.
![]() |
Figure 1: /K/ control character streaming. |
The /A/ = /K28.3/ control character is used for multi-frame alignment in the serial data stream. It is inserted at the end of a multi-frame by the transmitter under certain conditions. In this case, when the last octet of the current frame at the end of a multi-frame is equal to the last octet of the previous frame, an /A/ = /K28.3/ character replaces that octet. This happens even if the last octet of the previous frame was also a control character.
Related Articles | Editor's Choice |
Visit Asia Webinars to learn about the latest in technology and get practical design tips.