Question

In the following truth table, V=1V = 1 if and only if the input is valid.

What function does the truth table represent?

D0D1D2D3X0X1V
0000xx0
1000001
x100011
xx10101
xxx1111
Choose one option
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 D0,D1,D2,D3D_0, D_1, D_2, D_3 are 0, the valid output V=0V = 0 (no valid active input).
  • When D3=1D_3 = 1 (highest priority), the output is (X1,X0)=(1,1)(X_1, X_0) = (1, 1), regardless of D2,D1,D0D_2, D_1, D_0.
  • When D3=0D_3 = 0 and D2=1D_2 = 1, the output is (X1,X0)=(1,0)(X_1, X_0) = (1, 0), regardless of D1,D0D_1, D_0.
  • When D3=D2=0D_3 = D_2 = 0 and D1=1D_1 = 1, the output is (X1,X0)=(0,1)(X_1, X_0) = (0, 1), regardless of D0D_0.
  • When D3=D2=D1=0D_3 = D_2 = D_1 = 0 and D0=1D_0 = 1, the output is (X1,X0)=(0,0)(X_1, X_0) = (0, 0).

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 VV.

Final answer

Option (A)

Common trap

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.