Batch Mode Simulation : Simulating a Truth Table : Adding a Breakpoint to a Subroutine

Adding a Breakpoint to a Subroutine

If a Procedural Truth Table is used, a breakpoint must be set in a subroutine in order to start the debugger tool. When the breakpoint is reached during simulation, the debugger tool is started with the “Code” section empty. An additional form containing a read-only truth table is also opened.

In the following example, we set a breakpoint in the subroutine CALC1. This automatically sets a breakpoint in the truth table, because CALC1 is implemented by the truth table.

1.
Click Add from the Simulation Breakpoint Editor. The Add Breakpoint dialog box opens.
.
2.
Enter the name of the breakpoint in the Name: field. In this example, the breakpoint name is CALC1.
3.
Enter the name of the subroutine in which you wish to set a breakpoint in the Subroutine Name: field,. You can also use the pull-down menu to select the name.

The Simulation Breakpoint Editor displays the subroutine breakpoint. Clicking Apply > OK if you want to close this window.
Note: In models containing multiple breakpoints, each name must be unique.