DRAM and the Memory Hierarchy
A six-transistor SRAM cell requires substantial silicon area. A 16-gigabyte (GB) main memory constructed with SRAM would require over 800 billion transistors.
Dynamic Random-Access Memory (DRAM) achieves high density by storing binary data as electrical charge inside a single microscopic capacitor.
The 1T1C Memory Cell
The standard DRAM cell consists of one access transistor and one storage capacitor (1T1C) (Figure 1).
- An NMOS access transistor connects the storage node to the vertical bitline. The gate connects to the horizontal word line.
- A vertical trench or stacked capacitor provides a capacitance of $C_s \approx 20\text{ fF}$ to $30\text{ fF}$.
- A charged capacitor represents logic 1 ($V_{\text{cell}} = V_{DD}$). A discharged capacitor represents logic 0 ($V_{\text{cell}} = 0\text{ V}$).
The capacitor experiences sub-threshold transistor leakage and dielectric leakage. At normal operating temperatures, the charge dissipates within tens of milliseconds. Therefore, DRAM systems must refresh every cell periodically to preserve stored data.
The Destructive Read Operation
DRAM read operations execute through charge sharing:
- Peripheral circuits precharge the long bitline to half supply voltage ($V_{DD}/2$).
- The row decoder drives the word line high, connecting storage capacitor $C_s$ to bitline capacitance $C_{BL}$.
- Charge sharing modifies the bitline voltage according to:
$$V_{BL} = \frac{V_{DD}}{2} + \frac{C_s}{C_s + C_{BL}} \left( V_{\text{cell}} - \frac{V_{DD}}{2} \right)$$
Because bitline capacitance is significantly larger than cell capacitance ($C_{BL} \approx 10 \cdot C_s$), the bitline voltage shifts by only $50\text{ mV}$ to $100\text{ mV}$. A sensitive differential sense amplifier detects this shift and amplifies the bitline to full rails ($0\text{ V}$ or $V_{DD}$).
This charge-sharing process destroys the stored charge inside the cell capacitor.
To preserve the data, the sense amplifier remains connected while the word line is high, driving full rail voltage back into the capacitor. Every DRAM read operation requires a read followed by an automatic restore writeback cycle.
Periodic Refresh
A DDR4 DRAM memory device must refresh every memory row within a maximum retention window of $t_{\text{REFI}} = 64\text{ ms}$.
The memory controller issues periodic Auto-Refresh commands every $7.8,\mu\text{s}$. Each command refreshes a block of rows. At elevated temperatures ($T > 85^\circ\text{C}$), accelerated leakage requires halving the refresh interval to 32 ms. Refresh overhead consumes 2 to 5 percent of total memory bus bandwidth.
Row Buffer Organization and Latency
When a word line activates, an entire row of several kilobytes transfers into the row of sense amplifiers. This latch array is the row buffer (Figure 2).
Memory access latency depends on row buffer state:
- Row Hit: The requested address resides in the currently open row buffer. The controller reads data immediately with CAS Latency ($t_{CL} \approx 14\text{ ns}$).
- Row Miss (Empty Bank): No row is open. The controller issues an
ACTIVATEcommand ($t_{RCD} \approx 14\text{ ns}$) followed byREAD($t_{CL}$), requiring approximately 28 ns. - Row Conflict: A different row occupies the buffer. The controller must precharge the bank ($t_{RP} \approx 14\text{ ns}$) to close the active row, issue
ACTIVATE($t_{RCD}$), and issueREAD($t_{CL}$), requiring 40 ns to 60 ns before data arrives (Figure 3).
Bandwidth versus Latency
Double Data Rate (DDR) memory architectures transfer data on both rising and falling clock edges.
A 64-bit DDR4-3200 channel achieves peak theoretical bandwidth:
$$\text{Bandwidth} = 3200 \times 10^6 \text{ transfers/s} \times 8 \text{ bytes/transfer} = 25.6\text{ GB/s}$$
While bus bandwidth has increased with wider prefetch and parallel memory channels, fundamental random access latency ($t_{RCD} + t_{CL}$) has remained near 14 ns across multiple device generations due to physical bitline capacitance limits.
The Computer Memory Hierarchy
High-performance computing systems organize storage into a multi-tiered hierarchy to balance capacity, cost, and latency:
| Hierarchy Level | Storage Technology | Typical Capacity | Access Latency | Processor Cycles at 3 GHz |
|---|---|---|---|---|
| CPU Registers | CMOS Flip-Flops | $< 1\text{ KB}$ | $< 0.1\text{ ns}$ | 0 cycles |
| Level 1 Cache (L1) | 6T CMOS SRAM | 32 KB to 64 KB | $\approx 1\text{ ns}$ | 3 to 4 cycles |
| Level 2 Cache (L2) | 6T CMOS SRAM | 256 KB to 2 MB | $\approx 4\text{ ns}$ to $6\text{ ns}$ | 12 to 15 cycles |
| Level 3 Cache (L3) | Dense SRAM | 8 MB to 64 MB | $\approx 15\text{ ns}$ to $25\text{ ns}$ | 40 to 60 cycles |
| Main Memory | 1T1C DRAM | 8 GB to 128 GB | $\approx 60\text{ ns}$ to $80\text{ ns}$ | 180 to 240 cycles |
| Solid-State Drive (SSD) | NAND Flash | 512 GB to 8 TB | $\approx 25,\mu\text{s}$ to $100,\mu\text{s}$ | 100,000+ cycles |
| Hard Disk Drive (HDD) | Magnetic Platters | 2 TB to 20 TB | $\approx 4\text{ ms}$ to $10\text{ ms}$ | 10,000,000+ cycles |
Caches exploit temporal and spatial locality. High cache hit rates allow processors to operate near L1 speeds despite main memory latency.
Practice Exercises
Problem 1
A DRAM cell stores logic 0 ($V_{\text{cell}} = 0\text{ V}$). The bitline is precharged to $0.60\text{ V}$ ($V_{DD}/2$). Cell capacitance is $C_s = 25\text{ fF}$ and bitline capacitance is $C_{BL} = 250\text{ fF}$. Calculate the bitline voltage after charge sharing.
Solution
Apply the charge-sharing equation:
$$V_{BL} = 0.60\text{ V} + \frac{25\text{ fF}}{25\text{ fF} + 250\text{ fF}} (0\text{ V} - 0.60\text{ V})$$
$$V_{BL} = 0.60\text{ V} + \frac{25}{275} (-0.60\text{ V}) = 0.60\text{ V} - 0.0545\text{ V} \approx 0.545\text{ V}$$
The bitline voltage falls by approximately $55\text{ mV}$. The sense amplifier detects this negative differential relative to an adjacent reference bitline.
Problem 2
A DRAM device contains 65,536 rows that must be refreshed within a 64 ms retention interval. Each refresh cycle occupies the memory bank for $55\text{ ns}$. Calculate the required refresh command interval and compute the percentage of time the bank is unavailable.
Solution
Calculate the interval between refresh commands:
$$t_{\text{interval}} = \frac{64\text{ ms}}{65{,}536} \approx 976.56\text{ ns}$$
Calculate the bandwidth overhead percentage:
$$\text{Overhead} = \frac{55\text{ ns}}{976.56\text{ ns}} \times 100% \approx 5.63%$$
The memory bank spends approximately 5.6 percent of its operating time servicing refresh commands.
Problem 3
A processor memory system specifies these cache hit rates and latencies:
- L1 Cache: Hit rate = 90%, Latency = 1 ns
- L2 Cache: Hit rate = 80%, Latency = 5 ns
- L3 Cache: Hit rate = 90%, Latency = 20 ns
- Main Memory (DRAM): Latency = 80 ns
Calculate the Average Memory Access Time (AMAT).
Solution
Calculate AMAT recursively from the lowest level:
- L3 miss penalty: $T_{\text{DRAM}} = 80\text{ ns}$.
- Effective L3 access time:
$$T_{\text{L3,eff}} = T_{\text{L3}} + (1 - \text{Hit}{\text{L3}}) \times T{\text{DRAM}} = 20\text{ ns} + (0.10 \times 80\text{ ns}) = 28\text{ ns}$$
- Effective L2 access time:
$$T_{\text{L2,eff}} = T_{\text{L2}} + (1 - \text{Hit}{\text{L2}}) \times T{\text{L3,eff}} = 5\text{ ns} + (0.20 \times 28\text{ ns}) = 10.6\text{ ns}$$
- Total AMAT seen by CPU:
$$\text{AMAT} = T_{\text{L1}} + (1 - \text{Hit}{\text{L1}}) \times T{\text{L2,eff}} = 1\text{ ns} + (0.10 \times 10.6\text{ ns}) = 2.06\text{ ns}$$
High cache hit rates reduce average latency to near L1 performance.
The next article examines non-volatile Read-Only Memory (ROM) and Look-Up Tables (LUT).