PCIe Basics

1. The Evolutionary Leap: From PCI to PCIe

In the 1990s and early 2000s, motherboards relied on PCI and PCI-X (PCI Extended). These were shared parallel buses, meaning multiple devices were connected to the same set of physical wires.

The Parallel Bottleneck

While intuitive, parallel buses hit a hard physical limit as clock speeds increased:

  • Clock Skew: Since signals travel down 32 or 64 individual copper traces, tiny variations in trace length meant bits would arrive at slightly different times, corrupting data.
  • Shared Bandwidth: If one PCI device was hogging the bus, other devices had to wait, severely limiting system throughput.
  • Bulky Routing: Routing dozens of parallel traces made motherboard design incredibly complex and pin-heavy.

The PCIe Paradigm Shift (2003)

To break this bottleneck, a coalition of industry leaders introduced PCI Express (3GIO) in 2003. PCIe threw out the parallel model and replaced it with a point-to-point, serial packet-based topology:

  • Dedicated Lanes: Instead of sharing a bus, every device gets its own direct link to the Root Complex (CPU/Chipset).
  • Dual-Simplex Serial Pairs: Each lane consists of two differential copper wire pairs—one for transmitting (Tx) and one for receiving (Rx).
  • Scalability: Lanes can be grouped together (x1, x4, x8, x16) to scale bandwidth for demanding hardware like GPUs.

2. The PCIe Generational Roadmap

With every new generation, the PCIe standard has successfully doubled its bandwidth. This required switching from traditional NRZ (Non-Return-to-Zero) signaling to PAM4 (Pulse Amplitude Modulation 4-Level) in Gen 6 to pack more data into the same physical frequencies.

GenYearTransfer RateLine EncodingBandwidth per Lane (x1)
Gen 120032.5 GT/s8b/10b (20% overhead)~250 MB/s
Gen 220075.0 GT/s8b/10b (20% overhead)~500 MB/s
Gen 320108.0 GT/s128b/130b (~1.5% overhead)~1 GB/s
Gen 4201716.0 GT/s128b/130b (~1.5% overhead)~2 GB/s
Gen 5201932.0 GT/s128b/130b (~1.5% overhead)~4 GB/s
Gen 6202264.0 GT/sPAM4 / FLIT (~1.5% overhead)~8 GB/s

3. Core Infrastructure: Who’s Talking?

A physical PCIe link consists of three primary components in a point-to-point hierarchy:

ComponentRole in the LinkKey Hardware Detail
Root ComplexThe root host bridge connecting the CPU and memory to the PCIe fabric.Can be integrated directly into the CPU die or exist as a discrete chipset.
RepeaterActive signal conditioning devices placed along long motherboard traces.Divided into Redrivers (analog amplifiers) and Retimers (re-clocking digital chips).
EndpointThe downstream peripheral device receiving/sending the payload.Can be physical cards (GPUs), M.2 SSDs, or integrated onboard controllers.

4. Side-Band Signaling: The Ignition Keys

Before high-speed serial lanes can transmit data, a set of crucial auxiliary control signals must stabilize.

Signal NameActive StatePurpose
PERST#Active LowFundamental Reset. It must be held low until system power rails and reference clocks are completely stable. Transitioning to high begins link initialization.
WAKE#Active LowWakeup request. Signals transitions from low-power sleep states back to active states.
CLKREQ#Active LowClock Request. Used by endpoints to request that the reference clock be enabled or disabled to conserve power.
REFCLK100 MHz clockReference Clock. A shared, stable clock signal that both devices use to generate their internal high-speed transmit clocks.

5. The 3-Step Link Training Process

Once PERST\# is released and REFCLK is stable, the hardware triggers the Link Training and Status State Machine (LTSSM). This establishes the initial link at Gen 1 speeds (2.5 Gbps) using three logical phases:

  [1. Rx Detect]         [2. Polling]         [3. Configuration]
  (Detect partner)  -->  (Lock clocks)   -->  (Deskew & lane assignment)
PhaseWhat HappensSignal Mechanics
1. Rx DetectThe transmitter checks if a physical receiver is attached on the other side of the lane.The Tx circuit charges a capacitor on the line and measures the rate of charge to detect the receiver’s presence.
2. PollingBoth sides exchange continuous patterns to sync up their clocks and decoders.Devices transmit Training Sequences (TS1/TS2) to establish Bit Lock (frequency synchronization) and Symbol Lock (aligning 10-bit patterns).
3. ConfigurationThe link compensates for physical trace length variances and assigns lane numbers.Operates a lane-to-lane deskew to align arriving signals. Determines link width (e.g., x1, x4, x8, x16) and handles any bifurcation (splitting lanes across multiple devices).

After completing Configuration, the link enters the L0 state—the fully active, normal operational state.

6. Link Equalization: Fine-Tuning Gen 3 and Beyond

At speeds of Gen 3 (8 GT/s) and higher, standard FR4 motherboard copper traces act like low-pass filters, severely distorting high-frequency signals. To combat this, devices must run Link Equalization, adjusting transmitter waveforms using predefined Presets (numbered 0 to 10).

