EE Primers · DDR Memory · Step 5

DDR5: a 14-bit command bus, two subchannels and a DIMM that regulates itself

DDR5 is the largest break in the DDR line since DDR3. The 25-odd command and address pins of DDR4 collapse into 14 multi-purpose CA pins; CKE, ODT, VREF and the bank pins are gone; burst length doubles to 16 so one burst on a 32-bit subchannel is a 64-byte cache line; the receivers get decision-feedback equalization; every die corrects its own single-bit errors; and the module carries its own power regulator. This page draws every signal on a DDR5 device, then the DIMM around it, and walks a read and a write.

Typical JEDEC JESD79-5 values [1]. Speed bins are still being added; 4800–8800 MT/s are standardized and DDR5 is being stretched beyond that with MRDIMM and CUDIMM modules.

01 · At a glance

DDR5 in one table

ItemDDR5Change from DDR4
Data rate / CK4800–8800 MT/s / 2.4–4.4 GHz1.5–2.75× the DDR4 top bin
SuppliesVDD = VDDQ = 1.1 V, VPP = 1.8 VGenerated on the DIMM by a PMIC from 5 V or 12 V
Command / addressCS_n + CA0–CA13, single data rate, 1- or 2-cycle commandsReplaces ACT_n, RAS/CAS/WE, BG, BA, A, CKE, ODT, PAR
Data I/OPOD11, 4-tap DFE in the DRAM receiverDFE is new; DBI removed
ReferencesVrefDQ, VrefCA, VrefCS all internal and trainedVREFCA pin removed
Prefetch / burst16n · BL16 (BC8 on the fly; BL32 optional on x4)Doubled
Banks32 in 8 groups (x4/x8, 16 Gb); 16 in 4 groups (x16)Doubled; same-bank refresh
ReliabilityOn-die ECC (SEC over 128 bits), ECS scrub, write CRC, read CRC, RFMOn-die ECC is new
ModuleTwo independent 32-bit subchannels (40 with ECC); PMIC, SPD hub, RCD on RDIMMWas one 64-bit channel, board-regulated
Density16–64 Gb per die4× DDR4
02 · Block diagram

Controller to DRAM: every wire

An x8 DDR5 device, the width most DIMMs use: five of them make one 40-bit ECC subchannel. Compare the command/address group with DDR4's: one chip select and fourteen CA pins carry everything.

x16 parts have DQ0–DQ15, DQSL/DQSU and DML_n/DMU_n; x4 parts have no DM. LBDQ and LBDQS are a loopback port for testing the receive path, not used in operation. On an RDIMM the "controller" side of CA and CK is the RCD buffer, not the host.
03 · Pin reference

What each signal does

SignalDir.ElectricalRate / sampled onFunction
CK_t, CK_cindifferential, on-die termination—Command clock. Data rate is twice CK: DDR5-6400 runs CK at 3.2 GHz.
CS_ninPOD, ODT, VrefCSSDR, CK riseLow on the first cycle of every command; high on the second cycle of a two-cycle command. Also drives power-down entry and exit, replacing CKE.
CA0–CA13inPOD, ODT, VrefCASDR, CK riseOpcode, bank group, bank, row and column, packed over one or two cycles. Activate is recognized by CA0 = CA1 = 0 in the first cycle; its remaining bits carry bank group, bank and row.
CAIinstatic level—CA inversion: tells the device the CA bus is inverted (used to reduce switching on heavily loaded buses).
MIRinstatic strap—Mirror: swaps CA pin pairs so a device on the back of a module can share routing with its mirror on the front.
RESET_ninCMOSasyncReset.
ALERT_noutopen drain—Pulled low on a write CRC error. Wired-OR across the devices of a subchannel (on an RDIMM the RCD also reports CA parity errors).
TENinCMOS—Connectivity test enable; pulled low in normal use.
DQ0–DQ7in/outPOD11, ODT, DFEDDR on DQSData, 16 beats per burst.
DQS_t, DQS_cin/outPOD11, differentialDDRStrobe. Programmable preambles (1–4 tCK read, 2–4 tCK write) with patterns that help the receiver lock on.
DM_ninPOD11DDRWrite data mask (x8/x16 only). There is no DBI in DDR5.
LBDQ, LBDQSout——Loopback outputs: return what a selected DQ receiver captured, for characterizing the input path.
ZQ—240 Ω ± 1 %—Calibration reference. Calibration is started and latched by MPC commands.
VDD, VDDQ, VPPsupply1.1 V, 1.1 V, 1.8 V—From the DIMM's PMIC; on a down-on-board design, from board regulators.
Where did the pins go?CKE became CS_n-encoded power-down. ODT became command-driven: the DRAM switches between RTT_WR, RTT_NOM_WR, RTT_NOM_RD and RTT_PARK on its own as it sees writes and reads addressed to it or to another rank. VREFCA became internal VrefCA and VrefCS, set by commands of the same names. BG/BA/A and RAS/CAS/WE fold into the CA bits.
04 · Electrical signaling

POD11, equalization and on-die command termination

Data uses the same pseudo-open-drain scheme as DDR4 at 1.1 V. What changed is the receiver. At 6400 MT/s a bit lasts 156 ps, and the previous bits are still ringing in the channel when the next one arrives. DDR5 DRAMs add a 4-tap decision-feedback equalizer: each of the last four decided bits shifts the threshold for the current bit by a trained amount, cancelling post-cursor intersymbol interference without amplifying noise as a linear equalizer would.

Command/address and chip select also became POD inputs with on-die termination and internal trained references. Because commands are now single data rate on a 14-bit bus, the CA eye is twice as wide in time as the data eye, which keeps the bus workable with many loads; termination group strapping lets one device per group terminate.

A read: the DRAM drives 34 Ω into a 40 Ω termination at 1.1 V. The swing is about 0.6 V. DFE then corrects the threshold bit by bit.
05 · Commands

One- and two-cycle commands on 14 bits

Every command starts with CS_n low and an opcode in the low CA bits. Commands that need many address bits take a second cycle with CS_n high.

CyclesCommandsWhat the CA bits carry
2ACTBank group, bank, full row address
2RD, WR, WRP (write pattern)Bank group, bank, column, burst-length and auto-precharge options
2MRW, MRR8-bit mode-register address and 8-bit data (up to 256 registers)
1PREab, PREsb, PREpbPrecharge all banks, the same bank in every group, or one bank
1REFab, REFsb, RFMab, RFMsbAll-bank or same-bank refresh; refresh management (RowHammer)
1MPCMulti-purpose: ZQ calibration start/latch, training mode entry/exit, DLL reset, and similar
1VrefCA, VrefCSNew command-bus reference values
1SRE, PDE, PDX, NOPSelf-refresh, power-down entry and exit
Same-bank refresh

Refresh without stopping the device

REFsb refreshes one bank index in all eight groups while the other 24 banks keep working. With tREFI of 3.9 µs and high densities (tRFC of several hundred ns), all-bank refresh alone would idle the bus several percent of the time.

Subchannels

Why 32 bits

BL16 × 32 bits = 64 bytes, one cache line per burst. Two independent subchannels per DIMM double the number of requests in flight for the same pin count.

On-die ECC

Invisible correction

Each 128 data bits are stored with 8 check bits and single errors are corrected before data leaves the die. It exists for array yield at small geometries. It does not protect the link, and system ECC (the fifth device per subchannel) is still needed.

06 · Moving data

A read and a write on DDR5

Clock counts are shortened so the burst fits on screen (DDR5-4800B has tRCD = CL = 40 clocks; CWL = CL − 2). The shape is what matters: two-cycle commands, CS_n low only in the first cycle, and a 16-beat burst lasting 8 clocks.

