SRAM
Flip-flop register files provide fast multi-port access, but their size limits capacity to several kilobits. Microprocessor caches require megabytes of high-speed on-chip memory.
Static Random-Access Memory (SRAM) provides dense, low-latency storage. SRAM is static because it preserves stored data continuously while power is applied, without requiring periodic refresh cycles.
The Six-Transistor (6T) SRAM Cell
The standard SRAM cell contains six CMOS transistors (Figure 1):
- Four transistors form two cross-coupled CMOS inverters ($M_1, M_2$ and $M_3, M_4$). Transistors $M_1$ and $M_3$ are PMOS pull-up devices. Transistors $M_2$ and $M_4$ are NMOS pull-down devices.
- Two NMOS transistors ($M_5, M_6$) act as access transistors connected to the horizontal Word Line ($WL$).
Internal nodes $Q$ and $QB$ represent complementary binary states ($Q = \overline{QB}$).
When the word line is low, access transistors $M_5$ and $M_6$ isolate the storage nodes. The cross-coupled inverters retain the stored bit indefinitely using positive feedback.
The Read Operation
A read operation executes in four sequential phases (Figure 2):
- Bitline Precharge: Peripheral circuits precharge both complementary bitlines ($BL$ and $BLB$) to $V_{DD}$.
- Word Line Activation: The row decoder drives word line $WL$ high, turning on access transistors $M_5$ and $M_6$.
- Differential Discharge: Assume node $Q = 0$ and $QB = 1$. Node $Q$ provides a conduction path to ground through access transistor $M_5$ and NMOS pull-down $M_2$. Bitline $BL$ discharges toward ground. On the opposite side, node $QB = 1$ keeps NMOS $M_4$ off, leaving bitline $BLB$ near $V_{DD}$.
- Sense Amplification: A differential sense amplifier detects the developing voltage difference ($\Delta V \approx 50\text{ mV}$ to $100\text{ mV}$) between $BL$ and $BLB$. The amplifier rapidly pulls the signal to full CMOS rail logic levels ($0\text{ V}$ and $V_{DD}$).
The read operation is non-destructive. Transistor sizing ensures that bitline capacitance does not pull internal node $Q$ above the switching threshold of inverter $M_3/M_4$.
The Write Operation
To write new data into the cell:
- Peripheral write drivers force complementary data onto the bitlines: $BL = 0$ and $BLB = V_{DD}$ (to write 0) or $BL = V_{DD}$ and $BLB = 0$ (to write 1).
- The row decoder drives word line $WL$ high.
- The strong write driver pulls the internal high storage node low through the access transistor.
- The lowered node voltage switches the opposite inverter, latching the new complementary state.
- Word line $WL$ transitions low to isolate the cell.
Proper transistor sizing is critical:
- Read Stability: NMOS pull-down transistors ($M_2, M_4$) must be stronger than access transistors ($M_5, M_6$) to prevent data corruption during read operations.
- Writeability: Access transistors ($M_5, M_6$) must be stronger than PMOS pull-up transistors ($M_1, M_3$) to overpower the internal inverters during write operations.
Memory Array Architecture
Individual 6T cells organize into a rectangular two-dimensional array (Figure 3):
- Row Decoder: Decodes the upper address bits to activate exactly one word line ($WL$), selecting an entire horizontal row of cells.
- Bitline Columns: Vertical bitline pairs ($BL, BLB$) traverse all rows in a column.
- Column Multiplexer: Connects selected bitline pairs to the shared sense amplifiers and write drivers based on the lower address bits.
Total access latency includes row decode delay, word line rise time, bitline discharge time, and sense amplifier evaluation.
SRAM in the Memory Hierarchy
| Cache Level | Typical Capacity | Access Latency | Primary Optimization Goal |
|---|---|---|---|
| Level 1 (L1 Data / Instruction) | 32 KB to 64 KB | $\approx 1\text{ ns}$ (3 to 4 cycles) | Ultra-fast access speed, larger cell transistors |
| Level 2 (L2 Cache) | 256 KB to 2 MB | $\approx 4\text{ ns}$ to $6\text{ ns}$ (12 to 15 cycles) | Balanced area and latency |
| Level 3 (L3 Cache) | 8 MB to 64 MB | $\approx 15\text{ ns}$ to $25\text{ ns}$ (40 to 60 cycles) | Maximum bit density, minimal transistor geometries |
In modern multi-core microprocessors, on-chip SRAM caches occupy more than 50 percent of the total silicon die area.
Practice Exercises
Problem 1
An SRAM cell stores state $Q = 1$ ($QB = 0$). Word line $WL$ transitions high for a read operation after bitlines are precharged to $V_{DD}$. Determine which bitline discharges, and explain why stored data remains stable.
Solution
Because $Q = 1$, pull-down transistor $M_4$ is turned on. Bitline $BLB$ discharges to ground through access transistor $M_6$ and pull-down transistor $M_4$.
Because $QB = 0$, pull-down transistor $M_2$ is turned off, and bitline $BL$ remains at $V_{DD}$.
The sense amplifier detects that $BL > BLB$ and outputs logic 1.
The cell remains stable because pull-down transistor $M_4$ is sized with higher conductance than access transistor $M_6$, preventing internal node $QB$ from rising above the switching threshold of inverter $M_1/M_2$.
Problem 2
An SRAM array contains 1024 rows and 64 columns of single-bit storage cells with an 8-bit data output interface. Calculate memory capacity and determine address bus width.
Solution
Calculate capacity:
$$\text{Capacity} = 1024\text{ rows} \times 64\text{ columns} = 65{,}536\text{ bits} = 8192\text{ bytes} = 8\text{ KB}$$
Calculate address bits:
- Row decoder requires: $\log_2(1024) = 10\text{ row address bits}$.
- The 64 columns provide 8 bytes ($64 / 8 = 8\text{ column groups}$). The column multiplexer requires: $\log_2(8) = 3\text{ column address bits}$.
- Total address bus width: $10 + 3 = 13\text{ bits}$ ($2^{13} = 8192\text{ addressable bytes}$).
Problem 3
Explain why write drivers must be stronger than PMOS pull-up transistors, and describe the failure mode if sizing is incorrect.
Solution
During a write operation, the write driver pulls a bitline to ground to force an internal node from logic 1 to logic 0.
The internal PMOS pull-up transistor attempts to hold the node at $V_{DD}$. If the access transistor and write driver do not possess higher conductance than the pull-up transistor, the internal node voltage remains above the logic threshold.
The cross-coupled inverters cannot flip states, resulting in a write failure. Memory compilers size access transistors significantly stronger than pull-up devices.
The next article examines Dynamic RAM (DRAM), capacitor storage cells, refresh cycles, and main memory hierarchies.