get_pre_commit_summary
Generate a markdown engineering summary for git commit bodies, capturing Vivado timing (WNS/WHS), resource usage (LUT/FF/BRAM/DSP), and CW/ERROR counts to replace vague commit messages.
Instructions
生成一段可以贴进 git commit body 的工程摘要(时序/资源/CW)。
典型用途:做完 RTL 改动、跑完 impl 之后,想把关键数字写进 commit body, 避免 "改了 UART 模块" 这种无信息量的 commit。本工具一次性采样:
项目 + part + 顶层
时序摘要(WNS / WHS / 失败端点数)
资源占用(LUT / FF / BRAM / DSP / IOB 百分比)
CW / ERROR 计数(若有 impl_run)
综合生成 READY/WARN/FAIL 门禁标签
输出为 markdown 片段,直接粘贴到 commit 描述。
Args: impl_run: 用来查 runme.log 计数的 run(默认 impl_1)。 session_id: 目标会话 ID。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| impl_run | No | impl_1 | |
| session_id | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |