huangqi412 / pyriscv

A RISCV Emulator written in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyriscv

A RISCV Emulator written in Python

Requires: python3.4+

No other libraries!!

run

cd app
$riscv-gcc -g -march=rv32i -mabi=ilp32  app.S -nostdlib -Tlink.ld -o app.elf
$riscv-objdump -S -d app.elf > app.lst
$riscv-objcopy -F verilog app.elf app.mem
python3 ../src/pyriscv.py app.mem

All data write to x0 will print to console

About

A RISCV Emulator written in Python

License:GNU General Public License v3.0


Languages

Language:Python 98.7%Language:Assembly 1.3%