4 Bit Adder Subtractor
4 Bit Adder Subtractor
2021 – 22
Aim
To study and verify the truth table of Half Adder, Full Adder, 4 Bit-Adder, Subtractor
Apparatus (Virtual)
TINA simulator
Theory
In Digital Circuits, A Binary Adder-
Subtractor is one which is capable of
both addition and subtraction of binary
numbers in one circuit itself. The
operation being performed depends
upon the binary value the control signal
holds. It is one of the components of
the ALU (Arithmetic Logic Unit).
Principle
In the circuit we set mode control such that when the mode control is zero, addition is
performed and subtraction is performed when the mode control is one. We use XOR gates to feed
the input so that when mode control is one, the complement of each of the four bits are fed and
when mode control is zero, the input as such is fed.
In 1’s complement subtraction, the complement of the subtraction is taken and added with the
other number. The final carry is then added to the LSB of the result. In case there is no carry, the
complement of the result is taken and this will be a negative number. This indicates that,
subtraction is performed from a smaller number.
1.1 Half Adder
Circuit Diagram
0 0 0 0 0 0 0.2 0.2
0 1 1 0 0 5 3.4 0.2
1 0 1 0 5 0 3.4 0.2
1 1 0 1 5 5 0.2 3.4
Theoretical Observed
Case 1
Case 2
Case 3
Case 4
1.2 Full Adder
Circuit Diagram
Theoretical
A B C SUM CARRY
0 0 0 0 0
0 1 1 1 0
1 0 0 1 0
1 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
Observed:
Case 1
Case 2
Case 3
Case 4
Case 5
Case 6
Case 7
Case 8
1.3 4 Bit Adder
Circuit Diagram
Case 2
Case 3
Case 4
Case 5
Case 6
1.4 4 Bit Subtractor
Circuit diagram
Case 2
Case 3
Case 4
Case 5
Case 6
Result:
• The observed truth tables of Half Adder and Full Adder match the theoretical
values and hence are verified.
• The 4-bit Adder and Subtractor can be used to add or subtract any two 4-bit binary
numbers.