lowRISC / ibex-demo-system

A demo system for Ibex including debug support and some peripherals
Apache License 2.0
53 stars 40 forks source link

Debug the simulation and capturing the GPIO outputs #108

Open Yidaen opened 5 months ago

Yidaen commented 5 months ago

Hello, I'm working on a project to improve myself, and unfortunately, I don't have an FPGA, so I'm testing what I do in simulation.

As far as I understand, the Debug process only works on the FPGA, and the simulation only records UART outputs. Is there a way to debug in the simulation to check the changes in each step and record GPIO outputs to a file? Thank you.

marnovandermaas commented 5 months ago

Hi Yidaen, we don't have a way to connect to JTAG debug in simulation, but you can enable tracing which outputs a wave file. Inside the waveform you can see the output of the GPIO. You can use GTKWave to open the FST file the simulator produces.