set_wave_zoom
Set the waveform zoom range (start_ns to end_ns) by editing the .wcfg file and reloading it in Vivado, applying the new time window to the current wave config.
Instructions
设置波形时间缩放窗口(改 wcfg XML 后 close -force + open 重载)。
本地价值(§1.3 条件3 跨命令协议):Vivado 2019.1 无 Tcl zoom 命令,缩放窗存在 .wcfg 的 里,要改它再让 XSim 重载。重载顺序极易踩—— close 漏 -force 报 [Wavedata 42-26];同名 wcfg 已 open 时直接 open 报 42-52, 故必须先 close 再 open。本工具封装这条多步协议。
⚠ wcfg 未保存(current_wave_config 的 FILE_PATH 为空)时返回明确错误,要求先 save_wave_config——不自动存盘(避免擅自改用户磁盘文件)。 ⚠ close_wave_config -force 会丢弃所有未存盘的 live wave prop(含手设的 radix/ analog),故先 set_wave_zoom 再 set_wave_analog。
Args: start_ns: 缩放起始时间(ns),须 < end_ns。 end_ns: 缩放结束时间(ns)。 wcfg: 显式 wcfg 磁盘路径;缺省自动解析 current_wave_config。 session_id: 目标会话 ID。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wcfg | No | ||
| end_ns | Yes | ||
| start_ns | Yes | ||
| session_id | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |