Skip to content
Back to skills

Readable Verilog Edit

ASecurity

Use when modifying, repairing or annotating existing Verilog. Start from real source, a requested behavior change, a diagnostic, or a failing waveform.

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

Security analysis

A100/100

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

Scanned December 2, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Readable Verilog Edit?

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

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

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-edit
description: Use when modifying, repairing or annotating existing Verilog. Start from real source, a requested behavior change, a diagnostic, or a failing waveform.
---

# 修改与修复已有 RTL

## 定位和修改

1. 核对目标模块、源码编码、模块头、generate 层次、综合属性及上层连接。将故障写成可重放的条件,沿声明、写入、使用点找到首个偏离规格的赋值。
2. 检查位宽、符号、重叠驱动、缺省分支、级间有效位及同拍优先级。例如两个独立 `if` 可能使后一次非阻塞赋值覆盖复位;先确认复位优先,再改为 `if … else if`。
3. 做最小修改。保留原编码、无关分组、过程边界、位置绑定、显式初值和接口时序。不得为消告警翻转极性、拆过程、补零或加寄存器。改变握手或增加延迟时,将反例和拟变更的周期关系交[规格](../readable-verilog-spec/SKILL.md)确认。
4. 改名时列出“旧名 → 功能名 → 驱动与消费依据”。私有信号核对全部引用、层次探针和约束;公开端口/参数还需同步父实例具名关联、工程配置和 TB,保持位置语义。外部拼写已锁定时在边界映射;缺调用点则列出未核实范围。

## 注释和版本

- 正文与区域标题沿用 `comment_language`;独立请求未定时确认语言(默认 Chinese)。逐模块核对英中头、实际功能及依赖。保留版权、工具注释和历史;单语或短头按文档任务范围补齐。翻译保留参数值、单位、极性和采样沿。
- 行为变化同步修订相应条件、延迟与范围说明。仅排版、翻译或补注释默认保留版本;兼容修正建议升次版本,接口、外部时序或架构重大变化建议升主版本。确认后两段同改版本、日期、历史。

## 按任务验收

- **行为修复**:对最终文件[排版](../readable-verilog-format/SKILL.md)、[审查](../readable-verilog-review/SKILL.md),将最终源码和原失败激励交[验证](../readable-verilog-verify/SKILL.md),重放失败及相邻正常情况。给出根因、改动位置、首个差异周期与复验结果。
- **仅注释**:保留原件,只改指定实体的说明,跳过整文件排版。核对宏续行、综合指令、属性和 RTL token,运行 `& $py -m verilog_generator comment-check $original $candidate`。要求 `code_unchanged`、`comments_changed` 同为真;未验证的预处理分支单列。

Files in this skill

  • SKILL.md2.5 KB
  • scripts/edits/comments.py2 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.