IAE Academy

GATE 2020 CS Q.20: solution and answer

GATE 2020 · CSQ.20 · 1 mark · NAT

If there are m input lines and n output lines for a decoder that is used to uniquely address a byte addressable 1 KB RAM, then the minimum value of m + n is ____.

See the question in the paper

Answer and solution

ANSWER

m + n = 1034

Official answer: 1034Source: Official answer key, GATE 2020 CS (IIT Delhi)

  1. A byte-addressable 1 KB RAM has bytes, each requiring a unique address.

  2. The decoder must provide exactly one output line per addressable byte, so .

  3. For a decoder, the number of input (address) lines m must satisfy so that every output line can be uniquely selected.

  4. The minimum m occurs when , i.e., .

  5. Minimum value of .

KEY IDEA

A decoder that uniquely addresses every byte of a 1 KB RAM needs one output line per byte and enough input (address) lines to select among all outputs of a full binary decoder ().

WATCH OUT FOR

Confusing "byte addressable 1 KB" with the number of address bits alone (giving m + m = 20) or forgetting that n must equal the full 1024 output lines (one per addressable byte), not some smaller count.

From the GATE 2020 CS paper. Every question of this paper · Download the full paper · All 22 Memory & cache questions, with notes

More Memory & cache questions