This is a web-based graphical simulator for a simple 32-bit, single-cycle implementation of RISC-V. The simulator lets you step through a RISC-V program and view the current values of wires and components on the datapath and explanations of what each of the datapath components do. This is very useful for teaching or learning about the RISC-V datapath. All the 32-bit integer instructions are supported except the syscall and concurrency related instructions and auipc
. The datapath is closely based on the design described in Computer Organization and Design RISC-V Edition.
The simulator is available at https://jesse-r-s-hines.github.io/RISC-V-Graphical-Datapath-Simulator.
The project is written in TypeScript and React and uses webpack to bundle the project.
If you want to build the project yourself, you'll need Node and npm. Then run
npm install
npm run serve
which will serve the project on localhost.
The tests use Mocha. Just run
npm test