Challenge
Our simple calculator currently only handles unsigned numbers. In the case of addition, subtraction, and multiplication, the binary representation is already in 2’s complement representation. Remember that to take the two’s complement of a number, you invert and add one. Can you modify the design to handle negative number representation? You might want to use one of the LEDs to represent the sign of the result.
Extra challenge
It is harder to handle negative numbers from the divider. Can you modify the non-restoring divider to make it also handle negative numbers?