tstop
摘要
为指定时间设置断点。断点将在计划时间大于或等于指定时间的第一个事件处停止仿真。
语法
tstop [<abs_time> | +<rel_time>]
| 参数 | 类型 | 说明 |
|---|---|---|
<abs_time> |
double | 断点的绝对仿真时间 |
<rel_time> |
double | 断点的相对仿真时间 |
详细说明
当计划时间大于或等于指定时间的事件在执行前一刻从事件列表中移除时,时间断点被触发。
注: 如果仿真使用量子时间值,tstop 的时间参数会被转换为量子值的倍数。这确保断点发生在对应时间量子内的第一个事件处。
时间断点是 “一次性” 的,因为它们与不可重复的时间值相关联,并在被触发后从待处理断点列表中移除。断点可通过命令 suspstop 暂停、通过 actstop 重新激活、或通过 delstop 删除。如果时间断点在其本应被触发时处于暂停状态、之后又被重新激活,它将在下一个事件执行前一刻被触发。
示例
ODB> tstop 1
Added breakpoint #8: stop at time = (1) sec.
ODB> tstop 1.5
Added breakpoint #9: stop at time = (1.5) sec.
ODB> status
Breakpoints :
8) stop at time = (1) sec.
9) stop at time = (1.5) sec.
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