GATE / CS ARCHIVE

SIMILAR QUESTIONS / DIGITAL LOGIC

Synthesize functions using mux cofactors

5 questions solved the same way, newest first. Back to Digital Logic

How these are solved

Form the desired truth table and cofactor it on the designated selector bits; connect each data pin to the corresponding constant, remaining variable, complement or permitted gate output.

2 marks · MCQ
Report issue

Combinational Circuits

Question 44, GATE 2023: Two 4:1 muxes M1,M2 use select bits (S1,S0)=(A,C) and inputs X0..X3,X4..X7. A final mux selects M1 when B=0 and M2 when B=1. Set all Xi to constants to implement F=NOT A+(NOT A)(NOT C)+A(NOT B)C. Find the eight constants in order.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Both four-input muxes use select bits(A, C), while the final mux selects M1 for B=0 and M2 for B=1. For B=0, evaluating at AC=00, 01, 10, 11 gives 1, 1, 0, 1; for B=1 it gives 1, 1, 0, 0. Therefore(X0,…, X7)=(1, 1, 0, 1, 1, 1, 0, 0), option C.

Teaching detail. The mux address inside each 4:1 block is 2A+C. Thus each Xi is simply the desired output for one combination of A,C, with the block chosen by B. When A=0, the NOT A term forces output 1 irrespective of B,C, giving X0=X1=X4=X5=1. When A=1, the function reduces to (NOT B)C: it is zero for C=0 in both blocks, one only in the B=0,C=1 position. This independently obtains X2=X6=X7=0 and X3=1.

Original paper, page 46 · Answer key

1 mark · MCQ
Report issue

Combinational Circuits

Question 5, GATE 2021: Implement f(x,y,z)=Σm(0,1,3,4,5,6), with x the most significant minterm bit, using a 4:1 mux with selectors S1=y,S0=z. Candidate input tuples (I0,I1,I2,I3): A (1,1,x,¬x); B (x,1,¬x,1); C (1,1,¬x,x); D (¬x,1,x,1).
Tap to enlarge
Your answer
Answer & solution

Official answer: A

With selectors y, z, the paired minterms for yz=00 and 01 both produce 1 for either x. For yz=10 only x=1 is included, so input 2 is x. For yz=11 only x=0 is included, so input 3 is ¬x. Therefore the four mux inputs are 1, 1, x,¬x, exactly A.

List truth values in selector groups: yz=00 selects minterms 0,4; yz=01 selects 1,5; yz=10 selects 2,6; yz=11 selects 3,7. Their outputs versus x are (1,1),(1,1),(0,1),(1,0). This is Shannon expansion with two selection variables. A gate equivalent is ¬y∨(x∧¬z)∨(¬x∧z), with redundant coverage allowed.

Original paper, page 57 · Answer key

2 marks · MCQ
Report issue

Realizing OR with a multiplexer

Combinational Circuits

Question 60, GATE 2004: A two-input mux selects data input X when control Z=0, and Y when Z=1. Which connections realize f=T+R without extra hardware?
Options:
(A) X=R,Y=1,Z=T
(B) X=T,Y=R,Z=T
(C) X=T,Y=R,Z=0
(D) X=R,Y=0,Z=T
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. A two-input mux computes Z′X+ZY. Set X=R,Y=1,Z=T: output=T′R+T=T+R by absorption.

2. When T=0 it passes R; when T=1 it outputs 1. These are precisely the two cases of OR, with no additional gate.

3. Teaching check: Mux select is a Shannon expansion: f=Z′X+ZY. Taking Z=T splits OR into f|T=0=R and f|T=1=1. This supplies the data connections directly, without trying every arbitrary wiring pattern.

Original paper, page 9

Descriptive
Report issue

Select four Boolean functions

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

Descriptive
Report issue

Priority encoder with multiplexers

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