{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "tencent-wave-mcp--find-first-divergence-pass-fail-waveforms",
 "repo": "Tencent/wave-mcp",
 "repo_url": "https://github.com/Tencent/wave-mcp",
 "repo_slug": "tencent-wave-mcp",
 "title": "Find the first divergence between pass and fail waveforms",
 "page_title": "How to find the first divergence between pass and fail waveforms with Wave MCP",
 "summary": "Compare a passing and a failing run, then trace the first differing signal back to its drivers.",
 "who": "A verification engineer whose regression case passes with one seed and fails with another and needs the failure point fast.",
 "problem": "Scrolling two waveforms side by side to find where they split is slow, and it is easy to miss the signal that actually diverged first.",
 "outcome": "The first divergence time, the ranked list of diverging signals, their fan-in sources, and a dual-waveform viewer opened at the divergence moment.",
 "steps": [
  "`pip install wave-mcp`",
  "`wave-session --fst sim/dump.fst --top top_tb --filelist rtl.f` (run once for the passing waveform and once for the failing one, with different --fst paths and output directories)",
  "Call the `diff_waveforms` tool with the pass and fail waveforms",
  "Call the `signal_fanin` tool on the first diverging signal it reports",
  "`wave-view pass.fst fail.fst --labels pass fail`"
 ],
 "agent_prompt": "Using the wave-mcp MCP server, call diff_waveforms on <pass_wave> and <fail_wave>, then call signal_fanin on the first diverging signal it reports. Return the first divergence time, the top diverging signals and their fan-in sources. Verify that the reported time matches a value change of that signal in <fail_wave>.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Advanced",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "Driver and fan-in results depend on the pyslang netlist built from your filelist, and the browser viewer needs the separately built Surfer and surver assets described in SELF_BUILD.md.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Linux x86_64, where the Python dependencies ship as prebuilt wheels (other platforms need pylibfst built from source)",
  "Python 3.10 to 3.13",
  "A simulation waveform (.fst or .vcd) and the same filelist used to run the simulation",
  "An MCP-capable agent such as Claude Code, Codex, Cursor or Gemini CLI, or a terminal for the CLI"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/tencent-wave-mcp/find-first-divergence-pass-fail-waveforms/",
 "md": "https://dedupedai.com/use-cases/tencent-wave-mcp/find-first-divergence-pass-fail-waveforms/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/tencent-wave-mcp--find-first-divergence-pass-fail-waveforms.json",
 "api_version": "v1"
}
