Skip to content
Back to skills

Readable Verilog Verify

ASecurity

Use when compiling Verilog-2001, running a self-checking testbench, or diagnosing the first compile, elaboration or simulation failure from tool output.

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

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-verify --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Readable Verilog Verify?

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

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

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-verify
description: Use when compiling Verilog-2001, running a self-checking testbench, or diagnosing the first compile, elaboration or simulation failure from tool output.
---

# 编译与自检仿真

## 准备自检台

- 从 spec 推导激励、期望与采样时刻。覆盖相关边界:复位与使能同拍、连续传输后停顿、空满、参数极值、符号边界、首次进位和非法恢复。多时钟域按各域事件记账,按事务顺序对照。
- 标明激励条件、采样沿与调度阶段、独立期望来源。载荷和有效位同拍比较,未知值用四态比较。各模块头英中双语;正文与区域标题用 `comment_language`,协议名、信号和机器标记保留原文。
- 设置超时及完成判据,失败打印首个周期、期望与实际。硬件设计的仿真激励与延迟放在 TB;纯仿真 DUT 可含规格约定的延迟。参数诊断沿用 `> INFO: [Verilog]`、`> WARNING: [Verilog]`、`> ERR: [Verilog]`。

## 编译、运行、判读

1. 核对 DUT/TB 顶层、源顺序、include 和向量路径。从能解析相对向量的目录运行;有头文件追加 `-I $includeDir`。默认用套件的 `iverilog -g2001` 和 `vvp`;指定其他仿真器时走工程已有入口。

```powershell
& $py -m verilog_generator verify @rtlFiles --top $designTop
& $py -m verilog_generator verify @rtlFiles $tbFile --top $tbTop --run --timeout 120 --pass-marker $passMarker --fail-marker $failMarker
```

2. 新 TB 的成功、失败标记独立成行,检查 `self_check.pass_seen`、`fail_seen` 和进程退出码。失败或超时须非零。已有 TB 可按原判据验收;报告功能结果读 `functional_verdict`。未传标记或仅编译为 `not_checked`;正常运行并满足标记判据为 `pass`,自检失败为 `fail`。原 `passed` 保留进程/标记判定。完整调度的功能通过还须 golden 对拍成功。
3. 报告顶层、工具、实测场景和自检证据。编译失败标明未运行仿真;首条错误或首次失配连同文件/行、输入、采样拍、实例路径和原始日志交[故障定位](../readable-verilog-debug/SKILL.md)。期望值或采样约定有疑问时,把场景与拍号交[模型](../readable-verilog-model/SKILL.md)复核;完整设计对拍通过后,将验证报告交[手册](../readable-verilog-manual/SKILL.md)出版。逐值对拍见[完整流程](../readable-verilog-generate/references/full-workflow.md)。

**随包示例**:`assets/examples/readme/axis_packet_meter.v` 配合[自检台](examples/tb_axis_packet_meter.v),顶层 `tb_axis_packet_meter`。末尾应见 `METER_PASS checks=14`,全程无 `METER_FAIL`。

Files in this skill

  • SKILL.md2.6 KB
  • examples/tb_axis_packet_meter.v3.4 KB
  • scripts/verification/simulate.py2.8 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.