EE Primers · Communication interfaces · High-speed serial

PCIe Gen 5: a GPU on sixteen lanes at 32 GT/s

Gen 5 doubles Gen 4's rate to 32 GT/s while keeping NRZ signaling and 128b/130b encoding. Nothing about the packets changes; everything about the channel does. At 16 GHz Nyquist the loss budget grows to about 36 dB, the reference clock jitter limit tightens to 0.15 ps, receivers lean on DFE hard enough that an optional precoder was added to stop error bursts, and retimers become a normal part of a server board. This page follows a CPU root port and a GPU on an x16 CEM slot: the signals, the board and retimer budget, link training, and a 1 MiB host-to-GPU copy, which shows why reads need many requests in flight and why the two copy directions do not run at the same speed.

Specifications: PCI Express Base Specification 5.0 [1], CEM 5.0 [2]. Background on the layers, TLP format and lane striping: the PCIe Gen 4 primer.

New to PCIe? Start with PCI Express: how it works and why it exists.

01 · At a glance

What Gen 5 changed, and what it kept

Gen 4Gen 5Gen 6
Transfer rate per lane16 GT/s32 GT/s64 GT/s
SignalingNRZNRZPAM4
Encoding128b/130b128b/130b (+ optional precoding)FLIT mode (1b/1b) + FEC
Nyquist frequency8 GHz16 GHz16 GHz
UI62.5 ps31.25 ps31.25 ps (per PAM4 symbol)
x16 per direction (after encoding)31.5 GB/s63.0 GB/s≈ 118 GB/s (FLIT payload)
Channel loss budget (approx.)≈ 28 dB @ 8 GHz≈ 36 dB @ 16 GHz≈ 32 dB @ 16 GHz
Refclk jitter (common clock)0.5 ps RMS0.15 ps RMS0.1 ps RMS
  • Kept: transaction and data-link layers, TLP formats, 128b/130b, the same TX preset set P0–P10, lane striping, the M.2 and CEM form factors.
  • Added: 32 GT/s with an extra equalization stage, optional precoding at 32 GT/s, the option to skip intermediate equalization steps, alternate protocol negotiation during training (how CXL brings up on a PCIe PHY), and a reworked CEM connector and channel budget.
  • Consequence: the board, not the silicon, is now the hard part: low-loss laminate, back-drilled vias, and a retimer for anything much beyond a short motherboard run plus one slot.
00 · Layers

PCIe Gen 5 against the OSI model

The layer split is the same as Gen 4: the GPU driver and CUDA-style runtime above, PCIe's Transaction, Data Link and Physical layers below. What changes at Gen 5 is almost entirely inside L1, plus one L4 effect: at twice the rate, a reader needs twice as many requests in flight to fill the link. Click a layer for its role here. Every section carries the same layer tags.

One DMA read completion, wrapped layer by layer

A 64-byte slice of the host buffer returning to the GPU as a completion. On x16 the 84 framed bytes are spread over sixteen lanes, about five bytes each. Widths not to scale.
00 · The example system

CPU root port to a GPU on an x16 CEM slot

CPU (server SoC) CPU coresGPU driver, runtime Memory ctrlDDR5, coherent fabric Host DRAMpinned bufferscommand rings Root port x16 Transactiontags, credits Data linkseq #, LCRC, replay Physical32 GT/s NRZ, 128b/130bFIR · CTLE · DFE Clock buffer100 MHz, ≤ 0.15 ps Retimerx16, CDR +re-transmit(if over budget) 16 TX pairsCPU/retimer TX → GPU GPU TX → CPU, 16 pairs REFCLK± 100 MHz PERST# PRSNT2# → PRSNT1# loop, WAKE# SMBus, CLKREQ# (optional) slot power: 12 V (5.5 A) + 3.3 V (3 A) + 3.3 Vaux CEMx16 slot GPU add-in card GPU PCIe endpoint PHY / DL / TL x16 copy (DMA) engines MMU / BAR windows MSI-X, doorbells HBM /GDDR Shader / tensor coresconsume the copied data VRMscore, memory, PHY railshundreds of amps 12V-2x6≤ 600 W from PSU
Each lane arrow is sixteen differential pairs, AC-coupled at each transmitter (the retimer has its own TX capacitors on its outputs). A retimer is a full two-sided PHY: it recovers the data, re-times it to its own clock and retransmits, so each side gets its own loss budget. The slot supplies at most 75 W; a modern GPU takes the rest through the 12V-2x6 connector.
00 · Signals

