by gokeshenzhen
Open-source, evidence-driven MCP server for RTL simulation debugging: correlate VCS/Xcelium/Verilator logs, VCD/FSDB/FST waveforms, SystemVerilog/UVM source, hierarchy, and connectivity to trace failures to root cause.
# Add to your Claude Code skills
git clone https://github.com/gokeshenzhen/TraceWeaveGuides for using mcp servers skills like TraceWeave.
TraceWeave is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by gokeshenzhen. Open-source, evidence-driven MCP server for RTL simulation debugging: correlate VCS/Xcelium/Verilator logs, VCD/FSDB/FST waveforms, SystemVerilog/UVM source, hierarchy, and connectivity to trace failures to root cause. It has 140 GitHub stars.
TraceWeave's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/gokeshenzhen/TraceWeave" and add it to your Claude Code skills directory (see the Installation section above).
TraceWeave is primarily written in Python. It is open-source under gokeshenzhen on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh TraceWeave against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
TraceWeave is an MCP server for RTL / SoC debugging. It connects compile records, simulation logs, VCD/FSDB/FST waveforms, and RTL source to your AI assistant, helping you work from a failed simulation to the relevant time, signals, and driving logic.
Use it with Claude Code, Codex, Copilot, or another MCP client. Describe the problem in natural language; the assistant uses tools to investigate, trace, and verify, with evidence you can review.
The TraceWeave Premium HWE-Bench evaluation summary reports that the group with access to Premium MCP tools passed 213/240 tasks (88.75%) and the control group without those tools passed 188/240 (78.33%), a net gain of 25 tasks for the tool group. Results by project
Use Cases · Runnable example · Installation · Client Setup · Tool Quick Reference · FAQ · Documentation and Feedback
| Problem | How TraceWeave helps |
|---|---|
| A simulation times out or hangs, with no clear starting point | Summarize failures and scan interface handshakes to narrow down the affected interfaces and time window |
| A scoreboard mismatch or different results between runs | Compare failure records and waveforms, locate observed differences, and trace data and control sources on both sides |
| A signal becomes X/Z | Follow drivers and review waveform history to check whether a register sampled and retained an unknown value |
| Packed buses are hard to read, or TL-UL requests are not completing | Inspect address, data, and control fields individually, then check request/response handshakes, latency, and completion |
| Suspected ties, unconnected inputs, or magic-word conditions | Statically scan source code for constant connections, open inputs, and constant comparisons as investigation leads; no simulation run or waveform required |
| A deep SoC hierarchy with many modules and interfaces | Browse hierarchy on demand, locate instances and source files, and follow drivers, consumers, and connectivity paths |
| A debugging hypothesis needs evidence | Sample by cycle and check timing conditions, handshake stability, and transaction completion |
Supports VCS / Xcelium / Verilator simulation logs and VCD / FSDB / FST waveforms. Exported formal waveforms can also be queried; automatic artifact discovery currently supports JasperGold.
Trace signals from the waveform back to their driving logic with Verdi NPI → Source Graph → basic static analysis, according to available tools and query coverage. Source Graph provides semantic source analysis without a commercial license. Results retain source references, coverage gaps, and next steps so you can check the evidence before assigning a root cause.
In a public verilog-axis FIFO revision, requesting a frame pause under backpressure makes TVALID drop before the receiver accepts the first beat. From the repository root, replay the original and repaired waveforms with the open-source TraceWeave tools and Python 3.11+ alone.
python3 examples/axis_fifo_pause/replay.py
The original trace shows the handshake violation at 75 ns. With the example repair, the receiver accepts both beats of the first frame, the FIFO acknowledges the pause, and the second frame transfers after release. Try this prompt in an AI client connected to TraceWeave MCP.
Use TraceWeave to debug
examples/axis_fifo_pause/recorded/before. Which beat failed to transfer? Trace it to the RTL, fix a copy, and rerun the same testbench to verify your repair.
The repository includes the example patch. Run the command for your simulator to test the original and repaired RTL with the same self-checking testbench.
python3 examples/axis_fifo_pause/simulate.py verilator
python3 examples/axis_fifo_pause/simulate.py vcs
Add --rtl /path/to/axis_fifo.v to test your own repair. Waveform walkthrough and upstream sources
| Project | Tasks | Passed without Premium MCP tools | Passed with Premium MCP tools | Gain (percentage points) | Net extra passes |
|---|---|---|---|---|---|
| OpenTitan | 141 | 106/141 (75.18%) | 124/141 (87.94%) | +12.77 | +18 |
| XiangShan | 20 | 15/20 (75.00%) | 17/20 (85.00%) | +10.00 | +2 |
| Rocket Chip | 13 | 10/13 (76.92%) | 11/13 (84.62%) | +7.69 | +1 |
| Ibex | 26 | 24/26 (92.31%) | 25/26 (96.15%) | +3.85 | +1 |
| CVA6 | 27 | 22/27 (81.48%) | 24/27 (88.89%) | +7.41 | +2 |
| Caliptra RTL | 13 | 11/13 (84.62%) | 12/13 (92.31%) | +7.69 | +1 |
| Total | 240 | 188/240 (78.33%) | 213/240 (88.75%) | +10.42 | +25 |
Both groups worked on the same 240 tasks across six open-source hardware projects and could run simulations and write diagnostic scripts. HWE-Bench tests scored their final patches. Benchmark · Scoring protocol
Requires Python 3.11+. Choose the installation that fits your environment:
| Installation | Intended use |
|---|---|
| Repository | Simulation hosts with an existing Verdi installation, for FSDB, Source Graph, and optional NPI / LSF |
| PyPI | Log and VCD analysis, with optional FST and Source Graph |
git clone https://github.com/gokeshenzhen/TraceWeave.git
cd TraceWeave
export VERDI_HOME=/path/to/verdi
bash scripts/install.sh
The installer prepares the Python environment, Source Graph, and FSDB reader, then checks the runtime. It leaves shell startup files and MCP client configuration untouched. FSDB support builds against the Synopsys FSDB Reader SDK in VERDI_HOME; TraceWeave does not redistribute its headers or libraries. Use of the FSDB Reader is subject to the applicable VC Apps Access Program Agreement (or successor). NPI and KDB operations also require the appropriate EDA runtime and license from your site.
For an existing installation, start with a read-only check:
bash scripts/install.sh --check
python3.11 -m pip install "traceweave-mcp[source-graph]"
traceweave-mcp --doctor
For logs, VCD, and basic static analysis only, install traceweave-mcp without [source-graph]. The PyPI package does not include the FSDB reader; use the repository installation for FSDB.
On Linux, install the fst extra in a PyPI environment and check the reader.
python3.11 -m pip install "traceweave-mcp[fst]>=2.1"
traceweave-mcp --doctor
For a repository installation, run these commands from the repository root using the server's Python environment.
.venv/bin/python -m pip install "pylibfst==0.2.1"
.venv/bin/python -m traceweave_mcp --doctor
Reconnect the MCP server and open a small .fst file with get_waveform_summary. The returned fst_backend.version identifies the loaded reader version. See FST support and limits.
After a repository installation, generate a client configuration template with absolute paths:
| Client | Generate configuration template |
|---|---|
| Claude Code | bash scripts/install.sh --print-config claude |
| Codex | bash scripts/install.sh --print-config codex |
| Copilot | bash scripts/install.sh --print-config copilot |
These commands only print templates. Add the output to your client's MCP configuration, supply any required site EDA environment variables, and reconnect the server. See the client configuration reference for complete examples.
Other MCP clients supporting stdio can use these connection settings:
| Installation | command |
args |
|---|---|---|
| Repository | <absolute-repository-path>/.venv/bin/python |
["<absolute-repository-path>/server.py"] |
| PyPI | traceweave-mcp, or its absolute path |
[] |
If a proxy slows NPI SDK initialization and direct vendor acce