GATE / CS ARCHIVE

SIMILAR QUESTIONS / DIGITAL LOGIC

Relate select bits to selectable words

3 questions solved the same way, newest first. Back to Digital Logic

How these are solved

Use 2^k alternatives for k selector/address bits; invert with ceil(log2 N), and when requested count both decoder inputs and outputs. Capacity arithmetic for mux/decoder addressing; hierarchical construction counts and semantic block identification excluded.

1 mark · NAT
Report issue

Combinational Circuits

Question 19, GATE 2020: A multiplexer selects exactly one of 32 registers to transfer to an accumulator. What is the minimum number of binary select lines?
Tap to enlarge
Answer & solution

Official answer: 5

Worked explanation

With s binary selection inputs, a multiplexer can encode at most 2s choices. Four lines provide only 16 choices, fewer than the 32 register inputs. Five lines provide 32, exactly enough. This counts control lines; the register word width determines the data-path width and is irrelevant to this count. The accumulator is the common destination, not a 33rd selectable source.

Derivation and answer

Selecting one of 32 registers requires 32 distinct selector patterns. The minimum binary selector width is ceil(log₂32)=5.

Original paper, page 8 · Answer key

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

1 mark · MCQ
Report issue

Multiplexer select width

Combinational Circuits

Question 1.14, GATE 1998: A multiplexer has four select bits. Is it 4:1, 2:1, 16:1, or 8:1?
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Four binary select inputs encode 24=16 distinct combinations. A conventional fully populated multiplexer uses each combination to select one data input and forwards it to one output. Thus it is 16:1, C. The select width is logarithmic in the number of data inputs; it is not itself the input count. A partially populated design could leave codes unused, but that is not the usual mux designation.

Original paper, page 2