GATE / CS ARCHIVE

GATE CSE 1996 / QUESTION 5

Select four Boolean functions

Digital Logic · Combinational Circuits · Full GATE CSE 1996 paper

GATE 1996, Q5 Descriptive
Report issue

Combinational Circuits

Question 5, GATE 1996: Inputs A,B and control bits C1,C0 specify F: 00→NOT(A OR B), 01→A OR B, 10→A XOR B, 11→A AND B. Implement using one 4:1 multiplexer, one two-input OR, one XOR, one AND, and one inverter. This is the complete GFG table; GateForum omits the last row.
Tap to enlarge
Answer & solution

Answer: MUX selects I0=NOT(A+B), I1=A+B, I2=A XOR B, I3=AB with selectors C1,C0. (no official key was published)

First compute P=A OR B using the single OR gate. Fan out P to the multiplexer input I1 and to the inverter; connect the inverter output NOT(P) to I0. Compute X=A XOR B with the XOR gate and connect it to I2. Compute G=A AND B with the AND gate and connect it to I3. Use C1 as the high-order select bit and C0 as the low-order select bit. The multiplexer output is F.

Text circuit: A,B→OR→P→I1; P→NOT→I0; A,B→XOR→I2; A,B→AND→I3; (C1,C0)→MUX select; MUX→F. A common wire may drive multiple inputs, so sharing the OR result does not require another gate.

The four select codes choose I0,I1,I2,I3 respectively, directly reproducing the complete table. Algebraically F=(NOT C1)(NOT C0)NOT(P)+(NOT C1)C0P+C1(NOT C0)X+C1C0G. These outer products describe the multiplexer and do not demand extra physical gates.

Original paper, page 7