SRAM Cells and Sense Amplifiers

Read and write a 6T SRAM cell, and see why its transistors are sized in a fixed order of strength. Then sense a small bit-line split with a latch.

You Will Be Able To

  • Describe hold, read and write in a 6T SRAM cell.
  • Explain read stability and write ability, and the sizing ratios behind them.
  • Read a static noise margin from a butterfly plot.
  • Explain how a latch-type sense amplifier turns a small split into a full level.
Lesson
G9.16
Time
35 min
Runs on
ngspice
Check
5 questions

A memory block failed one read in a million at low voltage. Each failure flipped the cell it was reading. Writes were fine. The fix was not in the logic, but in three transistor widths.

The 6T SRAM CellTwo cross-coupled inverters store q and its complement qb. Two access NMOS connect them to the bit lines while the word line is high.
  • I/O
  • Device
  • Storage
  • Data
The 6T SRAM cellTwo cross-coupled inverters store q and its complement qb. Two access NMOS connect them to the bit lines while the word line is high. io Bit line bl precharged to VDD device AX1 access NMOS, gate wl storage q PU1 and PD1 storage qb PU2 and PD2 device AX2 access NMOS, gate wl io Bit line blb precharged to VDD each drives the other
  1. storage qPU1 and PD1
    • each drives the other → qb
  2. storage qbPU2 and PD2
    • AX2
  3. io Bit line blprecharged to VDD
    • AX1
  4. device AX1access NMOS, gate wl
    • q
  5. io Bit line blbprecharged to VDD
  6. device AX2access NMOS, gate wl
    • Bit line blb
  1. Hold: wl = 0

    The access transistors are off. The two inverters hold each other: q = 0 and qb = 1 here.

  2. Read: wl = 1

    Both bit lines start at VDD. AX1 connects bl to q = 0, and bl discharges through AX1 and the pull-down PD1. The 0 node is pulled up a little: 154 mV with a cell ratio of 2.

  3. Write: wl = 1, bl driven low

    To write, a strong driver pulls one bit line to 0. Its access transistor must pull the 1 node down against that side's pull-up until the inverters flip.

Read the diagram as text
  • Bit line bl: precharged to VDD
  • AX1: access NMOS, gate wl
  • q: PU1 and PD1
  • qb: PU2 and PD2
  • AX2: access NMOS, gate wl
  • Bit line blb: precharged to VDD
  • Bit line bl → AX1
  • AX1 → q
  • q → qb: each drives the other
  • qb → AX2
  • AX2 → Bit line blb

Six transistors per bit. Read stability needs the pull-down stronger than the access device; write ability needs the access device stronger than the pull-up.

Read Stability

In a read both bit lines start at VDD. The word line turns on both access transistors. On the 0 side, the bit line discharges through the access transistor and the pull-down in series. The 0 node rises to where they balance.

SizingHighest 0-node voltageBit line falls 100 mV afterBit line 1 ns after the word line
cell ratio 2: pull-down 1 µm, access 0.5 µm154 mV41.9 ps0.01 V
cell ratio 1: pull-down 0.5 µm, access 0.5 µm309 mV50.6 ps0.07 V

Measured: the lab, 50 fF bit lines precharged to 1.8 V, pull-up 0.42 µm in both.

If the bump reached the switching threshold of the other inverter, the read would flip the cell. The cell ratio, pull-down width over access width, keeps it low.

DC sweepHalf-Cell Curves in Hold and in ReadOne inverter of the cell with its access transistor to a bit line at 1.8 V. In read the word line is high and the curve no longer reaches 0 V.
  • v(q2h), ratio 2, hold
  • v(q2r), ratio 2, read
  • v(q1r), ratio 1, read
  • v(q1h), ratio 1, hold
