跳到正文
cccskills
免费在 GitHub 公开

bb-create-verif-plan

把 mas/verif_plan_seed.md 扩展为完整验证计划 markdown(功能检查点、覆盖率目标、边界、随机约束、test case 清单)。触发场景:(1) bba-guru-verification 启动时;(2) 显式 /bb-create-verif-plan。

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(6)

  • SKILL.md2.8 KB
  • assets/verif_plan.md.tmpl916 B
  • references/coverage_naming.md1.1 KB
  • scripts/parse_plan.py1.7 KB
  • scripts/render_plan_py.py1.5 KB
  • scripts/run_gen_plan.py1.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

bb-create-verif-plan

职责

读 verif_plan_seed.md + MAS(接口/FSM/clock_domains),输出 verification_plan.md,含 6 个必备 section。

  • 调用者:bba-guru-verification
  • 下游:bb-generate-tb
  • 禁止使用:Task / Agent / Skill

Input Args

argtyperequired默认说明
verif_plan_seedpathtrue—designs/<name>/mas/verif_plan_seed.md
mas_pathpathtrue—designs/<name>/mas/mas.json
design_namestringtrue——
stampstringfalse<auto>—

Output Contract

field值
artifact_pathdesigns/<name>/verif/verification_plan.md
script_pathdesigns/<name>/verif/gen_plan_<stamp>.py
sectionslist[str]
functional_pointsint(FTP 数)
coverage_binsint
validbool
errorstring|null

verification_plan.md 必备 sections

  1. Functional Coverage Groups(FSM 状态 / 操作模式各一)
  2. Code Coverage Targets(line / branch / toggle / condition;100%)
  3. Functional Test Points(编号 FTP-NNN,与 PRD FR 对应)
  4. Corner Cases(边界值 / 溢出 / 复位时序 / CDC crossing)
  5. Random Constraints(约束随机策略)
  6. Test Case List(FTP → seq 映射,供 bb-generate-tb 用)

4-Phase 执行

Phase 1 — render_plan_py

scripts/render_plan_py.py:

import json
mas = json.load(open(mas_path))
seed = open(verif_plan_seed).read()
# 1. 从 mas.fsm 提 FSM 状态 → covergroup
# 2. 从 mas.interfaces 提关键信号 → coverpoint
# 3. 把 seed 中已列条目编号为 FTP-001..
# 4. 渲染 6-section markdown

Phase 2 — run_gen_plan

timeout 180 uv run python <script_path> > <artifact_path> 2> <log>

Phase 3 — parse_plan

scripts/parse_plan.py:

  • 正则查 6 个必备 ## <Section> 标题 → sections
  • 统计 FTP-\d+ 出现次数 → functional_points
  • 统计 covergroup bins 行 → coverage_bins
  • valid = (sections == 6_required)

Phase 4 — return

返回 JSON。bba-guru-verification 用此初始化 coverage tracker,调 bb-generate-tb。

收敛 / 失败

状态行动
valid=true进 bb-generate-tb
sections 缺失重生成 1 次
仍失败error="plan sections incomplete"

资源索引

  • scripts/render_plan_py.py、scripts/run_gen_plan.py、scripts/parse_plan.py
  • assets/verif_plan.md.tmpl
  • references/coverage_naming.md — covergroup/bin 命名规范

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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

中文简介正在准备中。当前显示原文说明。

amoslee2026/Babel492026年8月4日 更新

bb-arch

免费

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

中文简介正在准备中。当前显示原文说明。

amoslee2026/Babel492026年8月4日 更新

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

中文简介正在准备中。当前显示原文说明。

amoslee2026/Babel492026年8月4日 更新

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

中文简介正在准备中。当前显示原文说明。

amoslee2026/Babel492026年8月4日 更新

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.

中文简介正在准备中。当前显示原文说明。

amoslee2026/Babel492026年8月4日 更新

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

中文简介正在准备中。当前显示原文说明。

amoslee2026/Babel492026年8月4日 更新

查看 amoslee2026 的全部技能

报告此技能的问题