EE Primers · DDR Memory · Step 1

How DDR memory works: from one capacitor to a gigabyte per second per pin

Every DDR and LPDDR generation is the same machine: billions of tiny capacitors read through sense amplifiers, organized into banks, rows and columns, driven by a handful of commands, with data moved on both edges of a strobe. This page builds that machine from the cell up, then names the signal groups, the electrical standards and the training every interface needs. The per-generation pages (DDR3, DDR4, DDR5, LPDDR4, LPDDR5) then draw each interface pin by pin.

01 · The big picture

Channel, rank, device, bank, row, column

A memory controller talks to DRAM over a channel: one shared clock and command bus plus a data bus of some width. A rank is the set of DRAM devices that answer together to one chip select, each supplying a slice of the data width. Inside each device, the storage is split into independent banks; each bank is a 2-D array addressed by row and column. An access opens one row of one bank in every device of the rank, then reads or writes a burst of columns from it.

ChannelRankDeviceBankRow (page)Burst 64 data bits (+8 ECC)one CK, one CA bus1–2 DIMMs 8 × x8 devicesshare one CSeach owns 8 bits 8 Gb, x816 banks(4 bank groups) 64 K rowsone open row+ row buffer 1 K columns × 8 bits= 1 KB per device8 KB across the rank BL8 × 8 bits= 8 B per device64 B across the rank each box contains several of the next · example: a DDR4 x8 DIMM, one rank One read: ACT opens the same row in the same bank of all 8 devices; RD streams 8 beats from each device in parallel = one 64-byte cache line
Numbers are for an 8 Gb x8 DDR4 device on a single-rank DIMM. LPDDR channels are 16 bits wide and usually one device per channel; DDR5 splits a DIMM into two 32-bit subchannels.
02 · The cell

One transistor, one capacitor, and a sense amplifier

A DRAM bit is a capacitor Cs of roughly 10–20 fF, connected to a long bitline through one access transistor whose gate is the wordline. A charged capacitor is a 1, an empty one a 0. Before a read, every bitline is precharged to VDD/2. Raising the wordline connects the cell to the bitline, and the charge is shared between Cs and the much larger bitline capacitance Cbl:

$$\Delta V_{\text{BL}} = \pm\frac{V_{\text{DD}}}{2}\cdot\frac{C_s}{C_s + C_{\text{bl}}}$$

With Cbl about five to ten times Cs, that is a swing of only 50–100 mV. A sense amplifier (a cross-coupled latch) between the bitline and a reference bitline resolves that small difference and drives both to full rails. Two consequences shape everything above:

  • Reads are destructive. Sharing the charge erased the cell. The sense amplifier, now driving the bitline to full level, writes the value back while the row stays open. That restore is why a row must stay open for tRAS before it may be closed.
  • Cells leak. The charge drains in tens of milliseconds, so every row must be read and restored at least once per retention period (64 ms, or 32 ms hot). Spreading 8192 refresh commands over 64 ms gives tREFI = 7.8 µs.
wordline (row) BLBL̄ (reference) accesstransistor Cs ≈ 15 fF plate at VDD/2 sense amplifier (latch) Cbl ≈ 100 fF Read sequence on one bitline 1 Precharge: BL = BL̄ = VDD/2, equalized (PRE) 2 Wordline high: cell shares charge, BL moves ±50–100 mV (ACT) 3 Sense amp fires: BL → VDD or 0, BL̄ the opposite (tRCD) 4 Column select: latched bits copied to the I/O path (RD) 5 Restore: full-level bitline recharges the cell (tRAS) 6 Wordline low, bitlines re-equalized (PRE, tRP) The whole row's sense amps latch at once: thousands of bits are "open" after one ACT. That latch row is the row buffer.
Simplified folded-bitline cell; the sense amplifier is drawn transistor by transistor in the next section. Real arrays use open or folded bitline arrangements, segmented bitlines and boosted wordline voltage (VPP) so the access transistor passes a full level.
Try itThe DRAM array simulator steps a 4-row × 8-column bank with these cells and sense amplifiers through write, read, precharge, leakage and refresh, one stage at a time.
03 · The sense amplifier

Inside the sense amplifier: nine transistors per bitline pair

The block drawn as "sense amplifier" above is, in a real DRAM, a strip of near-identical circuits, one per bitline pair, pitched to fit between the bitlines. Each one has four parts that work in sequence, shown below as they are usually drawn: the bitline pair (BL and its complement BLB, the BL̄ of the figure above) runs horizontally, and the control lines that the row logic drives for the whole strip run vertically. The two enable devices that drive SAN and SAP are shared by the whole strip.

  • Precharge and equalize (3 NMOS). While EQ is high, two transistors tie BL and BLB to VBLEQ = VARY/2 and a third shorts BL to BLB, so both sit at exactly the same voltage. Any residual difference here would add directly to the sense amplifier's offset.
  • N-sense amplifier (2 cross-coupled NMOS). Each NMOS has its drain on one bitline and its gate on the other. Their common source, SAN, is held at VBLEQ until sensing, so both are off. When SEN pulls SAN toward ground, the NMOS whose gate is on the slightly higher bitline turns on harder and discharges the lower bitline faster; positive feedback runs it to 0 V.
  • P-sense amplifier (2 cross-coupled PMOS). The mirror image: common source SAP is raised to VARY by SEP# going low, and the PMOS gated by the now-low bitline pulls the higher bitline up to the full array voltage. Together the two pairs form a latch that has resolved the 50–100 mV input into full rails.
  • Column select (2 NMOS). When the column decoder raises one CSL, the selected sense amplifiers are connected to the local I/O lines LIO/LIOB, which were precharged high. The bitline at 0 V discharges its LIO line; a secondary amplifier further along the data path senses that difference. Writes drive LIO/LIOB hard enough to overpower the latch and flip it.
One folded-bitline sense amplifier. Cell 0 sits on BL and is selected by WL0; cell 1 on BLB by WL1. When WL0 opens, BLB carries no cell and acts as the reference at VBLEQ. Lines that cross without a dot are not connected. Real designs often add isolation transistors (ISO) so one sense-amp strip can serve the arrays on both sides, and offset-cancellation devices; they are left out here.
Reading a stored 1 from cell 0. Voltages are normalized to the array supply VARY (around 1.0–1.1 V); the wordline is boosted to VPP. Times are representative of a row cycle of about 45 ns, not a specific device.

Why it is built this way

  • NMOS first, PMOS second. NMOS devices have higher mobility and match better, so the N-latch is fired first to make the decision at small signal. The PMOS latch then only has to restore the high side. Many designs also enable SAN in two steps, a weak device then a strong one, so the latch is not overdriven before the decision is made.
  • Offset is the enemy. Threshold mismatch between the two cross-coupled transistors looks like an input voltage. With a signal of only 50–100 mV, a few tens of millivolts of offset, plus bitline coupling and leakage, is what fails a read. This is why sense-amp transistors are drawn larger than minimum and why some designs cancel offset before sensing.
  • Folded bitline. BL and BLB run side by side through the same array, so noise from a wordline or the substrate couples onto both and cancels. Open-bitline arrays (BLB in the neighboring array) are denser and dominate modern DRAMs, at the cost of less common-mode cancellation.
  • Restore happens for free. Once latched, BL sits at VARY with WL0 still high, which recharges cell 0 to a full 1. That is why reads are not permanently destructive, and why tRAS cannot be shorter than sensing plus restore.
  • Each block in detail. The next section isolates the cell array, the equalizer, the N- and P-sense amps and column select one at a time, each with its own simulation.
  • VPP on the wordline. An NMOS passes only VG − VT, so the wordline is boosted (VPP ≈ 2.5 V on DDR4, 1.8 V on DDR5) to write a full VARY back into the cell.
04 · Block by block

Each part of the sense path, isolated

The section above draws the whole sense path for one column. Here each of its five blocks is taken out on its own, in the order a signal meets them. Each one gets the circuit with nothing else attached, how it works step by step, what limits it, and a small simulation to try. The simulations use simple square-law transistors and representative values, so they show behavior and trends rather than the numbers of a particular device.

1 · The cell array: access transistor, storage capacitor, folded bitlines

Each cell is one NMOS access transistor in series with one capacitor Cs of about 10–20 fF. The transistor's gate is the wordline, which runs along the row. Its drain is the bitline, which runs along the column. Its source is the storage node, SN. The capacitor's other plate is common to the whole array and is held at VP = VARY/2. In a folded array, a given wordline connects cells to every other bitline. Here WL0's cell hangs on BL and WL1's on BLB, so whichever row opens, the other line of the pair carries no cell and serves as the reference.

BLBLB WL0WL1 access SNCs ≈ 15 fF plate VP = VARY/2 SNCsplate Cbl ≈ 100 fF Cbl junction leakage → substrate dielectric subthreshold → BL WL0 cell on BL (true cell) · WL1 cell on BLB · crossings without a dot do not connect
Two cells of a folded array, with the parasitic bitline capacitance drawn dashed. The red arrows mark where a stored charge leaks away while the wordline is low.
  1. Hold. The wordline sits at 0 V or slightly negative (−0.2 to −0.3 V in many designs), so the access transistor is off. SN holds VARY (charged) or 0 V (empty).
  2. Write. The sense amp drives the bitline to a full level while the wordline is at VPP. Writing a 0 is easy, because the transistor's source is the bitline at 0 V. Writing a 1 is the hard case: the source is now the storage node itself. As SN rises, VGS shrinks, and the transistor stops conducting at VSN = VWL − VT. VT also rises with VSN through the body effect. The wordline must therefore reach VARY + VT plus margin, which is why it is driven from a separate boosted VPP rail.
  3. Read. Opening the wordline shares SN's charge with the bitline, giving the signal below. The cell ends at the same voltage as its bitline, so the read is destructive.
  4. Restore. The latched sense amp drives the bitline back to a full level, and with the wordline still high the cell is rewritten. Every activation is therefore also a refresh of its row.
  5. Leak. Charge escapes through three paths:
    • Junction leakage from the storage node's n+ region into the p-type substrate. This is strongly temperature dependent, and trap-assisted leakage sets the weak-cell tail.
    • Subthreshold conduction through the access transistor, worst when its bitline sits at 0 V while other rows are being accessed.
    • Dielectric leakage through the capacitor itself.
    Long recessed-channel transistors with high VT and a negative off-wordline keep these small enough for 64 ms retention.
$$\Delta V_{BL}=\left(V_{SN}-\frac{V_{ARY}}{2}\right)\frac{C_s}{C_s+C_{bl}},\qquad V_{SN,\max}=\min\left(V_{ARY},\;V_{WL}-V_T(V_{SN})\right)$$
  • Why the plate sits at VARY/2. The dielectric then sees at most ±VARY/2 instead of VARY. The lower field allows a thinner high-k film, which gives more capacitance per area and less leakage through the film.
  • What Cbl is made of. The bitline wire, the drain junctions of every access transistor on it (hundreds of cells), and the sense amp's inputs. Shorter bitlines (more, smaller subarrays) raise the transfer ratio Cs/(Cs + Cbl) at the cost of more sense amps.
  • Folded versus open. Folded bitlines put the reference line next to the active one, so coupled noise cancels; the price is that only every other crossing holds a cell. Open bitlines (reference in the neighboring array) fit a cell at every crossing and dominate modern dies.

2 · Precharge and equalize: E1, E2 and E3

The equalizer sits between the two bitlines of each pair, and its job is to make them identical before the next activate. It has three NMOS transistors, all gated by one signal, EQ, which is usually driven to VPP so they stay strongly on at the midpoint voltage:

  • E3 shorts BL to BLB.
  • E1 connects BL to the precharge supply VBLEQ = VARY/2.
  • E2 connects BLB to the same supply.
BLBLB VBLEQ= VARY/2 supply E1E2E3 E1, E2: tie each line to VBLEQ E3: shortsBL to BLB EQdriven to VPP CblCbl
The equalizer, isolated. All three gates connect to EQ (purple). When EQ is low the bitlines float, free for a cell to nudge one of them.
  1. Start of precharge. The wordline has already fallen and the sense amps are off. One bitline is at VARY, the other at 0 V.
  2. E3 does the heavy lifting. EQ rises and E3 connects the two bitlines. Charge flows from the high one to the low one until they meet at (CBL·VBL + CBLB·VBLB)/(CBL + CBLB), which is VARY/2 when the capacitances are equal. No supply provides this charge: it is recycled from one bitline to the other.
  3. E1 and E2 trim the rest. If the two capacitances differ, or leakage and coupling have shifted the lines, E3 alone leaves them at the wrong common level. E1 and E2 pull both to exactly VBLEQ, so the supply only delivers small correction currents.
  4. EQ falls just before the next activate. The bitlines float at VARY/2 and the bank is ready.
  • Why precharge to half of VARY. A stored 1 and a stored 0 then give equal and opposite signals, and the idle bitline is a ready-made reference with no dummy cell. Sensing energy is also halved: the bitline that goes high charges only from VARY/2, drawing Cbl·VARY/2 of charge from VARY, and nothing is drawn during precharge.
  • Why it sets tRP. Any difference left between BL and BLB when EQ falls adds directly to the sense amp's offset at the next activate. The equalizer must therefore settle to a few millivolts within tRP, together with the wordline fall before it.
  • The supply. VBLEQ feeds thousands of columns at once. Any error in it is a common-mode shift that eats into the signal of one data polarity, so it is a carefully regulated internal rail.

3 · The N-sense amp: the cross-coupled NMOS latch

The heart of the sense amplifier is two NMOS transistors, N1 and N2, wired as a differential latch. Take away everything else: the equalizer, the PMOS half, column select and the cells. What remains is the circuit below. Each transistor's drain sits on one bitline and its gate on the other. Their sources are tied together at the common node SAN, which one enable transistor pulls toward ground. The only other things in the circuit are the two bitline capacitances, Cbl ≈ 100 fF each, which hold the voltages the latch works on.

