fpga.loveHomeNewsIssuesVideosToolsWiki
Home / Issues / Issue 202608 / Technical Deep Dive
Technical Deep Dive

PCIe Gen5 Endpoint Design: From AXI to Link Training

Editorial Board · Issue 202608 · High-Speed Interfaces and System Design

PCIe Gen5 Endpoint Design: From AXI to Link Training

Fig. PCIe Gen5 Endpoint Design: From AXI to Link Training · themed illustration

PCIe Gen5 endpoint design spans protocol, physical layer, and system integration challenges; this article walks the complete path from the AXI interface to link training and the key engineering decisions.

1. Architecture Layering: See Three Diagrams First

The PCIe protocol stack has three layers: Transaction handles TLP assembly and flow control; Data Link handles reliable transport, ACK, and retransmission; Physical handles encoding (128b/130b), equalization, and link training. Endpoint design starts by mapping these three layers’ responsibilities onto FPGA resources (GT transceivers, DMA, AXI bridges).

2. AXI Bridging: Translating the AXI World into the TLP World

The AXI4/AXI-Stream to PCIe TLP mapping is the core of datapath design: address-space mapping (BAR space ↔ host addresses), DMA engines (descriptor queues, multi-channel transfers), TLP packing (MRd/MWr/Cpl formats and alignment). Common pitfalls: read/write timeouts, tag reuse, and completion reordering.

3. Link Training (LTSSM): The Hard Part at Gen5 Speeds

Link training at 32GT/s involves negotiating TX equalization and RX equalization, clock recovery (CDR), and link-width downgrade strategy. When debugging, use a protocol analyzer to capture Training Sequences and judge whether the issue is insufficient equalization or reference clock skew.

4. Signal Integrity: The Physical World at 32GT/s

At this speed, vias, connectors, and trace loss all significantly affect the eye diagram. Engineering points: choose low-loss materials, control via stubs, introduce retimers when needed; verification includes bit error rate (BER) tests and eye-diagram scanning.

5. Verification Checklist

  • Protocol analyzer captures TLP: verify read/write semantics and BAR mapping;
  • Link-layer loopback test: verify data link reliability and retransmission;
  • Stress test: full bandwidth + interrupt storms + hot-plug scenarios.
← Previous article · FPGA Radar: October–November 2026 Highlights (Global + Domestic)Next article · GoWinSDR: Anatomy of an Open-Source Software-Defined Radio on Gowin FPGA →
← Back to this issue