Tutorials

GTX Loopback Debug: Isolate the PCS, PMA and External Channel

Published · Updated

Write the actual signal route beside every loopback result. The part of the path you leave out tells you where to look when the next configuration fails.

Draw the exercised path before starting the test

ZedBoard development platform. Connector and loopback routing vary by board revision.
ZedBoard development platform. Connector and loopback routing vary by board revision. Photo by Ordercrazy. Photo source. CC0

Near-end PCS loopback returns the transmit stream inside the PCS. Near-end PMA loopback returns it deeper inside the transceiver. Both avoid the external channel under test. An external loopback at a connector includes the routes between the FPGA and that connector plus the loop fixture. A far-end transceiver loopback can include the external path in both directions, with coverage determined by the far-end mode.

For each run, write the loopback point, lane, clock and test pattern. The modes have different requirements for clocks, elastic buffers and resets. UG476 calls for GTRXRESET on entering or leaving near-end PMA loopback. Verify the remaining mode-specific prerequisites for the generated core before comparing outcomes.

Use the first failed added path to choose your next test

Near-end PCS: Internal digital return. Near-end PMA: Deeper internal return. External fixture: Board path plus fixture
Near-end PCS: Internal digital return. Near-end PMA: Deeper internal return. External fixture: Board path plus fixture.

Imagine PCS and PMA loopbacks pass but the first external loop fails. Check the lane-to-connector map, cable or fixture orientation, polarity, termination and whether the external path is electrically closed. Try a known-good fixture at the same rate and settings. If the issue follows the fixture, examine it before changing receiver equalization. If it stays with one lane, compare that lane’s routing and connector with a passing lane.

When an internal mode fails, verify that its clocks, pattern generator and checker really exercise that path. Keep settings and count windows fixed across comparisons where possible. Each result should name the components included in the exercise and indicate whether a locked checker saw live traffic. Add a protocol test after the physical path has been isolated.

What does an internal PMA loopback pass establish about the connector?

It leaves the external connector and its board route outside that test. Add a fixture or verified remote path to exercise them.

Step through the exampleNear-end PCS: Internal digital return. Near-end PMA: Deeper internal return. External fixture: Board path plus fixture

Near-end PCS: Internal digital return. Near-end PMA: Deeper internal return. External fixture: Board path plus fixture.

XC7K325T-2FFG900C device page · Kintex-7 family and package directory · Vivado documentation and design workflow · Board bring-up checklist · Intermittent FPGA Startup Failures: Build a Repeatable Test

Include the three path drawings, exact loopback settings and first failing comparison. Prepare an engineering review.

References

AMD UG476 v1.12.1, 7 Series GTX/GTH transceivers · AMD WP425, transceiver bit error isolation.

Back to Tutorials

Related evidence and next tasks

Continue the task with the relevant source scope. These reading paths do not establish interchangeability or current supply.

Source addresses and citation trail

Full source addresses are retained below. Read each citation with its document revision, page, table and applicability conditions above.

  1. https://commons.wikimedia.org/wiki/File:Embedded_World_2014_Xilinx_ZedBoard_Developer_Board.jpg
  2. http://creativecommons.org/publicdomain/zero/1.0/deed.en
  3. https://docs.amd.com/api/khub/documents/SgVweevU5cLv0LyXoCVoPg/content
  4. https://docs.amd.com/api/khub/documents/lNQmxQ~ME7PJhUIVUECEDg/content