Peripheral Component Interconnect Express (PCIe) is the modern standard for connecting high-speed devices to a computer system. It replaced parallel buses like PCI and PCI-X with a high-speed serial, point-to-point interface, offering:

  • High bandwidth (up to 64 GT/s in Gen6)
  • Scalable lanes (x1, x4, x8, x16, x32)
  • Low latency
  • Hot-plug support
  • Advanced error handling and power management

Real-world applications include:

  • GPUs (NVIDIA, AMD)
  • NVMe SSDs (Samsung, WD)
  • Network cards (10/25/100 GbE)
  • AI accelerators, FPGA cards
  • WiFi/5G modules

2. PCI vs PCI-X vs PCIe (Evolution)

FeaturePCI (1992)PCI-X (1998)PCIe (2003–Now)
TypeParallel BusParallel BusSerial, Point-to-Point
Width32/64 bit64 bit1, 4, 8, 16, 32 lanes
Max Speed133 MB/s1 GB/s64 GB/s+ (Gen6 x16)
SharingShared busShared busSwitched, dedicated
Signal IntegrityPoor at high freqBetterExcellent
Hot PlugLimitedLimitedSupported
Error HandlingBasicLimitedAdvanced (ACK/NAK, Retry)
Power ManagementMinimalMinimalAdvanced (ASPM, L-states)

Key Takeaways:

  • PCIe is serial and point-to-point, eliminating the shared bus bottleneck.
  • Each device gets a dedicated link, scalable in width.
  • PCIe adds features like flow control, QoS, interrupts, error reporting, and power states.

3. On-Chip vs Peripheral Protocols

On-Chip Protocols

Used inside SoCs for connecting modules like CPU, memory controller, or accelerators.

  • Examples: AXI, AHB, OCP, TileLink
  • Pros: Very fast, simple
  • Cons: Limited to a single chip, no standard between devices
  • Limitation: Not scalable for high-speed peripherals

Peripheral Protocols

Used to connect external devices to CPU/system.

  • Examples: PCI, PCI-X, PCIe, USB, SATA
  • Pros: Standardized, scalable, hot-plug capable
  • PCIe: Industry standard for high-speed peripherals

ASCII Illustration: On-Chip vs Peripheral

[CPU]---AXI/AHB---[GPU Core]
   |
   +--PCIe-->[External GPU/SSD/FPGA]

Conclusion: On-chip protocols are great for internal SoC communication, but PCIe is required for external devices.


4. PCIe Topology

Unlike PCI/PCI-X (shared bus), PCIe uses a switched, point-to-point topology:

           CPU / Root Complex
                 |
         ---------------------
         |         |         |
      x16 GPU   x4 SSD    x1 WiFi
                 |
               Switch
             /    |    \
           EP1   EP2   EP3
        (NIC)  (FPGA)  (USB)

Notes:

  • Root Complex (RC) connects CPU to PCIe devices.
  • Switches extend connectivity to multiple endpoints.
  • Each link is dedicated, preventing bandwidth sharing.

5. PCIe Layers Overview (Brief Intro)

PCIe uses a layered architecture:

LayerPurpose
Transaction LayerForms TLPs (Transaction Layer Packets), routing, addresses
Data Link LayerEnsures reliable delivery using DLLPs (ACK/NAK), flow control
Physical LayerSerial transmission, encoding, equalization, training

Each layer has specific roles, which we’ll explore in detail in later parts.


6. PCIe Protocol Features (High-Level)

  • Packet-based communication (TLP/DLLP)
  • Switched, point-to-point links
  • Lane scalability (x1–x16+)
  • Quality of Service (QoS) support
  • Flow control with credit mechanism
  • Hot-plug & power management
  • Error detection and recovery
  • Supports multiple generations (Gen1–Gen6)

7. PCIe Generations (Speed Table)

GenYearPer-Lane SpeedEncodingMax x16 Bandwidth
Gen120032.5 GT/s8b/10b4 GB/s
Gen220075 GT/s8b/10b8 GB/s
Gen320108 GT/s128b/130b16 GB/s
Gen4201716 GT/s128b/130b32 GB/s
Gen5201932 GT/s128b/130b64 GB/s
Gen6202364 GT/s1b/1b Flit128 GB/s

Scroll to Top