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.

Breakpoints<br />

The Tcl Debugger UM-495<br />

There are seven possible debugger states, one for each button <strong>and</strong> an `idle' or `waiting' state<br />

when no button is active. The button-activated states are:<br />

Button Description<br />

Stop stop after next expression, used to get out of slow/fast/nonstop<br />

mode<br />

Next execute one expression, then revert to idle<br />

Slow execute until end of procedure, stopping at breakpoints or when<br />

the state changes to stop; after each execution, stop for ’delay’<br />

milliseconds; the delay can be changed with the ’+’ <strong>and</strong> ’-’<br />

buttons<br />

Fast execute until end of procedure, stopping at breakpoints<br />

Nonstop execute until end of procedure without stopping at breakpoints or<br />

updating the display<br />

Break terminate execution of current procedure<br />

Closing the debugger doesn't quit it, it only does `wm withdraw'. The debugger window<br />

will pop up the next time a prepared procedure is called. Make sure you close the debugger<br />

with Debugger > Close.<br />

To set/unset a breakpoint, double-click inside the listing. The breakpoint will be set at the<br />

innermost available expression that contains the position of the click. Conditional or<br />

counted breakpoints aren’t supported.<br />

The Eval entry supports a simple history mechanism available via the <strong>and</strong><br />

keys. If you evaluate a comm<strong>and</strong> while stepping through a procedure, the<br />

comm<strong>and</strong> will be evaluated in the context of the procedure; otherwise it will be evaluated<br />

at the global level. The result will be displayed in the result field. This entry is useful for a<br />

lot of things, but especially to get access to variables outside the current scope.<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!