intstop
Abstract
Sets a breakpoint for the specified module and interrupt type. The breakpoint will stop the simulation when the specified type of interrupt occurs at the specified module.
Syntax
intstop <objref> <intrpt>
intstop <objref> statwire [<statwire_index>]
intstop <objref> stream [<stream_index> [<packet_id>] ]
intstop <objref> self|process|remote [<intrpt_code>]
| 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 | type of the interrupt to trap The list of interrupt type keywords appears below in Details. |
<statwire_index> |
int | [optional] Sets the breakpoint for any interrupt from the specified statistic wire. (valid only for statwire interrupts) |
<stream_index> |
int | [optional] Sets the breakpoint for any packet arriving on the specified stream. (valid only for stream interrupts) |
<packet_id> |
int | [optional] Sets the breakpoint for a specific packet arriving on the stream specified by <stream_index>. (valid only for stream interrupts when a stream index has been specified) |
<intrpt_code> |
int | [optional] Sets the breakpoint for interrupts with the specified code. (valid only for self, process, and remote interrupts) |
Details
An interrupt breakpoint is trapped when an event that would cause the specified interrupt at the specified module is removed from the event list immediately prior to its execution. Interrupt 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 suspstop, reactivated by actstop, or deleted by delstop.
Valid <intrpt> arguments:
- access
- begsim
- endsim
- failure
- interface
- multicast
- procedure
- process
- recovery
- regular
- remote
- self
- statwire
- stream
Example
ODB> intstop pksw2.node0.proc stream
Added breakpoint # 0: stop at (stream intrpt) for module (top.pksw2.node0.proc) [Objid=42]
ODB> status
Breakpoints :
0 stop at (stream intrpt) for module (top.pksw2.node0.proc) [Objid=42]
Traces :
Full trace is disabled
Encapsulation trace is enabled
Execution trace is disabled
Trace format: indented
No other traces
Actions :
None
Miscellaneous :
Memory tagging is disabled
ODB> cont
__________________________ (ODB 18.6.0: Event) ____________________________
* Time : 3.06043019021 sec, [3s . 60ms 430us 190ns 214ps]
* Event : execution ID (60), schedule ID (#70), type (stream intrpt)
* Source : execution ID (59), top.pksw2.node0.src (processor)
* Data : instrm (1), packet ID (16)
> Module : top.pksw2.node0.proc [Objid=42] (processor) [process id: 173]
breakpoint #0 trapped: "stop at (stream intrpt) for module (top.pksw2.node0.proc [Objid=42])"