Difficulty: Easy
Correct Answer: the minuend is left in its original form and the subtrahend is changed to its 2's-complement.
Explanation:
Introduction / Context:
Digital systems perform subtraction by reusing the same adder hardware used for addition. The trick is to convert subtraction into addition using 2's-complement arithmetic. This question asks you to recall which operand is complemented in that process.
Given Data / Assumptions:
Concept / Approach:
Compute A - B as A + (2's-complement of B). The minuend A remains unchanged, and only the subtrahend B is transformed. Addition is then performed; any final carry out is discarded in fixed-width arithmetic, leaving the correct signed result.
Step-by-Step Solution:
Form B' = 2's-complement(B) = NOT(B) + 1.Compute S = A + B' using the standard adder.Interpret result as signed 2's-complement value; ignore carry-out if present.
Verification / Alternative check:
Example: 7 - 5. In 4-bit 2's-complement, 5 → 0101, B' = 1011. Add 0111 + 1011 = 1 0010; discard carry, result 0010 = 2, which is correct.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
the minuend is left in its original form and the subtrahend is changed to its 2's-complement.
Discussion & Comments