If you have a Gen 5 link, the hardware must step up through three consecutive equalization cycles: Gen 1 ➔ Gen 3, Gen 3 ➔ Gen 4, and finally Gen 4 ➔ Gen 5. Each cycle runs through four distinct phases:

 [Phase 0: Preset Request] ➔ [Phase 1: Coarse Sync] ➔ [Phase 2: Upstream Fine-Tune] ➔ [Phase 3: Downstream Fine-Tune]
  • Phase 0 & 1: Coarse Negotiation: The downstream port requests its desired transmitter presets from the upstream device. The link steps up to the target speed and repeatedly exchanges training sequences to guarantee a basic Bit Error Rate (BER) of less than $10^{-4}$.
  • Phase 2 & 3: Deep Optimization: The link runs a fine-tuning protocol. Phase 2 optimizes the transmitter settings of the upstream port, and Phase 3 optimizes the downstream port. By the end of Phase 3, the transceiver waveforms are perfectly tuned, achieving a reliable target Bit Error Rate (BER) of less than $10^{-12}$.

7. Signal Integrity Bottlenecks: Redrivers vs. Retimers

As bus speeds double with every generation, physical trace length on motherboards becomes your worst enemy. If your traces are too long, even maximum preset adjustments in Link Equalization cannot achieve a stable link. Designers must use Repeaters to extend the signal:

FeatureRedriverRetimer
Primary TechnologyPure analog amplifier / equalizer.Mixed-signal digital transceiver.
LatencyExtremely low (hundreds of picoseconds).Moderate (buffers and re-clocks the signal).
Signal CleansingAmplifies both the signal and the background noise.Fully extracts data, eliminates jitter, and re-transmits a fresh, clean signal.
Cost & ComplexityLow cost, simple trace layout.Higher cost, requires firmware and register configurations.

Using retimers is virtually mandatory for Gen 5 and Gen 6 system architectures to successfully span across motherboards to external risers or dense server backplanes!

8. Pinout

 A standard PCI Express card edge connector has a standardized pinout divided into two physical sides 

  • Side A (Back / Solder Side)
  • Side B (Front / Component Side) 

The connector is split by a physical keying notch that separates the Power and Management Section (Pins 1–11) from the High-Speed Data Lanes (Pins 12 and beyond). This ensures you cannot insert a card backward.

Below is the complete, standard PCIe wiring pinout, followed by the external power connector layouts 

Power & System Management Pins (Pins 1–11)

Located before the physical mechanical key notch 

These pins are identical across all slot sizes (x1, x4, x8, x16) 

Pin #Side B (Component Side)Side A (Solder Side)Signal Description
1+12 V PRSNT1# (Hot-plug detect) Powers the card; detects if card is fully plugged in  .
2+12 V+12 VMain power supply line.
3+12 V+12 VMain power supply line  .
4GNDGNDGround reference.
5SMCLKTCKSMBus Clock (B) / JTAG Clock (A).
6SMDATTDISMBus Data (B) / JTAG Data In (A).
7GNDTDOGround (B) / JTAG Data Out (A)  .
8+3.3 VTMSAuxiliary 3.3V power (B) / JTAG Mode Select (A).
9TRST#+3.3 VJTAG Reset (B) / Standard 3.3V power (A).
10+3.3 Vaux+3.3 VStandby power (B) / Standard 3.3V power (A)  .
11WAKE# PERST# Link Wakeup (B)  / Fundamental Reset (A)  .

🔑 The Keying Notch sits right here (between Pins 11 and 12) 

High-Speed Data Lanes (Pins 12–82)

All high-speed lanes consist of differential pairs for Transmit (TX/HSOp/HSOn) and Receive (RX/HSIp/HSIn . To prevent noise and crosstalk, every single high-speed pair is separated by a dedicated GND (Ground) pin 

Depending on the slot size, the pins terminate at different lengths:

  • x1 Slot: Terminated at Pin 18
  • x4 Slot: Terminated at Pin 32
  • x8 Slot: Terminated at Pin 49
  • x16 Slot: Terminated at Pin 82

First Data Lane (Lane 0) Details:

Pin #Side B (Component Side)Side A (Solder Side)Signal Description
12GNDREFCLK+Ground (B) / Reference Clock + (A).
13GNDREFCLK-Ground (B) / Reference Clock – (A).
14HSOp(0) (Tx+)GNDLane 0 Transmitter (B) / Ground (A).
15HSOn(0) (Tx-)GNDLane 0 Transmitter (B) / Ground (A).
16GNDHSIp(0) (Rx+)Ground (B) / Lane 0 Receiver (A).
17GNDHSIn(0) (Rx-)Ground (B) / Lane 0 Receiver (A).
18GNDGNDGround. (x1 Slot Ends Here)

The Repeating Data Pattern:

Beyond Pin 18, the lanes repeat a highly predictable geometric pattern:

  • Side B always hosts the Transmitter (Tx) signals.
  • Side A always hosts the Receiver (Rx) signals  .
  • The system repeats: GND ➔ Tx+/Tx- (Side B) or Rx+/Rx- (Side A) ➔ GND  .

Reference

https://www.ti.com/lit/an/snla415/snla415.pdf?ts=1784569924417

Leave a Reply

Your email address will not be published. Required fields are marked *