Problem 4Design
a half-adder circuit using just five 2-input NAND gates.
The definition
of a half-adder is this: Given two inputs A and B, the outputs are:
Sum
= A XOR B
Carry = AB
Answer:
A XOR B can
also be written AB' + A'B.
The following
figure shows the half-adder built with five NAND gates.

We shall prove that
the above circuit is indeed a half adder:
The
output of the gate 1 is (AB)'.
The output
of gate 2 is ((AB)')' = AB, which is the required Carry.
The output
of gate 3 is ((AB)'A)' = (AB')'
The output
of gate 4 is ((AB)'B)' = (A'B)'
The output
of gate 5 is ((AB')'(A'B)')' = AB' + A'B,
which is the required Sum.
Contributor:
Naveen P N
4-01
NEXT Q&A
|