Ask a Question

What is the difference between full adder and full subtractor?

on 2011-10-28 06:15:01   by prasenjit   on MCA  1 answers

saikat

on 2011-10-28 09:30:00  

subtractor-In electronics, a subtractor can be designed using the same approach as that of an adder. The binary subtraction process is summarized below. As with an adder, in the general case of calculations on multi-bit numbers, three bits are involved in performing the subtraction for each bit of the difference: the minuend (Xi), subtrahend (Yi), and a borrow in from the previous (less significant) bit order position (Bi). The outputs are the difference bit (Di) and borrow bit Bi + 1. The subtractor is best understood by considering that the substrahend and both borrow bits have negative weights, whereas the X and D bits are positive. The operation performed by the subtractor is to rewrite Xi − Yi − Bi (which can take the values -2, -1, 0, or 1) as the sum − 2Bi + 1 + Di. Bi + 1 = Xi < (Yi + Bi) Subtractors are usually implemented within a binary adder for only a small cost when using the standard two's complement notation, by providing an addition/subtraction selector to the carry-in and to invert the second operand. (definition of two's complement negation) full subtractor-The full-subtractor is a combinational circuit which is used to perform subtraction of three bits. It has three inputs, X (minuend) and Y (subtrahend) and Z (subtrahend) and two outputs D (difference) and B (borrow). Easy way to write truth table D=X-Y-Z (don't bother about sign) B = 1 If X