24.03.2013 Views

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Identifying all registered function calls<br />

Enabling Auto step mode<br />

Identifying all registered function calls UM-407<br />

Auto step mode automatically identifies <strong>and</strong> sets breakpoints at registered function calls<br />

(i.e., PLI/VPI system tasks <strong>and</strong> functions <strong>and</strong> callbacks; <strong>and</strong> FLI subprograms <strong>and</strong><br />

callbacks <strong>and</strong> processes created with mti_CreateProcess). Auto step mode is helpful when<br />

you are not entirely familiar with a design <strong>and</strong> its associated C routines. As you step<br />

through the design, <strong>ModelSim</strong> steps into <strong>and</strong> displays the associated C file when you hit a<br />

C function call in your HDL code. If you execute a step -over or run -continue comm<strong>and</strong>,<br />

<strong>ModelSim</strong> does not step into the C code.<br />

When you first enable Auto step mode, <strong>ModelSim</strong> scans your design <strong>and</strong> sets enabled<br />

breakpoints at all currently known function entry points. As you step through the<br />

simulation, Auto step continues looking for newly registered callbacks <strong>and</strong> sets enabled<br />

breakpoints at any new entry points it identifies. Once you execute a step -over or<br />

run -continue comm<strong>and</strong>, Auto step disables the breakpoints it set, <strong>and</strong> the simulation<br />

continues running. The next time you execute a step comm<strong>and</strong>, the automatic breakpoints<br />

are re-enabled <strong>and</strong> Auto step sets breakpoints on any new entry points it identifies.<br />

Note that Auto step does not disable user-set breakpoints.<br />

To enable Auto step mode, follow these steps:<br />

1 Configure C Debug as described in "Setting up C Debug" (UM-402).<br />

2 Select Tools > C Debug > Enable auto step.<br />

3 Load <strong>and</strong> run your design.<br />

<strong>ModelSim</strong> <strong>SE</strong> User’s <strong>Manual</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!