Subtraction is the same as addition of the two’s complement.
The two’s complement is the bit-by-bit complement plus 1.
Therefore, X – Y = X + Y’ + 1 .
Complement Y inputs to adder, set Cin to 1.
For a borrow, set Cin to 0.
Back to first slide
View graphic version