GATE / CS ARCHIVE

GATE CSE 2013 / QUESTION 5

Priority encoder truth table

Digital Logic · Combinational Circuits · Full GATE CSE 2013 paper

GATE 2013, Q5 1 mark · MCQ
Report issue

Combinational Circuits

Question 5, GATE 2013: A circuit has inputs D0, D1, D2, D3 and outputs X0, X1, V. For0000 it outputs don’t-care, don’t-care, 0; for 1000 it outputs 0, 0, 1; for x100 it outputs 0, 1, 1; for xx10 it outputs 1, 0, 1; for xxx1 it outputs 1, 1, 1 (input order D0, D1, D2, D3). Identify A priority encoder; B decoder; C multiplexer; D demultiplexer.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

The table outputs the binary index of the highest asserted input, with D3 taking priority over D2, then D1 and D0. Its validity bit distinguishes no active input from input D0. Thus it is a priority encoder, A.

Read the table from highest priority downward. If D3=1, the other inputs are irrelevant and the code is 11. Otherwise D2=1 selects 10; otherwise D1=1 selects 01; otherwise D0=1 selects 00. This is encoding the index of the highest asserted request. A decoder expands a binary code to selected outputs, the reverse direction. A multiplexer selects a data input using separate select lines, not this priority rule. The validity bit is needed because code 00 otherwise cannot distinguish “D0 asserted” from “no input asserted.”

Original paper, page 2 · Answer key