Lesson plan
Subtractor
In electronics, a subtractor is a digital circuit that performs subtraction of numbers, and it 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 ( X_{i} ), subtrahend ( Y_{i} ), and a borrow in from the previous (less significant) bit order position ( B_{i} ). The outputs are the difference bit ( D_{i} ) and borrow bit B_{i+1} . The subtractor is best understood by considering that the subtrahend and both borrow bits have negative weights, whereas the X and D bits are positive. The operation performed by the subtractor is to rewrite X_{i}-Y_{i}-B_{i} (which can take the values -2, -1, 0, or 1) as the sum -2B_{i+1}+D_{i} . : D_{i} = X_{} \oplus Y_{i} \oplus B_{i} : B_{i+1} = X_{i} , where ⊕ represents exclusive or. 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. : -B = \bar{B} + 1 (definition of two's complement notation) : \begin{alignat}{2} A-B & = A + (-B) \\ & = A + \bar{B} + 1 \\ \end{alignat}
Article summary
In electronics, a subtractor is a digital circuit that performs subtraction of numbers, and it 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 ( X_{i} ), subtrahend ( Y_{i} ), and a borrow in from the previous (less significant) bit order position ( B_{i} ). The outputs are the difference bit ( D_{i} ) and borrow bit B_{i+1} . The subtractor is best understood by considering that the subtrahend and both borrow bits have negative weights, whereas the X and D bits are positive. The operation performed by the subtractor is to rewrite X_{i}-Y_{i}-B_{i} (which can take the values -2, -1, 0, or 1) as the sum -2B_{i+1}+D_{i} . : D_{i} = X_{} \oplus Y_{i} \oplus B_{i} : B_{i+1} = X_{i} , where ⊕ represents exclusive or. 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. : -B = \bar{B} + 1 (definition of two's complement notation) : \begin{alignat}{2} A-B & = A + (-B) \\ & = A + \bar{B} + 1 \\ \end{alignat}
Key claims
No claims recorded.
Discussion questions
- Summarise the article in your own words. Which single claim would you verify first, and why?
- Which claim in this article is most likely to be revised as the sources update? How would you check its current status?
- If two sources disagreed about one of these facts, what would you need in order to trust one over the other?
Bibliography
No sources recorded.
Key claims and bibliography are generated from the same tracked claims and sources as the article page.