S313 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

S3 · Lesson 13 · SRAM arrays and register files

The 6T cell, bitlines and sense amplifiers, array organization and multiported files

Most of a modern chip's area is SRAM: caches, register files, buffers and FIFOs. RTL describes a memory in two lines, but the memory compiler that builds it makes real design choices: how many rows share a bitline, how far each bitline swings before a sense amplifier decides, how to split the array into banks, and how many ports each cell can afford. Those choices set a memory's speed, energy and area, and knowing them explains why caches are banked, why register files are small, and why a memory's access time is quoted the way it is.

  • The lines are a bitline's voltage during a read: the selected cell's current discharges the precharged bitline's capacitance, which grows with the number of rows sharing it.
  • The dashed line is 100 mV below the precharge level, where a sense amplifier can decide.
  • Double the rows and the bitline takes about twice as long to get there: long bitlines are slow, which is why big arrays are split into subarrays.

Predict

A column of 256 SRAM cells loads its bitline with 0.2 fF per cell plus 30 fF of wire, and a cell sinks 20 µA. How long does a read take to develop 100 mV for the sense amplifier?

Name it

The 6T cell

Two cross-coupled inverters hold a bit; two access transistors connect it to a complementary pair of bitlines when the wordline rises. A cell takes about 120 to 150 F2 for a feature size F: around 0.12 µm² at 28 nm.

Reading

Both bitlines are precharged high. The wordline turns on, and the cell's side holding 0 pulls its bitline down slowly, since the cell transistors are tiny. A sense amplifier fires once the difference reaches about 50 to 100 mV:

tread≈CblΔVIcell,Cbl=nccell+Cwire

Each read costs about mCblΔVVDD for the m columns whose bitlines swing, while a write drives its columns rail to rail, CblVDD2 each.

Organization

A memory of S bits is built from subarrays of R rows by C columns: shorter bitlines (fewer rows) are faster and cheaper per access, shorter wordlines (fewer columns) are faster to drive. A column multiplexer selects W of the C columns for each word, so the address splits into bank, row and column bits.

Multiported register files

Each extra port adds a wordline and a pair of bitlines through every cell, so a cell's width and height each grow by about one track per port, and the area grows roughly as the square of the port count:

A∝(a+p)(b+p)

That's why register files with many ports (a wide superscalar core's 12 or more) are small and are sometimes duplicated rather than given more ports.

Worked example

A 32 KB array is built from 256 × 256-bit subarrays and read as 64-bit words. How many subarrays are there, and how are the 12 word-address bits used?

Show the solution
  1. Subarrays. 32 KB is 262 144 bits, and each subarray holds 256×256=65536: 26214465536=4subarrays
  2. Words per row. Each row holds 256 bits, four 64-bit words, so a 4-to-1 column multiplexer picks one.
  3. Address bits. The 4096 words need 12 address bits: 2 to choose the subarray, 8 for the row and 2 for the column multiplexer.

Answer 4 subarrays; the 12 bits split into 2 for the subarray, 8 for the row and 2 for the column.

Worked example

How much area do the cells of 1 Mb of SRAM take at 28 nm, at 150 F² per cell?

Show the solution
  1. One cell. A=150×(0.028 µm)2=0.118µm2
  2. One megabit. 220 cells take 0.123 mm².
  3. The whole macro. Decoders, sense amplifiers and redundancy add 20 to 40%, so real macros reach about 0.15 to 0.17 mm² per megabit at that node.

Answer the cells take 0.123 mm², and a full macro about 0.15 to 0.17 mm².

Worked example

A register file cell with 2 read ports and 1 write port is replaced by one with 8 read and 4 write ports. If the area goes as the square of the port count, how much bigger is each cell?

Show the solution
  1. Port counts. From 2 + 1 = 3 ports to 8 + 4 = 12.
  2. Area ratio. (123)2=16 times the area per bit, with slower bitlines too, since each is longer and more heavily loaded.
  3. What wide cores do. They split the register file into clusters or duplicate it, each copy needing only some of the read ports.

Answer each cell is 16 times bigger.

Check

An SRAM cell takes 120 F² at a 16 nm feature size, and a block holds 64 Mb.

(a)

How big is each cell?

(b)

How much area do the block's cells take?

Check

A bitline serves 256 cells of 0.1 fF each plus 50 fF of wire; a cell sinks 30 µA, and the sense amplifier needs 50 mV.

(a)

What is the bitline's capacitance?

Write units the way you normally would: 1.5 fF and 0.0015 pF are the same answer.

(b)

How long does a read take to develop that difference?

Check

A 32 KB SRAM is built from 128 × 256-bit subarrays and read in 64-bit words.

(a)

How many subarrays does it need?

(b)

How wide a column multiplexer does each row need?

(c)

How many word-address bits are there?

Check

A read swings 64 bitlines of 50 fF each by 0.1 V from a 1 V supply; a write drives 64 bitlines rail to rail.

(a)

About how much energy does a read take?

Write units the way you normally would: 1.5 pJ and 0.0015 nJ are the same answer.

(b)

And a write?

Check

Why are large SRAMs split into many small subarrays rather than built as one tall, wide array?

Check

A register-file cell is a tracks wide and b tracks tall before ports are added, and each port adds one track in each direction.

Step 1

What is the area, in square tracks, with p ports?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Check

Write read_time(rows, c_cell, c_wire, i_cell, dv) (all in SI units) and best_banks(total_rows, c_cell, c_wire, i_cell, dv, t_level): splitting the rows into B banks (B a power of two from 1 to 64) shortens each bitline to total_rows/B rows but adds tlevellog2⁡B of bank multiplexing; return the B with the least total time.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

Why does an SRAM read sense a small bitline difference instead of waiting for a full logic swing?

Practice

Keep practicing

7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.