intstop
摘要
为指定模块和中断类型设置断点。当指定类型的中断发生在指定模块时,该断点将停止仿真。
语法
intstop <objref> <intrpt>
intstop <objref> statwire [<statwire_index>]
intstop <objref> stream [<stream_index> [<packet_id>] ]
intstop <objref> self|process|remote [<intrpt_code>]
| 参数 | 类型 | 说明 |
|---|---|---|
<objref> |
integer 或 string | 目标模块的数字对象 ID 或层次化名称 可通过 ODB 命令 objmap 或 objid 获取此参数的对象 ID。 |
<intrpt> |
string | 要捕获的中断类型 中断类型关键字列表见下文说明。 |
<statwire_index> |
int | [可选] 为来自指定统计量连线的任意中断设置断点。(仅对 statwire 中断有效) |
<stream_index> |
int | [可选] 为在指定数据包流上到达的任意数据包设置断点。(仅对 stream 中断有效) |
<packet_id> |
int | [可选] 为在 <stream_index> 指定的数据包流上到达的特定数据包设置断点。(仅当已指定数据包流索引时对 stream 中断有效) |
<intrpt_code> |
int | [可选] 为具有指定代码的中断设置断点。(仅对 self、process 和 remote 中断有效) |
说明
当即将在指定模块引发指定中断的事件在执行前一刻从事件列表中被移除时,中断断点即被触发。中断断点是长期有效的,因为它们与可重复出现的情形相关联,并且在被触发后仍保留在待触发断点列表中。断点可由 suspstop 暂停、由 actstop 重新激活,或由 delstop 删除。
有效的 <intrpt> 参数:
- access
- begsim
- endsim
- failure
- interface
- multicast
- procedure
- process
- recovery
- regular
- remote
- self
- statwire
- stream
示例
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])"