EE Primers · DDR Memory · Step 3

DDR3 and DDR3L: every signal, how it is driven, and how a byte moves

DDR3 is the generation most board designers learned DRAM on, and the one every later standard is described as a change from. This page draws the interface between a memory controller and one DDR3 device, names every pin, shows how each group is signaled electrically and in time, and walks an activate–read and a write cycle edge by edge. DDR3L is the same interface at 1.35 V; where the two differ it is called out.

Numbers are typical JEDEC JESD79-3F / JESD79-3-1 values [1][2]. The concepts behind them (banks, rows, ACT/RD/WR/PRE, strobes, prefetch) are built up on How DDR Memory Works.

01 · At a glance

DDR3 in one table

ItemDDR3DDR3LWhy it matters
StandardJESD79-3FJESD79-3-1 (addendum)DDR3L parts also run at 1.5 V; the controller picks
Data rate / CK800–2133 MT/s / 400–1066 MHz800–1866 MT/s typicalTwo transfers per CK cycle on DQ
VDD = VDDQ1.5 V ± 75 mV1.35 V (1.283–1.45 V)One rail feeds core and I/O
I/O standardSSTL_15SSTL_135Center-tap termination to VDDQ/2
Prefetch / burst8n · BL8, or burst-chop BC4 (on the fly via A12)Pin rate = 8 × core column rate
Banks8 (BA0–BA2), no bank groupsUp to 8 rows open at once
Widths / densityx4, x8, x16 · 512 Mb to 8 Gbx8 and x16 dominate down-on-board
Driver / ODTRON 34 or 40 Ω · RTT_NOM 120/60/40/30/20 Ω · RTT_WR 120/60 ΩAll derived from the 240 Ω ZQ resistor
Package78-ball FBGA (x4/x8), 96-ball FBGA (x16)240-pin UDIMM/RDIMM, 204-pin SO-DIMM
TopologyFly-by for CK and command/address, point-to-point per byte for DQWrite leveling corrects the fly-by skew
02 · Block diagram

Controller to DRAM: every wire

One x16 DDR3 device and the controller that drives it. Lines are colored by group: clock, command/address, control, data and strobe, calibration and reference. Arrows give direction; a double line is a differential pair; a slashed line is a bus with its width. Inside the device, command/address goes to the command decoder, data to the read/write data path.

An x8 part has DQ0–DQ7, one DQS/DQS# pair and one DM (the DM pin doubles as TDQS on x8 when enabled). On a DIMM, eight or nine devices share CK and command/address in a fly-by chain; each owns one byte of DQ.
03 · Pin reference

What each signal does

