Skip to content
BetterDL

Depth expansion

Also called: address expansion, word-capacity expansion, stacking memory chips, adding more words

Combining memory chips so each covers its own block of addresses, with a decoder on the high address bits driving the chip selects. It adds words, not bits.

Depth expansion gives you more words. Each chip owns its own block of addresses:

  • The low address bits, as many as one chip needs, go to every chip. They pick the word inside a chip.
  • The high address bits go to a decoder. Each decoder output drives one chip select, so the high bits pick which chip.
  • The data lines are shared. Only the selected chip drives them; the others sit at high impedance.

Chips needed = wanted words ÷ words per chip.

Decoder bits = system address bits − chip address bits = log₂(number of chips).

Each chip's block starts at a multiple of the chip size. To find which chip holds an address, write it in binary: the top bits are the chip number, and the remaining low bits are the address inside that chip (the offset). Equivalently, chip = address ÷ chip size and offset = the remainder.

This is the decoder expansion idea applied to memory: the decoder outputs are one hot, so exactly one chip ever answers.

A15A14CS0CS1CS2CS3

Worked example

Example

16K × 8 from four 4K × 8 chips

Lay out the address bits, then locate address 3C41₁₆.

  1. 1.

    System: 16K = 2¹⁴ → A13–A0. Chip: 4K = 2¹² → A11–A0 to every chip.

  2. 2.

    Decoder: 14 − 12 = 2 bits, A13 A12. Chip 0: 0000₁₆–0FFF₁₆, chip 1: 1000₁₆–1FFF₁₆, chip 2: 2000₁₆–2FFF₁₆, chip 3: 3000₁₆–3FFF₁₆.

  3. 3.

    3C41₁₆ = 11 1100 0100 0001 (14 bits). A13 A12 = 11 → chip 3.

  4. 4.

    Offset: the low 12 bits, 1100 0100 0001 = C41₁₆.

  5. 5.

    Check: 3000₁₆ + C41₁₆ = 3C41₁₆. ✓

Common mistakes

  • Decoding the lowest address bits. Then consecutive addresses hop between chips, and no chip holds a continuous block.

  • Thinking the data bus gets wider. Depth expansion adds words; the word size is unchanged.

  • Forgetting the decoder. Without it, every chip would respond to every address and fight over the bus.

Practice Depth expansion

Interactive questions with instant feedback and a worked solution for every wrong answer.

Learn it step by step

Depth expansion is taught in Memory.