Chipyard Baremetal IDE
Setup
Follow the tutorial here to set up RISC-V development environment.
Initial Repository Setup
After cloning the repo, we need to initialize the submodules by executing the following commands.
git submodule init
git submodule update
Compile for simulation
make build USE_HTIF=1
Generate binary
make bin
Debug the SoC
Terminal 1
openocd.exe -f ./examplechip.cfg
Terminal 2
riscv64-unknown-elf-gdb.exe --eval-command="target extended-remote localhost:3333"