# TraceWeave

> Trace RTL simulation failures with evidence

- **URL**: https://followmcp.com/en/servers/traceweave
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 141
- **FMRS Score**: 61/100 (Grade C)
- **Source**: https://github.com/gokeshenzhen/TraceWeave
- **Transports**: stdio (local process)
- **Runtimes**: Python 3.11+
- **Auth**: No credential needed

## Overview
TraceWeave is an MCP server for RTL/SoC debugging. It correlates compile records, simulation logs, VCD/FSDB/FST waveforms, and RTL source to help locate relevant times, signals, and driving logic after a failed simulation. It supports VCS, Xcelium, and Verilator logs; exported formal waveforms can also be queried, with automatic artifact discovery currently supporting JasperGold. Results retain source references, coverage gaps, and next steps for evidence review.

## Best for
- Chip verification and hardware debugging engineers working with RTL, SystemVerilog, or UVM.
- Teams that need to correlate logs, waveforms, and source evidence to investigate simulation failures.
- Engineering environments using VCS, Xcelium, or Verilator and VCD, FSDB, or FST waveforms.

## Not for
- General debugging unrelated to RTL/SoC simulation or hardware verification.
- Replacing a formal verification tool to determine property results or reachability.
- Users who want to accept an automated root-cause conclusion without checking evidence and coverage gaps.

## Required permissions
- Needs access to user-provided or locally visible compile logs, simulation logs, waveforms, and design source.
- File parsing and EDA queries run locally or on configured LSF nodes; returned evidence enters the AI client's context.
- NPI/KDB operations require the corresponding site EDA environment and license; FSDB reading uses the site's Verdi FSDB Reader under its applicable agreement.

## Risks
- Analysis is limited by input files, backend capabilities, and query coverage; review source references, coverage gaps, and next steps in context.
- Structural scans may flag legitimate constant tie-offs as leads; zero findings or a cache hit does not prove completeness.
- The PyPI installation does not include the FSDB reader; NPI/KDB and LSF features require additional site configuration and licenses.

## Client config (JSON)
```json
{"mcpServers":{"traceweave":{"command":"traceweave-mcp","args":[]}}}
```

## Tools (44)
- `get_sim_paths`: Discover compile logs, simulation logs, and waveforms.
- `get_formal_paths`: Discover JasperGold projects and exported waveforms.
- `get_diagnostic_snapshot`: Review collected evidence and suggested steps.
- `prepare_design_context`: Prepare design context for on-demand queries.
- `build_tb_hierarchy`: Explicitly build an RTL/testbench hierarchy view.
- `get_tb_subtree`: Browse a selected instance subtree.
- `find_tb_instance`: Find instances by path or module name.
- `lookup_tb_files`: Find source files in the compiled input set.
- `get_tb_file_detail`: Inspect module, interface, and class declarations.
- `get_tb_class_hierarchy`: Browse SystemVerilog/UVM class inheritance.
- `dump_tb_section`: Export a selected hierarchy or source section.
- `explain_property`: Explain SVA matching, obligations, clocks, local state, and directive roles.
- `parse_sim_log`: Group runtime failures and extract times and summaries.
- `get_error_context`: Read original log lines around an error.
- `diff_sim_failure_results`: Compare failure records between runs.
- `analyze_failures`: Combine log and waveform evidence for a failure group.
- `analyze_failure_event`: Correlate one failure with instance, signal, and source leads.
- `recommend_failure_debug_next_steps`: Suggest investigation targets and next tool calls.
- `scan_structural_risks`: Scan text rules for structural risks, with optional NPI/Slang checks for port facts and bit-level drivers.
- `explain_signal_driver`: Find static drivers; with a waveform and time, check the active branch and observed values, or inspect a clocked update. Evidence gaps are reported.
- `find_signal_loads`: List static consumers; with a waveform and time, check active, inactive, and unknown uses, or sampling at a confirmed clock edge.
- `trace_signal_path`: Query structural connectivity between signals.
- `trace_x_source`: Trace X/Z propagation and historical sampling.
- `get_waveform_summary`: Inspect waveform duration, signal count, and timescale.
- `search_signals`: Search for full signal paths.
- `get_signal_at_time`: Read a signal or expression at a selected time.
- `get_signal_transitions`: Read signal transitions in a time window.
- `get_signals_around_time`: Inspect multiple signals around a selected time.
- `get_signals_by_cycle`: Sample signals or expressions on clock edges.
- `diff_first_divergence`: Locate the first confirmed known-value difference.
- `trace_divergence`: Backtrace data, control, and prior state on both sides of a difference.
- `period`: Check periods and cadence anomalies.
- `verify_window`: Check temporal conditions or replay a property plan at a logged failure.
- `suggest_handshakes`: Discover valid/ready signal bundles.
- `suggest_protocol_bundles`: Discover AHB/APB signal bundles.
- `sweep_handshakes`: Sweep discovered AHB/valid-ready interfaces for anomalies.
- `inspect_handshake`: Inspect stalls and hold behavior on one interface.
- `reconstruct_transactions`: Reconstruct requests/responses, latency, and outstanding requests.
- `resolve_packed_fields`: Resolve packed fields and verify waveform coordinates.
- `inspect_tlul`: Inspect TL-UL handshakes and requests/responses.
- `cursor_set`: Name a key timestamp.
- `cursor_list`: List session cursors.
- `cursor_delete`: Delete a time cursor.
- `build_kdb`: Build and cache a Verdi KDB.
