Question
In the following truth table, if and only if the input is valid.
What function does the truth table represent?
| D0 | D1 | D2 | D3 | X0 | X1 | V |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | x | x | 0 |
| 1 | 0 | 0 | 0 | 0 | 0 | 1 |
| x | 1 | 0 | 0 | 0 | 1 | 1 |
| x | x | 1 | 0 | 1 | 0 | 1 |
| x | x | x | 1 | 1 | 1 | 1 |
Official answer and solution
- Official answer
- A
- From
- Official GATE 2013 answer key
Solution
Analyze the input-output mapping in the truth table and identify the digital logic circuit it specifies.
Examine the truth table:
- When all inputs are 0, the valid output (no valid active input).
- When (highest priority), the output is , regardless of .
- When and , the output is , regardless of .
- When and , the output is , regardless of .
- When and , the output is .
This behavior, where the output code reflects the highest-indexed active input line and don't-care conditions apply to lower lines, precisely defines a 4-to-2 Priority Encoder with a valid bit .
Option (A)
Confusing a priority encoder (multiple inputs mapped to binary code based on priority) with a standard decoder or multiplexer.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2013 Computer Science and Information Technology (CS)
- Question
- 5 of 65, printed as CS Q.5
- 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.