The Inputs of a Half Adder are A = 1, B = 1. The outputs are conn
The Inputs of a Half Adder are A = 1, B = 1. The outputs are connected to the select lines of a 4 : 1 Multiplexer. What will be the output?
A. Y = I<sub style="">2</sub>
B. Y = I<sub style="">0</sub>
C. Y = I<sub style="">3</sub>
D. Y = I<sub style="">1</sub>
Please scroll down to see the correct answer and solution guide.
Right Answer is: D
SOLUTION
Concept:
Half Adder:
Half Adder is an arithmetic combinational circuit that adds two numbers and produces a sum bit (s) and carry bit (C) as the output.
If A and B are the input bits, then sum bit (s) is the XOR of A and B and the carry bit (C) will be the AND of A and B.
Truth table of Half Adder is given below
Input |
Output |
||
A |
B |
S |
C |
0 |
0 |
0 |
0 |
0 |
1 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
1 |
0 |
1 |
S = A ⊙ B
C = A ⋅ B
The half adder can odd only two input bits (A and B) and has nothing to do with the carry if there is any input.
So if the input to a half adder have a carry, then it will be neglected it and add only the A and B bits, which means the binary addition process is not complete and that’s why it is called a half adder.
Multiplexer (MUX):
Multiplexer (MUX) is a combinational logic circuit designed to switch one of several input lives through a single common output line by application of control signal.
Output expression of 4:1 Mux is
Q = a̅ b̅ A + a̅ b B + a b̅ C + a b D
Calculation:
Given:
A = 1 ; B = 1 ; S0 = lower bit
S1 = upper bit
We know output of half Adder
S = A ⊙ B
C = A ⋅ B
∴ S = 1 ⊙ 1 = 0
C = 1.1 = 1
EXOR
A |
B |
Y |
0 |
0 |
0 |
0 |
1 |
1 |
1 |
0 |
1 |
1 |
1 |
0 |
AND
A |
B |
Y |
0 |
0 |
0 |
0 |
1 |
0 |
1 |
0 |
0 |
1 |
1 |
1 |
Now, output of MUX is
Y = S̅1 S̅0 I0 + S̅1 S0 I1 + S1 S̅0 I2 + S1 S0 I3
Where
S1 = S = 0
S0 = C = 1
∴ Y = 0̅.1̅ . I0 + 0̅ . 1 . I1 + 0.1̅.I2 + 0.1.I3
Y = 1.0.I0 + 1.1.I1 + 0.0.I2 + 0.1.I3
Y = 0 + I1 + 0 + 0
Y = I1
NOTE:
If someone took ‘S0’ as upper bit and ‘S1’ as lower bit, it would display wrong answer. As:
Y = 1̅.0̅.I0 + 1̅.0̅.I1 + 1.0̅.I2 + 1.0.I3
Y = 0.1.I0 + 0.0.I1 + 1.1.I2 + 1.0.I3
Y = 0 + 0 + I2 + 0
Y = I2