Inferensys

Glossary

Compute Express Link (CXL)

Compute Express Link (CXL) is an open industry-standard interconnect that provides high-bandwidth, low-latency connectivity between the CPU and devices like accelerators and memory expanders, with coherency and memory semantics.
Performance engineer optimizing AI latency on laptop, latency charts visible, technical optimization session.
INTERCONNECT STANDARD

What is Compute Express Link (CXL)?

A high-speed, cache-coherent interconnect for CPUs, accelerators, and memory.

Compute Express Link (CXL) is an open industry-standard interconnect that provides high-bandwidth, low-latency connectivity between a host processor (CPU) and devices like accelerators and memory expanders, maintaining memory coherency between the CPU and device caches. It builds upon the physical and electrical layers of PCI Express® (PCIe®) but adds crucial protocols for cache coherency, memory semantics, and I/O semantics, enabling efficient resource pooling and composable infrastructure.

For Neural Processing Unit (NPU) acceleration, CXL is transformative. It allows an NPU to coherently share a large, unified memory space with the host CPU, dramatically reducing data movement overhead for AI workloads. This enables efficient memory hierarchy management by allowing CPUs and NPUs to access expanded, pooled memory (CXL.mem) and facilitating direct, low-latency communication between accelerators (CXL.io, CXL.cache). It directly addresses the memory wall by providing a scalable path for bandwidth and capacity beyond traditional DDR limits.

INTERCONNECT ARCHITECTURE

Key Features of CXL

Compute Express Link (CXL) is an open, cache-coherent interconnect standard that provides high-bandwidth, low-latency connectivity between the CPU and devices like accelerators and memory expanders. Its core features are designed to maintain memory semantics and system coherency, making it a foundational technology for heterogeneous computing.

01

Cache Coherence Protocol

CXL defines a hardware-managed cache coherence protocol that allows the CPU and connected devices (like NPUs, GPUs, or memory buffers) to share a unified, consistent view of memory. This eliminates the need for software to manually flush caches, a major source of latency and complexity in traditional accelerator interconnects like PCIe.

  • Key Mechanism: Uses a snoop filter to track which agents cache which memory lines, minimizing coherence traffic.
  • Benefit: Enables fine-grained data sharing between CPU and device, allowing them to work on the same dataset without data corruption or explicit data movement commands.
02

Memory Semantics & Pooling

CXL supports load/store memory semantics, allowing a device to access host memory or other device memory using standard CPU-like read/write operations. This enables advanced use cases like memory pooling and memory expansion.

  • Memory Pooling: A CXL-attached memory device can be dynamically allocated to different hosts in a data center, improving utilization.
  • Memory Expansion: Systems can augment their DRAM capacity with lower-cost, higher-density CXL-attached memory (CXL.mem), appearing as part of the system's physical address space.
  • Example: A server with 512GB of local DRAM could add a 2TB CXL.mem module, presenting a total of 2.5TB of usable memory to the OS.
03

Multi-Layer Protocol Stack

CXL operates over a physical PCI Express (PCIe) 5.0+ electrical interface but uses its own logical protocol layers. The stack is composed of three optional protocol 'flavors' that can be dynamically negotiated:

  • CXL.io: Essentially PCIe, providing foundational I/O operations for device discovery, configuration, and interrupts.
  • CXL.cache: Allows a device (e.g., an NPU) to cache host memory, requiring the coherence protocol.
  • CXL.mem: Allows the host CPU to access device-attached memory (like an expansion module) or a device to access host memory.

A device like an NPU typically uses CXL.io + CXL.cache, while a memory expander uses CXL.io + CXL.mem.

04

Low Latency & High Bandwidth

Built on the PCIe 5.0/6.0 physical layer, CXL is designed for ultra-low latency and high bidirectional bandwidth, critical for accelerator workloads where data movement overhead can dominate execution time.

  • Latency: Aims for latency on the order of ~100 nanoseconds for coherent accesses, significantly lower than software-managed transfers over standard PCIe.
  • Bandwidth: Leverages PCIe's lanes. A x16 link using PCIe 5.0 provides ~64 GB/s per direction (128 GB/s bidirectional). PCIe 6.0 doubles this.
  • Use Case: An NPU can fetch model weights or intermediate activation tensors from host memory with minimal delay, keeping its compute units saturated.
05

Resource Disaggregation & Composable Infrastructure

CXL is a key enabler for disaggregated and composable infrastructure. It allows compute, memory, and storage resources to be physically separated in a data center rack and then logically composed into virtual servers on-demand.

  • Disaggregation: CPUs, pools of CXL-attached memory, and banks of NPUs can be separate hardware modules.
  • Dynamic Composition: A workload requiring massive memory and an NPU can be assigned a CPU socket, a slice of memory from a CXL pool, and a dedicated NPU, all connected via the CXL fabric.
  • Benefit: Dramatically improves hardware utilization and enables more flexible, efficient data center resource management.
06

Industry Standard & Ecosystem

CXL is developed and maintained by the CXL Consortium, an industry group with broad membership from CPU vendors (Intel, AMD, ARM), device makers, and cloud providers. This open standard is crucial for interoperability and avoiding vendor lock-in.

  • Versions: CXL 1.0/1.1 established the base protocol. CXL 2.0 added switching and memory pooling. CXL 3.0 introduced fabric capabilities and peer-to-peer communication between devices.
  • Ecosystem Impact: Drives a common software model (e.g., OS and hypervisor support) and hardware compliance, allowing system builders to integrate components from different vendors confidently.
  • Contrast: Unlike proprietary interconnects, CXL's openness fosters competition and innovation across the compute, memory, and accelerator landscape.
ARCHITECTURE

How CXL Works: Protocol Layers and Coherency

Compute Express Link (CXL) is a high-speed interconnect that enables coherent, low-latency communication between a host processor and devices like accelerators and memory expanders by layering protocols over a physical PCI Express link.

CXL operates over the Physical (PHY) and Data Link Layers of a PCI Express 5.0+ link, reusing its electricals and low-level packet structure. It adds three distinct protocol layers on top: CXL.io, which is essentially PCIe for initialization, device discovery, and I/O; CXL.cache, which allows a device (like an NPU) to coherently cache host memory; and CXL.mem, which enables the host processor to access device-attached memory using load/store semantics.

The coherency protocol is managed by the host CPU, which acts as the home agent for all coherent memory. CXL.cache devices use snoop filters and maintain cache line states, issuing requests to the host to maintain a globally consistent view of memory. This hardware-managed coherency eliminates the need for software to flush caches, a critical feature for enabling efficient, shared memory programming models between CPUs and accelerators like NPUs.

INTERCONNECT APPLICATIONS

Primary Use Cases for CXL

Compute Express Link (CXL) is a high-speed, cache-coherent interconnect standard that enables efficient, low-latency connectivity between the host CPU and specialized devices. Its primary applications focus on overcoming memory and compute bottlenecks in heterogeneous systems.

PROTOCOL COMPARISON

CXL vs. Other Interconnect Technologies

A technical comparison of Compute Express Link (CXL) against established high-speed interconnects, highlighting key features relevant to memory hierarchy management and accelerator integration.

Feature / MetricCompute Express Link (CXL)PCI Express (PCIe)NVLinkInfiniBand

Primary Design Purpose

CPU-centric cache-coherent interconnect for memory expansion and accelerators

General-purpose I/O expansion bus

GPU-to-GPU and GPU-to-CPU coherent interconnect

High-throughput, low-latency networking for clusters

Coherency & Memory Semantics

Underlying Physical Layer

PCIe 5.0+ (leveraged)

PCIe (native)

Proprietary (NVIDIA)

Proprietary (IBTA)

Typical Use Case

Memory pooling, accelerator attachment (NPUs), disaggregation

Attaching peripherals, GPUs, SSDs

NVIDIA GPU clustering (NVSwitch), CPU-GPU coupling

High-Performance Computing (HPC) cluster networking

Topology Support

Hierarchical (switch), peer-to-peer

Root complex hierarchy

Switched fabric (NVSwitch), direct

Switched fabric

Address Space Management

Host-managed (CPU as coherence home)

Device-managed (DMA)

Symmetrically managed

Network-managed (RDMA)

Protocol Stack Overhead

Low (memory semantics)

Medium (I/O transaction layer)

Low (coherent memory fabric)

Medium (networking layers)

Target Latency (end-to-end)

< 100 ns

~500 ns - 1 µs

< 100 ns

~500 ns - 1 µs+ (network)

COMPUTE EXPRESS LINK (CXL)

Frequently Asked Questions

Compute Express Link (CXL) is a critical open standard for high-performance, coherent interconnects between CPUs and devices like accelerators and memory. These questions address its core mechanisms, benefits, and role in modern AI hardware architectures.

Compute Express Link (CXL) is an open industry-standard interconnect that provides high-bandwidth, low-latency connectivity between a host processor (CPU) and devices like accelerators (GPUs, NPUs, FPGAs) and memory expanders, using coherency and memory semantics over a physical PCI Express (PCIe) link. It operates by layering three key protocols on top of the PCIe physical and electrical layers: CXL.io, which is foundational and based on PCIe for initialization, link-up, and I/O semantics; CXL.cache, which allows a device (like an NPU) to coherently cache host memory, dramatically reducing latency for data-intensive workloads; and CXL.mem, which enables the host processor to access device-attached memory (e.g., a memory expander) using load/store instructions, making it appear as part of the system's unified address space. This layered approach allows CXL to maintain backward compatibility with PCIe while adding critical capabilities for heterogeneous computing, enabling efficient, cache-coherent data sharing without costly software-managed data movement.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.