Tutorials
GTX Comma Alignment: Debug Valid 8b/10b Words at the Wrong Boundary
Published · Updated
A lane can receive bits reliably and still hand the protocol parser bytes at the wrong boundary. Capture comma detection and parser acceptance in the same startup trace.
Check when the protocol expects an alignment symbol

Record the configured comma pattern, alignment enables, and the expected stream during startup. A K28.5 comma is common in 8b/10b systems, with the actual symbol and sequence defined by the selected protocol. Verify that the remote end is sending the required training or idle symbols and that both endpoints agree on encoding and polarity.
Capture RXCOMMADET, RXBYTEISALIGNED, RXBYTEREALIGN, and, when decoded, the associated K flags and disparity or invalid-code flags. Timestamp the first events using a suitable clock domain. Keep a copy of the preceding and following words so you can see whether a control character landed in the expected position.
Distinguish byte alignment from higher-level frame lock

If the alignment signal asserts and stays stable but the parser rejects every frame, inspect byte lanes, K/data flags, byte order and the frame rule. If RXBYTEREALIGN toggles repeatedly, investigate a recurring alignment stimulus, noisy data, loss of receive lock, or how alignment is enabled during payload. A single read of the aligned flag can miss these events.
Try a controlled sender sequence with a known comma followed by recognizable data groups, then switch to protocol traffic. Capture one passing and one failing startup with identical settings. Stable byte boundaries plus a known pattern establish a useful handoff point. Continue with framing and lane alignment when those checks pass.
Byte alignment stays high but no valid frames arrive. What should be checked next?
Observe control flags, byte order and the protocol framing rule alongside the received words.
Step through the example

First event: Remote training reaches the lane. Second event: Comma and byte alignment observed. Third event: Parser accepts the required frame.
XC7K325T-2FFG900C device page · Kintex-7 family and package directory · Vivado documentation and design workflow · Board bring-up checklist · FPGA SPI CPOL and CPHA: Check the First Bit Before Decoding a Byte
Bring the decoded words before and after comma detection, alignment status and frame rejection flags. Prepare an engineering review.
References
AMD UG476 v1.12.1, 7 Series GTX/GTH transceivers · AMD WP425, transceiver bit error isolation.
Back to Tutorials