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 ____.
GATE 2020 CS Q.20: solution and answer
Answer and solution
ANSWER
m + n = 1034
Official answer: 1034Source: Official answer key, GATE 2020 CS (IIT Delhi)
A byte-addressable 1 KB RAM has bytes, each requiring a unique address.
The decoder must provide exactly one output line per addressable byte, so .
For a decoder, the number of input (address) lines m must satisfy so that every output line can be uniquely selected.
The minimum m occurs when , i.e., .
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
- GATE 2020 CS Q.30 · MCQ · 2 marksA computer system with a word length of 32 bits has a 16 MB byte-addressable main memory and a 64 KB, 4-way…
- GATE 2018 CS Q.23 · NAT · 1 markA 32-bit wide main memory unit with a capacity of 1 GB is built using 256M × 4-bit DRAM chips.
- GATE 2018 CS Q.34 · MCQ · 2 marksThe size of the physical address space of a processor is 2^P bytes. The word length is 2^W bytes.
- GATE 2026 CS1 Q.38 · MCQ · 2 marksThe size of the physical address space of a processor is 2^32 bytes.