Every critical signal on an x16 CEM slot

SignalDirectionElectricalFunctionWhat to get right at Gen 5
TX0±…TX15±CPU → GPUNRZ, 32 GT/s, AC-coupled, 3-tap FIR, optional precodingDownstream lanes85 Ω, ≈ 36 dB budget, back-drilled vias, 176–265 nF caps at the transmitter
RX0±…RX15±GPU → CPUCTLE + multi-tap DFE + CDRUpstream lanesSeparate from TX (NEXT); the connector pin field is the crosstalk hot spot
REFCLK±Host → GPU100 MHz HCSL / LP-HCSL, SSCCommon reference≤ 0.15 ps RMS jitter after the PCIe filter, including clock buffer additive jitter
PERST#Host → GPU3.3 VFundamental reset≥ 100 ms after power good, ≥ 100 µs after REFCLK stable; retimers need their own reset sequencing
PRSNT1#, PRSNT2#Slot ↔ cardShort loop on the cardPresence detect (and card length: x1/x4/x8/x16)Hot-plug and slot power control watch this loop
WAKE#GPU → hostOpen-drainWake from D3coldPull-up on 3.3 Vaux
SMBCLK / SMBDATBidirectionalSMBusManagement, FRU, thermalAddress conflicts across slots; isolate when the card is unpowered
12 V, 3.3 V, 3.3 VauxHost → GPU12 V 5.5 A (66 W), 3.3 V 3 A (9.9 W), 3.3 Vaux 375 mASlot power (75 W total)Many GND pins also form the return path of the lanes
12V-2x6 (aux)PSU → GPU12 V, 6 power pairs + 4 sense pinsUp to 600 WSense pins advertise allowed power; contact quality matters at ~ 50 A
00 · Signaling and encoding

NRZ at 32 GT/s, 128b/130b, and precoding

Gen 5 keeps NRZ (two levels, one bit per 31.25 ps UI) and the Gen 3 128b/130b scheme: a 2-bit sync header and 128 scrambled bits per block, with framing tokens (STP, SDP, END, EDB) marking packets. The new piece is precoding.

At 32 GT/s the receiver's DFE carries a large first tap. When the DFE makes one wrong decision it subtracts the wrong ISI from the next bit, which can flip that one too: one error becomes a burst. With precoding the transmitter sends yn = xn ⊕ yn−1 and the receiver recovers xn = yn ⊕ yn−1. A burst of wrong y values then turns into just two wrong x values, at its start and end, which LCRC and replay handle easily. A receiver asks for precoding during training; it is per lane and per direction.

WhereSignalingEncoding / codingNote
Data lanes, 32 GT/sNRZ (PAM2), differential, CML/SST driver, 3-tap FIR (P0–P10)128b/130b, 23-bit LFSR scrambler, optional precoding1.5 % coding overhead, same as Gen 3–4
TrainingSame lanes, lower rates first8b/10b TS1/TS2 at 2.5/5 GT/s, then 128b/130b ordered sets; modified TS for alternate protocolsAlternate protocol negotiation is how CXL and others ride the PCIe PHY
Reference clock100 MHz HCSL, SSC—0.15 ps RMS limit
Sideband3.3 V LVCMOS, open-drainStatic; SMBusUnchanged from Gen 4
00 · Lanes

Small packets on a wide link

