Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase

Model Technology Inc.


onbreak

The onbreak command is used within a macro. It specifies one or more commands 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 string is executed).

onbreak commands can contain macro calls.

Syntax

onbreak

{[<command> [; <command>] ...]}

Arguments

<command>

Any 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, run continue, or step 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.

onbreak {resume}

Resume execution of the macro file on encountering a breakpoint.

See also

abort, bd, bp, do, onerror, resume, status


Model Technology Inc.
Model Technology Incorporated
Voice: (503) 641-1340
Fax: (503)526-5410
www.model.com
sales@model.com
Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase