Skip to content
Back to skills

Readable Verilog Review

ASecurity

Use for read-only Verilog review of elaboration, ports, drivers, feedback, incomplete combinational assignments or handshake behavior. Use for explicit FSM, combinational-cone or partition-advice requests.

  • 346 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 2, 2026
ai-agentspython

Security analysis

A100/100

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

Scanned December 2, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Readable Verilog Review?

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

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

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-review
description: Use for read-only Verilog review of elaboration, ports, drivers, feedback, incomplete combinational assignments or handshake behavior. Use for explicit FSM, combinational-cone or partition-advice requests.
---

# 只读 RTL 审查

## 取得证据

1. 按工程顺序提供顶层、实际子模块、源文件与 include 目录。运行 `& $py -m verilog_generator review @rtlFiles -I $includeDir`,读取 `findings[].file/line/rule/level/message`。
2. 从用户关注的输出或失败拍反查驱动、使能、时钟与消费端采样。查区域位置时用 `python -m verilog_generator format <文件> --spec <规格.json> --check-regions`。
3. 每条结论列源码位置、触发条件、可观察后果、修复方向。区分脚本发现和人工判断;对有意缩位、未用端口、重复赋值或锁存注明依据。缺少依赖、非法输入策略或时钟关系时标明待核实项。

## 按设计核对

- **命名与绑定**:剥离方向和角色标记后应能识别功能。核对协议前缀、域、极性、速率/通道编号;误名给出依据与改名范围。按参数展开实例后,对照 spec、RTL、父实例及波形检查 formal/actual 的方向、位宽、符号、位置和空连接。共享时钟与厂商固定引脚以实际合同为准。
- **驱动与组合逻辑**:`reg.multiple_drivers` 列出驱动者、时钟与重叠位段;检查未驱动、过程赋 net、无消费或参数不生效,单独分析合法三态。`comb.feedback` 给闭环路径;锁存给目标和遗漏条件。核对敏感项、阻塞/非阻塞、覆盖优先级、互斥分支与时钟使能保持。
- **算术与参数**:验算中间位宽、扩展、混合符号、字面量、切片和索引。用最不利合法参数比较终值与寄存器容量,检查终值前后一拍。展开实际功能分支和循环,说明大型动态选择的代价;资源与时序结论需综合/实现证据。
- **时钟、复位与 CDC**:核对真实时钟源、域、误接、组合生成时钟;复位沿、判定、复位值、毛刺、释放和同拍优先级。同步链、握手、异步 FIFO 与器件约束分别取证。
- **状态与事务**:检查 case 标签重叠、常量化、X/Z 被通配隐藏、复位状态可达性、自环、退出与非法恢复。按真实接受事件核对载荷、指针、计数、有效位;检查停顿、清空、复位与新输入竞争。源不可停时追踪前一事务未消费、下一事务已开始时恢复接收的边界。
- **布局与说明**:逐模块对照英中头的名称、功能、版本和依赖;正文、区域标题用已确认的 `comment_language`,术语保留原文。区分输出声明/连线/处理、实例连线/实例,核对组说明、首个实体、参数检查末区及 generate 作用域。对声明、关键赋值、实例、状态和分支检查用途、单位、极性、条件;指出过时或占位注释。机器日志另入报告。

- 已确认的 RTL 缺陷在修复获授权后交[编辑](../readable-verilog-edit/SKILL.md),附行号、触发条件及影响;驱动来源仍不清楚时交[故障定位](../readable-verilog-debug/SKILL.md)沿父实例追踪。完整设计通过静态审查后,将最终源清单交[验证](../readable-verilog-verify/SKILL.md)编译对拍。

## 专项与退出

- 用户明确要求才追加 `--architecture-checks`,检查连续赋值组合锥、运算下界及候选 FSM 分工。人工核对编码翻转、状态数、特化循环、寄存器 D 端和跨实例路径;建议改流水级或状态划分时说明延迟与协议影响。拆分只给文字建议。
- 退出码 0 为无阻断发现,1 为有阻断发现,2 为调用或环境错误。`warning`、`review` 结合设计意图判读。

Files in this skill

  • SKILL.md3.7 KB
  • scripts/checks/design.py3.3 KB
  • scripts/checks/structure.py6.9 KB

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.