https://github.com/jesse-r-s-hines/risc-v-graphical-datapath-simulator
This is a web-based graphical simulator for a simple 32-bit, single-cycle implementation of RISC-V.
https://github.com/jesse-r-s-hines/risc-v-graphical-datapath-simulator
education risc-v risc-v-architecture risc-v-assembly risc-v-simulator riscv riscv32
Last synced: 21 days ago
JSON representation
This is a web-based graphical simulator for a simple 32-bit, single-cycle implementation of RISC-V.
- Host: GitHub
- URL: https://github.com/jesse-r-s-hines/risc-v-graphical-datapath-simulator
- Owner: jesse-r-s-hines
- License: lgpl-3.0
- Created: 2021-05-26T02:48:49.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-16T23:22:52.000Z (about 1 month ago)
- Last Synced: 2025-03-17T00:27:18.024Z (about 1 month ago)
- Topics: education, risc-v, risc-v-architecture, risc-v-assembly, risc-v-simulator, riscv, riscv32
- Language: TypeScript
- Homepage: https://jesse-r-s-hines.github.io/RISC-V-Graphical-Datapath-Simulator
- Size: 9.8 MB
- Stars: 16
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Support: docs/SupportedInstructions.md
Awesome Lists containing this project
README
# RISC-V Graphical Datapath Simulator
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. The datapath is closely based on the design described in *Computer Organization and Design RISC-V Edition*.
## Online Demo
The simulator is available at https://jesse-r-s-hines.github.io/RISC-V-Graphical-Datapath-Simulator.
## Building
The project is written in [TypeScript](https://www.typescriptlang.org) and [React](https://react.dev) and uses [webpack](https://webpack.js.org) to bundle the project.
If you want to build the project yourself, you'll need [Node and npm](https://nodejs.org). Then run
```
npm install
npm run serve
```
which will serve the project on localhost.## Testing
The tests use [Mocha](https://mochajs.org). Just run
```
npm test
```