- Verilator
sudo apt-get -y install verilator
- Get submodules
git submodule update --init --recursive
- vivado v2019.2
Generate the verilog and run verilator
make sim
Running simulation (without a emulator to verify correct operation)
make runSim
Running simulation (with a emulator to verify correct operation)
make runLockStep
- Generate the verilog sources
make fpga
- Get board files for zybo-z7-20
- Create a new project on Vivado in the repo root folder (Has only been tested for dev board zybo-z7-20)
- Run the command in the tcl console
source vivado.tcl
- Launch "Create Application Project" on Vitis
- Platform (
.xsa
file): vivado/riscv_soc_wrapper.xsa - Domain
- CPU: ps7_cortexa9_0
- OS: standalone
- Language: C
- Generate boot components - checked
- Template: Hello World
- Import following files to
src
prog.h
src/main/resources/zynq/helloworld.c
src/main/resources/zynq/lscript.ld
- Build project and program zybo