a-downing / RiscVM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RiscVM

Simple RISC-V emulator/VM

The RiscVM.RISCVSystem class can be instantiated in a C# program to run RISC-V bare-metal machine code. There's a simple API for the host and VM to interact. Currently rv32im is implemented.

src/firmware/main.c gets compiled to rv32im machine code

src/Program.cs instantiates the VM, loads the machine code, and does some stuff for testing.

About


Languages

Language:C# 85.1%Language:C 12.8%Language:Assembly 1.2%Language:Shell 1.0%