Technical data
onbreak
ModelSim EE/PLUS Reference Manual Simulator Command Reference
-
337
onbreak
The
onbreak
command is used within a macro; it specifies a command to be
executed when running a macro that encounters a breakpoint in the source code.
Using the
onbreak
command without arguments will return the current
onbreak
command string. Use an empty string to change the
onbreak
command back to its
default behavior (i.e., onbreak ""). In that case, the macro will be interrupted after
a breakpoint occurs (after any associated
bp
command (p278) string is executed).
onbreak
commands can contain macro calls.
Syntax
onbreak
{ [<command> [; <command>] ...] }
Arguments
<command>
Any VSIM command can be used as an argument to
onbreak
. If you want to use more than
one command, use a semicolon to separate the commands, or place them on multiple lines.
The entire command string must be placed in curly braces. It is an error to execute any
commands within an
onbreak
command string following a
run
(p361),
run -continue
, or
step
(p371) command. This restriction applies to any macros or Tcl procedures used in the
onbreak
command string. Optional.
Examples
onbreak {exa data ; cont}
Examine the value of the HDL item data when a breakpoint is encountered. Then continue
the
run
command (p361).
onbreak {resume}
Resume execution of the macro file on encountering a breakpoint.
See also
abort
command (p257),
bd
command (p277),
bp
command (p278),
do
command
(p302),
onerror
command (p339),
resume
command (p358), and the
status
command (p370)