Static RAM stores each bit in a pair of cross-coupled inverters. It holds its data for as long as power is applied, needs no refresh, reads without destroying the data and responds in nanoseconds or less. That is why every cache, register file and on-chip buffer is SRAM. This page builds an SRAM from the cell up: the 6T cell and its noise margins, how a read and a write work and why they fight over transistor sizing, the precharge, sense-amplifier, column-mux and write-driver blocks, the decoders, a complete asynchronous SRAM you can step through, its pin timing, and finally banking, soft errors and the variants used today. It parallels How DDR memory works, so the two can be compared block by block.
Both memories are arrays of cells on wordlines (rows) and bitlines (columns), with decoders on the edges and sense amplifiers at the bottom of each column. The difference is the cell. A DRAM cell is one transistor and a capacitor: tiny, but the charge leaks away and a read destroys it. An SRAM cell is a bistable latch, two inverters each driving the other's input, plus two access transistors. It is about twenty times larger, but it actively holds its state.
| SRAM (6T) | DRAM (1T1C) | |
|---|---|---|
| Storage | Cross-coupled inverters (a latch) | Charge on a capacitor |
| Cell area | ≈ 120–150 F²; about 0.02 µm² at 5 nm and 3 nm-class nodes | ≈ 6 F² |
| Refresh | None: holds data while powered | Every 64 ms (32 ms hot) |
| Read | Non-destructive; small-swing differential bitlines | Destructive; must restore the row |
| Access time | Sub-ns (on-chip) to ≈ 10 ns (discrete) | ≈ 15 ns tRCD + 15 ns CL |
| Interface | Full address at once; no rows to open or close | Row (ACT), then column (RD/WR); banks, precharge |
| Process | Same logic process as the CPU | Special process (deep trench or stacked capacitors) |
| Standby power | Leakage of every cell | Refresh plus leakage |
| Used for | Caches, register files, FIFOs, FPGA block RAM, MCU RAM | Main memory |
Inverter 1 (pull-up PU1, pull-down PD1) drives node Q. Inverter 2 (PU2, PD2) drives node QB. Each inverter's input is the other's output, so the pair has two stable states: Q = 1, QB = 0, or Q = 0, QB = 1. A third, balanced point exists where both nodes sit at the trip voltage, but it is unstable: any disturbance is amplified by the loop gain and the cell falls into one of the two stable states. This is the same regeneration as a DRAM sense amplifier, used here for storage.
The two access transistors PG1 and PG2 (pass gates) connect Q to BL and QB to BLB when the wordline WL is high. They are NMOS, because NMOS passes a low level well and has more drive per area. With WL low the cell is isolated and simply holds. It is static: the inverters keep refreshing the nodes, so no external refresh is needed.
How hard is it to flip a cell that should be holding? Plot inverter 2's transfer curve, QB against Q, and on the same axes inverter 1's curve with the axes swapped. The two curves cross three times: at the two stable states and at the unstable middle point. Between them they enclose two "eyes", and the plot looks like a butterfly.
The static noise margin (SNM) is the side of the largest square that fits inside the smaller eye. It equals the largest DC noise voltage that can be added in series with both inverter inputs, in the worst direction, before the eye closes and the cell has only one stable state. Three conditions matter:
Try lowering the cell ratio and watch the read eyes shrink while the hold eyes barely change. Then add mismatch: real cells never have two identical inverters, because random dopant fluctuation and line-edge roughness give every transistor its own threshold. The spread follows Pelgrom's law:
SRAM transistors are the smallest on the die, so they have the largest σVT (tens of millivolts). A 32 Mb cache needs every one of its 32 million cells to work, which means designing for about 5.5 to 6 σ. The calculator below shows how array size sets the required margin.
With no access in progress, the only cost of holding data is leakage, which falls steeply with supply voltage. Caches and MCU RAMs therefore lower the array supply in standby. A cell stays bistable down to a surprisingly low voltage, where its inverters are in subthreshold but still have a loop gain above one. The lowest supply at which every cell in the array keeps its data is the data retention voltage (DRV). It is set by the worst-case mismatched cell, not the typical one.
Reading only ever uses a small swing, on purpose. A full swing would cost time and energy, because the bitlines are long and heavily loaded. That is why every SRAM read needs a sense amplifier.
The read-disturb problem. While BL discharges, node Q is not at 0 V. It sits at the voltage set by the divider of PG1 (from the bitline at VDD) and PD1 (to ground):
If VQ rises past inverter 2's trip point, inverter 2 flips QB low, the cell latches the other way, and the read has destroyed the data. Keeping the bump low requires a pull-down stronger than the access transistor. The cell ratio CR = βPD/βPG is typically 1.5–2.5 in planar cells. FinFET cells set the ratio by fin count instead: 2 PD fins to 1 PG fin in high-current cells, and 1:1 in the densest cells, which then rely on threshold-voltage tuning and assists.
How long can a bitline be? Every cell in a column adds junction and wire capacitance to its bitline, slowing the read. Every unselected cell also leaks a little through its off access transistor. In the worst case, all of them leak onto the bitline that should stay high, which eats into the differential the selected cell is trying to build.
A write therefore needs a weak pull-up relative to the access transistor. The pull-up ratio PR = βPU/βPG is typically below 1. PMOS has lower mobility, which helps. The usual figure of merit is the write margin: the highest bitline voltage at which the cell still flips. The larger it is, the more robustly the cell can be written.
The access transistor appears in both requirements, pulling in opposite directions. Reads want it weak compared with the pull-down; writes want it strong compared with the pull-up. The resulting ordering is PD > PG > PU. As the supply drops and variation grows, the window between the two failures closes. That is why modern SRAMs add assists:
Each assist moves one curve without touching the other.
Three PMOS transistors per column pair, all gated by the active-low PRE#:
They are PMOS because the target is VDD, which PMOS passes without a threshold drop. Unlike DRAM, which precharges to VARY/2, an SRAM precharges to the full supply: reads discharge only one line, and the cell's NMOS pull-down is good at pulling down.
Cells are far narrower than a sense amplifier, and a wordline can hold hundreds of bits when a read wants only 32 or 64. So 4, 8 or 16 adjacent column pairs share one sense amp and one write driver through a mux driven by the low address bits:
The mux ratio also sets the interleave: bit i of a word sits in every k-th column. That helps against soft errors (section 08). The unselected columns on an active wordline still discharge, because they are half-selected: their cells see a read, which costs energy and must not disturb them.
The most common SRAM sense amp is a latch-type (voltage-mode) amplifier: a cross-coupled inverter pair, MP1/MN1 and MP2/MN2, with its sources tied to a tail transistor gated by SAE. Before SAE, the PMOS isolation devices let the bitline split onto the latch nodes SA and SAB. When SAE rises:
The steps are the same as the DRAM latch (Cbl·dΔV/dt = gm·ΔV), with a much smaller capacitance, so it resolves in tens of picoseconds. Its offset, from the mismatch between MN1 and MN2, sets the minimum bitline split, and with it the read timing.
Two strong NMOS pull-downs, one per bitline, each gated by write-enable ANDed with the data or its complement. Writing a 0 discharges BL to ground through the write mux, and writing a 1 discharges BLB. The precharged opposite line stays at VDD. The driver must be strong enough to discharge the bitline quickly and hold it near 0 V through the mux resistance while PG fights PU. That is what the write-margin simulation above tests. A negative-bitline assist adds a boost capacitor that kicks the driven line slightly below ground at the moment the wordline rises.
The wordline must stay on long enough to develop the bitline split, and SAE must not fire before it. Both depend on the cell read current, which varies with process, voltage and temperature. A fixed delay chain made of logic gates tracks them poorly.
SRAMs therefore use a replica bitline: a dummy column, loaded like a real bitline, driven by a few dummy cells that always discharge it. It is sized so that it crosses a logic threshold just as a real bitline reaches the target split. The replica's output fires SAE and ends the wordline pulse. Slow silicon slows both the real and the replica bitline, so the timing tracks.
A discrete asynchronous SRAM, such as a 4 Mb 10 ns part, has no clock. It has three control pins, all active low:
There is one address pin per address bit, and data pins DQ. Unlike DRAM, the whole address arrives at once: there is no row to open and no precharge for the controller to schedule. Internally the steps are the ones above. Address-transition detection (ATD) and the timing block generate the wordline pulse, precharge, SAE and write-enable internally.
The figure is an 8 × 8 array organized as 2 words of 4 bits per row. The two words are interleaved across the columns: word 0 uses even columns and word 1 odd columns. A3–A1 select the row and A0 selects the word through a 2:1 column mux.
SRAM decoders work exactly like DRAM ones. Each address bit is distributed as a true and a complement line, and one AND term per row is high for exactly one address. Three things are particular to SRAM:
A real SRAM macro is not one big array. Short bitlines are fast and leak little, and short wordlines are fast and waste little energy on half-selected columns. A large memory is therefore tiled from many sub-arrays, typically 128–512 rows by 128–256 columns. The address splits into fields:
Only the selected sub-array is activated. This is the same idea as DRAM banks. The difference is that SRAM sub-arrays are not left with an open row, so there is no row hit or conflict to manage.
An alpha particle from packaging materials, or a secondary from a cosmic-ray neutron, can deposit enough charge on a storage node to flip a cell. As cells shrink, one strike increasingly upsets several adjacent cells along a wordline: a multi-bit upset. Caches protect each word with SECDED ECC, for example 8 check bits per 64 data bits, which corrects one flipped bit and detects two. They also interleave the words across columns, so that physically adjacent cells belong to different words. A strike up to k cells wide then causes at most one error per word, which ECC corrects. The column mux ratio is what provides this interleave.
Discrete fast SRAMs and almost all embedded macros are synchronous: address, control and write data are registered on a clock edge.
Like SDRAM, synchronous SRAMs offer burst reads and writes. An internal 2-bit counter steps through four addresses from one external address, in linear or interleaved order. Interleaved order is the XOR pattern used by some processor cache-line fills, and it matches the DDR interleaved burst order:
| Type | Interface | Typical use |
|---|---|---|
| Asynchronous | CE#, WE#, OE#, full address, no clock | MCU external RAM, battery-backed memory |
| Synchronous flow-through / pipelined | Registered inputs; output register adds one cycle | Older cache SRAMs, buffers |
| ZBT / NoBL | No idle cycles at read–write turnaround | Networking, packet buffers |
| QDR-II/II+/IV | Separate read and write ports, DDR on each | Network lookup tables, line cards |
| Embedded macro (compiler) | CLK, CEN, WEN, A, D, Q, bit-write mask | Caches, register files, FIFOs inside SoCs and FPGAs |
The SRAM cell is a latch: its inverters keep driving Q and QB during the read, so the bitline current comes from the supply through PD, not from stored charge. DRAM shares the cell's only charge with the bitline, destroying it.
By sizing PD > PG > PU, so PG loses to PD (reads are safe) but beats PU (writes work), and by assists that change the balance only during the operation that needs it: wordline underdrive for reads, negative bitline or cell-supply collapse for writes. Or by an 8T cell that separates the read path entirely.
An SRAM cell actively discharges one line through its NMOS pull-down, so starting high and sensing a small drop is natural. A DRAM cell must push the bitline either up or down by sharing charge, so the reference must sit in the middle.
The bitline split must exceed the sense amplifier's offset (with margin for noise) in the slowest cell. Since both the cell current and the offset vary, a replica bitline is used to fire SAE at the right moment over process, voltage and temperature.
The three cells belong to three different words, each of which sees one flipped bit, and ECC corrects all three.
They share the active wordline but their bitlines are still precharged, so they undergo a read. They must have enough read stability not to flip, and they cost bitline energy. Divided wordlines reduce how many there are.