The Memory Hierarchy
No single memory is both fast and cheap enough to fill every role on a chip or in a system, so real designs use a hierarchy: small, fast, expensive memories sit close to the compute logic, and large, slow, cheap memories sit farther away. Data migrates up toward the processor as it's needed and back down as it's evicted.
The memory hierarchy: capacity grows and cost-per-bit falls as data moves away from the processor, while access latency grows. Registers and SRAM lose their contents without power; DRAM needs continuous refresh to stay volatile-but-alive; Flash and the emerging NVM technologies below hold data with no power at all.
Two axes matter most when picking a memory for a job:
Volatile vs. non-volatile
Volatile memory (SRAM, DRAM) loses its contents the instant power is removed, but offers the fastest access. Non-volatile memory (ROM family, Flash, and the emerging MRAM/ReRAM/PCM/FeRAM class) retains data with no power at all, at some cost in speed, endurance, or density.
Charge-based vs. resistance-based
Older technologies (DRAM, Flash, EEPROM) store a bit as an amount of electrical charge. Most emerging non-volatile memories instead store a bit as a physical resistance or magnetic state — a shift that underlies their speed and endurance advantages.
Volatile Memory: SRAM & DRAM
Volatile memory trades data retention for speed and, in SRAM's case, simplicity of access. Both SRAM and DRAM must stay powered to hold data, but they get there through very different cell designs.
SRAM's cross-coupled inverter pair (Inv 1 / Inv 2) latches Q and Q′ and needs no refresh, but costs 6 transistors per bit. DRAM stores a bit as charge on a single capacitor behind one access transistor — far denser, but the charge leaks away and must be periodically read and rewritten (refreshed).
SRAM (Static RAM)
The classic SRAM cell uses six transistors: four form two cross-coupled CMOS inverters (a bistable latch that holds either logic state indefinitely while powered), and two "access transistors" gated by the word line connect the internal nodes Q/Q′ to the complementary bit lines BL/BL′ for reads and writes.
Because the latch actively drives full-rail voltage onto the bit lines rather than relying on a tiny charge-sharing signal, and because there's no refresh or multiplexed row/column addressing to wait on, SRAM is the fastest memory on the chip — which is why it's used for CPU/GPU caches, register files, and FPGA configuration memory. 8T and 10T variants add dedicated read or write ports (dual-port SRAM for simultaneous read+write) or decouple the read path from the storage nodes for better stability at low voltage. The tradeoff is area and cost: 6 transistors per bit is far less dense than DRAM's one transistor plus one capacitor, and subthreshold leakage through the cell's transistors draws standby power continuously, rising sharply with temperature.
DRAM (Dynamic RAM)
A DRAM cell is just one access transistor and one storage capacitor (1T1C) — the capacitor's charge state encodes the bit. That charge leaks away through junction and subthreshold leakage, so every row must be read and rewritten ("refreshed") on a JEDEC-specified interval of 64 ms or less, consuming power and periodically blocking normal access.
Access is multiplexed: a Row Address Strobe (RAS) "activates" a row, connecting its capacitors to the bit lines; because bit-line capacitance is roughly 10× the cell capacitance, the resulting signal is tiny, so sense amplifiers detect and amplify it to a full logic level (which also refreshes that row). A Column Address Strobe (CAS) then selects specific columns from the now-open row, and a precharge step resets the bit lines before the next access. This extra latency, plus the destructive/refresh-requiring read, is why DRAM is slower than SRAM — but its 1T1C cell is dramatically denser and cheaper per bit, which is why it's the default choice for system main memory (DDR5, LPDDR5X) and the DRAM dies stacked inside HBM.
| Generation | Nominal voltage | Notes |
|---|---|---|
| DDR3 | 1.5V (1.35V low-voltage) | 400–1067 MHz clock range |
| DDR4 | 1.2V | Up to 64GB/DIMM; wider adoption of on-die ECC-adjacent features |
| DDR5 | 1.1V, on-die voltage regulation | 4800–6400+ MT/s standard, 8 bank groups (vs. 4 on DDR4), all chips include on-die ECC |
| LPDDR5X | Low-power, mobile/automotive | Up to roughly 8.5–10.7 Gbps/pin depending on implementation; used for on-device AI workloads |
Non-Volatile Memory: ROM, EEPROM & Flash
This family stores a bit as trapped electrical charge on an electrically isolated gate, which shifts the transistor's threshold voltage and persists with no power applied.
The ROM Family
| Type | Programmed | Erased | Notes |
|---|---|---|---|
| Mask ROM | At the factory, via photomask | Never — fixed for life | Cheapest per bit at huge volume; effectively obsolete now that Flash is cheap |
| PROM | Once, by "blowing" fuses/antifuses | Never (one-time programmable) | Bipolar fuse-link PROMs date to the early 1970s |
| EPROM | Floating-gate charge injection | UV light through a quartz window | Introduced 1971 (Intel); bulk-erase only, no selective erase |
| EEPROM | Electrical pulses | Electrical pulses, byte-addressable | Still used today for small persistent data — config, calibration, serial numbers |
How Flash Stores a Bit
Charge trapped on the floating gate raises the transistor's threshold voltage (V
NOR vs. NAND
NOR Flash
Cells wired in parallel, each with its own direct bit-line connection — enabling random, byte-level addressing. This supports execute-in-place (XIP), letting a CPU run code straight from NOR without first copying it to RAM, which is why NOR is the standard for embedded firmware and bootcode. Tradeoff: lower density and higher cost per bit, slower writes/erases.
NAND Flash
Cells wired in series strings sharing bit lines — a much smaller layout per cell, so density is far higher and cost per bit far lower. Access is by page (program) and block (erase), not random byte addressing, which is why NAND dominates bulk storage: SSDs, USB drives, eMMC/UFS, and memory cards.
3D NAND
Planar NAND scaling stalled because shrinking cell pitch increases cell-to-cell interference and leaves each cell storing charge as only a few electrons. 3D NAND instead stacks cells vertically in many word-line layers around a shared channel, using charge-trap storage that tolerates the proximity and process variation of dense stacking far better than a floating gate.
| Cell type | Bits/cell | Density / cost | Endurance & speed |
|---|---|---|---|
| SLC | 1 | Lowest density, highest cost/bit | Highest endurance & speed |
| MLC | 2 | — | — |
| TLC | 3 | — | — |
| QLC | 4 | — | — |
| PLC | 5 | Highest density, lowest cost/bit | Lowest endurance & speed |
More bits per cell means more distinguishable voltage levels packed into the same window, so density rises and cost per bit falls — but the margin between levels shrinks, cutting program/erase-cycle endurance and speed and raising error rates. Controllers offset the finite program/erase-cycle lifetime with wear leveling, spreading writes evenly across blocks so no single block wears out first.
Emerging Non-Volatile Memory
Where Flash and EEPROM store a bit as trapped charge, the newer non-volatile technologies store it as a physical resistance or magnetic state — a change that typically brings much higher write endurance and speed, at a current cost in density or maturity compared to Flash.
A magnetic tunnel junction stores a bit as the relative magnetization of a free layer against a fixed reference layer, separated by a thin MgO tunnel barrier. Spin-transfer torque (STT) writes by passing current directly through the stack, rather than needing a separate magnetic write line.
R
ReRAM / RRAM
A metal-insulator-metal stack, typically a transition-metal-oxide dielectric (e.g. HfO₂). A voltage above threshold migrates oxygen vacancies into a localized conductive filament bridging the electrodes (low resistance); a reverse voltage ruptures it (high resistance). The simple two-terminal structure is CMOS-back-end compatible and crossbar-array friendly, and its tunable, analog conductance makes it attractive for neuromorphic / in-memory computing, where the memory array itself performs multiply-accumulate operations.
PCM (Phase-Change Memory)
A chalcogenide alloy (e.g. germanium-antimony-tellurium) is switched between an amorphous (high-resistance) and crystalline (low-resistance) state with heat pulses; the resistance difference encodes the bit. Intel/Micron's 3D XPoint (Optane) used a related cross-point, transistor-free stackable architecture and was marketed as byte-addressable persistent memory positioned between DRAM and NAND — Intel discontinued the Optane business in 2022, but the cross-point array concept remains architecturally influential.
FeRAM
Uses a ferroelectric capacitor (e.g. lead zirconate titanate, PZT) in a DRAM-like 1T1C-style cell; the bit is the direction of the material's electric polarization, which persists without power. Switching that polarization takes far less energy than Flash's charge-pumping, giving very fast, low-power writes — but FeRAM hasn't scaled to high densities, so it stays in niche roles like smart cards and industrial/automotive controllers.
| Technology | Storage mechanism | Standout property | Typical role today |
|---|---|---|---|
| MRAM / STT-MRAM | Magnetic state (MTJ) | Fast + very high endurance | Embedded automotive/industrial MCUs, replacing Flash/EEPROM at advanced nodes |
| ReRAM | Conductive filament (resistance) | Simple, dense, analog-tunable | Emerging embedded NVM & neuromorphic/in-memory compute research |
| PCM / 3D XPoint | Amorphous/crystalline phase (resistance) | Byte-addressable, DRAM-NAND gap filler | Largely discontinued commercially (Optane, 2022); architecture lives on in cross-point research |
| FeRAM | Ferroelectric polarization | Very fast, very low write energy | Smart cards, metering, industrial control |
HBM & the Memory Wall
Compute throughput on GPUs and AI accelerators has grown far faster than DRAM bandwidth and latency — a gap known as the memory wall. For large-model training and inference, performance is often bounded not by how many operations the compute die can do, but by how fast weights, activations, and KV-cache can move from memory, and moving that data can cost more energy than the arithmetic itself. High Bandwidth Memory (HBM) is the industry's primary answer.
HBM stacks several DRAM dies vertically, connected by through-silicon vias (TSVs), atop a base logic die that handles I/O. The stack sits beside the compute die on a silicon interposer for 2.5D packaging — short, wide, dense connections instead of a narrow board-level bus.
A 1024-bit-wide HBM interface reaches very high aggregate bandwidth even at a modest per-pin data rate, which is also why it draws less power per bit moved than a narrow, high-clock bus like GDDR.
HBM vs. GDDR: GDDR (GDDR6/GDDR7) uses a narrower per-chip bus clocked much faster, and is cheaper and simpler to integrate — the default for mainstream consumer GPUs. HBM trades higher cost and 2.5D packaging complexity (interposer, TSVs) for far greater bandwidth per watt, which is why it's reserved for high-end AI/HPC accelerators. Because training and inference for large models are frequently bandwidth- and latency-bound rather than compute-bound, HBM supply has itself become a gating factor for AI accelerator production in 2025–2026.
Note on figuresExact HBM4-generation numbers (per-pin data rate, capacity per stack) vary across 2025–2026 sources and include roadmap projections alongside shipping specs — treat generation-to-generation bandwidth/capacity figures as directional rather than fixed until a part is in volume production.
Technology Comparison
| Technology | Volatile? | Relative speed | Relative density | Endurance | Typical use |
|---|---|---|---|---|---|
| SRAM | Yes | Fastest | Lowest | Unlimited (no wear mechanism) | CPU/GPU cache, registers, FPGA config |
| DRAM | Yes | Fast | High | Unlimited | System main memory |
| NOR Flash | No | Fast read, slow write | Low–Med | Tens of thousands of P/E cycles (SLC-class) | Embedded firmware / XIP code |
| NAND / 3D NAND | No | Medium | Very high | Low thousands (QLC) to tens of thousands (SLC) P/E cycles | SSDs, USB, eMMC/UFS bulk storage |
| MRAM / STT-MRAM | No | Very fast | Medium | Very high (10⁸⁽⁾+ cycles) | Embedded automotive/industrial MCUs |
| ReRAM | No | Fast | Med–High (crossbar-capable) | High, improving | Emerging embedded NVM, neuromorphic compute |
| PCM / 3D XPoint | No | Fast (DRAM–NAND gap) | Medium | High | Mostly discontinued commercially |
| FeRAM | No | Very fast write | Low | Very high | Smart cards, metering, industrial control |
| HBM | Yes (stacked DRAM) | Very high bandwidth | High, per-package | Unlimited | AI accelerators / GPUs |
Subtopics
Key Terms
| Term | Meaning |
|---|---|
| 6T / 1T1C | Six-transistor SRAM cell vs. one-transistor-one-capacitor DRAM cell |
| Refresh | Periodic read-and-rewrite of DRAM rows to replace leaked capacitor charge |
| RAS / CAS | Row / Column Address Strobe — DRAM's multiplexed addressing signals |
| Floating gate | Electrically isolated gate in Flash/EPROM/EEPROM that stores charge to set V |
| Fowler–Nordheim tunneling | Quantum tunneling of electrons through a thin oxide under a strong field — used to program/erase Flash |
| XIP | Execute-In-Place — running code directly from NOR Flash without copying to RAM |
| P/E cycle | One program/erase cycle of a Flash cell; the finite count of these bounds device lifetime |
| Wear leveling | Controller technique that spreads writes evenly across Flash blocks to extend lifetime |
| MTJ | Magnetic Tunnel Junction — the resistive storage element in MRAM |
| TSV | Through-Silicon Via — vertical interconnect used to stack DRAM dies in HBM |
| Memory wall | The growing gap between compute throughput and memory bandwidth/latency |
Sources
- Static random-access memory — Wikipedia
- Dynamic random-access memory — Wikipedia
- Memory refresh — Wikipedia
- DDR5 SDRAM — Wikipedia
- LPDDR5X — Samsung Semiconductor
- Reusable Semiconductor ROM Introduced (EPROM, 1971) — Computer History Museum
- EEPROM — Wikipedia
- Charge trap flash — Wikipedia
- Flash 101: NAND Flash vs NOR Flash — embedded.com
- 3D NAND's Vertical Scaling Race — Semiconductor Engineering
- SK hynix Begins Mass Production of 321-Layer QLC NAND Flash — SK hynix Newsroom
- Multi-level cell (SLC/MLC/TLC/QLC) — Wikipedia
- Magnetic Tunnel Junction overview — ScienceDirect Topics
- 22nm STT-MRAM — TSMC Research
- ReRAM switching mechanism — Discover Nano (Springer)
- 3D XPoint — Wikipedia
- Ferroelectric RAM — Wikipedia
- High Bandwidth Memory — Wikipedia
- What Is HBM? Deep Dive Into Architecture, Packaging & Applications — Wevolver
- The Memory Wall — TrendForce
- AI and Memory Wall — arXiv