Skip to content
Back to skills

Readable Verilog Debug

ASecurity

Locate Verilog simulation and synthesis faults from logs, waveforms, mismatched cycles or signals. Trace the direct RTL site through elaborated instances, actual port connections and upstream data or control drivers.

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

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

Installs into .claude/skills of the current project.

Are you the author of Readable Verilog Debug?

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

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

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-debug
description: Locate Verilog simulation and synthesis faults from logs, waveforms, mismatched cycles or signals. Trace the direct RTL site through elaborated instances, actual port connections and upstream data or control drivers.
---

# 仿真与综合故障定位

## 从首个异常取证

1. 收集失败阶段、工具原文、顶层与有序源清单。仿真取最后一致拍、首次分歧拍、激励、期望/实际、时钟/复位/使能和完整实例位段。综合取器件、参数、约束及首条可操作的诊断。
2. 分清报错行、TB 观察行和 DUT 驱动行。复用已有日志;需要区分候选时才在临时目录按原设置复现。父模块的汇总报错只提供追踪起点。
3. 展开实际顶层。按需重复传 `-I`,用 `--module` 限定定义,`--max-depth` 调整上溯深度(默认 8)。

```powershell
& $py -m verilog_generator diagnose @sources --stage synthesis --top $dutTop --log $synthLog
& $py -m verilog_generator diagnose @sources $tb --stage simulation --top $tbTop --message $failure --signal $instanceSignal
```

## 从驱动追到父实例

- 从 `direct` 的赋值与条件,沿 `parents` 的子端口 → 父实参 → 父驱动反查;`upstream` 列中间依赖,`boundaries` 列顶层输入及未找到驱动的对象。核对参数覆盖、切片、宽度、符号、反相、未连接端口和跨域。
- `location_only` 即使 passed=true 也只确认源码位置;`caller_context` 只确认实例关系。`ambiguous` 用波形实例路径消歧;`unresolved` 补日志或绑定。位选、条件及时序驱动需用失败拍筛选;宏、厂商 IP、网表改名或时序路径另需编译设置、映射或报告。
- 报告“触发条件 → 直接代码 → 潜在父节点 → 判别证据”,附文件、行号、表达式及可排除候选的最小验证。定位期间只读;RTL 驱动错误交[编辑](../readable-verilog-edit/SKILL.md)修复,TB/采样错误交[验证](../readable-verilog-verify/SKILL.md)重放,期望轨迹错误交[模型](../readable-verilog-model/SKILL.md)重算,行为有歧义交[规格](../readable-verilog-spec/SKILL.md)重确认。[常见问题与定位依据](references/faults.md)

Files in this skill

  • SKILL.md2.2 KB
  • references/faults.md3.8 KB
  • scripts/debugging/locate.py15.1 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.