Simple 6-bit processor that can add, subtract, load and jump not zero.
To run this project you can use a simulator like Xilinx.
- VHDL
Memory | RTL | Assembly code |
---|---|---|
00Rx00 Value Next instruction |
Rx <- M[PC] | LOAD Rx, Value |
01RxRy Next instruction |
Rx <- Rx + Ry | ADD Rx, Ry |
10RxRy Next instruction |
Rx <- Rx - Ry | SUB Rx, Ry |
11Rx00 Memory address Next instrution |
if (Rx != 0) PC <- M[PC] else PC <- PC + 1 |
JNZ Rx, Address |