00.5 V1.0 V1.5 V2.0 VOutput00.2 V0.4 V0.6 V0.8 V1.0 V1.2 V1.4 V1.6 V1.8 VInput00.5 V1.0 V1.5 V2.0 VOutput00.5 V1.0 V1.5 VInput
Read the plot as a table
Inputv(q2h), ratio 2, holdv(q2r), ratio 2, readv(q1r), ratio 1, readv(q1h), ratio 1, hold
0 V1.8 V1.8 V1.8 V1.8 V
200 mV1.8 V1.8 V1.8 V1.8 V
400 mV1.8 V1.8 V1.8 V1.8 V
600 mV1.788 V1.788 V1.794 V1.794 V
800 mV462.4 mV898.4 mV1.18 V1.179 V
1 V6.182 mV599.5 mV732.7 mV14.02 mV
1.2 V319.7 µV352.4 mV576.5 mV730.4 µV
1.4 V15.78 µV227.9 mV445.4 mV36.66 µV
1.6 V725.1 nV183.3 mV360.2 mV1.709 µV
1.8 V13.35 nV159.7 mV317.4 mV31.87 nV

Measured with ngspice 42 on SKY130, 1.8 V. The butterfly of the cell is this curve and its mirror in the diagonal.

SizingHold SNMRead SNM
cell ratio 2702 mV415 mV
cell ratio 1718 mV292 mV

Static noise margin: the side of the largest square that fits in the smaller lobe of the butterfly. Computed from the measured curves above.

Read is the cell's weakest moment. The read SNM of the ratio-2 cell is 415 mV; at ratio 1 it falls to 292 mV.

Write Ability

To write a 0 into a cell that holds 1, a driver pulls bl to 0 with the word line high. The access transistor must pull q below the other inverter's threshold, against the pull-up holding q high.

Sizingbl voltage at which the cell flips
cell ratio 2637 mV
cell ratio 1708 mV

Measured: bl ramps from 1.8 V to 0 V in 20 ns with the word line high. A higher value is an easier write.

So the access transistor must be stronger than the pull-up. The three transistors have a fixed order of strength: pull-up weakest, access in the middle, pull-down strongest. Problem G9.16.1 sizes a cell inside that order.

Sensing a Small Split

A bit line in a real array has hundreds of cells on it and a large capacitance. Waiting for a full swing would be far too slow. A sense amplifier reads a split of tens of millivolts.

TransientA Latch Sense Amplifier Resolving Three SplitsBefore sae rises, the two nodes follow the bit lines. When sae rises, the isolation PMOS turn off and cut the bit lines away, and the cross-coupled latch amplifies the difference.
  • v(s1)
  • v(sb1), 50 mV lower
  • v(sb0), 20 mV lower
  • v(sae)
00.5 V1.0 V1.5 V2.0 VVoltage00.2 ns0.4 ns0.6 ns0.8 ns1.0 ns1.2 nsTime00.5 V1.0 V1.5 V2.0 VVoltage00.5 ns1.0 nsTime
  1. Time 500 psv(s1) = 1.903 V · v(sb1), 50 mV lower = 1.856 V · v(sb0), 20 mV lower = 1.884 V · v(sae) = 900 mV

    The sense enable rises. The tail NMOS turns on and both nodes start to fall.

  2. Time 575.1 psv(s1) = 1.337 V · v(sb1), 50 mV lower = 180.6 mV · v(sb0), 20 mV lower = 523 mV · v(sae) = 1.8 V

    The node that started 50 mV lower falls faster, and the latch takes over. It reaches 10 % of the supply 75.1 ps after sae.

Read the plot as a table
Timev(s1)v(sb1), 50 mV lowerv(sb0), 20 mV lowerv(sae)
0 s1.8 V1.75 V1.78 V0 V
200 ps1.8 V1.75 V1.78 V0 V
400 ps1.8 V1.75 V1.78 V0 V
500 ps1.903 V1.856 V1.884 V900 mV
575.1 ps1.337 V180.6 mV523 mV1.8 V
600 ps1.596 V34.19 mV138.2 mV1.8 V
800 ps1.8 V4.776 µV12.21 µV1.8 V
1 ns1.8 V483.2 nV613.5 nV1.8 V
1.2 ns1.8 V483.1 nV612.4 nV1.8 V

Measured with ngspice 42 on SKY130, 1.8 V.

SplitTime to resolveHigh node at the end
20 mV96.3 ps1.80 V
50 mV75.1 ps1.80 V
100 mV60.6 ps1.80 V

Measured: from sae at 50 % to the low node at 0.18 V.

A smaller split takes longer to resolve, and a real amplifier has an offset from mismatch. The timing of sae is a trade between speed and that margin.

Asked in interviews
  1. Why is the pull-down of a 6T cell wider than the access transistor?

    During a read the access transistor pulls the 0 node up against the pull-down. A stronger pull-down keeps that bump small, so the read does not flip the cell.

  2. What limits writing a 6T cell?

    The access transistor must pull the 1 node low against the pull-up. The pull-up is made the weakest device so that a write can win.

  3. Why does an SRAM use a sense amplifier?

    The cell discharges a large bit line slowly. A latch-type amplifier resolves a split of tens of millivolts into a full level, much sooner than a full swing.

Try It

bump_a and bump_b are the highest voltage of the 0 node during the read: 154 and 309 mV.

t100_a and t100_b are the times for the bit line to fall 100 mV: 41.9 and 50.6 ps.

Change the access widths of cell a to 1 and run. The bump grows.

SPICEngspice 42 · simulator service
Edit the netlist, then run it
Expected measurements: bump_a = 1.541905e-01 at= 5.720000e-10 bump_b = 3.092860e-01 at= 5.800000e-10 t100_a = 4.186787e-11 targ= 5.418679e-10 trig= 5.000000e-10 t100_b = 5.055760e-11 targ= 5.505576e-10 trig= 5.000000e-10 bl_a = 1.133592e-02 bl_b = 7.221631e-02

Check Yourself

Predict the outputThe program prints the cell ratio and the access-to-pull-up width ratio of the ratio-2 cell of this lesson, in tenths. What exact line does it print?
module tb;
  int pd = 1000, ax = 500, pu = 420;   // widths in nm: pull-down, access, pull-up
  initial begin
    // cell ratio pd / ax (read stability) and access over pull-up ax / pu (write ability), in tenths
    $display("CR=%0d AP=%0d", pd * 10 / ax, ax * 10 / pu);
  end
endmodule
ConceptIn what order of strength are the three transistor types of a 6T cell sized?
ConceptWhat does the read static noise margin measure?
ConceptThe cell ratio drops from 2 to 1. What did the measurement show?
ConceptWhy is a smaller bit-line split slower to sense?

Common Mistakes

Wrong Make the access transistors as strong as possible for a fast read.

During a read the access transistor pulls the 0 node up against the pull-down. With equal widths (cell ratio 1) the 0 node rose to 309 mV, against 154 mV with cell ratio 2.

Fix Keep the pull-down stronger than the access transistor: a cell ratio of about 2.

Wrong Make the pull-up as strong as the pull-down, as in a logic inverter.

To write, the access transistor must pull the 1 node down against the pull-up. A strong pull-up makes the cell hard or impossible to write.

Fix Keep the pull-up the weakest of the three: pull-up < access < pull-down.

Wrong Wait for a bit line to swing fully before reading it.

Even with only 50 fF the line took 41.9 ps to fall 100 mV. A real bit line carries hundreds of cells and far more capacitance, while the cell current stays the same.

Fix Read a small split with a sense amplifier, then restore the bit lines.

Wrong Fire the sense amplifier as soon as the word line rises.

It amplifies whatever split it sees. With 20 mV it took 96.3 ps to resolve, with 100 mV 60.6 ps. In a real amplifier, offset can exceed a small split.

Fix Fire it once the split is safely larger than its offset, and no later than needed.

Remember

  • A 6T cell: two cross-coupled inverters and two access NMOS on a word line.
  • Read stability: pull-down stronger than access (cell ratio about 2).
  • Write ability: access stronger than pull-up. Order of strength: pull-up < access < pull-down.
  • The static noise margin is the largest square in the butterfly lobes; read is the worst case.
  • A latch sense amplifier resolves a small split; smaller splits take longer.

Practice

Report a problem with this page