User guide
CIF Module - SimpleVSP
72 CoMET Version 5.9 – Tutorial
Debugging a Simulation
CoMET allows you to debug both target code and hardware modules during a simulation.
This tutorial does not cover coding modules or writing target code. However we can
demonstrate placing a breakpoint in the SimpleVSP1 skeleton code. When you run the
simulation in debug mode execution stops at the breakpoint, allowing you to step through
execution.
In the Workspace Window, double click SimpleVSP1/Folders/Source Files/SimpleVSP1.c to
open SimpleVSP1.c in the Document Window.
Locate the function SimpleVSP1InitModuleInstance.
Place the cursor on the line:
return AmpiSUCCESS;
Click the tool bar Toggle Breakpoint button or press F9.
A red diamond breakpoint icon appears beside line in the SimpleVSP1.c Document Window.
You can toggle the breakpoint off with the same button, or remove all breakpoints with the
Remove all breakpoints button beside it.
Click the tool bar Start Debugging icon or press F5
CoMET may display dialogs requiring confirmation of build options. CoMET then displays
the Debug Options dialog.