Skip to content

msjtw/digital_design

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

digital_design

riscv_em

RISC-V core emulator written in rust.

Features:

  • ima extensions
  • machine, supervisor and user modes
  • physical memory protection
  • virtual memory
  • ns16550a uart
  • minimal plic

What is missing:

  • c extension (no compressed instructions)
  • external devices like block device

To run it you need to build a buildroot image and link it into a single binary with OpenSBI (FW_PAYLOAD). Or you can use the image from image/Image.

cd riscv_em
cargo build -r
./target/release/riscv_em ../image/Image   

instr

It's the decoding function extracted from the main emulator.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages