Memory Interleaving - Memory Interleaving - 1.0 English - PG456

Integrated DDR5/LPDDR5/5X Memory Controller LogiCORE IP Product Guide (PG456)

Document_ID
PG456
Release_Date
2026-08-07
Version
1.0 English

When more than one DDR controller is available on a device, you can choose between two mapping modes:

  • Each DRAM controller is one contiguous address space which can be targeted independently.
  • Two or four DRAM controllers can be interleaved to present a single unified address space.

Memory interleaving makes the participating memory controllers appear as one large pool of memory. The memory can still be spread across discontinuous physical regions like a single DDR controller, with a small region in 4 GB address space and a larger region somewhere higher in the address map. Memory traffic is balanced across the participating DDR controllers in hardware and software does not need to determine how to place data to effectively use more than one DDR controller.

The following figure shows an example of interleaved memory across two DDR controllers. The interleave granularity shown is 1K. The NoC manages interleaving at each NoC entry point (NMU). Interleaving is a property of a memory region. If a memory region is interleaved across two memory controllers, then half of the memory in the region goes to one controller and half goes to the other. The mapping is arranged in strided fashion such that alternate 1K regions go to different DDR controllers. If a burst transaction is sent to an NMU and crosses an interleave boundary (in this case 1K), the transaction is chopped at the interleave boundary. This ensures that a single transaction never crosses an interleave boundary.

Figure 1. Interleaved Memory across Two DDR Controllers

Some benefits of independent controllers include:

  • Explicit partitioning of the workload based on traffic type, function, or other considerations.
  • Independent power mode switching and/or frequency changes.
  • Ability to have separate optimized configurations for different types of traffic.

Some benefits of interleaved controllers include:

  • A unified address space.
  • Automatic load balancing.
  • 2x or 4x the bandwidth of a single 'pipe'.
Note: Performance with interleaved memory controllers varies based on many factors. Among these are: interleave granularity relative to AXI burst size; DRAM address map; HNoC congestion from traffic moving horizontally to multiple DDRMC5s; bandwidth loss due to added path latency; etc. To best understand these performance trade-offs, you should simulate your design and experiment with different combinations of configuration settings.