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 -to-1 multiplexer has data inputs and selects exactly one input line to forward to the output line.
To distinguish among distinct inputs, the number of select lines must satisfy:
Here, registers:
Therefore, the minimum number of select lines needed is 5.
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.