in Digital Logic retagged by
459 views
4 votes
4 votes
You are asked to implement the following four functions with half-adders:
$$
\begin{aligned}
& \mathrm{f}_1=A \oplus B \oplus C \\
& \mathrm{f}_2=A^{\prime} B C+A B^{\prime} C \\
& \mathrm{f}_3=A B C^{\prime}+\left(A^{\prime}+B^{\prime}\right) C \\
& \mathrm{f}_4=A B C
\end{aligned}$$
What is the minimum number of half-adders required to implement all four functions simultaneously? (You are not allowed to use any other logic element but half-adder)
in Digital Logic retagged by
459 views

2 Answers

14 votes
14 votes
Best answer

Answer : 3 (minimum Half adders required) 



Half adder contains 2 outputs ($Sum, Carry$) realized as $ Sum = A \bigoplus B $ and $ Carry = A  . B $


$f1$ and  $f4$ can be realized directly as providing C as another input (hence already consumes 3 Half adders)

now $f2$ and $f3$ should be in terms of XOR and AND‘s only, to covert we can expand A $\bigoplus$ B as

        $A \bigoplus B  = A’ .B + B’ . A$ 
 

now,

$f2  = A’.B.C + A.B’.C$


       $= (A’.B + A.B’). C $


       $= (A \bigoplus B  ).C$

which is one of the outputs of the already implemented Half adder (refer to diagram).


similarly,


$f3  = A.B.C’ + (A’+B’). C $


     $= (A.B). C’ + (A.B)’.C $


     $ = ((A.B) \bigoplus C )$

which is one of the other outputs of the already implemented half-adder (refer to diagram).

Implementation :

edited by

1 comment

Sum = A XOR B , Carry = A.B
1
1
2 votes
2 votes

Circuit of a half-adder:

$3$ half-adders are enough to implement all $3$ functions simultaneously.

edited by
Answer:

Related questions