Learn about static random access memory, its working mechanism, and applications in high-speed electronic circuits.
SRAM (*Static Random-Access Memory*) is the fastest memory in a computer: it is inside the processor, where it forms the first, second, and third level caches, and in the registers of digital integrated circuits. It is static because, as long as it is powered, it retains the data without the need for refresh, unlike DRAM. The price is area: a cell occupies much more space than a DRAM cell, so capacity is limited and cost per bit is high [1][2][3][4].
The standard cell (6T) consists of two inverters connected in a loop, so that the output of each controls the input of the other. The loop has two stable states: in one, node $Q$ is high and the complementary node $\overline{Q}$ is low; in the other, the opposite. These two states represent $1$ and $0$. Each inverter is made of two MOS transistors (one n-channel, one p-channel, CMOS technology), for four transistors; two additional access transistors connect the internal nodes to the two bit lines (*bit line* and its complement), controlled by the word line [1][2][4].
- Retention: the word line is low, the access transistors are off, and the loop maintains the state; the current drawn is only the transistor leakage.
- Read: the two bit lines are precharged to a high voltage, then the word line is activated. The cell slightly discharges one of the two lines, and a differential amplifier detects the difference. The read does not destroy the data.
- Write: the bit lines are forced to opposite levels, one high and one low, and the access transistors, stronger than those of the loop, flip the cell state [1][2].
Successful read and write operations depend on the ratios between transistor sizes. With very aggressive scaling and low voltages, the cell’s static noise margin decreases, and eight- or ten-transistor cells are used to separate the read path from the write path.
- Speed: access time of a few nanoseconds or less, close to the processor speed.
- No refresh, so access is always available and control is simple.
- Static power consumption due to leakage currents, which increases with size reduction; dynamic power consumption proportional to access frequency.
- Low density: cell area tens of times larger than an equivalent DRAM cell.
- Volatility: content is lost without power.
SRAM is faster, requires no refresh, and is made with the same process as logic circuits, so it is easily integrated into the processor chip. DRAM is much denser and cheaper per bit. The choice is a matter of compromise: SRAM for small amounts of very fast memory, DRAM for large capacities.
A $32\ \mathrm{KiB}$ cache is built with 6T cells (assumed values).
1. Bit: $32\cdot1024\cdot8 = 262\,144$.
2. Transistors for the cells only: $262\,144\cdot6 = 1\,572\,864$, about $1.6$ million.
3. A $32\ \mathrm{MiB}$ cache would require about $1.6\cdot10^{9}$ transistors for the cells alone, a significant portion of a processor's area: this is why large caches are expensive and their capacity is limited.
4. With a bit line capacitance of $C_b = 200\ \mathrm{fF}$ and a cell read current of $50\ \mathrm{\mu A}$, to obtain a displacement of $100\ \mathrm{mV}$, $t = C_b\,\Delta V/I = 200\cdot10^{-15}\cdot0.1/(50\cdot10^{-6}) = 0.4\ \mathrm{ns}$ are needed.
The result shows why the read is fast: the displacement required at the amplifier is small and the time depends on the line capacitance.
SRAM is used in processor caches, registers, and internal memories of microcontrollers and integrated circuits, in memories of network devices, and, with backup battery, in equipment that must retain small amounts of data.
[1] Wikipedia (en): Static random-access memory
[2] Wikipedia (it): SRAM
[3] Wikipedia (de): Random-Access Memory
[4] Wikipedia (fr): Mémoire vive statique
Generating summary…