Skip to content
Official PYQ · 2013

GATE CS 2013 Q5 — Combinational Circuits

Explain with AI

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

InputsOutputsD0D1D2D300001000x100xx10xxx1X0X1Vxx0001011101111\begin{array}{cc} \textbf{Inputs}&\textbf{Outputs}\\ \begin{array}{|c|c|c|c|} \hline {D_0}&D_1&D_2&D_3 \\ \hline 0&0&0&0 \\ \hline 1&0&0&0 \\ \hline \text{x}&1&0&0 \\ \hline \text{x}&\text{x}&1&0 \\ \hline \text{x}&\text{x}&\text{x}&1 \\ \hline \end{array}& \begin{array}{|c|c|c|} \hline X_0&X_1&V \\ \hline \text{x}&\text{x}&0\\ \hline 0&0&1\\ \hline 0&1&1\\ \hline 1&0&1\\ \hline 1&1&1\\ \hline \end{array} \\ \end{array}

What function does the truth table represent?

Choose one option
View worked solution

Answer: A

The given truth table represents a Priority Encoder (specifically, a 4-to-2 priority encoder).

Analysis of the Truth Table:

  • Inputs: D0,D1,D2,D3D_0, D_1, D_2, D_3
  • Outputs: X1,X0X_1, X_0 (binary representation of the active input index) and VV (valid bit indicator).

Let us observe the priority behavior from the rows of the table:

  1. If D3=1D_3 = 1, the output is X1X0=11X_1 X_0 = 11 (binary for 3) regardless of the states of D2,D1,D0D_2, D_1, D_0 (indicated by don't cares 'x'). This shows D3D_3 has the highest priority.
  2. If D3=0D_3 = 0 and D2=1D_2 = 1, the output is X1X0=10X_1 X_0 = 10 (binary for 2) regardless of D1,D0D_1, D_0.
  3. If D3=0,D2=0D_3 = 0, D_2 = 0 and D1=1D_1 = 1, the output is X1X0=01X_1 X_0 = 01 (binary for 1) regardless of D0D_0.
  4. If D3=0,D2=0,D1=0D_3 = 0, D_2 = 0, D_1 = 0 and D0=1D_0 = 1, the output is X1X0=00X_1 X_0 = 00 (binary for 0).
  5. If all inputs are 00 (00000000), the valid bit V=0V = 0, indicating that no input is active. For all other cases, V=1V = 1.

Since the circuit encodes the index of the active input line with the highest priority into a binary code, it is a Priority Encoder.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Combinational Circuits questions