tinyriscv/tests/isa/README.md

35 lines
554 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

RV32I instruction source code which copy from riscv(github).
I have modified it so can run on tinyriscv.
compile: type make under the cmd windows
recompile: type make after make clean under the cmd windows
编译方法:
1.修改Makefile里GNU工具链的路径
```
RISCV_PREFIX ?= /opt/riscv32/bin/riscv32-unknown-elf-
```
2.修改Makefile里bin文件转men文件工具的路径
```
BIN_TO_MEM := $(src_dir)/../../tools/BinToMem.py
```
3.编译
```
make
```
4.重新编译
```
make clean
make
```