Skip to content
GATEiit

GATE EC · Digital Circuits

ROM, SRAM, DRAM

Semiconductor memories: memory organisation and chip expansion, ROM types and ROM as a logic block, the 6T SRAM cell, the 1T1C DRAM cell with charge sharing and refresh, and how they compare.

Before you start

  • Decoders →

    Every memory selects one word with an address decoder, and a ROM is a decoder followed by an OR array.

  • Latches →

    An SRAM cell is a latch of two cross-coupled inverters.

  • CMOS inverter →

    The 6T SRAM cell is built from two CMOS inverters and two access transistors.

This topic comes before: Machine instructions and addressing modes

Concept notes

1. Memory organisation and building larger memories

A memory of 2n×m stores 2n words of m bits each. It needs n address lines and m data lines. Capacity =2n×m bits. Remember 210=1K, 220=1M.

Control inputs: chip select (CS, or chip enable) activates the chip; read/write (R/W‾ or write enable) chooses the operation. A deselected chip puts its data pins in high impedance, so many chips can share a data bus.

Building a W×B memory from w×b chips:

chips=Ww×Bb

  • Width (word size) expansion: put B/b chips side by side with the same address and CS; each supplies part of the word.
  • Depth (number of words) expansion: stack W/w rows of chips. The low log⁡2w address bits go to every chip; the remaining log⁡2(W/w) high bits drive a decoder whose outputs are the chip selects.

Inside a chip the cells form a 2-D array. A row decoder selects one word line; a column decoder/multiplexer picks the bits. A square array of 2n cells needs two n2-to-2n/2 decoders instead of one huge n-to-2n decoder.

2ⁿ × mmemorynaddress Amdata Dchip select CSread / writecapacity = 2ⁿ words × m bits; n address lines, m data lines
A 2ⁿ × m memory chip: n address lines, m data lines, chip select and read/write control

2. ROM and ROM as a logic circuit

A read-only memory is non-volatile: it keeps data without power. Types by how data is written:

Type Programmed by Erased by
Mask ROM manufacturer (mask) cannot
PROM user, once (fuses blown) cannot
EPROM user, electrically UV light, whole chip
EEPROM user, electrically electrically, byte by byte
Flash user, electrically electrically, block by block

EPROM, EEPROM and flash store charge on a floating gate of a MOSFET.

ROM as combinational logic. A 2n×m ROM is an n-to-2n decoder (a fixed AND array generating every minterm) followed by a programmable OR array. Any m functions of n variables fit in it: write each function's truth table into the ROM.

ROM size for n inputs,m outputs=2n×m bits

Outputs that are always 0, or equal to an input, need not be stored, which can shrink m.

Device AND array OR array
ROM fixed (all minterms) programmable
PLA programmable programmable
PAL programmable fixed
2-to-4decoderABm0m1m2m3S = m1 + m2C = m3fixed AND array(decoder gives allminterms)programmableOR array(x = link kept)
A 4 × 2 ROM as a decoder plus OR array, programmed as a half adder: S = m1 + m2, C = m3

3. SRAM: the 6T cell

A static RAM cell is a latch: two cross-coupled CMOS inverters (four transistors) hold Q and Q‾, and two access transistors connect them to the bit lines BL and BL‾ when the word line WL is high. Total: six transistors (6T).

  • Hold: WL low; the inverters keep regenerating the stored value as long as power is on. No refresh is needed.
  • Read: both bit lines are precharged high, WL is raised, and the side storing 0 pulls its bit line down slightly. A sense amplifier detects the difference. The read is non-destructive.
  • Write: the bit lines are driven to the new value and its complement, WL is raised, and the strong drivers overpower the cell.

Properties: fast access, no refresh, low standby power, but volatile (data lost when power is removed) and large (six transistors per bit), so low density and high cost per bit. SRAM is used for cache memories and registers.

For correct operation the transistors are sized so that a read does not flip the cell (read stability) and a write can flip it (writability).

BLBLB (complement)word line WLaccess M5access M6QQBinverter M1, M2inverter M3, M4
6T SRAM cell: cross-coupled inverters store Q and QB; two access transistors on word line WL connect them to BL and BLB

4. DRAM: the 1T1C cell, charge sharing and refresh

