readable-verilog-workspace
Use before creating or moving files in the designated RTL workspace. Initialize and inspect the layout, place synthesis and simulation tool projects under prj/, and map maintained sources to manuals.
Install
npx skills add https://github.com/Eriemon/verilog-generator/tree/main/skills/readable-verilog-workspace
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install eriemon-verilog-generator@llmmart
git clone https://github.com/Eriemon/verilog-generator.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole eriemon/verilog-generator collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
管理 RTL 工程工作区
检查与初始化
在指定工作目录创建或移动文件之前,与当前主责同轮读取本技能,确认工程根、来源和目标路径。新建工具工程时,将工程目录或启动工具的工作目录设在 <工作目录>/prj/ 下。已有工程的排错与优化沿用原布局;需要新建工具工程时按需建立 prj/。计划迁移已有文件时,先核对源清单、脚本引用和手册路径。
- 完整设计启动时,对实际工程根运行
python -m verilog_generator workspace --work-dir <工程根> --init。重复执行可补齐目录,省略--init为只读检查。 - 核对源码归属及手册路径,报告冲突的原位置和建议位置,由项目负责人决定迁移。旧工程支持根目录的
spec.json、model.py;新旧入口并存时先澄清。 - 每份自维护代码对应
docs/<完整源码相对路径>.md,如tools/build.tcl → docs/tools/build.tcl.md。外部库记录版本与接口;生成缓存排除在源码清单外。
目录归属
| 目录 | 内容 |
|---|---|
rtl/ |
自研 DUT 与设计头文件,可按子系统分目录。FPGA/ASIC 使用可综合 RTL;纯仿真放受测 Verilog 行为模块。 |
tb/ |
自检台、激励、监视器、断言、测试辅助源码。 |
model/ |
独立 Python 入口 model.py;golden/ 存绑定规格和模型版本的期望输出。 |
sim/ |
仿真源清单、工具配置、.do/Tcl;build/ 存编译缓存,runs/ 存运行波形。 |
prj/ |
新建的综合、实现或仿真工具工程。例:Vivado 工程放在 prj/vivado/<工程名>/;VCS 在 prj/vcs/<工程名>/ 编译并保留 simv、csrc 等产物;DC 工作目录可放在 prj/dc/<工程名>/。按实际工具建子目录,工程引用 rtl/、tb/、ip/ 中的维护源,验收报告归入 reports/。 |
ip/ |
IP 配置、包装器、必要模型、约束和供应商原装脚本;记录版本、接口及再生成条件。 |
tools/ |
可复用的 Python 或原生工具。 |
scripts/ |
工程构建、仿真和交付入口(BAT/CMD、PowerShell、Shell),对应 docs/scripts/。 |
docs/ |
docs/spec/spec.json、docs/spec/revisions/ 讨论稿及波形、逐源码说明;docs/release/ 归档两册与逐文件交付。 |
spec/ |
最新正式 spec.md、spec.doc、spec.pdf 和离线媒体 media/。 |
reports/ |
验证、综合、时序和故障证据;workflow/ 存调度状态,verification.json 存对拍通过记录,delivery.json 指向最近成功出版版本。 |
Files (verilog-generator)
-
scripts
-
workspaces
-
layout.py 5.8 KB
Loading…
-
-
-
SKILL.md 3.1 KB
--- name: readable-verilog-workspace description: Use before creating or moving files in the designated RTL workspace. Initialize and inspect the layout, place synthesis and simulation tool projects under prj/, and map maintained sources to manuals. --- # 管理 RTL 工程工作区 ## 检查与初始化 在指定工作目录创建或移动文件之前,与当前主责同轮读取本技能,确认工程根、来源和目标路径。新建工具工程时,将工程目录或启动工具的工作目录设在 `<工作目录>/prj/` 下。已有工程的排错与优化沿用原布局;需要新建工具工程时按需建立 `prj/`。计划迁移已有文件时,先核对源清单、脚本引用和手册路径。 1. 完整设计启动时,对实际工程根运行 `python -m verilog_generator workspace --work-dir <工程根> --init`。重复执行可补齐目录,省略 `--init` 为只读检查。 2. 核对源码归属及手册路径,报告冲突的原位置和建议位置,由项目负责人决定迁移。旧工程支持根目录的 `spec.json`、`model.py`;新旧入口并存时先澄清。 3. 每份自维护代码对应 `docs/<完整源码相对路径>.md`,如 `tools/build.tcl → docs/tools/build.tcl.md`。外部库记录版本与接口;生成缓存排除在源码清单外。 - 新工程布局就绪,把规格路径交[规格](../readable-verilog-spec/SKILL.md)起草接口。已有工程返回源清单或冲突路径给[总调度器](../readable-verilog-generator/SKILL.md),按当前阶段继续;单独整理目录时交付检查结果即可。 ## 目录归属 | 目录 | 内容 | |---|---| | `rtl/` | 自研 DUT 与设计头文件,可按子系统分目录。FPGA/ASIC 使用可综合 RTL;纯仿真放受测 Verilog 行为模块。 | | `tb/` | 自检台、激励、监视器、断言、测试辅助源码。 | | `model/` | 独立 Python 入口 `model.py`;`golden/` 存绑定规格和模型版本的期望输出。 | | `sim/` | 仿真源清单、工具配置、.do/Tcl;`build/` 存编译缓存,`runs/` 存运行波形。 | | `prj/` | 新建的综合、实现或仿真工具工程。例:Vivado 工程放在 `prj/vivado/<工程名>/`;VCS 在 `prj/vcs/<工程名>/` 编译并保留 simv、csrc 等产物;DC 工作目录可放在 `prj/dc/<工程名>/`。按实际工具建子目录,工程引用 `rtl/`、`tb/`、`ip/` 中的维护源,验收报告归入 `reports/`。 | | `ip/` | IP 配置、包装器、必要模型、约束和供应商原装脚本;记录版本、接口及再生成条件。 | | `tools/` | 可复用的 Python 或原生工具。 | | `scripts/` | 工程构建、仿真和交付入口(BAT/CMD、PowerShell、Shell),对应 `docs/scripts/`。 | | `docs/` | `docs/spec/spec.json`、`docs/spec/revisions/` 讨论稿及波形、逐源码说明;`docs/release/` 归档两册与逐文件交付。 | | `spec/` | 最新正式 spec.md、spec.doc、spec.pdf 和离线媒体 `media/`。 | | `reports/` | 验证、综合、时序和故障证据;`workflow/` 存调度状态,`verification.json` 存对拍通过记录,`delivery.json` 指向最近成功出版版本。 |
Reviews (0)
No reviews yet.
Comments
Sign in to join the conversation.
No comments yet. Start the conversation.