HomeExamplesDDR Design
Design Example

DDR Memory PCB Design

Master DDR4 and DDR5 memory interface design. Learn fly-by topology, timing constraints, impedance requirements, and layout techniques for reliable memory systems.

DDR Design Checklist

  • 40Ω single-ended impedance
  • Fly-by for CLK/CMD/ADDR
  • DQ length match per byte lane
  • On-die termination (ODT)
  • Decoupling per VREF pin

DDR Specifications

TypeSpeedVoltageDQ ImpedanceCLK ImpedanceTopology
DDR4-24002400 MT/s1.2V40Ω40ΩFly-by
DDR4-32003200 MT/s1.2V40Ω40ΩFly-by
DDR5-48004800 MT/s1.1V40Ω40ΩFly-by
DDR5-64006400 MT/s1.1V40Ω40ΩFly-by
LPDDR56400 MT/s1.05V40Ω40ΩPoint-to-point

DDR Routing Guidelines

Data Signals (DQ/DQS)

  • Match length within byte lane (±25 mils)
  • DQS differential pair to each byte
  • Point-to-point routing
  • Minimize crosstalk between DQ bits

Command/Address (CMD/ADDR)

  • Fly-by topology: controller → DRAM0 → DRAM1...
  • All CMD/ADDR same layer and direction
  • Terminate at last DRAM
  • Write leveling compensates skew

FAQ

What is fly-by topology in DDR?

Fly-by topology routes clock, command, and address signals sequentially from the controller to each DRAM chip. This creates intentional skew that is compensated during training. It improves signal integrity by reducing stub lengths and reflections compared to T-branch topology used in older DDR generations.

How do I route DDR data signals (DQ)?

DDR data signals are byte-lane based - each DQ byte (8 bits) routes to specific pins on the DRAM. Match DQ lengths within each byte lane (±25 mils for DDR4). DQ signals are point-to-point. Use 40Ω single-ended impedance. Route DQ on inner layers for better isolation from CMD/ADDR.

What is write leveling in DDR?

Write leveling is a training procedure that compensates for fly-by skew. The controller sends DQS and the DRAM compares DQS arrival to the clock. The controller adjusts DQS timing to each DRAM independently. This allows fly-by topology to work despite intentional clock skew between DRAMs.