BL BLB VARY/2 + ΔV VARY/2 Cbl Cbl N1 N2 drain on BL gate on BLB discharges BL drain on BLB gate on BL discharges BLB SAN common source: VARY/2 → 0 V SEN enable device i1 i2 cross-coupled gates VGS1 = VBLB − VSAN VGS2 = VBL − VSAN
The N-sense latch, isolated. N1's gate (teal) connects to BLB and N2's gate (purple) to BL; the two gate wires cross without connecting. Both sources meet at SAN. Before sensing, SAN sits at VARY/2 with both bitlines, so VGS = 0 and both transistors are off.

How it decides

  1. Start: balanced and off. After precharge, BL = BLB = SAN = VARY/2. Both transistors have VGS = 0 and carry no current. Charge sharing then raises BL by ΔV (a stored 1; a 0 lowers it). Nothing in the latch moves yet.
  2. SAN falls. SEN turns on and pulls SAN down. A transistor conducts once VGS exceeds VT. N2's gate is on BL, the higher bitline, so VGS2 = VBL − VSAN crosses VT first. N2 turns on and starts discharging BLB, its drain.
  3. Positive feedback. As BLB falls, N1's gate falls with it, so VGS1 grows more slowly and N1 conducts less. With less current out of BL, BL holds up while BLB drops. A wider gap turns N2 on harder and N1 further off. Each transistor reinforces the other's decision: that is the latch.
  4. Resolved. BLB reaches SAN (0 V) and N1 is cut off with its gate at 0 V. BL is left near its starting level, slightly lower because N1 conducted a little before it was shut off. The NMOS latch can only pull down. The PMOS half then lifts BL to the full VARY.

Near the balance point, while both transistors are on, the circuit is two inverters driving each other. Write each bitline's discharge in terms of the other bitline's voltage (each transistor in saturation, transconductance gm), then subtract the two equations. The difference ΔV = VBL − VBLB obeys:

$$C_{bl}\frac{d\,\Delta V}{dt} = g_m\,\Delta V \quad\Rightarrow\quad \Delta V(t) = \Delta V_0\,e^{t/\tau},\qquad \tau=\frac{C_{bl}}{g_m},\qquad t_{\text{resolve}}\approx \tau\,\ln\frac{V_{\text{final}}}{\Delta V_0}$$

The difference grows exponentially. This regeneration is what lets a 70 mV signal become a full logic level in a few nanoseconds. With Cbl = 100 fF and gm ≈ 100 µS, τ ≈ 1 ns, and going from 70 mV to about 1 V takes τ·ln(14) ≈ 2.6 ns. The common-mode level of both bitlines falls along with SAN, but only the difference is amplified. Noise that lands equally on BL and BLB, such as wordline coupling in a folded array, is rejected.

  • Offset. If N1 and N2 differ in threshold by ΔVT, one transistor gets a head start, and the latch behaves as if ΔV had been shifted by about ΔVT. Mismatch shrinks with area: σ(ΔVT) ∝ 1/√(W·L). Sense-amp transistors are therefore drawn larger than the minimum. Capacitance imbalance between BL and BLB and unequal coupling add further offset.
  • SAN ramp speed. If SAN drops too fast, both transistors turn on hard before the small difference has been amplified. Both bitlines then discharge together, and mismatch decides the outcome instead of the signal. Designs ramp SAN slowly at first, often with a weak enable transistor followed by a strong one, and switch to full strength once the decision is made.
  • Metastability. If ΔV is almost exactly equal to the offset, the latch sits near its balance point and tresolve = τ ln(Vfinal/ΔV0) grows without bound. In a DRAM the sensing window is fixed, so such a cell is read as whatever the latch has drifted to.
  • Why NMOS first. NMOS has about two to three times the carrier mobility of PMOS, so it gives more gm (a shorter τ) for the same area and capacitance. The decision is made by the faster, better-matched pair. The PMOS latch is then fired only to restore the high side.
The same run with the bitline difference on a logarithmic scale. During regeneration the curve is a straight line, as it must be for an exponential. The measured slope gives τ in the results above.

4 · The P-sense amp: the cross-coupled PMOS latch

The P-sense amp is the mirror image of the N-latch. Two PMOS transistors, P1 and P2, have their sources tied to a common node, SAP. P1's drain is on BL and its gate on BLB; P2's drain is on BLB and its gate on BL. A PMOS enable device, driven by the active-low SEP#, lifts SAP from VARY/2 to VARY. A PMOS turns on when its gate is at least |VT| below its source, so this latch can only pull a bitline up.

VARY SEP#enable (on when SEP# is low) SAPVARY/2 → VARY P1P2 drain on BLgate on BLBpulls BL up drain on BLBgate on BLpulls BLB up i1i2 BLBLB CblCbl VSG1 = VSAP − VBLB · VSG2 = VSAP − VBL
The P-sense latch, isolated. The circles on the gates mark PMOS devices, which conduct when the gate is low. The current arrows point from SAP into the bitlines: this half can only source current.
  1. Start: the N-latch has decided. BLB has been pulled to about 0 V. BL is near VARY/2, a little below where it started. SAP is still at VARY/2, so both PMOS have VSG below |VT| and are off.
  2. SEP# falls, SAP rises. P1's gate is on BLB, now at 0 V, so VSG1 = VSAP − 0 quickly exceeds |VT|. P1 turns on hard and pulls BL up toward SAP.
  3. P2 stays off. P2's gate is BL, which rises together with SAP, so VSG2 = VSAP − VBL stays near zero. No current flows into BLB, and BLB stays at 0 V.
  4. Full rails, no static current. BL reaches VARY and BLB sits at 0 V. In each column one NMOS (N1) and one PMOS (P2) are off. Together the N and P halves form two cross-coupled CMOS inverters, the same structure as an SRAM cell, which hold the data with only leakage current. The full-level bitline restores the cell.
  • Why fire it second. The PMOS pair is a latch too, and it would amplify any difference by itself, mismatch included. Fired after the N-latch, it only sees an already-decided pair, so its offset hardly matters. Fired at the same time, its mismatch adds to the decision, and its lower gm (holes are about two to three times slower than electrons) gives a smaller boost to the regeneration.
  • Peak current. An activate fires every sense amp along the row at once: thousands of columns, each charging Cbl by VARY/2. The SAP and SAN drivers and the VARY regulator must deliver that burst. Some designs briefly drive SAP above VARY (sense-amp overdrive) to restore faster, then return it to VARY.
  • Restore time. The cell charges through its access transistor from the rising bitline. The PSA's strength and the overdrive therefore set how quickly the row can be closed: tRAS and, for writes, tWR.

5 · Column select: the gateway to the data path

Column select connects one sense amp to the outside world. Each bitline gets one NMOS pass transistor, and both are gated by the same column select line, CSL. They connect BL and BLB to a local I/O pair, LIO and LIOB. Many columns share each LIO pair, and the column decoder raises only one CSL at a time, so only the addressed sense amps (8 or 16 at once, for prefetch) reach the data path. Between accesses, precharge transistors hold LIO and LIOB at VARY. At the far end sit a secondary sense amplifier, for reads, and write drivers, for writes.

