You can examine the order in which the simulator executes the statements in your model by stepping through the simulation line by line.
While you can always single-step through the statements in the analog block of a module, outside the analog block, you cannot single-step or set line breakpoints in a particular design unit unless you compiled the unit with the -linedebug option. If you compiled the unit without this option, you can use the run -step or run -next command to run the simulation until the next point where it can stop. If execution passes to a unit that you compiled with -linedebug, full single-stepping resumes.
- If you are using the Tcl command-line interface:
-
Use run
-stepto simulate to the next executable line of code in any scope. This command runs one statement, stepping into subprogram calls.The-stepoption does not step into function calls made by an analog statement. In this situation, the behavior of the-stepoption is identical to the behavior of the-nextoption.
- Use
run-nextto run one statement, stepping over any subprogram calls.
- If you are using SimVision, choose Simulation - Step or Simulation - Next.