A dynamic RAM cell is one access transistor and one capacitor (1T1C). A charged Cs stores 1, a discharged one stores 0. The cell is tiny, so DRAM has the highest density and lowest cost per bit; it is used for main memory.

Read by charge sharing. The bit line (capacitance CBL≫Cs) is precharged to VDD/2. When WL rises, the cell and bit line share charge:

Vfinal=CsVcell+CBLVpreCs+CBL,ΔV=±VDD2⋅CsCs+CBL

ΔV is only tens of millivolts, so a sense amplifier is essential. The read is destructive: the cell charge is disturbed, so the sense amplifier writes the value back.

Refresh. Charge leaks away through the transistor and junction, so every row must be read and rewritten within the refresh period Tref (typically a few tens of ms).

  • Distributed refresh: one row every Tref/Nrows.
  • Fraction of time lost to refresh =Nrows trefreshTref.

Address multiplexing. DRAM sends the row address and then the column address on the same pins, latched by RAS‾ and CAS‾. A 2n-cell square array then needs only n/2 address pins.

SRAM DRAM ROM (flash)
Cell 6 transistors 1T + 1C 1 floating-gate MOSFET
Volatile? yes yes no
Refresh? no yes no
Read non-destructive destructive non-destructive
Speed fastest slower slow write
Density low high high
Use cache main memory firmware, storage
bit line BLword line WLaccess transistorstorage capacitor CsCBL (bit-linecapacitance)read: BL precharged to VDD/2,WL high, Cs shares chargewith CBL; sense amplifierdetects the small ΔV andrestores (rewrites) the cell
1T1C DRAM cell: the access transistor connects the storage capacitor Cs to the bit line, whose capacitance CBL is much larger

Formulas to remember

Capacityn address lines, m data lines
2n×m bits
Chips neededTarget W × B from w × b chips; a log₂(W/w)-to-(W/w) decoder selects chip rows
Ww×Bb
ROM for a logic functionn inputs, m outputs
2n×m
DRAM charge sharing
Vfinal=CsVcell+CBLVpreCs+CBL
Bit-line swingBit line precharged to VDD/2
∣ΔV∣=VDD2⋅CsCs+CBL
Refresh interval per row
trow=TrefNrows
Refresh overhead
Nrows trefreshTref

Common mistakes

  • Mixing up words and bits: a 2K × 8 chip holds 2048 words of 8 bits, that is 16 Kbit, not 2 Kbit.
  • Counting only depth or only width when finding the number of chips; multiply both ratios.
  • Saying SRAM needs refresh; only DRAM does, because its capacitor leaks.
  • Forgetting that a DRAM read is destructive and must be followed by a write-back.
  • Using the full supply voltage instead of the precharge level in the charge-sharing equation.
  • Halving the address pins for SRAM as well; row and column address multiplexing is a DRAM feature.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Building a 64K × 16 memory from 16K × 8 chips

numerical

How many 16K×8 chips are needed for a 64K×16 memory? How many address lines does the system need, how many go to each chip, and what decoder selects the chips?

  1. Step 1: Count the chips.

    Try it on paper first.

Example 2: ROM that squares a 4-bit number

numerical

A ROM must output the square of a 4-bit unsigned input N (0 to 15). Find the ROM size needed directly, and the smallest size if trivial output bits are not stored.

  1. Step 1: How many output bits?

    Try it on paper first.

Example 3: DRAM read signal by charge sharing

numerical

A DRAM cell has Cs=30 fF and its bit line has CBL=270 fF. VDD=1.2 V and the bit line is precharged to 0.6 V. Find the bit-line voltage change when the cell stores a 1 (1.2 V).

  1. Step 1: Apply charge conservation.

    Try it on paper first.

Example 4: Refresh interval and overhead

numerical

A DRAM has 8192 rows and must refresh every row within 64 ms. Each row refresh takes 50 ns. With distributed refresh, find the interval between row refreshes and the fraction of time spent refreshing.

  1. Step 1: Find the interval.

    Try it on paper first.

Previous year questions

1 official GATE EC question on this topic, newest first.

Topic test

9 questions: up to 1 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-29. Spotted a mistake? Use Report an issue on any question, or contact us.