Add breakpoint at a line of a HDL source
Syntax
add_bp [‑quiet] [‑verbose] <file_name> <line_number>
Returns
Return a new breakpoint object if there is not already a breakpoint set at the specified file line else returns the existing breakpoint object
Usage
Name | Description |
---|---|
[-quiet]
|
Ignore command errors |
[-verbose]
|
Suspend message limits during command execution |
<file_name>
|
Filename to add the breakpoint |
<line_number>
|
Line number of the given file to set the breakpoint |
Categories
Description
The add_bp
command lets you add breakpoints to an HDL source file to pause the current simulation.
A breakpoint is a user-determined stopping point in the source code used for debugging the design. When simulating a design with breakpoints, simulation of the design stops at each breakpoint to let you examine values and verify the design behavior.
You can report breakpoints in the current simulation using the report_bps
command, and remove existing breakpoints using the remove_bps
command.
The add_bp
command returns an error if the command fails.
Arguments
-quiet
- (Optional) Execute the command quietly, returning no messages from the command. The command also returns TCL_OK regardless of any errors encountered during execution.
-verbose
- (Optional) Temporarily override any message limits and return all messages from this command.
set_msg_config
command.<file_name> - (Required) The name of the HDL source file to add a breakpoint to.
<line_number> - (Required) The line number of the specified <file_name> to add the breakpoint to.
Examples
The following example adds a the breakpoint to the HDL source file at the specified line number:
add_bp C:/Data/ug937/sources/sinegen.vhd 137