The read preamble is drawn as a 2 tCK static low; DDR5 lets the controller choose 1–4 tCK preambles, some with a toggle, to help its receiver gate open. The DRAM's DLL still aligns DQS to CK.
Write: the strobe is centered on the data at the DRAM pins. The DRAM samples with DFE applied; the controller has trained the write DQS delay so each strobe edge lands at the center of the equalized eye.
07 · The module

A DDR5 RDIMM is a small system

DDR5 RDIMM (one side shown) x8x8x8x8ECC x8x8x8x8ECC Subchannel A: 32 data + 8 ECC bits Subchannel B: 32 data + 8 ECC bits RCDCA + CK bufferA and B QACA, QACK: re-driven CA and clock, fly-by QBCA, QBCK PMIC12 V in → VDD, VDDQ, VPP,1.8 V, 1.0 V aux SPD hubEEPROM + temp sensorI3C / I²C to host TS0 TS1 local I3C DQ/DQS A: point-to-point from host DCA / DCK A and B DQ/DQS B: point-to-point from host 12 V, I3C sideband
Data goes straight from the edge connector to each DRAM. Command/address and clock go to the RCD, which re-times them and drives a fly-by to each row of DRAMs. A UDIMM omits the RCD (the host drives the DRAMs' CA directly) and takes 5 V into its PMIC; a CUDIMM adds a clock driver (CKD) to clean up CK at 6400 MT/s and above.
08 · Bring-up

Training is most of initialization

Command path

First make commands work

  • CS training (CSTM): the DRAM samples CS_n against CK and reports the result on DQ; the host centers CS_n.
  • CA training (CATM): the DRAM XORs the CA bits it captured and returns the result on DQ; the host sweeps CA delay and VrefCA.
  • Only then are MRW and MPC trustworthy.
Data path

Then the data eye

  • Write leveling, external then internal (the DRAM can offset its own write timing)
  • Read preamble and read training using programmable serial or LFSR patterns held in mode registers
  • VrefDQ, DFE tap and duty-cycle-adjust training
  • Write training with WRP (write pattern) commands
Running

Keeping margins

  • REFab or REFsb every 3.9 µs (half at high temperature), RFM on demand
  • ZQ calibration via MPC
  • DQS interval oscillator to track write-timing drift
  • ECS scrubs the array in the background and counts corrected errors
09 · Self-check

Questions

Why did DDR5 drop DBI when DDR4 needed it?

DBI needs a ninth pin per byte that runs at full data rate, and its benefit (fewer lows, less SSN) is smaller at 1.1 V with DFE receivers. DDR5 kept DM on x8/x16 and gave the pin budget to two subchannels instead.

How does a DDR5 device know whether to terminate if there is no ODT pin?

It watches the command bus. A write addressed to it selects RTT_WR; a write or read to another rank on the same bus selects RTT_NOM_WR or RTT_NOM_RD; otherwise RTT_PARK. The values and timing offsets are mode-register settings.

Does on-die ECC mean a DDR5 system without ECC DIMMs is protected?

No. On-die ECC corrects single-bit errors in the array, mostly from weak cells. Errors on the bus, multi-bit errors and device failures are not covered, and corrected events are not normally reported to the host.

A 40-bit subchannel at DDR5-6400. Peak payload bandwidth?

Only 32 bits are data: \(32 \times 6.4\ \text{Gb/s} / 8 = 25.6\ \text{GB/s}\) per subchannel, 51.2 GB/s per DIMM.

Why must CS and CA be trained before anything else?

Mode-register writes, training-mode entry and every read and write are commands. If the command bus is not reliably captured at the target rate, nothing else can be configured. CS/CA training uses DQ as a feedback path that does not depend on decoded commands.

10 · Further reading

References

  1. JEDEC, JESD79-5: DDR5 SDRAM Standard.
  2. JEDEC, JESD82-511: DDR5 Registering Clock Driver; JESD301: DDR5 PMIC; JESD300: SPD5 hub.
  3. Micron Technology, Introducing Micron DDR5 SDRAM: More Than a Generational Update (white paper).
← DDR4LPDDR4 →DRAM evolutionDDR glossary