xdc_lint
Run static lint checks on XDC constraint files to catch pin conflicts, missing IOSTANDARD, duplicate ports, and missing clock periods before synthesis.
Instructions
对 XDC 约束文件做静态检查(pure Python,不依赖 Vivado 综合)。
综合前就能捕到这些常见错误,省掉 30+ 秒的跑综合等待:
PIN_CONFLICT:同一物理引脚被多个 port 占用
MISSING_IOSTANDARD:有 PACKAGE_PIN 却没配 IOSTANDARD(NSTD-1 / BIVC-1 隐患)
DUPLICATE_PORT:同 port 被多次约束不同引脚(后者覆盖)
CLOCK_NO_PERIOD:create_clock 缺 -period
PIN_CONFLICT_CROSS_FILE:多个 XDC 文件间的引脚冲突
Args: xdc_paths: 要检查的 XDC 文件路径列表。若不传,则从当前 session 的项目里 自动抓取所有 constrs_1 下的 XDC 文件。 session_id: 目标会话 ID(仅在不传 xdc_paths 时使用)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xdc_paths | No | ||
| session_id | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |