Technical data
Basic Verilog simulation
118
-
Tutorial: Using ModelSim PE Getting Started with ModelSim PE
Step 24.
Pull down
Options > Edit Breakpoints
from the main menu bar.
This brings up the Breakpoints dialog box. This dialog box should look like the illustration.
Notice that the breakpoint we entered is displayed. Highlight the breakpoint for line 30 by
clicking on it. Now click the
Modify
button in this dialog box. The Command field becomes
active and you can type into it:
examine count
This command will be executed every time the breakpoint on line 30 is reached.
Click
Done
, answer
Yes
to the new dialog box that asks you to confirm your action, and click
Done
once more to close the Breakpoints dialog box.
Step 25.
Select
CONT
from the toolbar.
When the breakpoint on line 30 is triggered, the simulator stops running as before but now you
can see output from the automatic examine count command in the Transcript window.