GATE CS 2024 Set 1 | Question 64

NAT · 2 marks

Consider a digital logic circuit consisting of three 2-to-1 multiplexers M1, M2, and M3 as shown below. X1 and X2 are inputs of M1. X3 and X4 are inputs of M2. A, B, and C are select lines of M1, M2, and M3, respectively.

Three 2-to-1 multiplexers. M1 takes X1 on input 0 and X2 on input 1, with select S1 driven by A and output Q1; M2 takes X3 on input 0 and X4 on input 1, with select S2 driven by B and output Q2; Q1 feeds input 0 and Q2 feeds input 1 of M3, whose select S3 is driven by C and whose output is Y.

For an instance of inputs X1=1, X2=1, X3=0, and X4=0, the number of combinations of A, B, C that give the output Y=1 is _________

Answer

4

Explanation

A 2-to-1 multiplexer passes its input 0 when the select line is 0 and its input 1 when the select line is 1.

  • M1 chooses between X1 = 1 and X2 = 1, so Q1 = 1 whatever A is.
  • M2 chooses between X3 = 0 and X4 = 0, so Q2 = 0 whatever B is.
  • M3 passes Q1 when C = 0 and Q2 when C = 1, so \(Y = \overline{C}\).

Y = 1 exactly when C = 0, while A and B can take any values: \(2 \times 2 = 4\) of the 8 combinations.

Answer: 4