Binary Subtraction Using 1’s Complement
In binary subtraction using the 1’s complement method, we have two symbols:
- 0 represents the positive sign
- 1 represents the negative sign
Here are the steps for binary subtraction using 1’s complement:
- Write the 1’s complement of the subtrahend (the number we want to subtract).
- Add the 1’s complement of the subtrahend to the minuend (the number we are subtracting from).
- If there is a carryover in the result, add it to the least significant bit.
- If there is no carryover, take the 1’s complement of the result to get the negative value.
Example of Using 1’s Complement
Example: Question:
(110101)2 – (100101)2
Solution:
(110101)2 = 53 in decimal (minuend)
(100101)2 = 37 in decimal (subtrahend)
Now, take the 1’s complement of the subtrahend and add it to the minuend.
1 carry
1 1 0 1 0 1
(+) 0 1 1 0 1 0
0 0 1 1 1 1
1 carry
0 1 0 0 0 0
Therefore, the solution is 010000, which is 16 in decimal.
So, (110101)2 – (100101)2 = 16 in decimal.
Related Posts
Analog and Memory Layout Design Forum |
Physical Layout Design Forum |
RTL & Verilog Design Forum |
Semiconductor Forum |
Analog Layout Design Interview Questions | Memory Design Interview Questions |
Physical Design Interview Questions | Verilog Interview Questions |
Digital Design Interview Questions | STA Interview Questions |