Skip to content

Mooselee/RISC-V-Interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RISC-V interpreter in Python

Example run of the simulator

Run this command first: python3 main.py add1-5.obj
Enter the cli interface:
g - go
t - single step
d ads n - dump memory
dis ads n - disassemble content in the memory
r - show registers
s [xn,mn,pc] v - set [reg,mem,pc]
h - this help
q - quit

Acknowledgements

This project uses code from RISC-V interpreter with detailed control sequences - by prabhas chongstitvatana. Thanks to the authors for their work. The key enhancement I've implemented is a comprehensive refactor of the instruction decoding segment in load32.py, utilizing a Python dictionary for greater efficiency and flexibility. This adjustment is specifically designed to seamlessly support the entirety of the RV32 instruction set. For the simulation of further instructions, simply proceed with the addition of the corresponding instruction implementations within the rv32c.py file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages