Skip to content
BetterDL

Address decoder

Also called: address decoding, memory address decoder, word decoder

The decoder that turns a memory address into one active line: inside a chip it selects one word line; in a system it selects one chip.

An address is a binary number, but the memory needs to switch on one particular row of cells. That conversion is exactly what a decoder does, and in memory it's called the address decoder.

Inside a chip. A memory with k address bits contains a k-to-2ᵏ decoder. Each output is a word line running along one row of cells. For any address, exactly one word line is 1, and only that row connects to the data lines. A 32-word memory has a 5-to-32 decoder.

Word line Wᵢ is the minterm of the address bits for i. With 2 address bits:

  • W0 = , W1 = , W2 = , W3 =

In a system. The same idea, one level up: a decoder on the high address bits produces chip selects, so exactly one chip responds (depth expansion).

Very large memories avoid one giant decoder by arranging cells in a grid and decoding rows and columns separately (two dimensional decoding).

A ROM is an address decoder plus an OR gate per data bit, with the stored 1s as connections.

A1A0W0W1W2W3

Worked examples

Example

Activating word line 2

The diagram is the decoder of a 4-word memory (A1 is the MSB).

  1. 1.

    W2 = , so it needs A1 = 1, A0 = 0.

  2. 2.

    Address 10 = 2. W2 = 1 · 1 = 1.

  3. 3.

    W0, W1, W3 each have a literal that is 0, so only row 2 is connected.

Example

Sizing the decoder

A memory holds 256 words. How many inputs and outputs does its address decoder have?

  1. 1.

    One output per word: 256 outputs.

  2. 2.

    256 = 2⁸, so 8 inputs: the 8 address bits.

Common mistakes

  • Giving the decoder one input per word. It has one output per word; its inputs are the address bits.

  • Expecting several word lines to be active. With the decoder enabled, exactly one is.

  • Forgetting that the address decoder is just a normal decoder. Every decoder fact carries over.

Practice Address decoder

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

Learn it step by step

Address decoder is taught in Memory.