Skip to content
cccskills
FreePublished on GitHub

bb-invoke-netgen

调用 Netgen 1.5.275 做 LVS 对比:综合网表 vs Magic 提取的 SPICE,必须 match 才能 signoff。触发场景:(1) bba-guru-pd extract 后做 LVS;(2) 显式 /bb-invoke-netgen。

The English summary is being prepared. Showing the original description.

See how to install

Files included (7)

  • SKILL.md2.7 KB
  • Gotcha/lvs_pitfalls.md3.5 KB
  • Gotcha/netgen_pitfalls.md2.5 KB
  • references/asap7_netgen_setup.md1.5 KB
  • scripts/parse_lvs.py3.7 KB
  • scripts/render_netgen.py3.1 KB
  • scripts/run_netgen.py4.2 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

bb-invoke-netgen

职责

对比 schematic netlist(综合 netlist.v)与 layout netlist(Magic extracted.spice),输出 LVS 报告,必须 match。

  • 调用者:bba-guru-pd
  • 上游:bb-invoke-magic(action=extract)
  • 禁止使用:Task / Agent / Skill

Input Args

argtyperequired说明
schematic_netlistpathtruedesigns/<name>/synth/netlist.v
layout_netlistpathtruedesigns/<name>/pd/extracted.spice
tech_filepathtrueASAP7 netgen setup file(.tcl)
top_modulestringtrue—
design_namestringtrue—
stampstringfalse<auto YYYYMMDD-HHMMSS>

Output Contract

field值
artifact_pathdesigns/<name>/pd/lvs_report.txt
log_pathdesigns/<name>/pd/netgen_<stamp>.log
matchbool("Circuits match uniquely")
discrepancies[{kind, instance, schematic, layout}]
validbool
errorstring|null

4-Phase 执行

Phase 1 — render_netgen_cmd

scripts/render_netgen.py 生成 batch 命令:

netgen -batch lvs \
  "designs/<name>/pd/extracted.spice <top>" \
  "designs/<name>/synth/netlist.v <top>" \
  <tech_file> \
  designs/<name>/pd/lvs_report.txt

Phase 2 — run_netgen

scripts/run_netgen.py:

  1. source ~/wrk/eda_opensources/eda_env.sh
  2. netgen -batch lvs --version 2>&1 | grep "1.5" 否则 VERSION_MISMATCH
  3. timeout 600 netgen -batch lvs <args> > <log> 2>&1
  4. log 追加 exit:<rc>

Phase 3 — parse_lvs

scripts/parse_lvs.py 扫描 lvs_report.txt:

  • 末尾 Circuits match uniquely. → match=true
  • Circuits differ → match=false,提取后续 Net mismatch / Device mismatch 段为 discrepancies

写 lvs_<stamp>.json。

Phase 4 — return

返回 JSON。bba-guru-pd:

  • match=true → 进入 bb-invoke-opensta(mode=post_pd)
  • match=false → 黑盒/命名冲突,开 synth-needs-fix

收敛 / 失败

状态行动
match=true进 post-PD STA
match=false开 synth-needs-fix
VERSION_MISMATCH修 eda_env.sh
Phase 2 timeout(600s)error="LVS_TIMEOUT"

资源索引

  • scripts/render_netgen.py、scripts/run_netgen.py、scripts/parse_lvs.py
  • references/asap7_netgen_setup.md — setup file 与 device map
  • Gotcha/lvs_pitfalls.md — 黑盒、port order、电源 net 命名

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

<一句话说清『这个 skill 做什么 + 何时调用』。把最关键的触发场景放最前面。结尾给 2-3 个用户会说的关键词。>

The English summary is being prepared. Showing the original description.

amoslee2026/Babel49Updated Aug 4, 2026

从粗略 idea 设计芯片或功能模块架构,输出专业架构文档到 spec_arch 目录。Trigger: 芯片架构设计, IC架构, 电路模块设计, 硬件架构. Generate IC/Chip architecture specification from rough ideas.

The English summary is being prepared. Showing the original description.

amoslee2026/Babel49Updated Aug 4, 2026

基于 AST 检查 CDC/RDC 违例:对比 MAS clock_domains 找跨域信号,检查是否被 2ff-sync CBB 保护。触发场景:(1) bba-guru-synthesis 综合前;(2) 显式 /bb-check-cdc。

The English summary is being prepared. Showing the original description.

amoslee2026/Babel49Updated Aug 4, 2026

调用 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。

The English summary is being prepared. Showing the original description.

amoslee2026/Babel49Updated Aug 4, 2026

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.

The English summary is being prepared. Showing the original description.

amoslee2026/Babel49Updated Aug 4, 2026

对抗性代码评审:代码质量 / 可维护性 / 时序风险 / 综合友好度 / MAS 对齐度。默认 ruthless 模式,找 EVERY flaw。触发场景:(1) RTL lint 后;(2) 显式 /bb-code-review。

The English summary is being prepared. Showing the original description.

amoslee2026/Babel49Updated Aug 4, 2026

See all skills by amoslee2026

Report a problem with this skill