Professional Documents
Culture Documents
Subtractor (A-B)
2’s complement
GROUP MEMBER
M1 M2 M3 M4
3 For this subtractor, the subtrahend will be changed to its 1’s complement using not gate .
And Cin will be 1.
4 One of the applications are electronic calculators.
Example :
1 0 0 1 C
Let A(minuend) = 1001(+9) and
B(subtrahend) = 0110(+6) 1 0 0 1 A
B’ = 1001 1 0 0
1 B’
+1
B’ = 1010 (2’s complement) 0 0 0 1 1 S
Full adder used since B has been complemented
Cin Cout
A B Cin S Cout
Truth Table : 0 1 0 1 0
0 1 1 0 1
0 0 0 0 0
0 0 1 1 0
From the Truth table : 1 1 0 0 1
1 1 1 1 1
S = A B’ Cin
1 0 0 1 0
Cout = B’. Cin A.Cin AB’ 1 0 1 0 1
Circuit of Parallel 4-bit Binary Subtractor (A-B)2’s complement using Full Adder :
A , B & Cin are the input variables in our circuit.
Cout & S are the output variables.
A4 B4 A3 B3 A2 B2 A1 B1
C0
C4
C3 C2 C1
S4 S3 S2 S1