2s Complement Manual
2s Complement Manual
2s Complement Manual
Components required:
OR gate IC-7432
Theory:
Just like 1's complement, 2's complement is also used to represent the signed binary numbers. For
finding 2's complement of the binary number, we will first find the 1's complement of the binary number
and then add 1 to the least significant bit of it.
For example, if we want to calculate the 2's complement of the number 1011001, then firstly, we find the
1's complement of the number that is 0100110 and add 1 to the LSB. So, by adding 1 to the LSB, the
number will be (0100110)+1=0100111. We can also create the logic circuit using OR, AND, and NOT
gates. The logic circuit for finding 2's complement of the 5-bit binary number is as follows:
For finding 2's complement of the given number, change all 0's to 1 and all 1's to 0. So the 1's
complement of the number 110100 is 001011. Now add 1 to the LSB of this number, i.e.,
(001011)+1=001100.
For finding 1's complement of the given number, change all 0's to 1 and all 1's to 0. So, the 1's
complement of the number 100110 is 011001. Now add one the LSB of this number, i.e.,
(011001)+1=011010.
Logic diagram:
Truth table:
Procedure: