GATE / CS ARCHIVE

GATE CSE 2020 / QUESTION 20

GATE CSE 2020 Q20

Digital Logic · Combinational Circuits · Full GATE CSE 2020 paper

GATE 2020, Q20 1 mark · NAT
Report issue

Combinational Circuits

Question 20, GATE 2020: A decoder with m input lines and n output lines uniquely addresses a byte-addressable 1 KB RAM. Find the minimum m+n.
Tap to enlarge
Answer & solution

Official answer: 1034

Worked explanation

Byte addressability means each byte is a separately selected location. Under the binary memory-size convention, 1 KB=210 bytes, so there must be 1024 distinct outputs in the one-hot address decoder. Its m input bits must encode all 1024 choices, requiring m=10. Thus n=1024 and m+n=1034. Do not confuse the RAM’s 8-bit data width with the number of decoder outputs: those outputs select addresses, not individual data bits.

Derivation and answer

A byte-addressable 1KB memory has 1024 distinct byte locations. A one-hot decoder needs 1024 output lines and log₂1024=10 address inputs. Thus m+n=10+1024=1034, using the conventional 1KB=1024 bytes.

Original paper, page 8 · Answer key