-
Put the files below to the same directory of *.cpp/.c or *.s
-
Execute make <filename>.bin. And it will generate corrsponding file inst_rom.bin containing the machine code that can be executed(for simulating memory on PC)
-
Execute make <filename>.dmem. And it will generate corrsponding file inst_rom.mem containing the machine code that can be executed(for simulation in vivado)
-
make <filename>.S can generate corresponding assembly file for <filename>.cpp/.c
-
make <filename>.dump/.ddump can dump the disamssembly the mixed assembly of .cpp/.c and rom.o, system.o
- riscv tool chain
- python3
- bin2mem.py is from Evensgn的riscv tool chain教程
- memory.ld and rom.s are from zzk的cpu-judge