CDT 通用 Tcl 直通 (受护栏)
fpga_cdtExecute FPGA config/debug Tcl scripts via JTAG: scan chains, read properties, program SPI flash, capture ILA signals, and control virtual I/O—with auto connect/scan and write confirmation.
Instructions
对 cdt_js 跑任意 cfg_*(cdt_cfg) 或 dbg_*(cdt_dbg) Tcl,覆盖扫链/读属性/配置/SPI flash/ILA 抓波/virtual-IO 全套。读类(scan/read/list/help)自由;写器件类(cfg_program/cfg_jtag_flash_erase|program/dbg_program 等)需 confirm:true + expectIdcode(先 scan 校验匹配)。connect:true(默认)自动包 connect/scan_chain/disconnect,只需给 commands;raw tcl 用 {{PORT}} 占位端口。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tcl | No | 原始完整 Tcl 脚本(与 commands 二选一);用 {{PORT}} 占位 cdt_js 端口;提供时不自动包 connect | |
| host | No | 远程执行设备 id(pango-mcp.config.json 的 hosts;省略=本机)。远程时在该设备上跑 cdt_cfg/cdt_dbg。 | |
| port | No | cdt_js 端口,默认按版本(2025.2=65425/2022.2=65420) | |
| detail | No | 返回粒度,默认 summary | |
| confirm | No | 脚本含写器件命令时必须 true | |
| connect | No | 是否自动包 connect/scan_chain/disconnect,默认 true(仅对 commands 生效) | |
| commands | No | 要执行的命令(每行一条);connect:true 时自动包 connect/scan_chain | |
| pdsVersion | No | 可选 PDS 版本/标签 | |
| timeoutSec | No | 超时秒数,默认 60 | |
| deviceIndex | No | 写器件前 scan 校验的设备索引,默认 0 | |
| interpreter | No | 解释器,默认 cdt_cfg(cfg_*);ILA/virtual-IO 用 cdt_dbg(dbg_*) | |
| expectIdcode | No | 写器件脚本必填:期望 IDCODE 或别名;运行前 scan 校验匹配 |