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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

UM-406 16 - C Debug<br />

Finding function entry points with Auto find bp<br />

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

<strong>ModelSim</strong> can automatically locate <strong>and</strong> set breakpoints at all currently known function<br />

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

<strong>and</strong> callbacks <strong>and</strong> processes created with mti_CreateProcess). Select Tools > C Debug ><br />

Auto find bp to invoke this feature.<br />

The Auto find bp comm<strong>and</strong> provides a "snapshot" of your design when you invoke the<br />

comm<strong>and</strong>. If additional callbacks get registered later in the simulation, <strong>ModelSim</strong> will not<br />

identify these new function entry points unless you re-execute the Auto find bp comm<strong>and</strong>.<br />

If you want functions to be identified regardless of when they are registered, use<br />

"Identifying all registered function calls" (UM-407) instead.<br />

The Auto find bp comm<strong>and</strong> sets breakpoints in an enabled state <strong>and</strong> doesn’t toggle that<br />

state to account for step -over or run -continue comm<strong>and</strong>s. This may result in unexpected<br />

behavior. For example, say you have invoked the Auto find bp comm<strong>and</strong> <strong>and</strong> you are<br />

currently stopped on a line of code that calls a C function. If you execute a step -over or<br />

run -continue comm<strong>and</strong>, <strong>ModelSim</strong> will stop on the breakpoint set in the called C file.

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

Saved successfully!

Ooh no, something went wrong!