SAlatched(N + P) BLBLB CSLfrom column decoder pass gate (NMOS) LIOLIOB IOPRE#IOPRE# VARYVARY CLIOCLIO 2nd SA+ writedriver LIO / LIOB are shared by many columns; only the column whose CSL is high is connected
Column select, isolated. CSL (purple) drives both pass gates at once. The I/O precharge PMOS devices, enabled when IOPRE# is low, hold LIO and LIOB at VARY between accesses. Capacitances are drawn dashed.
  1. Before CSL. The sense amp has latched, BL = VARY and BLB = 0 V for a stored 1. The I/O precharge turns off, leaving LIO and LIOB floating at VARY.
  2. Read: CSL high. Both pass gates turn on. LIO meets BL; both are at VARY, so nothing moves. LIOB meets BLB at 0 V and charge flows from the large CLIO into BLB. BLB bumps up and LIOB drops. The latch's N2 is on, because its gate is BL, which is high, and it sinks that charge to SAN, holding BLB near 0 V.
  3. Sense the split. After a few nanoseconds LIOB has fallen a few hundred millivolts below LIO. The secondary sense amp, a small differential amplifier or latch, turns that into a full-swing bit for the data path. CSL then falls and the I/O precharge restores LIO and LIOB.
  4. Write: CSL high, drivers on. The write drivers are much stronger than the sense amp's latch. They pull one I/O line hard to 0 V and hold the other at VARY. The NMOS pass gate passes that 0 V cleanly and drags its bitline low, and the latch regenerates into the new state. The new high side is then pulled up by the latch's own PSA, not through the pass gate. An NMOS can only pass up to VCSL − VT, so writing "by pulling one side low" is what makes NMOS-only column select work.
  • Strength ratio (read disturb). On a read, the pass gate and CLIO try to pull the low bitline up while the latch holds it down. The pass gate must be weak enough relative to the latch that the bump never reaches the latch's trip point. The same ratio sets SRAM read stability. On a write, the drivers must win against the latch. Sizing balances the two.
  • Why CSL waits for tRCD. The I/O lines can only collect a signal once the latch has opened up a large difference. If CSL opens earlier, LIO and LIOB split by only a few millivolts. Any imbalance in their precharge, or coupling, can then exceed that split, and the data path reads the wrong value even though the cell itself is safe. Because the pass gates conduct only weakly while the bitlines are near VARY/2, an early CSL rarely flips the latch. With stronger pass gates, a higher CSL level or larger imbalances, the extra loading can also disturb the decision, so tRCD keeps column access safely after sensing. The simulation below shows the timing.
  • Short CSL pulses. Only a partial LIO split is needed, and every millivolt of swing costs CLIO·ΔV of charge. CSL pulses are therefore kept short. Beyond the local I/O, the data passes through main I/O lines and the read FIFO to the serializer.
05 · Banks

Rows, columns and the row buffer

A bank is a grid of cells with a row decoder driving the wordlines, a strip of sense amplifiers across the bitlines, and a column decoder that picks which of the latched bits go to the data path. Opening a row (ACT) loads the entire row, typically 1–2 KB per device, into the sense amplifiers. After that, column reads and writes to that row are fast; reaching a different row in the same bank means closing this one (PRE) and opening the other (ACT).

  • Row hit: the row is already open; issue RD or WR directly. Latency ≈ CL.
  • Row miss (bank idle): ACT then RD. Latency ≈ tRCD + CL.
  • Row conflict: another row is open; PRE, ACT, RD. Latency ≈ tRP + tRCD + CL.

Several banks let the controller hide this: while one bank is precharging or activating, another can stream data. More banks and bank groups in each generation are mostly about more of this overlap. Section 07 shows how banks are addressed and decoded, and how bursts and interleaving keep the data bus busy.

Rowdecoder open row (wordline high) cell array: rows × columns sense amps = row buffer Column decoder → 8n bits to I/O rowaddr column addr →
ACT drives one wordline and latches the whole row into the sense amplifiers. RD/WR selects a group of columns (8 bits per DQ for 8n prefetch, 16 for 16n) from that row buffer. PRE closes the row.
06 · The periphery

From pins to array: control, address buffers, column mux and data buffer

The cell array and its sense amplifiers do the storing. Everything around them is periphery: it turns activity on the pins into the internal sequence that opens a row, picks a column and moves one bit in or out. The figure below is the classic asynchronous DRAM (fast-page-mode and EDO parts of the late 1980s and 1990s). It has a few control pins, RAS#, CAS# and WE#, and one shared set of address pins. Every DDR and LPDDR device still contains the same five blocks. A clock and a command decoder have replaced the strobes, and the data path has grown wider and faster, but the jobs are the same.

Why the address pins are shared. A 4 M × 1 device needs 22 address bits. Sending the row half and then the column half over the same 11 pins (A0–A10) halves the address pin count. The cost is small, because the row has to be opened before any column in it can be read anyway. RAS# (row address strobe) says "the pins now carry a row address". CAS# (column address strobe) says "the pins now carry a column address". WE# (write enable) says whether the column access is a write or a read.

Operation
Row address Column address Write data
An 8 × 8 array with 3 address pins (rows and columns of 8 need 3 bits each). Pick a row and column with the bit buttons, or click any cell. Address wires show a 1 in red and a 0 in blue. The table under the timing strip lists all eight decoder terms; exactly one row term and one column term is true, and their crossing is the selected cell. Filled cells hold a 1. Highlighted blocks and lines are working in the current step. The timing strip shows the pins, and the shaded column is the current step. Active-low pins: 0 means asserted.

Read and write cycles on the pins

The same two cycles as clean timing diagrams. In both, the row address is set up before RAS# falls and held after it, then the pins switch to the column address, which is set up before CAS# falls and held after it.

  • Read. WE# stays high. DQ leaves high-impedance tCAC after CAS#↓ and tRAC after RAS#↓, whichever is later. The output is held by CAS#, not RAS#: RAS# can rise (and precharge start) while data is still on the pins, and the output turns off tOFF after CAS# rises.
  • Write (early write). WE# falls before CAS# (tWCS), so CAS#↓ latches both the column address and the data. The data only has to be valid in a window around that edge (tDS before, tDH after), and the output stays high-impedance for the whole cycle.
Read cycle. Dotted guides mark the edges each parameter is measured between.
Early-write cycle. A late write would drop WE# after CAS# and latch the data on the WE# edge instead.

Timing and control: an edge-driven sequencer

Nothing in an asynchronous DRAM is clocked. The control block watches the edges of RAS#, CAS# and WE# (and OE# on parts that have it) and turns each edge into a chain of internal enables. Each enable follows the one before it through a delay sized for the circuit it waits on. Often the delay is a replica of that circuit, such as a dummy wordline or a dummy bitline, so it tracks process, voltage and temperature.

  • RAS# falls: close the row-address latch. Turn EQ off so the bitlines float. Enable the row decoder so one wordline driver rises to VPP. After a delay matched to charge sharing, fire SEN (the N-latch), then SEP# (the P-latch). The row is now latched and being restored. Only then is the column path released.
  • CAS# falls: close the column-address latch and sample WE#. For a read, raise CSL, enable the secondary amplifier and turn the output driver on. For a write, enable the write driver.
  • CAS# rises: CSL drops and the column latch reopens for the next page-mode cycle. The output turns off (fast page mode) or holds its value (EDO).
  • RAS# rises: the wordline falls first, which traps the restored charge in the cells, and then EQ turns on and equalizes the bitlines. tRAS(min) exists so that restore finishes before the wordline drops. tRP exists so that equalization finishes before the next activate.

The control block also decodes the order of the edges:

  • CAS# low before RAS# falls means CAS-before-RAS (CBR) refresh. The row address comes from an internal counter, the address pins and DQ are ignored, and the counter increments afterwards.
  • A RAS# cycle with CAS# held high is RAS-only refresh: the controller supplies the row address and no data moves.
  • WE# already low when CAS# falls is an early write, and the data is latched at CAS#. If WE# falls after CAS#, the cycle is a late write or read-modify-write, and the data is latched at WE#. OE# must then be high so the output driver does not fight the incoming data.

The internal lockout explains the two access times on a datasheet. If CAS# falls early, the control block simply holds the column path off until sensing is done. Access is then limited by tRAC, the access time from RAS#. If CAS# falls late, access is limited by tCAC, the access time from CAS#.

$$t_{\text{access}}=\max\left(t_{\text{RAC}},\;t_{\text{RCD}}+t_{\text{CAC}},\;t_{\text{RAD}}+t_{\text{AA}}\right)$$

Row and column address buffers

Each address pin feeds the same chain: an input receiver, a latch, true and complement drivers, and a predecoder.

  • Input receiver. In TTL-era parts this is a CMOS inverter whose trip point is set near 1.4 V, between VIL = 0.8 V and VIH = 2.0 V. In DDR parts it is a differential amplifier that compares the pin with VREFCA.
  • Latch. A transparent latch per bit. The row latch closes on RAS#↓ and the column latch on CAS#↓. The address must be stable for a setup time before the edge (tASR, tASC) and a hold time after it (tRAH, tCAH). After the hold time, the controller can change the pins to the next half of the address.
  • True and complement drivers, then predecode. Each latched bit produces A and A#. Predecoders combine groups of two or three bits into one-hot lines: two bits make four lines, three bits make eight. Each final row decoder is then a 3- or 4-input AND of one line from each group. For 11 row bits, groups of 3 + 3 + 3 + 2 give 8 + 8 + 8 + 4 = 28 predecoded lines. The alternative is 22 true and complement lines driving 2048 decoders with 11 inputs each. Predecoding keeps both the fan-in and the line loading small (see decoders below).
  • Repair. The predecoded address is also compared against fuse-programmed addresses of rows and columns that failed test. On a match, the normal wordline or CSL is suppressed and a spare fires instead.

The two buffers differ in a few ways:

  • Row path. A multiplexer in front of the row predecoder selects between the pin address and the refresh counter. The decoder's final stage is a level shifter and driver that lifts the selected wordline from ground to VPP (block 1 above).
  • Column path. In fast-page-mode and EDO parts the column latch is open, or flow-through, while RAS# is low and CAS# is high. Column decoding therefore starts as soon as the column address is valid, and CAS# only freezes it. That is why the datasheet has tAA (access from column address) as well as tCAC. Keeping RAS# low and cycling CAS# with new column addresses reads further bits from the open row without another activate. This is page mode, the ancestor of the row hit.

Decoders: from three address bits to one wordline

A decoder turns an n-bit binary address into 2n one-hot outputs: exactly one output is high. The row decoder's outputs are the wordlines, and the column decoder's outputs are the column-select lines (CSL). The textbook circuit has three parts:

  • True and complement lines. Each address bit runs down the decoder twice: once as itself, Ai, and once through an inverter as Ai#. With three bits there are six lines, and every possible address is one choice of "true or complement" per bit.
  • One AND gate per output. Output k takes, for each bit, the true line if that bit of k is 1 and the complement line if it is 0. For WL5 (101) that is A2·A1#·A0. For any address, exactly one gate sees all of its inputs high. Every other gate has at least one input low.
  • An enable. In a DRAM, every gate has one more input: an enable from timing and control. It rises only after the address latch has closed. Without it, the outputs would glitch while the address bits change, because the bits never switch at exactly the same instant. On the way from 011 to 100, for example, the address can pass through 111 or 000 for a moment and briefly fire a wrong wordline. A wrong wordline that rises even briefly connects its cells to bitlines that are not ready, and that corrupts data. The enable also sets when the wordline rises within the RAS# sequence.
Row address
A 3-to-8 row decoder driving an 8 × 8 array. A red wire is high (1) and a blue wire is low (0). A dot marks where a gate input taps one of the vertical address lines; lines that cross without a dot do not connect. EN comes from the RAS# chain in timing and control. Hover over a gate to see its input term; click a gate or a wordline to jump to that address.
$$\mathrm{WL}_k=\mathrm{EN}\cdot\prod_{i=0}^{n-1}\begin{cases}A_i & \text{if bit } i \text{ of } k = 1\\ \overline{A_i} & \text{if bit } i \text{ of } k = 0\end{cases}$$

What real DRAM decoders change. A flat decoder does not scale. For 2048 rows it needs 2048 AND gates with 11 inputs each, and every address line drives 1024 gate inputs. Real decoders differ in four ways:

  • Predecoding. The bits are split into groups of two or three. Each group goes through a small 2-to-4 or 3-to-8 decoder, and its outputs are one-hot lines that run the length of the array. Each final decoder is then a NAND with one input per group: 3 or 4 inputs instead of 11. Each predecoded line drives only 1/4 or 1/8 of the final gates. The calculator below compares the two.
  • NAND plus driver, not AND. In CMOS, the cheap gate is a NAND. Its active-low output feeds the wordline driver, which inverts it, so the pair forms the AND. Many decoders are dynamic: the NAND node is precharged high, and only the selected path discharges it. That is faster and smaller than a static NAND, and the enable is simply the clock of the dynamic stage.
  • Wordline driver and level shift. The decoder runs at the periphery supply VDD, but the wordline must reach VPP (block 1). A level shifter, built as a cross-coupled PMOS pair on VPP, converts the decoder output. A large inverter on VPP then drives the long, heavily loaded wordline. Unselected wordlines are held at ground, or at a slightly negative voltage in newer parts, to cut subthreshold leakage from the cells.
  • Hierarchy and pitch. A cell row is only tens of nanometres tall, too short to fit a decoder per row. Modern arrays therefore use hierarchical wordlines. The main decoder selects one main wordline per group of 4 or 8 rows, and small sub-wordline drivers spread through the array pick one row of the group using a few phase signals (often called FX), decoded from the lowest row bits. The same split lets one decoded address fire a wordline in only the sub-array that is needed.

The column decoder is built the same way. Its outputs are the CSLs (block 5), and its enable comes from the CAS# chain: the column enable rises only after the row has been sensed. Spare rows and columns for repair are added in the decoders too. A comparator that matches a blown-fuse address disables the normal output and fires the spare.

Column multiplexer / demultiplexer

After an activate, the sense amplifiers hold the whole row: 8 bits in the figure, thousands in a real device. The column path chooses which of them reach the pins. It is a multiplexer for reads and a demultiplexer for writes.

  • Select. The column decoder turns the column address into one CSL. CSL connects that sense amp's BL and BLB to the local I/O pair, LIO and LIOB, through two NMOS pass gates (block 5 above). In a ×4, ×8 or ×16 device, one CSL selects several sense amps at once, one or more per DQ.
  • Read. The latch pulls one I/O line down by a few hundred millivolts. A secondary sense amplifier on the I/O pair turns that split into full logic levels and drives a global data line toward the data buffer.
  • Write. A write driver drives LIO and LIOB full swing. It is deliberately stronger than the sense-amp latch, so the latch flips if the new bit differs. Because the wordline is still high, the cell follows the bitline and takes the new value. When RAS# rises, the wordline closes on that value. A byte that is masked (data mask) simply has its write driver disabled, so its latches keep the old data.
  • Hierarchy. Real arrays are split into segments. Each segment's local I/O switches onto a main or global I/O line (MIO/GIO) that runs across the bank to the data path. With prefetch, one column access moves 8n or 16n bits in parallel. That is how a slow core feeds a fast pin (prefetch below).

Data buffer

  • Read side. An output latch feeds a tri-state driver. In the asynchronous part the driver is enabled only when RAS# and CAS# are low, WE# is high and OE# is low. At all other times DQ is high-impedance, so many devices can share a data bus. In fast page mode the output turns off tOFF after CAS# rises. EDO (extended data out) keeps the output latch driving after CAS# rises, until the next CAS# falls. The next column address can then overlap with the current data, which cut the page cycle of a 60 ns part from about 35 ns to about 25 ns.
  • Write side. An input receiver and a latch. The latch captures DQ at the later of CAS#↓ and WE#↓: at CAS# for an early write, at WE# for a late write. Some ×1 parts used separate D and Q pins, so the two sides never shared a pin.
  • In a DDR device the same block becomes the high-speed I/O:
    • DQ receivers compare against VREFDQ, and DDR5 adds decision-feedback equalization.
    • Writes are sampled on DQS edges into a deserializer, a write FIFO that collects the 8n or 16n bits for one internal write.
    • Reads load the array's parallel bits into a serializer, clocked from a DLL-aligned clock so DQS and DQ leave edge-aligned with CK.
    • The driver is a ZQ-calibrated resistor (34–48 Ω), the same legs provide on-die termination, and DBI and CRC are added along the way.
    See strobes, prefetch and electrical standards.
BlockAsynchronous DRAM (figure)SDRAM, DDR and LPDDR
Timing and controlEdges of RAS#, CAS# and WE# start self-timed chains. The order of the edges selects refresh or early/late write.A command decoder samples CS#, RAS#/CAS#/WE# or ACT# (DDR4), or the CA bus (DDR5, LPDDR), on a CK edge. Mode registers set latencies. Counters time CL and CWL in clocks, and a DLL aligns output timing. The bank sequencing inside is still self-timed.
Row address bufferLatched on RAS#↓. Refresh counter mux in front.Latched with ACT, together with the bank and bank-group address that select which bank's decoder fires. Refresh counters are per bank or per device.
Column address bufferLatched on CAS#↓, flow-through before it. Page mode by cycling CAS#.Latched with RD or WR. The low column bits set the burst order, and the rest choose the column group fetched by prefetch.
Column mux/demuxOne CSL, one bit per CAS# cycle.One CSL selects 8n or 16n bits per DQ group onto global I/O. Write drivers honor data mask and DBI.
Data bufferTTL tri-state output and an input latch. FPM or EDO output timing.VREF-referenced receivers, DQS capture, deserializer and serializer FIFOs, ZQ-calibrated driver, ODT, DBI and CRC.
07 · Many arrays

Width, banks, bursts and bank interleaving

1 · Arrays in parallel: one address, one bit from each

The single array above delivers one bit per access. A ×4, ×8 or ×16 device delivers 4, 8 or 16 bits per access, and it does that by repeating the array rather than by making one array wider:

  • Each data pin DQi has its own plane: its own cells, sense amplifiers and column mux.
  • The row and column addresses are broadcast. Every plane's row decoder and column decoder receives the same bits, so every plane selects the cell at the same (row, column).
  • Each plane's selected bit goes to its own data line. Together the bits form one word on DQ[n−1:0].

A 1 M × 4 part, for example, is four 1 Mb planes behind one set of address pins. Reading address (row 4, column 6) returns bit (4, 6) of plane 0 on DQ0, bit (4, 6) of plane 1 on DQ1, and so on. Writes work the same way: each DQ pin's bit goes into its own plane at the shared address.

Modern devices do not build physically separate planes per DQ. Instead, one CSL in a large array connects several sense amps at once, and each goes to a different data line: 8 bits per DQ with 8n prefetch, times the device width. Logically, though, the picture is the same: one decoded address selects one bit per data line.

Row address Column address
A ×4 device: four 8 × 8 planes share one row and column address. Each plane holds different data, and the same cell position is selected in all four. The bits leave on DQ3–DQ0 as one 4-bit word. Click any cell to address it.

2 · Banks: independent arrays behind one interface

Width puts arrays side by side that always work together. A bank is the other way of adding arrays: a group that works independently. Each bank is a complete array set at the full device width, with its own row decoder, sense amplifiers (its row buffer) and column decoder. Each bank can have a different row open, or be idle, while the others carry on. All banks share the pins: the command and address bus, and the data bus.

The controller says which bank a command is for with a bank address, BA. It is sent with every ACT, RD, WR and PRE:

  • Two BA bits select among 4 banks (SDR SDRAM, DDR, DDR2 below 1 Gb).
  • Three bits select among 8 banks (DDR2 at 1 Gb and above, DDR3, LPDDR3, LPDDR4). LPDDR5 has 16.
  • DDR4 has 16 banks, addressed as 2 bank-group bits (BG) and 2 bank bits (BA). DDR5 uses up to 3 BG bits and 2 BA bits, for 32 banks.

The bank decoder is exactly the 3-to-8 decoder above, with BA as its input. Its one-hot outputs are the bank-select lines BS0–BS7, and each bank's control logic ANDs its BS line with the command:

  • ACT (bank b, row r): only bank b latches the row address and runs the RAS# sequence (decode, wordline, sense). Every bank has its own row-address latch, because each bank can hold a different row open.
  • RD / WR (bank b, column c): the column address is broadcast, but only bank b's column decoder is enabled. Its I/O lines are switched onto the shared global data bus toward the data buffer. The other banks' I/O stay disconnected.
  • PRE (bank b): only bank b closes its row. PREA (precharge all, in DDR3/DDR4 a PRE with A10 high) ignores the bank decoder and closes every bank.
  • REF: all-bank refresh ignores BA. LPDDR and DDR5 also have per-bank or same-bank refresh, which uses it.

Try it below. Open a row in one bank, then a different row in another, and read from both without closing either. Then send a command the device would reject, such as RD to an idle bank or ACT to a bank that is already open.

Bank BA2–0 Row Column Write data
Command
An 8-bank device. The bank decoder turns BA into one bank-select line, BSk. The command and the row or column address go to every bank, but only the selected bank acts on them. On a read or write, only the selected bank's I/O is switched onto the shared data bus. Each bank remembers its own open row, shown as the 8-bit row buffer.

3 · Burst mode: one column command, many beats

Sending a new column address for every bit would make the command bus the bottleneck. A burst moves several consecutive column locations per RD or WR, at one per data beat:

  • Page mode (asynchronous DRAM) was the first step: the row stays open and the controller toggles CAS# with a new column address each time.
  • SDRAM added an internal column counter. One READ command with burst length BL (1, 2, 4, 8 or a full page) makes the device step through BL columns on its own, one per clock.
  • DDR onward replaced the counter with prefetch. A single column access fetches all BL bits per DQ in parallel (8 for DDR3/DDR4, 16 for DDR5 and LPDDR4/5), and the serializer sends them out two per clock. The burst length is therefore fixed by the prefetch. BC4 (burst chop) on DDR3/DDR4 just discards half of the eight.

Bursts are sized to the CPU cache line. BL8 on a 64-bit DDR4 channel moves 8 beats × 8 bytes = 64 bytes. DDR5 uses BL16 on a 32-bit subchannel, which also gives 64 bytes.

Burst order. The low column bits do not choose a separate location; they choose where in the burst the data starts. For DDR3/DDR4 BL8 reads, C2–C0 give the starting beat, and a mode-register bit selects sequential or interleaved order. That lets the controller ask for the critical word first, the one the CPU is waiting for. The table lists the column delivered on each beat:

4 · Bank interleaving: hiding tRCD and tRP

A row conflict in one bank costs tRP + tRCD before any data moves, which is about 30 ns, compared with about 2.5 ns for an 8-beat burst at 3200 MT/s. With a single bank the data bus sits idle most of the time. With several banks, the controller can open the next row in another bank while the current bank is sending data. The precharge and activate of one bank overlap the bursts of others.

Interleaving is limited by rules that apply across banks:

  • tRRD: the minimum time between ACTs to different banks.
  • tFAW: at most four ACTs in any rolling window. Both limits exist because each ACT draws a burst of current from the VPP pump and the supplies.
  • tCCD: the minimum spacing of column commands, normally one burst. In DDR4 and DDR5 this splits into tCCD_S and tCCD_L. Back-to-back column commands to the same bank group take the longer tCCD_L, because the banks in a group share local I/O. Alternating between bank groups is part of good interleaving.

The simulator schedules 16 reads the way an ideal controller would. Each command goes in the earliest command-bus slot that meets every timing rule, and ACTs for later requests can go ahead of earlier requests' reads. Compare one bank against four or eight, and conflicts against row hits.

5 · Address mapping: which bits pick the bank

The CPU issues a flat physical address. The controller cuts it into fields, choosing where the bank bits sit to suit the expected access pattern:

  • Row : bank : column. Consecutive cache lines stay in the same row of the same bank (row hits) until the row is used up, and then move to the next bank. This suits long sequential streams.
  • Row : column-high : bank : column-low. Consecutive cache lines go to different banks, so even short sequential runs interleave. Many controllers also XOR some row bits into the bank bits (bank hashing). Then two large arrays that happen to differ by a multiple of the row size do not keep conflicting in the same bank.

The example below is a 64-bit channel built from eight 8 Gb ×8 DDR4 devices, with one rank. The rank and channel bits that a larger system adds would sit above these fields.

Each device provides 64 K rows (A15–A0), 1 K columns (A9–A0) and 16 banks (BG1–0, BA1–0): 216 × 210 × 16 × 8 bits = 8 Gb. The three lowest address bits pick a byte within the 8-byte beat. The three lowest column bits pick the beat within a BL8 burst, so a 64-byte cache line is one burst.
08 · Commands

A bank is a small state machine

The controller drives each bank through a few states with a small command set. The encoding differs by generation (four pins in DDR3, fourteen CA bits in DDR5, two-clock sequences in LPDDR4), but the meaning is the same everywhere.

IdleBank activerow open ReadingWriting PrechargingRefreshingSelf-refresh ACTtRCD RDburst done WRburst done PRE(after tRAS) tRP REFtRFC SRESRX RDA / WRA: auto-precharge after the burst
Simplified per-bank view. Mode-register writes (MRS/MRW), ZQ calibration and power-down act on the whole device and require all banks idle (or, for power-down, are allowed with banks active).
CommandDoesLeaves the bank
ACT (activate)Decodes the row address, raises the wordline, fires the sense amplifiersActive, with that row open
RD / WRMoves one burst between the row buffer and the data pins; column address selects which bitsActive (or precharging with auto-precharge)
PRE (precharge)Lowers the wordline and equalizes bitlines to VDD/2Idle after tRP
REF (refresh)Activates and precharges internally counted rows in one or all banksIdle after tRFC
MRS / MRWWrites a mode register: latencies, burst length, drive strength, termination, training modes—
ZQ calibrationTrims output and termination resistors against the external ZQ resistor—
09 · Core timing

The parameters that set latency

One bank, one full cycle at DDR3-800 5-5-5 (tRAS = 15, tRP = 5 clocks). The next ACT to the same bank may come tRC = tRAS + tRP after the first. Other banks can be used in between.
ParameterFrom → toSet byTypical
tRCDACT → RD/WR, same bankWordline rise, charge sharing, sense-amp resolve13–18 ns
CL (CAS latency), RLRD → first dataColumn path, prefetch, I/O pipeline13–17 ns
CWL, WLWR → first data inChosen so the write pipeline lines up≈ CL − 1…2 clocks
tRASACT → PRE, same bankRestore of the row after sensing32–35 ns
tRPPRE → ACT, same bankBitline equalization13–18 ns
tRCACT → ACT, same banktRAS + tRP45–50 ns
tWREnd of write burst → PREDriving new data into the cells15–30 ns
tRRD, tFAWACT → ACT, different banks; any 4 ACTsPeak current on the internal suppliesfew ns; 4 ACTs per ~20–30 ns
tCCDColumn command → column commandBurst length; bank-group column path4 clocks (BL8) / 8 (BL16)
tREFI, tRFCRefresh interval; refresh durationCell retention; rows per refresh7.8 / 3.9 µs; 160–410 ns

Expressed in nanoseconds, these hardly move between generations. A faster speed bin gets a larger clock count for the same delay:

PartCL (clocks)tCKCL (ns)Peak per pin
DDR3-1600111.25 ns13.751.6 Gb/s
DDR4-3200220.625 ns13.753.2 Gb/s
DDR5-4800400.417 ns16.74.8 Gb/s
DDR5-6400520.3125 ns16.256.4 Gb/s
LPDDR4-426636 (RL)0.469 ns16.9 + tDQSCK4.27 Gb/s
10 · Double data rate

Source-synchronous strobes

"Double data rate" means data moves on both edges of its timing reference. At 3200 MT/s a bit lasts 312 ps, shorter than the flight time down a few centimeters of trace and far shorter than the uncertainty in when a DRAM's output actually switches. A single shared clock cannot time that. So data travels with its own strobe (DQS, or WCK/RDQS in LPDDR5) driven by whoever drives the data, routed alongside it and matched in length. Whatever delay the data sees, the strobe sees too.

  • Writes: the controller sends DQS shifted by a quarter cycle, so each strobe edge lands in the middle of a data bit. The DRAM latches directly on the edges and needs no delay line.
  • Reads: the DRAM sends DQS edge-aligned with data (both launched from the same internal clock). The controller, which has trimmable delay lines, shifts the received strobe by a quarter cycle per byte (or per bit) to sample in the middle.

