This is the approach to create a minimal RISC-V CPU in JavaScript, later in C and eventually in hardware. I wanted to do this for a long time, but never had the time to do it. Now I still don't have the time and I am doing it.
- Demonstrate how js code could be mapped 1:1 to c code
- Demonstrate how c code could be mapped 1:1 to hardware
- Use most primitive hardware components
To compile the test programs, run make
.
Then run it like node js/main.js tests/calc.bin
.
Contributions are welcome! If you would like to contribute, please feel free to submit a pull request. However, be prepared for nitpicking as I am a perfectionistic dictator.
zlib