GATE / CS ARCHIVE

GATE CSE 1992 / QUESTION 4(b)

Priority encoder with multiplexers

Digital Logic · Combinational Circuits · Full GATE CSE 1992 paper

GATE 1992, Q4(b) Descriptive
Report issue

Combinational Circuits

Question 4(b), GATE 1992: Design a three-input priority encoder with A>B>C using 4:1 multiplexers. Output X1X0 identifies the highest-priority active input, and is 00 if none is active.
Tap to enlarge
Answer & solution

Answer: Choose A→11, B→10, C→01. Use two 4:1 MUXes, selects A,B; X1 inputs (0,1,1,1), X0 inputs (C,0,1,1). (no official key was published)

The statement does not assign binary labels to A, B, C, so explicitly choose A→11, B→10 and C→01, reserving 00 for no request. Any distinct nonzero assignment is valid if stated and implemented consistently.

The compressed truth table is:
A B C | X1 X0
1 – – | 1 1
0 1 – | 1 0
0 0 1 | 0 1
0 0 0 | 0 0
A higher-priority 1 hides all lower-priority inputs. The resulting functions are X1=A∨B and X0=A∨(¬B∧C).

For both 4:1 multiplexers use select S1=A, S0=B, with D0,D1,D2,D3 selected by 00,01,10,11 respectively. Evaluate each function at these four selector values:

                    D0 D1 D2 D3
MUX for output X1:   0  1  1  1
MUX for output X0:   C  0  1  1

Wiring diagram

A,B ──selects──>[4:1 MUX, data 0,1,1,1]──>X1
A,B ──selects──>[4:1 MUX, data C,0,1,1]──>X0

Tie 0 and 1 inputs to valid logic rails and enable both multiplexers. No inverter is needed in this realization. For example A=0,B=1,C=1 selects D1 and gives 10, correctly ignoring C. A=1 selects either D2 or D3 and always gives 11.

Original paper, page 5