In order to run the processor, we need to provide a program for the processor to run. The verilog code in this repo describes the hardware, but we also need to provide software to run on this hardware.
We use a python script verigpu/assembler.py to convert assembly code into binary code that we can load into the processor simulations.
See examples
Some specific programs:
- sum integers from 0 to 5 examples/direct/sum_ints.asm
- factorial of integers 0 to 5 examples/direct/calc_factorial.asm
- matrix multiplication examples/direct/matrix_mul.asm