Bytes are dealt round-robin across lanes. On x16 a 24-byte doorbell occupies only one or two byte times per lane, and the next TLP can start on the following lane. Pick a TLP to see how x4 and x16 compare.

00 · Equalization

36 dB at 16 GHz: what the receiver is up against

The transmitter presets are the same P0–P10 set as Gen 3 and Gen 4, but at 32 GT/s the channel attenuates the Nyquist component by up to ~36 dB, against ~28 dB at 8 GHz for Gen 4. The transmitter FIR can only do a few dB of shaping; the rest is the receiver's CTLE (often 15–20 dB of peaking) and a DFE with many taps. The simulation applies only the TX preset, so it shows how quickly the eye closes without receiver equalization.

Eye simulator · 32 GT/s, PRBS7

00 · Retimers

Splitting the channel in two

What a retimer is
  • A protocol-aware PHY on both sides: CDR, equalizer and retransmitter per lane, with an elastic buffer.
  • It takes part in link training: it appears in the TS ordered sets, runs equalization independently on each side, and passes the rest of the LTSSM through.
  • Each side gets its own full loss budget; jitter and noise do not accumulate across it.
Retimer vs redriver
  • A redriver is a linear amplifier/equalizer: it boosts noise and crosstalk with the signal and does not reset the budget. At Gen 5 its use is narrow.
  • A retimer adds latency (tens of ns), power (several W at x16) and a reset/clock to design in, but it is the standard fix for long server routes and riser cards.
Design-in
  • REFCLK and PERST# go to the retimer as well; it must be out of reset and locked before the endpoint trains.
  • SMBus/I²C access for status and eye margining; firmware updates.
  • Place it so the two segments are roughly balanced in loss.
00 · Link training

Bring-up to 32 GT/s

The link still starts at 2.5 GT/s and steps up through Recovery. Gen 5 adds the 32 GT/s equalization stage, lets both ports skip intermediate stages, and carries precoding requests and alternate-protocol information in the training sets. Click a stage.

00 · Worked example

Copying 1 MiB from host memory into the GPU

The application copies a 1 MiB pinned host buffer into GPU memory (host-to-device), then copies a result back (device-to-host). In both directions the GPU's copy engine is the bus master. Host-to-device is a read by the GPU, so it needs requests and completions; device-to-host is a posted write. Max read request size (MRRS) is 512 B, max payload size (MPS) 256 B, and the root complex returns completions in 64-byte pieces.

Completion creditsEndpoints advertise infinite completion credits: whoever issues a read must already have room for the answer. The GPU therefore limits how many reads it has outstanding by its own receive buffer and tag count, not by the root port's flow control.
00 · Throughput

Why reads need hundreds of requests in flight

A read stream is limited by whichever is smaller: the link's completion bandwidth, or the data that can be in flight (tags × MRRS) divided by the round-trip read latency. At Gen 5 x16, one microsecond of latency already needs about 63 KB outstanding, more than 120 requests of 512 B: that is why 10-bit tags (up to 768 outstanding) became necessary.

Read B/W = min( link × 128/130 × C/(C + 20), tags × MRRS / latency ) Write B/W = link × 128/130 × MPS/(MPS + 24)
00 · Design constraints

Board rules for 32 GT/s

Material and loss
  • Low-loss laminate (Df ≈ 0.002–0.004, the Megtron 6 / Tachyon class) with smooth copper; standard FR-4 runs out within a few inches.
  • Budget about 36 dB at 16 GHz from CPU die to GPU die, including two packages and the CEM connector.
  • Typical low-loss stripline ≈ 0.8–1.0 dB/in at 16 GHz; a 10-inch run plus a slot often needs a retimer.
Vias
  • Back-drill every lane via; target stub resonance above ~48 GHz (1.5 × 32 GT/s), so residual stubs under about 0.4 mm.
  • Optimized anti-pads and ground return vias at every transition; via pairs modelled in 3D.
