This is a simple attempt to create a RISC-V emulator in Rust with the goal of understanding the RISC-V architecture and it application in zkVM. The emulator is based on the RV32I base integer instruction set. The emulator is capable of running simple programs written in RISC-V assembly language.
This emualtator is desgined to be modular and easy to use. The emulator can be used as a library in other projects or as a standalone application.
- Clone the repository
- Run
cargo build - Run
cargo run /path/to/elf/fileexample:cargo run fibonacci, this will run the fibonacci program in therootdirectory.
Understanding RISC-V architecture and other important components