parse_xpr
Parse Vivado .xpr files offline to extract part, top module, sources, constraints, and build runs without launching Vivado, avoiding GUI startup delays and Tcl errors.
Instructions
离线解析 Vivado 工程文件(.xpr),无需启动 Vivado。
秒级摸底陌生工程 / CI 门禁:不启 Vivado(避开 120s GUI 冷启 + 中文路径 TclStackFree 崩),纯 Python 读 .xpr 拿 part / 顶层 / 源文件(按 fileset 分组, 含 .v/.mem/.xci IP)/ XDC 约束 / synth+impl runs 及 Strategy。 对照 get_project_info(需先 start_session + open_project),本工具完全离线。
Args: file_path: .xpr 工程文件的绝对路径。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |