an riscv rv32i simulator in python inspired from https://github.com/johnwinans/rvddt
-
Pre requisites
- Install python3.
- Install Python Prompt Toolkit 3.0 : pip3 install prompt_toolkit.
- Install python readchar: pip3 install readchar
- Install RISC V crosscompiler and set its bin directory in the PATH env variable.
-
get the simulator
- git clone [email protected]:varunmadhavam/riscvsim_py.git
-
Run tests
- cd riscvsim_py
- make test
-
Run helloworld
- cd riscvsim_py
- make
-
Run your own C program
- Add the new source code and headers to sw/app/main_app src and include respectively
- Edit the Makefile in sw/app/main_app and append the new sources to FIRMWARE_OBJS as object files
- make
-
Help
- Within the simulator enter h|help to get the help menu.
-
References