| Colour Theme | Font Size Options | |
To investigate arithmetic circuitry. Arithmetic circuits play a central role in the operation of a microprocessor.
Read lab lecture notes.
0011
+ 0001
------
0100
Hand-In
0101
- 0011
------
0010
Hand-In
X and Y are two operand inputs and Z is for the control signal i.e. Z is the selection bit.
When Z has value 0, the circuit is an adder, meanwhile, the D flip-flop should be initialized to 0 for each addition.
When Z has value 1, it performs subtraction, meanwhile, the D flip-flop should be initialized to 1 for each subtraction.
Test your Adder-Subtractor circuit on the following operations and
use the 4-bit Shift Register to store and display their results.
(Note: Start from the least significant bit and
remember to initialize the D flip-flop accordingly)
0001 + 0011 = ?
0101 + 0010 = ?
0101 - 0011 = ?
0011 - 0101 = ?