{"slug":"readable-verilog-debug","title":"readable-verilog-debug","summary":"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.","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-12-03T17:18:08.719296Z","repo":{"url":"https://github.com/Eriemon/verilog-generator","stars":348,"forks":23,"license":"Apache-2.0","updatedAt":"2026-12-03T15:34:41Z"},"bodyHtml":"<hr>\n<h2>name: readable-verilog-debug\ndescription: 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.</h2>\n<h1>仿真与综合故障定位</h1>\n<h2>从首个异常取证</h2>\n<ol>\n<li>收集失败阶段、工具原文、顶层与有序源清单。仿真取最后一致拍、首次分歧拍、激励、期望/实际、时钟/复位/使能和完整实例位段。综合取器件、参数、约束及首条可操作的诊断。</li>\n<li>分清报错行、TB 观察行和 DUT 驱动行。复用已有日志；需要区分候选时才在临时目录按原设置复现。父模块的汇总报错只提供追踪起点。</li>\n<li>展开实际顶层。按需重复传 <code>-I</code>，用 <code>--module</code> 限定定义，<code>--max-depth</code> 调整上溯深度（默认 8）。</li>\n</ol>\n<pre><code>&amp; $py -m verilog_generator diagnose @sources --stage synthesis --top $dutTop --log $synthLog\n&amp; $py -m verilog_generator diagnose @sources $tb --stage simulation --top $tbTop --message $failure --signal $instanceSignal\n</code></pre>\n<h2>从驱动追到父实例</h2>\n<ul>\n<li>从 <code>direct</code> 的赋值与条件，沿 <code>parents</code> 的子端口 → 父实参 → 父驱动反查；<code>upstream</code> 列中间依赖，<code>boundaries</code> 列顶层输入及未找到驱动的对象。核对参数覆盖、切片、宽度、符号、反相、未连接端口和跨域。</li>\n<li><code>location_only</code> 即使 passed=true 也只确认源码位置；<code>caller_context</code> 只确认实例关系。<code>ambiguous</code> 用波形实例路径消歧；<code>unresolved</code> 补日志或绑定。位选、条件及时序驱动需用失败拍筛选；宏、厂商 IP、网表改名或时序路径另需编译设置、映射或报告。</li>\n<li>报告“触发条件 → 直接代码 → 潜在父节点 → 判别证据”，附文件、行号、表达式及可排除候选的最小验证。定位期间只读；RTL 驱动错误交<a href=\"../readable-verilog-edit/SKILL.md\">编辑</a>修复，TB/采样错误交<a href=\"../readable-verilog-verify/SKILL.md\">验证</a>重放，期望轨迹错误交<a href=\"../readable-verilog-model/SKILL.md\">模型</a>重算，行为有歧义交<a href=\"../readable-verilog-spec/SKILL.md\">规格</a>重确认。<a href=\"references/faults.md\">常见问题与定位依据</a></li>\n</ul>\n","files":[{"path":"references/faults.md","sizeBytes":3863,"isText":true},{"path":"scripts/debugging/locate.py","sizeBytes":15445,"isText":true},{"path":"SKILL.md","sizeBytes":2249,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-12-03T17:19:31.803512Z","sha256":"E2E963A308611FF278E64B9DFC7D713396BCD6F9088535E68D0C4F936443F6AF","sizeBytes":9210},"review":null,"source":{"repositoryUrl":"https://github.com/Eriemon/verilog-generator","path":"skills/readable-verilog-debug","license":"Apache-2.0","commit":"4738a3c74a2b8a4fec46e6abef7abf66f3eaebea","subtreeSha":"5FFBC5A92072F0874EA07400A7707AB69AEB1C0ED9213B645C21D1A476399685","lastSyncedAt":"2026-12-03T17:18:07.377421Z"},"reviewedAt":"2026-12-03T17:22:34.920645Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/Eriemon/verilog-generator/tree/main/skills/readable-verilog-debug"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install eriemon-verilog-generator@llmmart"},{"target":"git","command":"git clone https://github.com/Eriemon/verilog-generator.git"}]}