<一句话说清『这个 skill 做什么 + 何时调用』。把最关键的触发场景放最前面。结尾给 2-3 个用户会说的关键词。>
日本語の概要は準備中です。原文の説明を表示しています。
调用 Magic 8.3.641 执行 PD 操作:floorplan / place / DRC / layout extraction。
触发场景:(1) bba-guru-pd 做 floorplan 与 placement;(2) routing 后做 DRC;(3) LVS 前 extract SPICE;(4) 显式 /bb-invoke-magic。
インストールする前に、エージェントに与えられる指示の中身を確認できます。
按 action 切换四种模式调 Magic:floorplan / place / drc / extract。
注(M-05 dedup):
action=floorplan在本 skill 中保留为底层入口;bba-guru-pd 实际不直接调 floorplan,而是先调bb-create-floorplan生成 TCL,再以action=place把 TCL 执行(floorplan TCL 被place_design流程 source)。action=floorplan仅供 ad-hoc 调试场景使用。
bba-guru-pd| arg | type | required | 说明 |
|---|---|---|---|
| tech_file | path | true | ASAP7 Magic tech file(.tech) |
| layout_input | path | true | floorplan/place:.tcl;drc/extract:.def/.mag |
| action | enum | true | floorplan | place | drc | extract |
| design_name | string | true | — |
| top_module | string | true | — |
| stamp | string | false | <auto> |
| field | 值(按 action) |
|---|---|
artifact_path | drc→designs/<name>/pd/drc_report.txt;place→pd/placed.def;floorplan→pd/floorplan.mag;extract→pd/extracted.spice |
script_path | designs/<name>/pd/magic_<action>_<stamp>.tcl |
log_path | designs/<name>/pd/magic_<action>_<stamp>.log |
violations | int(drc) |
violation_list | [{type,layer,coord}](drc) |
clean | bool(drc:violations==0) |
valid | bool |
error | string|null |
scripts/render_magic_tcl.py 按 action 生成 TCL:
# action=drc
tech load <tech_file>
load designs/<name>/pd/routed.def
drc check
drc count
drc find
writeall force
quit
# action=place
source <layout_input>
place_design
write_def designs/<name>/pd/placed.def
quit
# action=extract
tech load <tech_file>
load designs/<name>/pd/<top>.mag
extract all
ext2spice -o designs/<name>/pd/extracted.spice
quit
scripts/run_magic.py:
source ~/wrk/eda_opensources/eda_env.shmagic --version | grep "8.3" 否则 VERSION_MISMATCHtimeout 1800 magic -dnull -noconsole -T <tech_file> -rcfile /dev/null < <tcl> > <log> 2>&1DRC style.*?(\d+) error,violation 列表 (\w+) at (\d+),(\d+) layer (\w+)placed.def 存在 + size>0Error:extracted.spice 存在写 magic_<action>_<stamp>.json。
按 action 返回对应字段。bba-guru-pd:
bb-invoke-netgen| action | 通过 |
|---|---|
| drc | violations == 0 |
| place | placed.def 存在 |
| floorplan | log 无 Error |
| extract | extracted.spice 存在 |
失败 ≤5 次重试;超出开 synth-needs-fix。
scripts/render_magic_tcl.py、scripts/run_magic.py、scripts/parse_magic.pyreferences/asap7_magic_tech.mdGotcha/magic_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。
日本語の概要は準備中です。原文の説明を表示しています。