Commands and addresses, by contrast, are single data rate and sampled on the command clock CK; they change at most once per clock, so the shared clock is enough.

The same two bits on a write and on a read. Dashed lines mark where the receiver samples: on the strobe edge for writes (DRAM), a quarter cycle after the edge for reads (controller).
11 · Prefetch

A slow core behind a fast pin

The array and column path cycle at a few hundred megahertz. To feed a multi-gigabit pin, each column access fetches n bits per DQ at once and a serializer shifts them out over n beats. The pin rate is the core rate times the prefetch:

$$f_{\text{pin}} = n \cdot f_{\text{core}} \qquad \text{DDR3-1600: } 8 \times 200\ \text{MHz} = 1.6\ \text{Gb/s} \qquad \text{DDR5-6400: } 16 \times 400\ \text{MHz} = 6.4\ \text{Gb/s}$$
Column read8 bits per DQ, one core cycle internal bus: 8× wider, 8× slower 8:1 D0D1D2…D7 one DQ pin: 8 beats in 4 CK cycles = burst length 8
Burst length equals prefetch: one internal access fills one burst. That is why DDR5 and LPDDR4/5 bursts are 16 beats, and why DDR5 had to narrow the channel to 32 bits to keep one burst at 64 bytes.
12 · Signal groups

The same groups in every generation

GroupDDR3DDR4DDR5LPDDR4LPDDR5
Command clockCK/CK#CK_t/_cCK_t/_cCK_t/_cCK_t/_c (≤ 800 MHz)
Chip selectCS#CS_nCS_nCS (active high)CS
Command / addressRAS#, CAS#, WE#, BA0–2, A0–15ACT_n, RAS/CAS/WE, BG, BA, A0–17CA0–13 (SDR)CA0–5 (SDR)CA0–6 (DDR)
Clock enableCKECKE— (via CS_n)CKE— (via CS)
DataDQ, bidirectional, double data rate
Data timingDQS/DQS#DQS_t/_cDQS_t/_cDQS_t/_cWCK (in), RDQS (out)
Mask / inversionDMDM_n/DBI_nDM_nDMIDMI
Termination controlODT pinODT pinby commandby MR; ODT_CA strapby MR
Error reporting—ALERT_n, PARALERT_n——
CalibrationZQ to VSSZQ to VSSZQZQ to VDDQZQ
ReferenceVREFCA, VREFDQ pinsVREFCA pin; DQ internalall internalall internalall internal
ResetRESET (CMOS, asynchronous)
Supplies1.5 / 1.35 V1.2 V + VPP 2.5 V1.1 V + VPP 1.8 V (PMIC)1.8, 1.1, 1.1/0.6 V1.8, 1.05, 0.9, 0.5 V
13 · Electrical standards

SSTL, POD and LVSTL: where the termination goes

All three use a push-pull driver with calibrated output resistance RON, a line of roughly 40 Ω, and a parallel termination RTT inside the receiver (on-die termination, ODT). They differ only in the rail the termination returns to, and that one choice sets which logic level costs current, where the receiver's threshold sits and how DBI works.

  • SSTL (DDR3): termination to VDDQ/2. Symmetric swing about VREF = VDDQ/2; current flows for 1s and 0s.
  • POD (DDR4, DDR5, GDDR): termination to VDDQ. Highs are free; VREF sits above mid-rail and is trained.
  • LVSTL (LPDDR4, LPDDR5): termination to ground. Lows are free; the high is a fraction of VDDQ.
Live figure for the settings above. Levels are DC values with the trace treated as lossless; real eyes are smaller.
14 · The controller

What sits on the other end

Front end

Queue and address map

Requests (cache-line reads and writes) are queued. A physical address is split into channel, rank, bank group, bank, row and column bits; the mapping spreads consecutive lines over bank groups and channels so they can overlap.

Scheduler

Choosing the next command

Every clock the scheduler picks a legal command: prefer row hits, issue ACTs early for upcoming misses, batch reads and writes to limit bus turnarounds, respect every timing parameter per bank, rank and device, and slot in refresh.

PHY

Getting bits on and off pins

Serializers, drivers with calibrated RON and ODT, per-bit delay lines, strobe gating, VREF generators and the clock generation (DLL or PLL). Everything timing-critical is trimmable, because the training engine sets it at boot.

Training

Calibrating the link

Firmware or a hardware engine runs ZQ, command-bus training, write leveling, read gate, read and write eye centering and VREF sweeps per byte and rank, then keeps tracking drift while running.

Training stepWhat it alignsDDR3DDR4DDR5LPDDR4LPDDR5
ZQ calibrationRON, RTT vs PVT✓✓✓✓✓ background
Command bus trainingCS/CA vs CK, VREF(CA)—parity checkCSTM, CATMCBTCBT
Write levelingStrobe vs CK at the DRAM✓✓✓ + internal✓WCK2CK
Read gateWhen to open the strobe receiver✓✓✓✓✓ (RDQS)
Read / write eyePer-bit DQ vs strobe✓✓✓✓ (FIFO)✓ (FIFO)
VREF(DQ)Receiver thresholdexternal✓✓✓✓
EqualizationDFE taps——✓—5X
Drift trackingDelay changes with temperatureperiodicperiodicDQS oscillatorDQS oscillatorWCK2DQ oscillator
15 · Self-check

Questions

Why must a row stay open for tRAS even if you only want one burst?

Opening the row destroyed the charge in every cell of that row. The sense amplifiers must drive the bitlines back to full levels and recharge the cells before the wordline can drop; closing early would lose data.

Bandwidth rose about 10× from DDR3 to DDR5 while CL in nanoseconds rose slightly. Why?

Latency is set by the array (charge sharing, sensing, column path), which scales poorly. Bandwidth was added around it: deeper prefetch, more banks and bank groups, narrower independent channels and faster, better-equalized I/O.

Why does the strobe come from whoever sends the data?

So that the strobe and data share every delay: the sender's output timing, the trace, the package. The receiver then needs only the skew between them, not the absolute arrival time.

Using the calculator: why does POD put VREF above mid-rail?

The high level is VDDQ and the low level is the RON/RTT divider above ground, so the midpoint of the swing lies between VOL and VDDQ, around 70–80 % of VDDQ.

Retention is 64 ms and a device has 8192 refresh groups. What is tREFI?

\(64\ \text{ms} / 8192 = 7.8\ \mu\text{s}\).

16 · Further reading

References

  1. B. Jacob, S. W. Ng and D. T. Wang, Memory Systems: Cache, DRAM, Disk, Morgan Kaufmann, 2008. Part II covers DRAM devices, timing and controllers.
  2. JEDEC standards JESD79-3, JESD79-4, JESD79-5, JESD209-4, JESD209-5.
  3. Micron Technology, DDR3, DDR4, DDR5, LPDDR4 and LPDDR5 SDRAM data sheets.
DRAM evolution →DDR3DDR4DDR5LPDDR4LPDDR5PDN and decouplingSignal integrityDRAM cell simulatorDDR glossary