Extremely stripped down and simplified pipeline CPU with no cache.
Load data into the Data RAM, load your instructions into the Instruction RAM and start the clock.
8 nibble Instruction RAM, 2 nibble Data RAM, 2 nibble Register Block, all data is in nibbles.
Opcode is 1 nibble: _ _ _ _
-
first 2 bits are the instruction: ADD, SUB, LOAD, SUB, HALT
00__LOAD01__SAVE10__ADD11__SUB1111reserved for HALT
-
3rd bit is the register
0for $r01for $r1
-
4th bit is the Data RAM address
0for ram address 01for ram address 1