Skew, crosstalk, reference
  • Intra-pair ≤ 5 mil, corrected locally; no lane-to-lane matching.
  • Fiber-weave: spread glass or angled routing on long runs.
  • TX and RX on separate layers; generous pair spacing in the connector breakout.
AC caps and connector
  • 0201 caps with plane cut-outs under the pads; symmetric placement.
  • CEM 5.0 connector footprint per vendor model; it is a large share of the crosstalk budget.
REFCLK
  • 0.15 ps RMS total: choose a PCIe Gen 5-grade clock generator and buffer; count additive jitter of every buffer and of the retimer's clock input.
  • Route as a lane-quality differential pair.
Power
  • Slot 75 W, the rest via 12V-2x6; GPU load steps of hundreds of amps at the core rail.
  • Keep VRM switching noise away from the PHY and REFCLK supplies; filtered PHY rails.
00 · When it breaks

Failure modes and debug signatures

SymptomLikely causeCheck / fix
Trains at 16 GT/s, not 3232 GT/s equalization failed: loss, stubs, connector crosstalk, refclk jitterEQ status per lane, lane margining, refclk jitter measurement, retimer
Bursts of correctable errors, replay rolloverDFE error propagation without precoding; marginal lanesCheck whether precoding was negotiated; per-lane error counters
Card not seen behind a retimerRetimer held in reset, no REFCLK, wrong firmware, SMBus misconfigurationRetimer status registers; reset and clock sequencing
Host-to-device copy much slower than device-to-hostRead path: small completions, too few tags, high memory latency, MRRS too smallEnable 10-bit tags and larger MRRS; check root complex completion size
Link width x8 instead of x16Bifurcation setting, a dead lane group, slot wiringBIOS bifurcation, negotiated width register, lane continuity
GPU drops off under load12V-2x6 contact or power-sense fault, VRM transient, link instability with heatConnector seating and sense pins; log AER and power events together
00 · Self-check

Questions

Gen 5 doubles the rate. Why did the Nyquist frequency double but the encoding not change?

With NRZ one bit is one symbol, so 32 GT/s means a 31.25 ps UI and a 16 GHz Nyquist frequency. 128b/130b already had only 1.5 % overhead, so there was nothing to gain from new coding; the cost of the doubling falls entirely on the channel.

What problem does precoding solve, and what does it cost?

DFE error propagation: one wrong decision corrupts the next. With 1 ⊕ D precoding, a burst of channel errors decodes to just two bit errors. The cost is that a single isolated channel error also becomes two bit errors, which is why it is optional and requested per lane.

How many 512-byte reads must be in flight to sustain 50 GB/s with 1.5 µs read latency?

50 GB/s × 1.5 µs = 75 KB in flight, ÷ 512 B ≈ 147 outstanding requests: beyond what 32 tags allow and comfortable with 8-bit or 10-bit tags.

Why is device-to-host faster than host-to-device on the same link?

Device-to-host is posted writes with 256-byte payloads (24 bytes overhead, ~91 % efficient) and no round trip. Host-to-device is reads: latency-bound unless enough requests are outstanding, and the data returns as 64-byte completions with 20 bytes overhead each (~76 % efficient).

Why a retimer and not a redriver at 32 GT/s?

A redriver amplifies everything, including crosstalk and reflections, so the total channel still has to meet one budget. A retimer recovers and retransmits clean data, giving each segment its own budget.

00 · Further reading

References

  1. PCI-SIG, PCI Express Base Specification, Revision 5.0: 32 GT/s electrical, equalization, precoding, alternate protocol negotiation, retimer requirements.
  2. PCI-SIG, PCI Express Card Electromechanical Specification, Revision 5.0: x16 pinout, slot power, PRSNT#, 12V-2x6 auxiliary power (CEM 5.1).
  3. CPU platform design guides and retimer vendor application notes (e.g. Astera Labs, Broadcom, Montage, TI) for board-level numbers.
PCIe Gen 4 →PCIe Gen 6 →USB 3.1 →NRZ →