Simple As Possible computer, based off Ben Eater's series.
Includes Assembler, Virtual Machine, Microcode generator and FPGA implementation for Basys 3 Artix-7.
- Build tools (ASM, UCode, VM):
Scripts\build_solution.cmd
- Build programs:
Scripts\build_programs.cmd
. Optionally run:Scripts\run_programs.cmd
. - Build Microcode (for FPGA):
Scripts\build_microcode.cmd
. Modify Ram.v with program to run. - Build FPGA: sap1.xpr.
SAP1 Virtual Machine
Out:
0x8
Machine State:
PC 0x5
A 0x8
B 0x2
CF 0
ZF 0
OUT 0x8
SAP1 Virtual Machine
Out:
0x0
0x1
0x1
0x2
0x3
0x5
0x8
0xd
0x15
0x22
0x37
0x59
0x90
0xe9
Machine State:
PC 0xe
A 0x79
B 0xe9
CF 1
ZF 0
OUT 0xe9