CEDAR Logic Circuit,
There is one major change for this lab. You no longer need an output LED Display. The outputs will be stored back into A. This creates a timing issue that you will need to handle. A WB (write back) register is suggested. Have your clock be a single pulse generator that you control so you can see what occurs at each step.
The Opcode for the 8 required are as follows
FUNCTION NAME OPCODE OUTPUT
ADDA 0x03 A + operand
SUBA 0x05 A – operand
ANDA 0x02 A AND operand
ORA 0x06 A OR operand
EORA 0x07 A XOR operand
LDAA (immediate) 0x0A load A with #
LDAA (direct) 0x0E load A with memory
STAA 0x0D store A to memory
The full adder should have the following inputs and outputs.
Opcode - Attach to a 4-bit hex keypad
Operand - Attach to a 4-bit hex keypad
When testing this you will want to have a 4 bit hex keypad for the opcode and one for the operand. However, when you submit, I do not need or want the keypads, so get rid of them prior to submission.
S0-S3 - NONE
C3 - Attach to LED