This repo aims to produce a deterministic and timing-aware infrastructure by enabling executing LF programs on top of the FlexPRET processor.
We recommend using Ubuntu as the development environment and make sure you have the following installed:
riscv64-unknown-elf-gcc
: https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-ubuntu14.tar.gzspike
(RISC-V simulator): https://github.com/riscv/riscv-isa-simriscv-pk
(RISC-V proxy kernel): https://github.com/riscv/riscv-pk
Make sure to add these tools to your PATH
.
- compile the program using
riscv64-unknown-elf-gcc
riscv64-unknown-elf-gcc -o <bin_file> <source_file>
- run the binary using
spike
sh ./spike.sh <bin_file>