Removed instructionFetch(), decode(), execute() and writeBack() methods; these are now embedded into their respective Stage classes. This makes for a clearer control unit class, and execution is split neatly into stages.
Removed instructionFetch(), decode(), execute() and writeBack() methods; these are now embedded into their respective Stage classes. This makes for a clearer control unit class, and execution is split neatly into stages.
Added receive() method, which is used to pass the int value of the opcode derived by the FetchDecodeStage, and calls instructionExecute().
Receive() not required at the moment.
Stages of the instruction cycle will need retesting in their own test classes since the control unit structure has been altered with the addition of Stage classes. ControlUnitTest will remain, but with tests for the overall instruction cycle once the stages have been tested in their own test classes.
Tests for the FetchDecodeStage class.
Tests successful so far.
Tested fetch and decode successfully so far.