mstop
Abstract
Sets a breakpoint for the specified module. The breakpoint will stop the simulation when an event is about to occur at the specified module.
Syntax
mstop <objref> [<intrpt> [<options>]]
| Argument | Type | Description |
|---|---|---|
<objref> |
integer or string | numeric object ID or hierarchical name of the module-of-interest An object ID for this argument can be obtained by using the ODB commands objmap or objid. |
<intrpt> |
string | [optional] type of the interrupt to trap A list of interrupt type keywords appears in the Details section of the intstop command. |
<options> |
int | [optional] additional interrupt-specific arguments limiting which interrupts will trigger breakpoints. See the intstop command for details. |
Details
A module breakpoint is trapped when an event associated with the specified module is removed from the event list immediately prior to its execution. Module breakpoints are indefinite since they are associated with a repeatable situation, and they remain on the pending breakpoint list after being trapped. Breakpoints can be suspended by the command suspstop, reactivated by actstop, or deleted by delstop. An alias for an earlier version of this command is supported (modstop).
Example
ODB> mstop pksw2.node0.proc
Added breakpoint #0: stop at event in module (top.pksw2.node_0.proc [Objid=182])
ODB> cont
____________________________ (ODB 18.6.0: Event) ____________________________
* Time : 0.0 sec, [0s]
* Event : execution ID (17), schedule ID (#17), type (begin sim intrpt)
* Source : Simulation Kernel
* Data : none
> Module : top.pksw2.node_0.proc [Objid=182] (processor)
breakpoint #0 trapped : "stop at event in module (top.pksw2.node_0.proc [Objid=182])"
ODB> !
____________________________ (ODB 18.6.0: Event) ____________________________
* Time : 10.0 sec, [10s]
* Event : execution ID (33), schedule ID (#40), type (stream intrpt)
* Source : execution ID (25), top.pksw2.node_0.src [Objid=181] (processor)
* Data : instrm (1), packet ID (7)
> Module : top.pksw2.node_0.proc [Objid=182] (processor)
breakpoint #0 trapped : "stop at event in module (top.pksw2.node_0.proc [Objid=182])"