EE Primers · DDR Memory · Step 4

DDR4: bank groups, POD signaling and the trained VREF

DDR4 doubled the data rate of DDR3 without doubling the speed of the DRAM core. It did that with bank groups, changed the data I/O from center-tapped SSTL to pseudo-open-drain (POD) terminated to VDDQ, moved the data reference inside each device where it has to be trained, and added a 2.5 V wordline supply and a set of link-integrity features. This page draws every DDR4 signal, explains how each is driven and sampled, and walks a bank-group-interleaved read and a write with data bus inversion.

Typical values from JEDEC JESD79-4 [1]. Read DDR3 first; this page describes DDR4 largely as changes from it.

01 · At a glance

DDR4 in one table

ItemDDR4Change from DDR3
Data rate / CK1600–3200 MT/s / 800–1600 MHzAbout 2× at the top bin
SuppliesVDD = VDDQ = 1.2 V, VPP = 2.5 VNew external wordline-boost rail VPP
Data I/OPOD12, terminated to VDDQWas SSTL to VDDQ/2; a high now costs no termination current
Data VREFInternal, per device, trained (MR6)External VREFDQ pin removed
Command/addressTerminated to VTT = VDD/2, VREFCA externalUnchanged in principle; ACT_n pin added, RAS/CAS/WE double as A16–A14
Prefetch / burst8n · BL8 / BC4Same, so the core must cycle twice as fast
Banks16 in 4 bank groups (x4/x8); 8 in 2 groups (x16)Bank groups are new; tCCD_L vs tCCD_S
Driver / ODTRON 34 / 48 Ω · RTT_NOM, RTT_WR, RTT_PARK 34–240 ΩRTT_PARK holds termination on idle ranks
IntegrityCA parity + ALERT_n, write CRC, DBI, MPR, PDAAll new
Density / package4–16 Gb; 78-ball (x4/x8), 96-ball (x16); 288-pin DIMM, 260-pin SO-DIMMHigher density, 3DS stacking (C0–C2)
02 · Block diagram

Controller to DRAM: every wire

An x16 DDR4 device. Colors: clock, command/address, control and sideband, data and strobe, calibration. ALERT_n is the only pin the DRAM drives back to the controller besides data and strobe.

x4 and x8 parts have BG0–BG1 (four bank groups) and one strobe; x8 can turn its DM_n/DBI_n pin into TDQS_t with a TDQS_c partner for mixing x4 and x8 on one bus. 3DS stacks add C0–C2 chip-ID inputs.
03 · Pin reference

What each signal does

SignalDir.ElectricalRate / sampled onFunction
CK_t, CK_cindifferential—Command clock. Commands and addresses are captured at the crossing of CK_t rising and CK_c falling.
CKEinSSTL-type, VREFCASDRClock enable: power-down and self-refresh entry and exit.
CS_ninSSTL-typeSDRChip select. With command/address latency (CAL) enabled, CS_n arrives a few clocks ahead of the command so the CA receivers can sleep between commands.
ACT_ninSSTL-typeSDRNew in DDR4. Low = this is an ACTIVATE, and RAS_n/CAS_n/WE_n are row address bits A16/A15/A14. High = RAS_n/CAS_n/WE_n are the command code as in DDR3. This let DDR4 address bigger rows without more pins.
RAS_n/A16, CAS_n/A15, WE_n/A14inSSTL-typeSDRCommand code when ACT_n is high; row address bits when ACT_n is low.
BG0–BG1inSSTL-typeSDRBank group (x16 has BG0 only).
BA0–BA1inSSTL-typeSDRBank within the group. During MRS, BG0 and BA0–BA1 select MR0–MR6.
A0–A13 (A17)inSSTL-typeSDRRow/column/opcode. A10 = AP, A12 = BC_n, as in DDR3. A17 exists on 16 Gb x4.
PARinSSTL-typeSDREven parity over ACT_n, RAS_n/CAS_n/WE_n, BG, BA and A. Checked when CA parity is enabled (MR5).
ODTinSSTL-typeSDRSwitches the DQ termination from RTT_PARK to RTT_NOM. During a write to this device, RTT_WR applies automatically.
ALERT_noutopen drain—Pulled low by the DRAM on a CA parity error or a write CRC error. Wired-OR across devices on a DIMM, pulled up on the board.
RESET_ninCMOS (VDD)asyncReset, as in DDR3.
TENinCMOS—Connectivity test mode for board-level open/short testing; tie low (weak pull-down) in normal use.
DQ0–DQ15in/outPOD12, ODTDDR on DQSData, eight beats per burst (ten with write CRC).
DQSL_t/_c, DQSU_t/_cin/outPOD12, differentialDDRStrobe per byte; center-aligned on writes, edge-aligned on reads, as in DDR3. 1 or 2 tCK preambles.
DML_n/DBIL_n, DMU_n/DBIU_nin/outPOD12, ODTDDROne pin per byte, either write data mask (input) or data bus inversion (both directions). Write DM and write DBI are mutually exclusive.
ZQ—240 Ω ± 1 % to VSS—Calibration reference.
VREFCAinanalog, VDD/2—Command/address receiver threshold; still external.
VPPsupply2.5 V—Wordline boost. Must ramp before or with VDD and must not be lower than VDD.
04 · Electrical signaling

