Technical data
bp
CR-40 ModelSim Commands ModelSim EE/SE Command Reference
bp
The bp or breakpoint command sets a breakpoint. If the source file name and line
number are omitted, or the -query option is used, this command lists all the
breakpoints that are currently set. Otherwise, the command sets a breakpoint in the
specified file at the specified line. Once set, the breakpoint affects every instance
in the design.
Syntax
bp
[-query <filename>] [<filename>] [<line_number> [{<command>...}]]
Arguments
-query<filename>
Returns a list of the currently set breakpoints. Optional.
<filename>
Specifies the name of the source file in which the breakpoint is to be set. Required
when -query is used; otherwise, it is optional. If omitted, all current breakpoints
are listed.
<line_number>
Specifies the line number at which the breakpoint is to be set. Optional; if omitted,
all current breakpoints are listed.
{<command>...}
Specifies one or more commands that are to be executed at the breakpoint.
Optional. Multiple commands must be separated by semicolons (;) or placed on
multiple lines. The entire command must be placed in curly braces.
Any commands that follow a run
(CR-139), or step (CR-151) command will be
ignored. The run, or step command terminates the breakpoint sequence. This
applies if macros are used with the bp command string as well. A restore
(CR-134)
command should not be used.
If many commands are needed after the breakpoint, they can be placed in a macro
file.