Task 2: 4-bit Adder/Subtractor
In the 2’s complement number system, we can accomplish the subtraction, A-B, by adding to A the 2’s complement of B; A – B = A + 2’s complement of B. This simple observation allows us to do subtraction using the same circuit used for addition. Note also that since 2’s complement of B = 1’s complement of B + 1 Therefore: A – B = A + 1’s complement of B + 1 Using the block diagram of a 4-bit adder/subtractor unit;
The answer to your question is provided in the image:
Comments
Leave a comment