Question

A multiplexer is placed between a group of 32 registers and an accumulator to regulate data movement such that at any given point in time the content of only one register will move to the accumulator. The minimum number of select lines needed for the multiplexer is _______.

Official answer and solution
Official answer
5
From
Official GATE 2020 answer key

Solution

Use the relationship between input lines and select lines for an N-to-1 multiplexer.

An NN-to-1 multiplexer has NN data inputs and selects exactly one input line to forward to the output line.

To distinguish among NN distinct inputs, the number of select lines kk must satisfy:

2k≥N2^k \ge N

Here, N=32N = 32 registers:

2k≥32  ⟹  k=log⁡232=52^k \ge 32 \implies k = \log_2 32 = 5

Therefore, the minimum number of select lines needed is 5.

Final answer

5

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2020 Computer Science and Information Technology (CS)
Question
29 of 65, printed as CS Q.19
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.