<一句话说清『这个 skill 做什么 + 何时调用』。把最关键的触发场景放最前面。结尾给 2-3 个用户会说的关键词。>
日本語の概要は準備中です。原文の説明を表示しています。
调用 KLayout 0.30.8 执行 GDSII 导出(stream out)、GDS-level DRC、或导出后 verify。PD 流程末尾产出最终 .gds(signoff 产物)。
触发场景:(1) bba-guru-pd routed 后 GDS export;(2) GDS 层 DRC 检查;(3) 导出后 verify;(4) 显式 /bb-invoke-klayout。
インストールする前に、エージェントに与えられる指示の中身を確認できます。
按 action 切换三种模式调 KLayout:gdsii_export(DEF → GDS,别名 export_gds)、drc(GDS 层规则检查)、或 verify(导出后回读 + 单元完整性校验)。
bba-guru-pd| arg | type | required | 说明 |
|---|---|---|---|
| input_def | path | true | export/verify: pd/routed.def 或 gdsii/<name>.gds;drc: pd/*.gds |
| tech_file | path | true | ASAP7 KLayout tech file(.lyt) |
| action | enum | true | gdsii_export (== export_gds alias) | drc | verify |
| design_name | string | true | — |
| top_module | string | true | — |
| runset | path | false | DRC 模式 runset 路径(默认 ASAP7 内置) |
| stamp | string | false | <auto YYYYMMDD-HHMMSS> |
| field | 值 |
|---|---|
artifact_path | export→designs/<name>/gdsii/<name>.gds;drc→designs/<name>/pd/klayout_drc_<stamp>.lyrdb;verify→designs/<name>/gdsii/<name>_verify_<stamp>.json |
script_path | designs/<name>/pd/klayout_<action>_<stamp>.lym |
log_path | designs/<name>/pd/klayout_<action>_<stamp>.log |
gds_size_bytes | int(export 模式) |
violations | int(drc 模式) |
verify_ok | bool(verify 模式:cells_expected == cells_found 且无 open 错误) |
valid | bool |
error | string|null |
scripts/render_klayout.py 按 action 渲染 LYM/Ruby 脚本,承载:
assets/export_gdsii.lym)assets/drc_runset.drc)scripts/run_klayout.py:
source ~/wrk/eda_opensources/eda_env.shklayout -v 2>&1 | grep "0.30" 否则 VERSION_MISMATCHtimeout 1800 klayout -b -rd input=<def> -rd tech=<tech> -rd output=<gds> -r <script> > <log> 2>&1exit:<rc>scripts/parse_klayout.py:
.gds 存在 + size>0 → valid=true,记 gds_size_bytes.lyrdb 中 <item> 数 → violationscells_found=<N>、opens=<M> 等指标 → verify_ok = (opens==0 && cells_found>=cells_expected)写 klayout_<action>_<stamp>.json。
返回 JSON。
valid=true → 触发 verify 二次校验后 PD signoffviolations==0 → 干净verify_ok=true → 最终签字| 状态 | 行动 |
|---|---|
| export valid=true | signoff |
| export valid=false | 上溯 Magic DRC 定位 |
| drc violations>0 | bba-guru-pd 开 synth-needs-fix(综合冲突)或重布线 |
VERSION_MISMATCH | 修 eda_env.sh |
| Phase 2 timeout(1800s) | error="KLAYOUT_TIMEOUT" |
scripts/render_klayout.py、scripts/run_klayout.py、scripts/parse_klayout.pyassets/export_gdsii.lym — DEF→GDS LYM 模板assets/drc_runset.drc — ASAP7 DRC runset 模板references/asap7_klayout_tech.mdGotcha/klayout_pitfalls.mdまだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
<一句话说清『这个 skill 做什么 + 何时调用』。把最关键的触发场景放最前面。结尾给 2-3 个用户会说的关键词。>
日本語の概要は準備中です。原文の説明を表示しています。
从粗略 idea 设计芯片或功能模块架构,输出专业架构文档到 spec_arch 目录。Trigger: 芯片架构设计, IC架构, 电路模块设计, 硬件架构. Generate IC/Chip architecture specification from rough ideas.
日本語の概要は準備中です。原文の説明を表示しています。
基于 AST 检查 CDC/RDC 违例:对比 MAS clock_domains 找跨域信号,检查是否被 2ff-sync CBB 保护。触发场景:(1) bba-guru-synthesis 综合前;(2) 显式 /bb-check-cdc。
日本語の概要は準備中です。原文の説明を表示しています。
调用 babel-lsp / verible-verilog-lint 检查 SV 源码。src 必须可综合(零 syntax error),tb 允许 verification constructs。发现 src error 时自动修复重检(max 3 iter)。触发:(1) bba-guru-rtl 生成后;(2) RTL 修复重检;(3) 显式 /bb-check-lint。
日本語の概要は準備中です。原文の説明を表示しています。
Babel internal issue protocol — close a handoff after downstream agent picked it up or user signed off. Moves designs/<name>/.handoff/<label>.md to .handoff/closed/ (using mv per CLAUDE.md), appends to handoff_log.jsonl.
日本語の概要は準備中です。原文の説明を表示しています。
对抗性代码评审:代码质量 / 可维护性 / 时序风险 / 综合友好度 / MAS 对齐度。默认 ruthless 模式,找 EVERY flaw。触发场景:(1) RTL lint 后;(2) 显式 /bb-code-review。
日本語の概要は準備中です。原文の説明を表示しています。