If only one multiplexer and one inverter are allowed to be used t

If only one multiplexer and one inverter are allowed to be used t
| If only one multiplexer and one inverter are allowed to be used to implement any Boolean function of n variables, what is the maximum size of the multiplexer needed?

A. 2<sup style="">n-2</sup> line to 1 line

B. 2<sup style="">n-1</sup> line to 1 line

C. 2<sup style="">n + 1</sup> line to 1 line

D. 2<sup style="">n + 2</sup> line to 1 line

Please scroll down to see the correct answer and solution guide.

Right Answer is: B

SOLUTION

We have one MUX and one inverter, then we can implement any Boolean function of n variables with 2n-1 line to 1 line MUX.

Explanation:

Suppose we have 2n-1:1 MUX, then we can implement Boolean function of (n – 1) variables

Example Let n = 3

n – 1 = 2

f(A, B) → Boolean function of 2 variables

Total number of Boolean function = 22(2) = 24 = 16

A

B

f1

f2

f3

f4

……..

f16

0

0

All these functions will attain a value 0 or 1, depending upon the values of A and B and the function itself

0

1

1

0

1

1

 

We will provide AB to select lines S1 and S0 and input lines are fed with the help of Vcc and ground to implement any of the 16 functions mentioned above.

So, with the help of 2n-1 : 1 MUX, we have implemented (n – 1) variables functions easily without any inverter.

But, now consider that we are provided with 2n-1 : 1 MUX and one inverter. Now we can implement functions of n-variables as well.

Example:

Let n = 3

So, we have 22 : 1 or 4 : 1 MUX and one inverter.

Now consider a function of n = 3 variables.

f(A, B, C) = ∑ m (1, 4, 5, 6), let us implement this function

A

B

C

f

0

0

0

0

0

0

1

1

0

1

0

0

0

1

1

0

1

0

0

1

1

0

1

1

1

1

0

1

1

1

1

0

 

Now 4: 1 MUX can accept only 4 input and 2 select lines. Let the 2 select lines be A and B.

We can write our truth table as follows:

A

B

C

f

0

0

0

C

0

0

1

0

1

0

0

 

0

1

1

1

0

0

1

1

0

1

1

1

0

1

1

1

 

S1

S0

F

A

B

0

0

C

0

1

0

1

0

1

1

1

 

Now, here A B is used as select lines and the input is provided with C to MUX, and that C could be in its true form, or complemented form, hence an inverter is required.

Summary:

1) If we have 2n : 1 MUX, we can implement all n number of variables functions.

2) If we have 2n : 1 MUX along with an inverter, we can implement all n and n + 1 number of variables functions.