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.
| Item | DDR4 | Change from DDR3 |
|---|---|---|
| Data rate / CK | 1600–3200 MT/s / 800–1600 MHz | About 2× at the top bin |
| Supplies | VDD = VDDQ = 1.2 V, VPP = 2.5 V | New external wordline-boost rail VPP |
| Data I/O | POD12, terminated to VDDQ | Was SSTL to VDDQ/2; a high now costs no termination current |
| Data VREF | Internal, per device, trained (MR6) | External VREFDQ pin removed |
| Command/address | Terminated to VTT = VDD/2, VREFCA external | Unchanged in principle; ACT_n pin added, RAS/CAS/WE double as A16–A14 |
| Prefetch / burst | 8n · BL8 / BC4 | Same, so the core must cycle twice as fast |
| Banks | 16 in 4 bank groups (x4/x8); 8 in 2 groups (x16) | Bank groups are new; tCCD_L vs tCCD_S |
| Driver / ODT | RON 34 / 48 Ω · RTT_NOM, RTT_WR, RTT_PARK 34–240 Ω | RTT_PARK holds termination on idle ranks |
| Integrity | CA parity + ALERT_n, write CRC, DBI, MPR, PDA | All new |
| Density / package | 4–16 Gb; 78-ball (x4/x8), 96-ball (x16); 288-pin DIMM, 260-pin SO-DIMM | Higher density, 3DS stacking (C0–C2) |
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.
| Signal | Dir. | Electrical | Rate / sampled on | Function |
|---|---|---|---|---|
| CK_t, CK_c | in | differential | — | Command clock. Commands and addresses are captured at the crossing of CK_t rising and CK_c falling. |
| CKE | in | SSTL-type, VREFCA | SDR | Clock enable: power-down and self-refresh entry and exit. |
| CS_n | in | SSTL-type | SDR | Chip 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_n | in | SSTL-type | SDR | New 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/A14 | in | SSTL-type | SDR | Command code when ACT_n is high; row address bits when ACT_n is low. |
| BG0–BG1 | in | SSTL-type | SDR | Bank group (x16 has BG0 only). |
| BA0–BA1 | in | SSTL-type | SDR | Bank within the group. During MRS, BG0 and BA0–BA1 select MR0–MR6. |
| A0–A13 (A17) | in | SSTL-type | SDR | Row/column/opcode. A10 = AP, A12 = BC_n, as in DDR3. A17 exists on 16 Gb x4. |
| PAR | in | SSTL-type | SDR | Even parity over ACT_n, RAS_n/CAS_n/WE_n, BG, BA and A. Checked when CA parity is enabled (MR5). |
| ODT | in | SSTL-type | SDR | Switches the DQ termination from RTT_PARK to RTT_NOM. During a write to this device, RTT_WR applies automatically. |
| ALERT_n | out | open 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_n | in | CMOS (VDD) | async | Reset, as in DDR3. |
| TEN | in | CMOS | — | Connectivity test mode for board-level open/short testing; tie low (weak pull-down) in normal use. |
| DQ0–DQ15 | in/out | POD12, ODT | DDR on DQS | Data, eight beats per burst (ten with write CRC). |
| DQSL_t/_c, DQSU_t/_c | in/out | POD12, differential | DDR | Strobe 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_n | in/out | POD12, ODT | DDR | One 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. |
| VREFCA | in | analog, VDD/2 | — | Command/address receiver threshold; still external. |
| VPP | supply | 2.5 V | — | Wordline boost. Must ramp before or with VDD and must not be lower than VDD. |
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).
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.
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.
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 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.
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.
| Command | CS_n | ACT_n | RAS_n/A16 | CAS_n/A15 | WE_n/A14 | BG, BA | A10 |
|---|---|---|---|---|---|---|---|
| Activate (ACT) | L | L | row address A16–A14 | bank | row | ||
| Mode register set (MRS) | L | H | L | L | L | MR0–MR6 | op |
| Refresh (REF) | L | H | L | L | H | — | — |
| Precharge one / all | L | H | L | H | L | bank | 0 / 1 |
| Write (WR / WRA) | L | H | H | L | L | bank | AP |
| Read (RD / RDA) | L | H | H | L | H | bank | AP |
| ZQ calibration long / short | L | H | H | H | L | — | 1 / 0 |
| NOP | L | H | H | H | H | — | — |
| Deselect | H | × | × | × | × | — | — |
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:
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 register | Holds |
|---|---|
| MR0 | Burst length, CAS latency, write recovery / read-to-precharge, DLL reset |
| MR1 | DLL enable, RON, additive latency, write leveling, RTT_NOM, TDQS, output disable |
| MR2 | CAS write latency, RTT_WR, write CRC enable, self-refresh temperature options |
| MR3 | MPR (training patterns and readout), gear-down, per-DRAM addressability, fine-granularity refresh |
| MR4 | CS-to-command latency, read and write preamble length (1 or 2 tCK), max power-down, self-refresh abort |
| MR5 | CA parity latency, RTT_PARK, data mask enable, read DBI, write DBI, ODT buffer in power-down |
| MR6 | VREFDQ training enable, range and value; tCCD_L |
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.
DDR4 terminates to VDDQ, so a low draws current; LPDDR4 terminates to ground, so a high draws current. DBI minimizes whichever state is expensive.
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.
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.
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.
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.