I have created the following electrical circuit using Logisim:
- My ALU takes in 2 8-bit values and performs the operation set forth by the [Op Setter].
- In particular, when the [Op] code is , the 2 input values are added together.
- If [Op] code is , and the [Sub Flag] is enabled, then B-input is subtracted from A-input.
- The 8-bit result is output into Memory.
My [Memory] component as it stands currently allows me to specify which of the memory addresses to place the result in, with a CLR flag to clear out memory and a [R/W] button to complete the circuit and display value out to a single 7-segment display (with current circuit can only display first 4 bits of the ALU result).
How can I modify my Memory Component to function better as far as loading and storing the values sent to it? Currently the ALU result is simply stored in the specified address, but I would like to modify it where the circuit normally displays the ALU result in the 7-segment display, and IF, only IF, I have a [STORE] button enabled, STORE the value into memory for future use.
I would then like to incorporate a [LOAD] button to take place of either A-input or B-input in the ALU for the specified operation.
Can anyone offer some insight into this? I've thankfully started connecting the dots when it comes to Circuit Design, but I'm at a bit of a loss as to how to incorporate this LOAD/STORE functionality.