Tutorials

GTX 8b/10b Throughput: Budget Wire Bits, Control Symbols and Frames

Published · Updated

A 2.5 Gb/s serial lane with 8b/10b coding has a 250 MB/s ceiling for decoded data bytes before protocol overhead. The actual user rate depends on which symbols the protocol spends on control and idle.

Count the symbol slots that carry your payload

Zynq package on a Parallella board. Read the generated GTX wrapper for the actual parallel datapath.
Zynq package on a Parallella board. Read the generated GTX wrapper for the actual parallel datapath. Photo by Gareth Halfacree from Bradford, UK. Photo source. CC BY-SA 2.0

At 2.5 billion wire bits/s, a ten-bit code group occupies 4 ns and there are 250 million groups/s. An 8b/10b data group represents one byte. Control groups and idle consume the same time on the wire. For a hypothetical repeating schedule with 240 user bytes and 16 other groups, the user fraction is 240/256 and gross useful rate is 234.375 MB/s, using decimal megabytes.

Include frame headers, idle, alignment sequences and any flow-control stalls that appear in the protocol. For a burst-based workload, calculate both the peak packet production rate and the long-run accepted rate. A host interface narrower than required may need buffering, packing or a different clock plan.

Reconcile the budget with observed frame counters

Wire rate: 2.5 Gb/s. After 8b/10b: 250 million byte slots/s. 240 payload / 256 groups: 234.375 MB/s example
Wire rate: 2.5 Gb/s. After 8b/10b: 250 million byte slots/s. 240 payload / 256 groups: 234.375 MB/s example.

During a fixed timed interval, record accepted user bytes, control activity and backpressure. Compare the result with the assumed schedule. If decoded byte counters grow quickly while the application reports a lower rate, inspect frame rejection and the endpoint’s handoff first. If the serial bit count disagrees with the model, check the line rate and measurement interval.

An illustrative decoded 16-bit datapath that provides two bytes each user cycle needs 125 MHz to carry 250 million bytes/s continuously. The actual GTX user clocks depend on the configured widths, buffers and clocking topology. Use the generated wrapper and clock reports to establish those clocks before constraining fabric logic.

In the 240/256 example, should the line-rate budget use 250 MB/s as delivered payload?

Use that as the decoded slot ceiling. Only 240 of every 256 slots carry user data in this example.

Step through the exampleWire rate: 2.5 Gb/s. After 8b/10b: 250 million byte slots/s. 240 payload / 256 groups: 234.375 MB/s example

Wire rate: 2.5 Gb/s. After 8b/10b: 250 million byte slots/s. 240 payload / 256 groups: 234.375 MB/s example.

XC7K325T-2FFG900C device page · Kintex-7 family and package directory · Vivado documentation and design workflow · Board bring-up checklist · FPGA Throughput vs Latency: Budget the Whole Data Path

Bring your symbol counts, desired user throughput and generated datapath clocking. Prepare an engineering review.

References

AMD UG476 v1.12.1, 7 Series GTX/GTH transceivers · AMD PG168 v3.6, GT Wizard PRBS, channel bonding and clock correction.

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:Adapteva_Parallella_DK02_-_Zynq_(15455173526).png
  2. https://creativecommons.org/licenses/by-sa/2.0
  3. https://docs.amd.com/api/khub/documents/SgVweevU5cLv0LyXoCVoPg/content
  4. https://docs.amd.com/r/en-US/pg168-gtwizard/PCI-Express-SATA-OOB-PRBS-Channel-Bonding-and-Clock-Correction-Selection