Skip to content
Back to skills

Readable Verilog Spec

ASecurity

Discuss a new RTL contract or an unresolved behavior with the user. Produce a reviewable Verilog specification, cycle examples and WaveDrom timing diagrams before modeling.

  • 346 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentspythongo

Works with

  • cli

Security analysis

A100/100

Pro scans all 19 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add Eriemon/verilog-generator --skill readable-verilog-spec --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Readable Verilog Spec?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Readable Verilog Spec
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/eriemon-readable-verilog-spec/badge)](https://www.skillsdirectory.com/skills/eriemon-readable-verilog-spec)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: readable-verilog-spec
description: Discuss a new RTL contract or an unresolved behavior with the user. Produce a reviewable Verilog specification, cycle examples and WaveDrom timing diagrams before modeling.
---

# 讨论 RTL 规格

完整新设计先由[总调度器](../readable-verilog-generator/SKILL.md)登记目标;收到 spec 分派或独立规格请求时直接执行。

## 起草与确认接口

1. **首轮选择。** 工程顶层统一记录 `implementation_target.kind`(fpga / asic / simulation)与 `comment_language`(Chinese 默认、English、自定义名称或约定)。向用户确认后复用;自定义语言按需在顶层 `region_titles` 填写分区译名。FPGA 用专用资源时,与[FPGA](../readable-verilog-fpga/SKILL.md)核对并记录 vendor、family、part、tool 及推断/原语/IP 依据;ASIC 说明工艺宏边界;纯仿真说明时标、事件顺序、模型假设与验收输出。
2. **创建草稿。** 运行 `python -m verilog_generator init-spec --module <功能模块名> --comment-language "<语言>" --out <工程根>/docs/spec/spec.json`。多模块重复传 `--module`;无参数填 `[]`,空字段待讨论。已有草稿按 `draft_issues[].paths` 集中补齐。spec 负责从已知事实填写;标为 user_if_unresolved 的项先查已有接口与约束,剩余决定合并询问。
3. **展示接口表。** 从规格、上层实例和真实约束取得模块名、职责、协议版本与角色、端口名/方向、位宽表达式及默认展开、符号与位序、时钟域、边沿、电平和传输条件。列参数默认值、合法范围、交叉约束及对硬件的影响。外部输入逐项说明来源域、采样域、同步或握手、可见延迟。
4. **绑定端点。** 与[总线技能](../readable-verilog-bus/SKILL.md)逐端点填 `bus_interfaces`、异常与电气边界。端口表、samples、WaveJSON、模型和 TB 使用同一工程名(如 `i_uart_tx_data`)。厂商 IP 查该配置的生成声明,记录 formal 到工程名、常量、留空输出的映射及待确认项。参考页的示例位宽须经用户确认。

## 把功能写成可验收的场景

- **逐块说明实现。** 写清接收条件、旧状态、分支优先级、更新对象、输出何时可见及保持多久;说明复位置位/释放和复位后首个有效采样。用能区分候选行为的输入讨论未定项,记录选择、理由和待确认问题。
- **逐例推演。** 覆盖实际存在的正常传输、连续输入、保持、同拍竞争和异常恢复。每例给出功能、初态、采样拍、输入组合、期望输出及成因;以 `model_case` 对齐同版激励及重叠的输入/输出检查点。[规格条款与完整示例](references/contract.md)
- **展示波形。** 每模块至少一张 WaveDrom,各场景波形与示例数值一致。用逐拍 `samples` 生成 WaveJSON 和 Markdown,也可提供手写 WaveJSON;单比特保持用 `.`(如 8 拍低电平为 `0.......`),脉冲写出实际翻转沿。核对 SVG 中的边沿与采样表一致,尤其是分频时钟、帧选和串行数据;边沿归属不清时补字符时序。WaveDrom CLI 缺失时保留 WaveJSON 草稿,恢复 SVG 渲染再确认。
- **交付。** 独立审阅用 `python -m verilog_generator write-spec --spec spec.json --out-dir <新目录>`;完整设计用 dispatch。向用户展示参数、接口、取舍、波形和检查点,可在一轮确认。完整设计由用户确认后,把该版规格与逐拍检查点交[模型](../readable-verilog-model/SKILL.md)生成 golden;参数、端口集合/方向、行为变更或调度退回时展示差异并重新确认。

Files in this skill

  • SKILL.md3.6 KB
  • examples/capture-spec.doc85 KB
  • examples/capture-spec.md4 KB
  • examples/i2s-tx/media/0f9d1ded9f435940-narrow_word-2.svg45 KB
  • examples/i2s-tx/media/217697abfaab4550-bclk_phase.svg45.6 KB
  • examples/i2s-tx/media/260933aadd0ddb46-narrow_word-2.json754 B
  • examples/i2s-tx/media/2feca6e62da796b5-full_frame-1.json1001 B
  • examples/i2s-tx/media/4697940e151d6d4f-narrow_word-1.svg51.3 KB
  • examples/i2s-tx/media/5ef2f6be00d89d20-full_frame-2.svg50.1 KB
  • examples/i2s-tx/media/6d8d1e287e12aae1-full_frame-1.svg51.3 KB
  • examples/i2s-tx/media/6da0282d85fd6246-left_word.json251 B
  • examples/i2s-tx/media/727ac1d82b2d5db1-no_sample_first.json865 B
  • examples/i2s-tx/media/8fd8b118714bb50a-left_word.svg47.1 KB
  • examples/i2s-tx/media/a72f2f29db0a9c7a-bclk_phase.json467 B
  • examples/i2s-tx/media/c0f79d53a0d036c8-narrow_word-1.json1003 B
  • examples/i2s-tx/media/c38a677cc6e37f60-no_sample_first.svg56.9 KB
  • examples/i2s-tx/media/ec2f8c3bb807faa0-full_frame-2.json986 B
  • examples/i2s-tx/media/f43aedde157e3f38-right_word.svg47.1 KB
  • examples/i2s-tx/media/ff9c396a6106b43b-right_word.json251 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.