When we run simulations with C-models (along with RTL and SV-UVM TB ) we might want to debug the C-code to identify issues.
Here is a list of commands for GDB ( for VCS )
- gdb <SIMV absolute path>.
- break <File_name>:<Line_number>
- run <Simulation command line arguments>
These will allow you to to run the simulation until the debug point.
- For executing line by line we can use <next>
- For step, we can use <step>
- To continue till next occurrence of break point use <continue >
- To print any variable with (print <var>)