Experiement 5
Experiement 5
Experiement 5
THEORY:
A binary subtractor is a circuit that will perform subtraction of respective binary bits in
the arithmetic logic unit of the computer. Half subtractor and full subtractor and two main
circuits used logical subtraction. Before learning Binary subtractor circuits it is necessary to
understand regular binary subtraction.
BINARY SUBTRACTION:
The basics of binary subtraction are as follows: -
1–0=1
1–1=0
0–0=0
0 – 1 = 1 [In this case there will be a borrow bit]
1. HALF SUBTRACTROR:
A 2-bit binary subtractor is called a Half Subtractor. This circuit will have two input bits
[A & B respectively]. There are two output bits present difference and borrow. Three logic
gates are used to construct this circuit namely: Ex-Or gate, Not gate and And gate.
1.1 TRUTH TABLE OF HALF SUBTRACTOR:
The truth table of half subtractor will have two inputs A & B. The outputs will be D
[difference] and B0 [borrow].
1.2 EQUATIONS AT OUTPUT:
A B D (V) B0 (V)
2. FULL SUBTRACTOR:
A 3-bit binary subtractor is called a Full Subtractor. This circuit will have three input
bits [A, B & C respectively]. There are two output bits present difference and borrow. Three
input Ex-Or gate, a Not gate, three and Gates and an Or gate are required.
2.1 TRUTH TABLE OF FULL SUBTRACTOR:
The truth table of half subtractor will have three inputs A, B & C. The outputs will be
D [difference] and B0 [borrow].
2.2 EQUATIONS AT OUTPUT:
A B C D (V) B0 (V)