SignalDir.ElectricalRate / sampled onFunction
CK, CK#inSSTL, differential—The command clock. Every command and address bit is captured at the crossing of CK rising and CK# falling. The DLL also locks to it so read data leaves aligned to CK.
CKEinSSTLSDR, CK riseClock enable. Low with no command enters power-down, or self-refresh when combined with REF. Registered, so it obeys setup/hold like a command bit.
CS#inSSTLSDR, CK riseChip select. High means the device ignores RAS#/CAS#/WE# (deselect). Selects one rank on a multi-rank bus.
RAS#, CAS#, WE#inSSTLSDR, CK riseTogether with CS#, the 4-bit command code (truth table in §05).
BA0–BA2inSSTLSDR, CK riseBank address: which of the 8 banks the command targets. During MRS, which mode register.
A0–A15inSSTLSDR, CK riseRow address with ACT, column address with RD/WR, opcode with MRS. A10 = auto-precharge on RD/WR and all-banks on PRE; A12 = burst chop (BC#) on RD/WR when on-the-fly is enabled.
ODTinSSTLSDR, CK riseTurns the device's DQ/DQS/DM termination (RTT_NOM) on. During writes the device switches to RTT_WR automatically (dynamic ODT).
RESET#inCMOS, rail-to-railasynchronousHolds the device in reset with outputs off and ODT off. Not SSTL: driven to VDD and ground, often with a pull-down so the DRAM stays reset while the controller boots.
DQ0–DQ15in/outSSTL, ODTDDR, on DQS edgesData. Eight beats per burst on every DQ, two per CK cycle.
LDQS/LDQS#, UDQS/UDQS#in/outSSTL, differential, ODTDDRData strobe for the lower and upper byte. Sent by whoever sends the data: centered in the data eye for writes, edge-aligned for reads.
LDM, UDMinSSTL, ODTDDR, on DQS edgesWrite data mask: high on a beat means "do not write this byte". Input only; reads ignore it.
ZQ—240 Ω ± 1 % to VSSQ—Reference resistor for the calibration engine that trims driver and ODT legs. One per device, never shared.
VREFCA, VREFDQinanalog, VDD/2 and VDDQ/2—Thresholds for the command/address and data receivers. Both are external in DDR3, usually resistor dividers with local decoupling.
VDD, VDDQ, VSS, VSSQ—1.5 V (1.35 V)—Core and I/O supplies, separate balls so I/O switching noise stays off the core.
04 · Electrical signaling

SSTL: driver, center-tap termination and VREF

Every DDR3 signal except RESET# uses SSTL (stub-series terminated logic). The driver is a push-pull stage whose output resistance RON is trimmed to 34 or 40 Ω. The far end is terminated to the midpoint VTT = VDDQ/2, and the receiver is a comparator that decides high or low against VREF = VDDQ/2. Because the line rests at the midpoint, a 1 and a 0 swing symmetrically around VREF, and the termination draws current in both states.

Data lines are terminated inside the receiving device by on-die termination (ODT): two legs of 2·RTT, one to VDDQ and one to VSSQ, which look like RTT to VDDQ/2. Command/address and clock have no ODT in DDR3; they are terminated on the board at the end of the fly-by chain with resistors to a VTT regulator.

A read: the DRAM drives with RON = 34 Ω into the controller's 60 Ω ODT at 1.5 V. At 1.35 V (DDR3L) every level scales by 0.9. The termination current flows for both 1 and 0, which is the power DDR4 removed.
Clock

Differential CK/CK#

Commands are captured at the CK/CK# crossing, which is insensitive to VREF error and common-mode noise. On a DIMM the pair runs the same fly-by path as command/address and is terminated differentially at the end.

Command / address

Single-ended, SDR

One bit per clock, sampled on CK rising, referenced to VREFCA. Setup and hold are specified against CK (tIS, tIH). Heavily loaded buses run 2T timing: the controller holds each command for two clocks and asserts CS# in the second.

Data

Bidirectional, DDR, with strobes

DQ, DM and the differential DQS travel together per byte. The strobe is the timing reference, so DQ need only match its own DQS, not CK. ODT on the receiving end; the driving end's ODT is off.

Input levels

AC to switch, DC to hold

A data receiver must see VREF ± 150 mV (AC150, DDR3-1333/1600) to switch and stay beyond ± 100 mV (DC100) through hold. DDR3L uses AC135/DC90. Lower speed bins allow AC175.

$$V_{\text{OH}} = V_{\text{TT}} + \frac{V_{\text{DDQ}}-V_{\text{TT}}}{R_{\text{ON}}+R_{\text{TT}}}R_{\text{TT}},\qquad V_{\text{OL}} = V_{\text{TT}}\frac{R_{\text{ON}}}{R_{\text{ON}}+R_{\text{TT}}},\qquad V_{\text{TT}}=\frac{V_{\text{DDQ}}}{2}$$
05 · Commands

The command truth table

A command is the state of CS#, RAS#, CAS# and WE# at one CK rising edge. The bank and address pins carry the operands. DDR3 commands are all single-cycle (two with 2T timing on loaded buses).

CommandCS#RAS#CAS#WE#BAA10Address pins carry
Mode register set (MRS)LLLLMR #opOpcode for MR0–MR3
Refresh (REF) / self-refresh entryLLLH——— (CKE stays high for REF, goes low for SRE)
Precharge one bank / all (PRE / PREA)LLHLbank0 / 1—
Activate (ACT)LLHHbankrowRow address
Write (WR / WRA)LHLLbankAPColumn; A12 = BC#
Read (RD / RDA)LHLHbankAPColumn; A12 = BC#
ZQ calibration long / shortLHHL—1 / 0—
No operation (NOP)LHHH———
Deselect (DES)H×××———
Addressing exampleA 4 Gb x16 device has 8 banks × 32 K rows (A0–A14) × 1 K columns (A0–A9) × 16 bits: a 2 KB page. The same density in x8 has 64 K rows (A0–A15) and a 1 KB page. Row and column share the address pins; that multiplexing is why ACT and RD/WR are separate commands.
Mode registerHolds
MR0Burst length (BL8 / BC4 / on-the-fly), CAS latency CL, write recovery for auto-precharge, DLL reset, precharge power-down mode
MR1DLL enable, output driver RON, RTT_NOM, additive latency AL, write leveling enable, TDQS, output disable
MR2CAS write latency CWL, RTT_WR (dynamic ODT), self-refresh temperature range, auto self-refresh
MR3MPR (multipurpose register) enable for read training patterns
06 · Moving data

An activate–read and a write, edge by edge

Drawn for DDR3-800 at 5-5-5 (CL = 5, tRCD = 5 clocks, CWL = 5) so the clocks are countable; DDR3-1600 at 11-11-11 has the same shape with more clocks. AL = 0, BL8.

Read

The DRAM drives DQS edge-aligned with DQ: data changes on every strobe edge. The controller delays the received DQS by a quarter cycle (dashed lines) to sample in the middle of each data eye.
  1. ACT, clock 0. CS#, RAS# low; CAS#, WE# high. BA selects bank 0, A0–A15 the row. The row decoder fires the word line; every cell in the row dumps its charge onto its bitline and the sense amplifiers resolve and latch the whole 1–2 KB row (the "page").
  2. Wait tRCD. 5 clocks here (12.5 ns). The sense amps need this to restore full levels before a column can be read.
  3. RD, clock 5. CS#, CAS# low; RAS#, WE# high, with the column on A0–A9. Eight bits per DQ are fetched from the sense amps in parallel (8n prefetch) into the read FIFO.
  4. Wait CL. 5 clocks. One clock before the data, the DRAM drives DQS low (the read preamble), so the controller's gate opens on a known level rather than on a floating line.
  5. Burst, clocks 10–14. The serializer shifts out eight beats, two per CK. The DLL has aligned DQS and DQ to CK within tDQSCK. After the last beat DQS holds low for half a clock (postamble), then the outputs turn off.
  6. PRE. When the controller is done with the row, PRE closes it (restores the row to the cells and equalizes the bitlines). tRP later the bank can be activated again.

Write

For writes the controller sends DQS shifted 90° so each strobe edge sits in the middle of a data bit. The DRAM latches DQ and DM directly on DQS edges (dashed lines) and needs no delay line of its own.
  1. WR, clock 0 to an already-open row, column on A0–A9. The controller enables the DRAM's write termination: with dynamic ODT the DRAM switches from RTT_NOM to RTT_WR for the burst.
  2. Wait CWL. 5 clocks. The controller drives DQS low one clock early as the write preamble.
  3. Burst. Eight beats of DQ and DM, each centered on a DQS edge. The DRAM deserializes them into 8n and writes the sense amps in one internal column cycle.
  4. tWR then PRE. Write recovery (15 ns) lets the sense amps drive the new data fully into the cells before the row may be closed.
07 · Bring-up

Initialization and training

Power-up sequence

Reset to idle

  • Ramp VDD/VDDQ with RESET# low (≥ 200 µs after stable power)
  • Release RESET#; keep CKE low for 500 µs
  • CKE high; wait tXPR
  • MRS: MR2, MR3, MR1, then MR0 with DLL reset
  • ZQCL (512 clocks), wait tDLLK = 512 clocks for DLL lock
Training

What the controller calibrates

  • Write leveling: MR1 bit A7 = 1. The DRAM samples CK with each DQS rising edge and returns the result on DQ. The controller sweeps each byte's DQS delay until it sees the 0→1 transition, aligning DQS to CK at that device despite the fly-by delay.
  • Read gate: find where the read preamble starts so the DQS receiver opens only during valid strobes.
  • Read eye: MPR returns a fixed 0101… pattern; per-bit DQ delays are centered on DQS.
  • Write eye: write and read back, sweeping DQ delay against DQS.
Housekeeping

While running

  • REF every tREFI = 7.8 µs (3.9 µs above 85 °C); each takes tRFC (260 ns for 4 Gb)
  • ZQCS (64 clocks) periodically to track temperature and voltage
  • Up to 8 REF may be postponed and caught up later
08 · On the board

Topology, termination and routing

Fly-by. DDR2 used a balanced T-branch so CK reached every device at once; at DDR3 speeds the stubs of a tree ruin the edges. DDR3 instead daisy-chains CK and command/address past each device in turn with short stubs, terminating each line at the end with roughly 36–40 Ω to VTT. The price is that the clock reaches the last device hundreds of picoseconds after the first, which is why write leveling exists: each byte's DQS is delayed to match the CK arrival at its own device.

Data is point-to-point per byte with ODT, so it needs no board termination. Match DQ and DM to their own DQS within the byte lane; byte lanes need not match each other or CK, since training removes those offsets.

VTT must source and sink current (a 1 pulls current from it, a 0 pushes current into it), so it comes from a dedicated DDR termination regulator that tracks VDDQ/2, placed at the end of the fly-by with its own decoupling. VREF is a quiet, separately decoupled reference, never the VTT rail itself: VTT carries load current noise.

Design rulesOne ZQ resistor (240 Ω, 1 %) per device, close to the ball. VREFCA and VREFDQ from dividers or a tracking reference with 0.1 µF at each device. Route CK pairs and command/address together in the fly-by; terminate at the far end. Keep each byte lane on one layer pair with its strobe. Hold RESET# low during power-up.
09 · Self-check

Questions

Why is DQS edge-aligned on reads but center-aligned on writes?

The cheap end does no delaying. The DRAM has no per-bit delay lines, so on writes the controller pre-shifts DQS by 90° and the DRAM samples directly on strobe edges. On reads the DRAM sends DQS and DQ together from the same clock and the controller, which has the delay lines, shifts the strobe.

What does the DLL in a DDR3 device do, and why can't LPDDR use one?

It cancels the device's internal clock-to-output delay so read DQS and DQ leave aligned to CK (within tDQSCK), which lets the controller predict when data arrives. LPDDR drops the DLL to save power and the time to relock it; the controller instead tracks the larger, drifting tDQSCK.

A DDR3 byte lane fails only at high temperature. What would you check first?

Whether periodic ZQCS and read/write timing retraining (or at least tracking) is enabled; RON/ODT drift and DQS timing drift with temperature. Then VREF noise and the refresh rate above 85 °C (tREFI must halve).

Why does the termination regulator need to sink current?

Each terminated line sources current into VTT when driven high and sinks from it when driven low. If the data pattern is mostly 1s, the net current flows into the VTT supply.

What is the peak bandwidth of a 64-bit DDR3-1600 channel?

\(64 \times 1.6\ \text{Gb/s} / 8 = 12.8\ \text{GB/s}\).

10 · Further reading

References

  1. JEDEC, JESD79-3F: DDR3 SDRAM Standard.
  2. JEDEC, JESD79-3-1: Addendum No. 1 to JESD79-3, 1.35 V DDR3L-800 … DDR3L-1866.
  3. Micron Technology, DDR3L SDRAM data sheet (MT41K), command truth table, initialization and write-leveling sections.
  4. JEDEC, JESD8-15: SSTL_15 and JESD8-24: SSTL_135 I/O standards.
← How DDR memory worksDRAM evolutionDDR4 →DDR glossary