# Binary Subtractor

Published on 24/2/2012 & updated on 23/8/2018HOME / DIGITAL ELECTRONICS / BINARY SUBTRACTOR

**, let us discuss about method of substracting two multi bit binary numbers. For above substraction we used general rules which are, and borrow 1 which to be added to next higher significant bit of first binary number. Then same positioned bit of second binary number would be substracted from that. But there are other methods by which two binary numbers can be substracted confidently. One of these is 2’s complement method of substraction.**

*binary substractor*Here, first binary number (from which another binary number to be substracted) is kept as it is. Then each bit of second binary numbers (which to be substracted) is complemented. Then 1 is added to LSB of complemented second binary number. This results 2’s complement of second binary number. Now finally we add first binary number with 2’s complement of the second binary number and we get final result of substraction. Here in the previous example, First binary number was 110011 and second binary number was 100101. Complement or 1's complement of 100101 is 011010. Now by adding 1 with LSB of this 1's complement number we get,

__Related pages__

Now by adding first number, 110011 and 2’s complement of second number i.e. 11011. We get,
Hence, 4 bit substractor can be drawn like,
Here, A_{4}, A_{3}, A_{2}, A_{1} is minuend and B_{4}, B_{3}, B_{2}, B_{1} is subtrahend. S_{4}, S_{3}, S_{2}, S_{1} is result of substraction where C_{4} is final carry which is ignored.

## Half Substractor

**Half substractor**is a combinational circuit which performs substraction of single bit binary numbers. The substraction combinations of two single bit binary numbers can be, Now if we draw a truth table for that, with all differences (D) and borrow (b), we get, Hence, from truth table it is found that, The above equations can be represented using logic gates. The above circuit is logical half substractor circuit.

## Full Substractor

This is not practical to perform substraction only between two single bit binary numbers. Instead binary numbers are always multibits. The substraction of two binary numbers is performed bit by bit from right (LSB) to left (MSB). During substraction of same significant bit of minuend and subtrahend, there may be one borrow bit along with difference bit. This borrow bit (either 0 or 1) is to be added to the next higher significant bit of minuend and then next corresponding bit of subtrahend to be subtracted from this. It will continue up to MSB. The combinational logic circuit performs this operation is called**full substractor**. Hence, full substractor is similar to half substractor but inputs in full substractor are three instead of two. Two inputs are for the minuend and subtrahend bits and third input is for borrowed which comes from previous bits substraction. The outputs of full adder are similar to that of half adder, these are difference (D) and borrow (b).

The combination of minuend bit (A), subtrahend bit (B) and input borrow (bi) and their respective differences (D) and output borrows (b) are represented in a truth table, as follow Let us draw K-map for D and b.

## Binary Adder Substractor

We have already designed 4 bits binary parallel adder and 4 bit**binary substractor**. We have also seen that both circuits are more or less same except in substractor the subtrahend bit inputs are inverted with input borrow bit at LSB is 1. In the above 4 bit full adder circuit, third input to LSB Adder (FAI) is 1. In addition to that, in full substractor substandent bits, i.e. B

_{1}, B

_{2}, B

_{3}and B

_{4}are inverted. We can combine these two circuits (Adder and Substractor) in one circuit by controlling B

_{1}, B

_{2}, B

_{3}and B

_{4}terminals and third input of LSB adder unit (FAI). We know that, So, we can use XOR gate at each input B

_{1}, B

_{2}, B

_{3}and B

_{4}with control input M (either 1 or 0). Now, if M = 1, B

_{1}, B

_{2}, B

_{3}and B

_{4}will be complemented. At the same time if third input of FAI is 1, the circuit becomes substractor. So, M = 1 is also to be fed to the third input of FAI in substractor.

**Please Rate this Article**