POD12: termination to VDDQ and a trained VREF

The data I/O is pseudo-open-drain. The driver is still push-pull, but the receiver's ODT ties the line to VDDQ, not to the midpoint. A high then sits at VDDQ with no current in the termination; only a low draws current, through RON and RTT in series. The low level is a divider, VOL = VDDQ·RON/(RON+RTT), so the swing and its midpoint depend on the RON and RTT chosen and on the channel.

That is why the data reference moved inside the DRAM. The eye center is no longer VDDQ/2 and differs per byte and per rank, so each device has a programmable VREFDQ (MR6: range 1 = 60–92.5 % of VDDQ, range 2 = 45–77.5 %, in 0.65 % steps). The controller trains it by sweeping the value and finding the center of the passing window, and can program each device on a DIMM separately with per-DRAM addressability (PDA).

A read: the DRAM drives with 34 Ω into a 48 Ω termination at the controller. A 1 costs nothing; a 0 draws about 15 mA. Command/address are unchanged in principle from DDR3: terminated on the board to VTT = 0.6 V and compared against an external VREFCA = VDD/2.
Data bus inversion

Fewer zeros, less current

Since zeros cost power in POD, the transmitter counts the zeros in each byte on each beat. If more than four of the eight are 0, it inverts the byte and drives DBI_n low. That caps the zeros at four per beat, which also limits simultaneous switching noise. Read DBI and write DBI are enabled separately in MR5.

Write CRC

Errors on the data link

With CRC enabled the controller appends an 8-bit CRC per byte lane, stretching the burst to 10 beats (BL10). A mismatch makes the DRAM pull ALERT_n low and drop the write; the controller retries.

CA parity

Errors on the command bus

The controller sends even parity on PAR. A mismatch makes the DRAM ignore the command, log it and pulse ALERT_n, so a corrupted address never writes the wrong row.

Gear-down and CAL

Easing command timing

Gear-down mode samples command/address every other clock (2N) at high rates, giving setup/hold a full extra clock. CS-to-command latency lets the CA receivers stay off until CS_n wakes them, saving power.

05 · Commands

The command truth table

DDR4 is DDR3's table with one extra pin in front. If ACT_n is low, the command is ACTIVATE regardless of RAS_n/CAS_n/WE_n, which carry row bits. Otherwise the familiar four-pin code applies.

CommandCS_nACT_nRAS_n/A16CAS_n/A15WE_n/A14BG, BAA10
Activate (ACT)LLrow address A16–A14bankrow
Mode register set (MRS)LHLLLMR0–MR6op
Refresh (REF)LHLLH——
Precharge one / allLHLHLbank0 / 1
Write (WR / WRA)LHHLLbankAP
Read (RD / RDA)LHHLHbankAP
ZQ calibration long / shortLHHHL—1 / 0
NOPLHHHH——
DeselectH××××——

Why bank groups

DDR4 kept 8n prefetch. At 3200 MT/s a BL8 burst lasts 4 clocks (2.5 ns), so back-to-back reads need a column access every 2.5 ns. The internal column path of a group of banks cannot cycle that fast, but four independent groups can take turns. So DDR4 has two column-to-column delays:

  • tCCD_S (different bank groups) = 4 clocks: back-to-back bursts with no gap.
  • tCCD_L (same bank group) = 5–8 clocks depending on speed: a gap on the data bus.

The same split applies to activate spacing (tRRD_S / tRRD_L) and write-to-read turnaround (tWTR_S / tWTR_L). A controller's address mapping puts consecutive cache lines in different bank groups for exactly this reason.

Mode registerHolds
MR0Burst length, CAS latency, write recovery / read-to-precharge, DLL reset
MR1DLL enable, RON, additive latency, write leveling, RTT_NOM, TDQS, output disable
MR2CAS write latency, RTT_WR, write CRC enable, self-refresh temperature options
MR3MPR (training patterns and readout), gear-down, per-DRAM addressability, fine-granularity refresh
MR4CS-to-command latency, read and write preamble length (1 or 2 tCK), max power-down, self-refresh abort
MR5CA parity latency, RTT_PARK, data mask enable, read DBI, write DBI, ODT buffer in power-down
MR6VREFDQ training enable, range and value; tCCD_L
06 · Moving data

An interleaved read and a write with DBI

Drawn for DDR4-1600 at 10-10-10 (tRCD = CL = 10 clocks), with tRRD_S = tCCD_S = 4. Two rows in different bank groups are opened and read back to back.

ACT_n is low only on the activates. Two reads to bank groups 0 and 1, four clocks apart, produce one seamless 16-beat run on DQ: the bank-group interleave hides the slower same-group column cycle. A second read to bank group 0 would have to wait tCCD_L.
  1. Clock 0, ACT to BG0. CS_n and ACT_n low; RAS_n/CAS_n/WE_n carry A16–A14 of the row, BG/BA select bank group 0 bank 0.
  2. Clock 4, ACT to BG1. Allowed after tRRD_S; also bounded by tFAW (no more than four activates in a rolling window, a power-delivery limit).
  3. Clock 10, RD to BG0 after tRCD. Clock 14, RD to BG1 after tCCD_S.
  4. Clock 20–28, data. CL = 10 after each read. The DRAM's DLL aligns DQS to CK; a 1 tCK preamble precedes the first burst only, because the second burst follows with no gap.
A write with a 2 tCK write preamble (MR4) and write DBI. On beat 2 the byte would have been 0000 0010, seven zeros, so the controller sends 1111 1101 and drives DBI_n low. The DRAM inverts it back before storing.
07 · Bring-up

Initialization and training

Power-up

Sequence

  • Ramp VPP first (or with VDD), then VDD/VDDQ, RESET_n low ≥ 200 µs
  • RESET_n high, CKE low 500 µs, then CKE high and tXPR
  • MRS in order MR3, MR6, MR5, MR4, MR2, MR1, MR0
  • ZQCL, wait tDLLK and tZQinit
Training

Steps

  • Write leveling (as DDR3; the fly-by is unchanged)
  • Read preamble / gate training using MPR patterns
  • Read centering: per-bit deskew against DQS
  • VREFDQ training (MR6), then write centering; repeated per rank, optionally per device via PDA
  • CA parity checking can be enabled to validate command/address margins
Running

Housekeeping

  • REF every 7.8 µs, or fine-granularity refresh 2× / 4× with shorter tRFC
  • ZQCS periodically
  • Watch ALERT_n for parity and CRC errors
08 · On the board

What changes for the PCB

  • No VTT for data, still VTT for command/address. The fly-by command/address/clock chain is terminated to VTT = 0.6 V as in DDR3; DQ needs only VDDQ.
  • One fewer reference. Only VREFCA is routed; there is no VREFDQ divider.
  • VPP rail. 2.5 V at modest current (tens of mA per device), sequenced at or before VDD.
  • Sideband routing. ALERT_n needs a pull-up and goes to the controller; PAR routes with command/address and has the same timing; TEN gets a pull-down.
  • Return paths and crosstalk matter more than in DDR3: the eye at 3200 MT/s is 312 ps wide. POD's high level sits on VDDQ, so the VDDQ plane is a signal reference; reference DQ to ground or VDDQ consistently through the stack-up.
09 · Self-check

Questions

Why does DDR4 invert on zeros while LPDDR4 inverts on ones?

DDR4 terminates to VDDQ, so a low draws current; LPDDR4 terminates to ground, so a high draws current. DBI minimizes whichever state is expensive.

Why did the VREFDQ pin disappear?

With POD the data swing is from VOL up to VDDQ, and VOL depends on RON, RTT and the channel. The best threshold is no longer a fixed fraction of the supply, so each device gets a trainable internal reference.

What does ACT_n buy?

Three more row-address bits without three more pins: when ACT_n is low, RAS_n/CAS_n/WE_n are free to carry A16–A14, because no other command needs them in that cycle.

Reads to the same bank group are slower back-to-back. How does the controller avoid it?

Address mapping puts adjacent cache lines in different bank groups, and the scheduler alternates groups when it has a choice, so most column commands are spaced by tCCD_S.

A DIMM pulses ALERT_n occasionally during heavy writes. Which feature fired, and what does the controller do?

If write CRC is enabled, a CRC mismatch on a write burst (the DRAM discards the write). The controller logs it and retries the write. Persistent errors point to write-eye margin: VREFDQ, write centering or SI.

10 · Further reading

References

  1. JEDEC, JESD79-4: DDR4 SDRAM Standard.
  2. JEDEC, JESD8-24: POD12 1.2 V Pseudo Open Drain I/O.
  3. Micron Technology, DDR4 SDRAM data sheet (MT40A): command truth table, MR definitions, VREFDQ training and DBI sections.
← DDR3 / DDR3LDDR5 →How DDR memory worksDDR glossary