Subtractor

From Wikipedia, the free encyclopedia

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: 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.

D_i = X_i \oplus Y_i \oplus B_i
K-map Bi(1,2,3,7)

[edit] See also