American International University-Bangladesh (AIUB) Faculty of Engineering (EEE)
American International University-Bangladesh (AIUB) Faculty of Engineering (EEE)
American International University-Bangladesh (AIUB) Faculty of Engineering (EEE)
Experiment No: 3
Experiment Name: Study of Universal Gates
Title: Design of a Half, Full and Parallel adder and subtractor circuits.
Introduction:
Adders and subtractors are digital circuits which are capable of adding and subtracting
binary digits. They are the most important part in the design of Arithmetic Logic Unit (ALU).
In this experiment different types of adders and subtractors will be designed and their
behavior will be observed.
Abstract:
The purpose of this lab experiment is to Design and verify half and full adder and subtractor
circuits. Also, with the help of truth table the verification of the simulation and practical of half
and full adder and subtractor circuits is done. This experiment helped us to understand how the
circuits for adding and subtracting works.
A
S
B
A
S Cin
B
C
C
Half Adder
Full Adder
The Boolean expression for half and full adder is given below –
Half adder –
S=A B
C = AB
Full adder –
S = A B Cin
Cout = Cin (A B) + AB
A B S C
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
A B Cin S C
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
A subtractor is also a combinational circuit that calculates the difference of two binary digits.
This is done by taking the two’s complement of the subtrahend and then adding it with the
minuend. So the subtractor circuit can be designed with the help of adder circuits. Like
adders, there are two types of subtractor circuits, half subtractor and full subtractor.
A half subtractor performs a subtraction between two single bits and produces their difference
and another output called borrow. A full subtractor performs a subtraction two single bits,
considering a borrow bit. It outputs the difference of the subtraction and a borrow bit.
The Boolean expressions for half and full subtractor are given below –
Half subtractor –
D=X Y
B = X’Y
Full subtractor –
D = X Y Bin
Bout = X’Y + X’Bin + YBin
X Y D B
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
X Y Bin D B
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
Apparatus:
Using Fig 3 we found that the half adder can add values of one digit (0 to 9) it is also shown
in the truth table that if both A and B are 1 sum(S) = 0 and carry(C) = 1. Now coming to 2-
digit addition (01-99) it can be done using full adder so, if both A, B and Cin are 1 sum(S) =
1 and carry(C) = 1, simulation is shown in Fig 4.
Now coming to Subtractors, we found using the simulation in Fig 5 that the half subtractors
can subtract values of ones (1 to 9) it is also shown in the truth table that if A=1 and B= 0, the
Difference(D) =1 and Borrow(B) = 1. Now coming to 2-digit subtraction (00-99) it can be
done using full subtractor so, if A= 1, B and Bin= 0 Difference(D) = 1 and Borrow(B) = 0,
the simulation is shown in Fig 4.
Thus, by analyzing theoretical and practical data it can be said that both the data is same and
there are no discrepancies. Pin connections for all the ICs were studied. All the connections
were carefully made to avoid errors. The voltage supply was switched off during the
implementation. There was some problem during the experiment due to a faulty IC which
was replaced by a good one instantly. Finally, the experiment was successful both practically
comparing the value we got from the truth table and from what we found in the simulation.
Reference:
http://www.circuitstoday.com/half-adder-and-full-adder