CRG 生成

SkillFiles & storage

Generates CRG (clock and reset generation) RTL and SDC constraints from Excel configuration.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the CRG 生成 skill

What this skill tells your AI

The instructions your AI receives, as published by siliconpeasant/vibe_soc in .agents/skills/crg-gen/SKILL.md and read by ahel’s review.

优先通过已注册 MCP 工具调用:

crg-gen.crg_gen(excel_file=<path.xlsx>, output_dir=<out_dir>)

本地等价 CLI:

python3 .agents/skills/crg-gen/scripts/crg_gen.py <crg_config.xlsx> <output_dir>/

从 Excel 配置生成时钟复位模块和 SDC 约束。

输入:Excel(含 top_infoclk_genrst_genuser_defined_reguser_codeuser_defined_intpuser_sdc sheet)

输出

  • <name>_clk_gen.v — 时钟生成
  • <name>_rst_gen.v — 复位生成
  • <name>_crg_top.v — CRG 顶层
  • <name>_crg_top.csv — 连接关系(自动调用 soc_build.py
  • <name>_crg.yml / <name>_crg_apb_regfile.v — 寄存器(自动调用 yml2reg.py
  • .sdc — 约束文件(若配置提供)

约定

  • 生成产物先落到模块 de/run/crg_gen/(或任务约定目录),再整理进 de/rtl/ / de/syn/
  • 不手写替代已批准 Excel 配置下的时钟分频/复位同步树。
  • Excel 模板:references/crg_demo.xlsx

Signals

GitHub stars
38
Forks
18
Last commit
Aug 2026
Advanced
Catalog kind
skill
Gateway key
crg-gen
Source
github.com/siliconpeasant/vibe_soc