io.github.gokeshenzhen/traceweave
TraceWeave is an MCP server for evidence-driven RTL/SoC simulation debugging across logs, waveforms, hierarchy, and source.
Discover compile/simulation logs and VCD/FSDB/FST waveforms under a verif directory, including formal JasperGold artifacts.
Parse VCS/Xcelium logs, group runtime failures, extract error context, diff failures between runs, and correlate failures with waveform/source evidence.
Read waveforms: summarize metadata, search signal paths, query values/transitions/windows, sample cycle-by-cycle, find first divergence, and check period/cadence anomalies.
Scan RTL/TB source for structural risks such as ties, open inputs, constant comparisons, incomplete cases, and multiple drivers.
Build and browse testbench hierarchy; query compiled files, module/interface/class declarations, and UVM class inheritance.
Trace signal drivers, loads, connectivity, and X/Z propagation from waveform signals back to RTL/source logic using NPI, Source Graph, or static fallbacks.
Inspect valid/ready, AHB, APB, and TL-UL handshakes; sweep interfaces; reconstruct AXI/AHB transactions; check stalls, payload holds, latency, and outstanding requests.
Verify temporal predicates/properties over clock windows, evaluate SV expressions and packed bus fields, and explain SVA properties.
Manage named time cursors and optionally build/cache a Verdi KDB for deeper native queries.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@io.github.gokeshenzhen/traceweave Find the first signal divergence in the latest VCD waveform."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🐙 TraceWeave
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.
HWE-Bench repair pass rate rose from 78.33% to 88.75%, a gain of 10.42 percentage points. In our paired evaluation of 240 tasks across six open-source hardware projects, the group with TraceWeave passed 25 more tasks overall. See results by project
Use Cases · Installation · Client Setup · Start Debugging · Tool Quick Reference · FAQ · Documentation and Feedback
Use Cases
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.
Related MCP server: Xcelium MCP Server
HWE-Bench Results
Project | Tasks | Without TraceWeave | With TraceWeave | 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 |
The table summarizes TraceWeave's evaluation of 240 cases. Both groups could run simulations and write their own diagnostic scripts. HWE-Bench tests scored the final patches. HWE-Bench scoring protocol
Installation
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, or Source Graph without a commercial license |
Repository Installation
git clone https://github.com/gokeshenzhen/TraceWeave.git
cd TraceWeave
export VERDI_HOME=/path/to/verdi
bash scripts/install.shThe 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 --checkPyPI Installation
python3.11 -m pip install "traceweave-mcp[source-graph]"
traceweave-mcp --doctorFor 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.
Optional FST support
Repository installation only. The FST reader and the fst extra were added after PyPI release 2.0.2. On Linux, run these commands from the repository root to install the dependency in the server's Python environment and check its status.
.venv/bin/python -m pip install "pylibfst==0.2.1"
.venv/bin/python -m traceweave_mcp --doctorReconnect 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.
Client Setup
After a repository installation, generate a client configuration template with absolute paths:
Client | Generate configuration template |
Claude Code |
|
Codex |
|
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 |
|
|
Repository |
|
|
PyPI |
|
|
If a proxy slows NPI SDK initialization and direct vendor access is available,
set TRACEWEAVE_NPI_VENDOR_DIRECT=1 in the MCP server environment and reconnect.
It defaults to off; startup commands stay the same. Before the first SDK import,
it appends srv1.sw.synopsys.com and .updates.synopsys.com to the process's
NO_PROXY/no_proxy, preserving existing entries. It does not edit proxy
configuration or disable SDK communication/retries; offline environments have
no guaranteed benefit. For LSF, the worker environment must also receive the flag.
LSF-only NPI licenses
If Verdi/NPI licenses are available only on LSF compute nodes, provide these settings to the MCP server process. Replace digital with your queue:
export TRACEWEAVE_NPI_EXECUTION=lsf
export TRACEWEAVE_NPI_LSF_QUEUE="digital"The client must inherit or explicitly pass these variables. Project files, the TraceWeave installation, and cache directories must be visible at the same absolute paths on submission and compute nodes. See the LSF configuration reference for bash / tcsh examples, client environment forwarding, and verification steps.
Start Debugging
Connect your assistant and ask, replacing the path with your project directory:
Use TraceWeave to investigate the simulation failure in
my_caseunder/path/to/verif. Check logs, design structure, and interface handshakes, then trace suspicious signals. Include timestamps, signal paths, and source references.
The investigation discovers current run artifacts, scans structural risks and parses failures. The assistant chooses tool order and scope from the failure phase and known target: inspect known signals/interfaces directly, or consider a scoped/global handshake sweep for opaque timeout or compare symptoms. An unperformed sweep leaves protocol behavior unchecked and does not block recommendations. A full hierarchy build remains available when explicitly needed.
Structural scanning is enabled by default (TRACEWEAVE_STRUCTURAL_SCAN_IN_WORKFLOW=1).
To skip it in the default workflow, set TRACEWEAVE_STRUCTURAL_SCAN_IN_WORKFLOW=0
in the MCP server environment and restart or reconnect the server. Explicit
scan_structural_risks requests remain available; skipped checks remain unchecked.
Handshake scanning and per-call scan modes are unchanged.
For bit-level multiple-driver and undriven-signal checks, explicitly pass
semantic_categories=["multiple_driver", "undriven_signal"] to
scan_structural_risks, optionally with semantic_scope="tb.dut.u_block".
Both NPI and Slang support these categories: auto prioritizes an existing KDB
and otherwise reuses compatible source results; deep also permits a Slang build.
The category list replaces the defaults. Facts report static writers and proved
empty inventories for consumed bits; runtime contention is not checked. Read
coverage and gaps before interpreting zero findings. See the
driver checks reference for limits.
Try a more focused question:
Find a mismatch: “Compare
tb.dut.resultin these two waveforms and trace the logic producing the difference on each side.”Trace an X: “
tb.dut.qis X at 36 ns, but its input is now known. Check earlier sampling and hold behavior from 0 to 36 ns.”Inspect transactions: “Check this TL-UL interface from 10 to 20 μs for stalls, response latency, and outstanding requests.”
Check source structure: “Use deep mode to scan this compile log's design for suspicious ties, open inputs, and constant comparisons.”
Verify a hypothesis: “Sample these signals before each clock edge and check whether the payload stays stable while waiting for ready.”
You can also evaluate SV expressions, inspect packed bus fields, and compare failures after a fix. Coverage limits remain visible: zero findings from an incomplete check do not establish that the design is correct.
For a connection check, ask the assistant to call get_sim_paths. See the debug workflow for the full procedure and the readback check for a repository smoke check.
Custom runtime logs
Built-in parsing covers UVM, VCS/Xcelium assertions, and supported Verilator/cocotb failures. Add project-specific checker labels through custom_patterns.yaml, or set TRACEWEAVE_CUSTOM_PATTERNS_FILE to your own file. See log formats and configuration for examples and Verilator time-unit requirements.
Tool Quick Reference
Describe your debugging goal and let the assistant choose the tools. All tools are listed below; consult their MCP definitions for parameters and supported scope.
Category | Tool | Purpose |
Session and artifacts |
| Discover compile logs, simulation logs, and waveforms |
| Discover JasperGold projects and exported waveforms | |
| Review collected evidence and suggested steps | |
Design and source |
| Prepare a design context for on-demand queries |
| Explicitly build an RTL / testbench hierarchy view | |
| Browse a selected instance subtree | |
| Find instances by path or module name | |
| Find source files in the compiled input set | |
| Inspect module, interface, and class declarations | |
| Browse SystemVerilog / UVM class inheritance | |
| Export a selected hierarchy or source section | |
| Explain SVA matching, obligations, clocks, local state and directive roles | |
Logs and failures |
| Group runtime failures and extract times and summaries |
| Read original log lines around an error | |
| Compare failures between runs | |
| Combine log and waveform evidence for a failure group | |
| Correlate one failure with instance, signal, and source leads | |
| Suggest investigation targets and next tool calls | |
Structure and tracing |
| Scan text rules; check port facts and optional bit-level drivers with NPI / Slang |
| Trace signal drivers and source locations | |
| Find signal consumers and loads | |
| Query structural connectivity between signals | |
| Trace X/Z propagation and historical sampling | |
Waveform reads |
| Inspect duration, signal counts, and timescale |
| Search for full signal paths | |
| Read a value or expression at a selected time | |
| Read transitions within a time window | |
| Inspect multiple signals around a selected time | |
| Sample signals or expressions on clock edges | |
Differences and timing |
| Locate the first confirmed known-value difference |
| Backtrace data, control, and prior state on both sides of a difference | |
| Check periods and cadence anomalies | |
| Check temporal conditions or replay a property plan at a logged failure | |
Protocols and transactions |
| Discover valid/ready signal bundles |
| Discover AHB / APB signal bundles | |
| Sweep discovered AHB / valid-ready interfaces for anomalies | |
| Inspect stalls and hold behavior on one interface | |
| Reconstruct requests/responses, latency, and outstanding requests | |
| Resolve packed fields and verify waveform coordinates | |
| Inspect TL-UL handshakes and requests/responses | |
Time cursors |
| Name a key timestamp |
| List session cursors | |
| Delete a time cursor | |
EDA integration |
| Build and cache a Verdi KDB |
Native-first design queries
explain_property also accepts standalone text or an ordered batch with explicit
shared declaration units. It explains source semantics without running simulation,
formal proof or an LLM. Supply compile_log or design_handle for compiled source
targets; select one declaration/directive with target, instance_path or line.
Read each item's completeness and gaps. Unassociated text has an unknown run mode;
an exact run_anchor links an existing simulation/formal discovery. See
property explanations for examples,
the optional frontend requirement and limits.
For a logged assertion, request include_check_plan=true and pass its
results[].check_plan.handle to verify_window with mode="property", the
VCD/FSDB/FST wave_path, and a normalized failure_event or log_path. With a log, the tool
selects the first failure of the exact directive instance. It derives the clock,
attempts and history window, reads pre-edge values, and returns source-linked
evidence. Check status, coverage and gaps; not_reproduced applies only to that
failure check. Text inputs can use property_scope or exact property_bindings.
After get_sim_paths, run scan_structural_risks as usual, then continue log
and waveform investigation. Connectivity, hierarchy/file/class queries, X traces,
packed layouts and failure correlation accept compile_log directly. They try
healthy NPI using bounded metadata and an existing KDB, without full source
capture or source validation. With no log, provide kdb_path and top_hint;
compile file ownership and source fallback still require a log. KDB-only failure
analysis/recommendation also requires an explicit simulator for log parsing.
find_tb_instance(compile_log="/project/compile.log", path="tb.dut")
explain_signal_driver(kdb_path="/project/simv.daidir/kdb.elab++",
top_hint="tb", signal_path="tb.dut.q", wave_path="/project/run.fsdb")Ordinary native unavailability prepares source within the same request. Inspect
native_route: metadata, KDB and source identities are separate; the KDB/source
association stays unverified. Fallback returns a real source_design_handle
for explicit reuse. A changed source observation fails strictly; explicitly
prepare a new context and pass its new handle. backend_preference="source"
skips KDB discovery. retry_npi=true retries a remembered load failure for the
same KDB generation; per-tool capability gaps never disable other native tools.
All phases share timeout_sec (finite, at most 300 seconds).
prepare_design_context remains the explicit full source identity/recovery API.
Legacy handles and historical actions keep their original contracts. File
results distinguish ownership_basis="compile_metadata"/source_status="not_captured"
from captured source ownership. Metadata name/path filters and the three compile
record exports need neither KDB nor a semantic provider. Cached KDB discovery
still performs its exact source hash and reports that cost separately. No KDB
is automatically built. Structural and optional handshake coverage remain
independent; unperformed checks and zero coverage never establish a clean result.
FAQ
Can I use it without a commercial license?
Log analysis, VCD, optional FST, lexical structural checks, and Slang / Source Graph analysis need no commercial license. Structural scans in auto / deep first try an existing KDB through NPI, which can request a license locally or through configured LSF. fast performs text checks only. FSDB uses your site's Verdi FSDB Reader under its applicable agreement; NPI and KDB builds require the corresponding EDA environment and license.
Do I need simulation results for a structural scan?
No. Supply a compile/elaboration log. Text checks use accessible sources; auto also tries existing/cached KDBs for NPI input-port checks, then only reuses compatible source semantic results for missing categories. deep additionally permits a bounded Slang build. Scans never build a KDB. Supply top_hint if compile metadata lacks a unique top.
Read semantic.category_coverage and result_groups: NPI port facts and source facts retain separate domains and identities. Default comparison checks still need source evidence; unknown expressions, empty-actual default semantics and budget stops remain gaps. Zero facts or a cache hit does not prove completeness. Findings can include legitimate tie-offs. See scan modes and limits.
For large designs, follow semantic.suggested_next_action or pass the returned
semantic.continuation as semantic_continuation with the same log/top/scope/categories.
Counts are cumulative; fact rows belong to the current page. Tokens expire after
ten idle minutes and survive neither server restart nor identity changes. For a
known target, query its exact semantic_scope directly.
Can it inspect formal waveforms?
Yes, exported waveforms use the same readers, with automatic JasperGold artifact discovery. Property results and reachability semantics still come from your formal tool or verification context.
Where is design data processed?
File parsing and EDA queries run locally or on configured LSF nodes. Returned evidence enters your AI client's context. Usage telemetry is off by default and writes locally when enabled.
Documentation and Feedback
Learn more about | Resource |
Debugging steps and tool cooperation | |
Verifying a root cause with evidence | |
Architecture, backend capabilities, and resource limits | |
Expression inputs and worked examples | |
Complete environment configuration and advanced settings | |
Reporting a problem or suggesting a feature |
Before contributing, read AGENTS.md. Repository regression profiles
require the test, source-graph and fst Python extras, plus a C++ compiler
(g++). For a new development environment, install the declared extras with
python3.11 -m pip install -e ".[test,source-graph,fst]". The test runner never
installs dependencies or changes shell, MCP, license or scheduler configuration.
Command from the repository root | Required coverage |
| Portable unit/mock, VCD/log and open source frontend/FST tests |
| The same portable coverage, with JSON/JUnit and logs |
| Portable plus real FSDB, VCS and NPI functionality; excludes five scale tests |
| The five original 10M waveform tests |
| Full self-contained regression: portable + EDA + all five scale tests |
Plain pytest selects portable coverage even on a machine with commercial SDKs;
it does not enable licensed tests. EDA/all require configured VCS on PATH,
VERDI_HOME with FSDB Reader/Writer and NPI SDKs, a working compiler/linker and
available licenses. Stress uses the reader, writer and vcd2fsdb from Verdi; it
does not require VCS, NPI, Slang or FST. Tests generate only synthetic designs in
owned directories; private project paths and prebuilt author KDBs are unnecessary.
No profile submits live LSF jobs. Standalone worker tests are local coverage.
--check checks software/tool presence without license checkout. --list collects
a selection plan without building fixtures. Selected missing dependencies,
preparation failures, assertion failures, unexpected skips and unexecuted required
tests return nonzero. Module-level collection skips are also reported. Planned
exclusions and a few explicitly listed platform limitations remain separate from
passes. Arguments after -- select a partial run, for example
-- tests/test_log_parser.py -q; its report does not qualify the complete profile.
Use --cache-dir /absolute/path/to/test-cache to reuse generated inputs. Each
entry validates source/tool fingerprints, artifact hashes and ABI before reuse;
failed or cancelled builds never publish a complete manifest. A nonempty cache
must carry the TraceWeave ownership marker. Existing repository wrappers and
external input files are preserved. Supported waveform path overrides
(TW_POINT_READ_FSDB, TW_LAZY_LARGE_FSDB, TW_SESSION_RECLAIM_FSDB and the three
TW_P2B_*_FSDB paths) are read-only and must satisfy the selected fixture oracle.
Missing or mismatched overrides fail rather than selecting another input.
The shared 10M fixture contains four signals, 10,000,001 data records and 5,000,000 clock rising edges, with real flush sessions. Generation writes about 500 MB of temporary VCD and removes it after successful conversion/validation; the cache retains the FSDB. Reports include actual disk size, session layout, record counts, timings and RSS measurements. This profile does not run the separate 100M benchmark suite.
--output /absolute/path/to/new-results retains report.json, pytest.json,
JUnit, raw pytest output, test temporary files and fixture manifest/build-log
snapshots. The output directory must be new. Without these options, the runner
prints its temporary evidence and fixture paths; it preserves them for inspection.
Remove only your own result/cache directories when finished.
External UART/OpenTitan acceptance is separately opt-in with
--external-representative /path/to/manifest.json. Copy the format in
representative.json, supply
an explicit project revision, top/scope/source locations and SHA-256 identities
for the compile log, definition and instance-site files. This specialized check
expects preserved blocking diagnostics/partial coverage; default profiles instead
exercise self-contained complete and incomplete hierarchies. Neither a default
all pass nor a local worker pass claims external-project or live-scheduler coverage.
TraceWeave is available under the MIT License.
Follow the WeChat public account for project updates and debugging examples:
Available Tools
38 toolsanalyze_failure_eventB
Start from a single normalized failure_event and combine waveform, hierarchy, and source information to return recommended instances, signals, and source files.
Inputs: log_path (required), simulator (required), wave_path (required), failure_event (required), +2 more.
analyze_failuresA
Core failure-analysis tool. Focuses on the first occurrence of a single failure group and returns the log summary, raw error context, and waveform snapshot. FSDB support depends on fsdb_runtime.enabled.
Inputs: log_path (required), simulator (required), wave_path (required), signal_paths (required), +3 more.
build_kdbA
Auto-build a Verdi KDB from a parsed compile log using vericom + elabcom. Use this when the simulator is Xcelium (xrun) and the NPI backend reports no KDB, or to force-refresh a stale cached KDB. Output is cached under TRACEWEAVE_CACHE_DIR (default ~/.cache/traceweave/kdb//); cache hits reuse the previous KDB without re-invoking Verdi. When TRACEWEAVE_NPI_EXECUTION=lsf, every cache-miss/rebuild runs on the configured LSF queue and never falls back to a local licensed build. A runnable build.sh is written next to the KDB for inspection or reproduction. Requires VERDI_HOME with bin/vericom and bin/elabcom.
Inputs: compile_log (required), top_hint, simulator, force_rebuild.
build_tb_hierarchyA
Stream one compile/elaborate log plus optional complementary phase logs, scan source files, and cache the full testbench hierarchy server-side without retaining raw source bodies. For split VCS flows, prefer the source-compile log as compile_log and pass VHDL/source/elaboration companions in build order; later connectivity tools continue using that primary path. Returns a SLIM payload: project, stats, tree_skeleton (depth 2), interfaces, ambiguous_basenames, build_metrics, and hierarchy_handle. A configured timeout/source-byte guard returns build_status='blocked' plus a fixed blocker and no handle. Use a completed handle with get_tb_subtree / lookup_tb_files / find_tb_instance / get_tb_file_detail / get_tb_class_hierarchy / dump_tb_section to access the full data on demand.
Inputs: compile_log (required), simulator, supplementary_compile_logs.
cursor_deleteA
Delete a named cursor. Returns whether the cursor existed.
Inputs: name (required).
cursor_listA
List all cursors registered in the current session, ordered by time.
Inputs: no named parameters.
cursor_setA
Register a named time anchor (in ps) for the current session. Other tools that take a time may reference '@' instead of copying ps integers across calls. Cursors are process-scoped and dropped on server restart. Names must match [A-Za-z_][A-Za-z0-9_-]*.
Inputs: name (required), time_ps (required), note.
diff_first_divergenceA
Find the first time two signals hold unequal values. Works across two waveforms (passing run vs failing run) or within one waveform between two signals (expected vs actual). Auto-registers a cursor at the divergence time so downstream calls can reference it by name. Reads existing waveforms only — does NOT rerun simulation.
Inputs: signal_a (required), signal_b (required), wave_path_a (required), wave_path_b (required), +4 more.
diff_sim_failure_resultsA
Compare normalized failure events from two simulation logs. Returns resolved, persistent, and newly introduced failures, plus changes in failure type, X/Z presence, first-failure timing, and a convergence summary. If a simulator overwrites the same log path between runs, pass new_log_path only after parse_sim_log has captured the baseline snapshot, or pass snapshot IDs returned by parse_sim_log.
Inputs: simulator, new_log_path, base_log_path, new_snapshot_id, +1 more.
dump_tb_sectionA
Escape hatch: return a named raw section of the full hierarchy result. Prefer targeted handle tools — this is intentionally heavy.
Inputs: handle (required), section (required).
explain_signal_driverA
Trace a waveform signal path back to the most likely RTL driver. Supports direct assigns, simple always blocks, and module output ports. Set recursive=true to walk multiple hops upstream across instance boundaries. When a Verdi KDB is detected, an NPI backend transparently engages and walks the elaborated netlist with fan_in_reg_list, crossing instance port boundaries the static source-regex backend cannot reach. Recursive NPI fan-in is admitted inside the native traversal (4,096 states, 32 returned facts); Source Graph and NPI both publish traversal counts, limits, truncation, exhaustive-search, and fixed incomplete reasons. A partial positive prefix is usable evidence but not a complete or exclusive driver-set claim. If NPI is unavailable or cannot return a trustworthy result, TraceWeave next attempts a bounded, on-demand Source Graph projection; Legacy Static remains the normal final fallback. The explicit allow_bounded_bootstrap path is the resource-bounded exception: without a full hierarchy it returns only proved positive Source Graph facts, and an inconclusive/blocker result does not start a whole-source Static scan. Source Graph preserves per-bit port-binding provenance, so mixed bindings such as concatenations, constants, truncation, and width extension are reported as segments instead of forcing an all-or-nothing exact-width match. When a dynamic segment reaches a projection boundary, bounded sibling-scope expansion re-runs the original query from a fresh artifact; constant segments are terminal and never trigger expansion. Signal-not-declared and bit-selection-out-of-range are distinct Source Graph blockers. Legacy Static normalizes trailing numeric selects to the bare RTL symbol, but stops honestly at composite port expressions that need per-bit provenance. Parameter specializations and named generate scopes remain instance-specific; dotted packed struct/union members are mapped from their field-local indices onto exact root-aggregate bits. backend_status records the selected/attempted/actual backends, fixed fallback reason, Source Graph coverage and cache/build receipt. The legacy confidence field remains coverage-combined and conservative. For Source Graph results, claim_semantics separates positive_fact_confidence and target_bit_coverage from global_coverage_status; require exclusive_driver_proved before calling a returned driver unique, and negative_claim_allowed before claiming no driver. Warm Source Graph traversal is work-bounded; query_truncated and the query_*_limit coverage gap mean returned positive facts are usable but the driver set is not exhaustive. Each driver_chain hop carries source_info_origin ('compile_log', 'npi', or 'source_graph') so consumers can tell which provenance produced its file:line. driver_status='testbench_driven' (with cross_check.conflict=true) means NPI found NO RTL driver: the only 'driver' it reported is also a LOAD of the same net (an interface-slice alias or a register that reads the net), so the real driver is testbench/behavioral — a UVM driver writing through a virtual interface + clocking block, invisible to RTL fan-in. Treat that as 'start in the TB driver/BFM', NOT as a mis-wire or a DUT-register driver; for an AHB master's HTRANS/HADDR this is the expected, correct answer.
Inputs: wave_path (required), compile_log (required), signal_path (required), top_hint, +5 more.
find_signal_loadsA
List places that consume (load) a signal: child instance input ports, RHS of assigns/procedural assignments, and always-block sensitivity lists. When a Verdi KDB is detected, an NPI backend transparently engages and resolves the cross-hierarchy / interface-positional / generate-block cases that the static source-regex backend cannot reach. If NPI is unavailable or cannot return a trustworthy result, TraceWeave next attempts the bounded, on-demand Source Graph; Legacy Static remains the normal final fallback (shallow_only). When allow_bounded_bootstrap=true and no full hierarchy exists, only proved positive Source Graph facts are returned; an inconclusive/blocker does not trigger a whole-source Static rescan. backend_status preserves the complete attempt chain and Source Graph coverage/build receipt. claim_semantics separates confidence in returned positive load facts from whole-artifact coverage; exhaustive_search is required before treating the list as all loads, and negative_claim_allowed is required before claiming there are none. A complete Source Graph not_connected is distinct from an inconclusive no-match, which falls through to Static only on the normal full-hierarchy route. Every backend publishes enumeration.{returned_count, output_limit, output_truncated, search_exhaustive, incomplete_reasons, continuation_supported}. High-fanout output is capped at 256; capped positive loads remain usable but are not a complete list, and no backend currently promises a continuation token. Each load query normalizes trailing numeric selects for Legacy Static matching, while Source Graph validates the selected bits against the declaration. Each load carries source_info_origin ('compile_log', 'npi', or 'source_graph') so consumers can tell which provenance produced its file:line.
Inputs: compile_log (required), signal_path (required), top_hint, max_depth, +5 more.
find_tb_instanceB
Locate instance(s) in the component_tree by exact path OR by module name. path and module are mutually exclusive.
Inputs: handle (required), path, limit, module.
get_diagnostic_snapshotA
Cold-start accelerator that aggregates cached tool results into a single summary view. It never triggers sub-steps and only reads cache. Returns availability status, compact summaries, and suggested calls for missing steps. The result cache is process-global and survives across cases, so at the start of a new session pass your target case (verif_root and/or case_dir): the snapshot validates the cache against it and reports a clean cold start if the cache belongs to a different case. If you pass no target, a cached sim_paths is returned with summary.carried_over=true to signal it may belong to a previous case — confirm it or re-run get_sim_paths.
Inputs: case_dir, verif_root.
get_error_contextA
Extract raw log text around a given error line. Typically used with first_line returned by parse_sim_log.
Inputs: line (required), log_path (required), after, before.
get_signal_at_timeB
Query a signal value in a waveform file at a specific time in ps. FSDB support depends on fsdb_runtime.enabled.
Inputs: time_ps (required), wave_path (required), signal_path (required).
get_signals_around_timeA
Return values and transitions for multiple signals in a NARROW window around a target timestamp (typically the failure time). Designed for local causal-chain inspection; NOT for bulk trace extraction. For round-by-round or multi-cycle sampling use get_signals_by_cycle.
Unit reminder: all times are picoseconds. If the sim log reports Time: X ns, set center_time_ps = X*1000 (example: 75,100 ns -> 75,100,000 ps).
Typical window_ps:
Glitch inspection: 1,000 - 5,000 ps
One clock cycle: = clock_period_ps (NOT exposed by get_waveform_summary; use get_signals_by_cycle after you identify a clock_path, or read it from your sim environment / compile log)
N cycles around fail: N * clock_period_ps
The server enforces a cap of MAX_WAVE_WINDOW_CYCLES (default 256) clock cycles per call, computed at runtime from an auto-detected clock_period_ps. It also rejects center_time_ps past the recorded simulation end. For multi-cycle sampling, get_signals_by_cycle still requires an explicit clock_path. FSDB support depends on fsdb_runtime.enabled.
If a value_at_center is a SUB-CYCLE TRANSIENT — a combinational glitch at the clock edge that settles back within the same cycle (e.g. an interconnect mux re-settling to idle for ~1ns at each edge) — the result sets transient_note and the signal carries center_transient/center_settles_to/center_settle_ps. Treat the SETTLED value as the protocol value; do not attribute a root cause to an edge-sampled value that is flagged transient.
return_mode="values_only" keeps the atomic multi-signal sample but strips the transition lists from every signal: each entry carries value_at_center + window_transition_count (+ any transient annotation, computed before stripping). Use it when you only need the values at one instant — e.g. comparing the same time point across several traces — instead of paying for transition history or falling back to one get_signal_at_time call per signal.
Inputs: wave_path (required), signal_paths (required), center_time_ps (required), window_ps, +2 more.
get_signals_by_cycleA
Return cycle-by-cycle sampled values for multiple signals aligned to a clock edge. Useful for state machines, pipelines, and round-by-round algorithm checks.
Inputs: wave_path (required), clock_path (required), signal_paths (required), edge, +5 more.
get_signal_transitionsA
Return transitions for a signal over the strict closed time range [start_time_ps, end_time_ps] (capped at 1000 by default; truncated=true + hint mark a clipped result, transition_count is always the total found). FSDB support depends on fsdb_runtime.enabled. The last value-change strictly before the window is returned separately as predecessor and is never mixed into transitions.
Inputs: wave_path (required), signal_path (required), end_time_ps, start_time_ps, +1 more.
get_sim_pathsA
Discover compile logs, simulation logs, and waveform files under a verif directory. If case_name is omitted, the tool returns available cases. For non-standard layouts you may pass explicit sim_log / wave_file / compile_log paths; any provided field is used as-is and the omitted ones are still auto-discovered (a sim_log path also anchors discovery of the matching waveform and compile/elab logs).
Inputs: verif_root (required), sim_log, case_name, wave_file, +1 more.
get_tb_class_hierarchyC
Return UVM/class inheritance tree built from compiled-source scan results. Use root_class to start from a specific class; empty = all roots.
Inputs: handle (required), depth, root_class.
get_tb_file_detailB
Return symbols (modules/classes/interfaces) defined in a single compiled file. If the path is not in the compile set, error includes basename-similar suggestions.
Inputs: path (required), handle (required).
get_tb_subtreeA
Return a slice of the component_tree starting at root (dotted instance path) with up to depth levels. Use after build_tb_hierarchy to drill into a branch without pulling the whole tree into context.
Inputs: handle (required), root, depth, max_nodes.
get_waveform_summaryA
Return basic waveform metadata such as format, duration, and top modules. FSDB support depends on fsdb_runtime.enabled.
Inputs: wave_path (required).
inspect_handshakeA
Classify a clocked valid/ready handshake cycle-by-cycle and report protocol facts that leave no value pattern in scoreboard logs: stalls (valid high, ready low), the longest/over-threshold stall windows, backpressure imbalance (ready high, valid low), and — when payload signals are given — payload-hold violations (a payload that changes while the transfer is still stalled), and premature valid deassertion (a stalled beat whose valid/htrans drops before ready/HREADY arrives — the AHB master-not-waiting-for-HREADY bug, which needs no payload to detect). For AHB (valid_htrans) it ALSO runs x_while_valid (a control field is x/z while valid is asserted) and, when hwrite+write_data are given, a write data-phase HWDATA-hold check (HWDATA must stay stable through a write data-phase wait state). Protocol-agnostic: AXI *valid/*ready, an AHB pair (ready=hready, valid=a 1-bit 'htrans!=IDLE' signal, payload=[haddr,hwrite,hsize] address-phase control which must hold while hready is low; HWDATA goes in write_data, not payload), a generic valid-ready stream, or a credit interface. Returns coverage facts for the checks it actually ran (stall, backpressure, payload-hold, valid-hold, x-while-valid, write-data-hold) without assigning protocol side. Auto-registers a cursor at the first problem (x-while-valid > payload-hold > write-data hold > premature deassertion > long stall > longest stall). On AHB it also returns a protocol_semantics receipt naming which metrics are faithful vs suppressed. For the one-sided violations (x-while-valid, payload-hold, write-data hold, premature deassertion) it also returns a structured attribution block (violating_side=valid_driver, exonerated_side=ready_driver) so the caller does NOT start in the slave driver/monitor — the responder cannot cause either; a plain two-sided stall leaves attribution empty. Reads existing waveforms only — does NOT rerun simulation.
Inputs: clock (required), ready (required), wave_path (required), edge, +14 more.
lookup_tb_filesA
Query the compiled file set by objective scan facts. At least one filter is required. Use this to disambiguate multi-version files (basename collisions are also reported via build_tb_hierarchy.ambiguous_basenames).
Inputs: handle (required), limit, basename, file_type, +4 more.
parse_sim_logA
Parse a VCS or Xcelium simulation log and return grouped runtime failures by signature. The simulator argument is required and is not auto-detected here. candidate_previous_logs uses bounded evidence sampling and excludes compile/elaboration logs. The first error group automatically includes about 100 lines of surrounding log context in first_group_context; use get_error_context for other groups.
Inputs: log_path (required), simulator (required), max_groups, detail_level, +1 more.
periodA
Estimate a signal's dominant period inside a window and flag the first beat that deviates from it. Use for rhythm/throughput questions an LLM cannot eyeball from a transition dump: stalled clocks, dropped burst beats, backpressure bubbles, irregular strobes. The dominant period is the median edge-to-edge interval; the first off-beat is auto-registered as a cursor. Reads existing waveforms only — does NOT rerun simulation.
Inputs: signal (required), wave_path (required), edge, cursor_name, +4 more.
recommend_failure_debug_next_stepsA
Choose the highest-priority failure to investigate from the current log, waveform, and optional hierarchy, then recommend signals, instances, and suspected failure class. Also suggests a diff_sim_failure_results call to use on the next run.
Inputs: log_path (required), simulator (required), wave_path (required), top_hint, +1 more.
reconstruct_transactionsA
Reconstruct id-correlated request/response transactions from two handshake channels: walk every clock edge, match accepted request beats to completion beats by id, and return per-transaction latency plus aggregate facts (outstanding curve incl. per-id peak, ordering, unmatched=hang signature). One generic core, not a tool per protocol. AXI READ: req=AR (req_valid=arvalid, req_ready=arready, req_id=arid), cmp=R (cmp_valid=rvalid, cmp_ready=rready, cmp_id=rid, cmp_last=rlast); AXI WRITE: req=AW (awvalid/awready/awid), cmp=B (bvalid/bready/bid, no cmp_last). Pass req_fields/cmp_fields (e.g. araddr,arlen / rresp) to capture payload per txn; pass req_len (arlen/awlen) to also check each txn's beat_count against AxLEN+1 (beat_count_mismatch). Out-of-order completion across ids is supported (per-id FIFO); reorder_count is an informational FACT (legal in AXI), latency is a distribution not an 'outlier' verdict. Reads waveforms only.
Inputs: clock (required), cmp_ready (required), cmp_valid (required), req_ready (required), +23 more.
scan_structural_risksA
Run a Scope 1 regex-based structural risk scan on RTL/TB source files from the compile file list. This is a heuristic detector: it reports suspicious patterns, not confirmed root causes. Always read coverage_status: only complete with total_risks=0 supports a clean-scan observation; zero_coverage scanned no supported sources, and degraded covers only part of the source set.
Inputs: compile_log (required), simulator, categories, scan_scope.
search_signalsA
Search for signals in a waveform file (FSDB/VCD) and return full hierarchical paths. Use this when the client knows a leaf signal name but not the full path. keyword accepts a single string OR a list of strings: pass a list to batch several lookups in one call (one result entry per keyword, in input order) instead of issuing consecutive single-keyword searches. Each result also carries direction (input/output/inout/implicit/...) and var_type (wire/reg/integer/real/parameter/memory/...), so callers can filter by port direction or language type within a scope by combining a hierarchical keyword with these fields — no separate listing tool is needed. Note: VCD format does not encode port direction; direction is always null for VCD waves, while var_type is populated. FSDB populates both. FSDB search uses a scope-tree index and does not read value changes, so it scales well to large files. FSDB support depends on fsdb_runtime.enabled returned by get_sim_paths.
Inputs: keyword (required), wave_path (required), max_results.
suggest_handshakesA
Scan a waveform and propose ready-to-use inspect_handshake bundles: it pairs *valid/*ready signals by scope and stem, finds the clock, and groups the channel payload buses (the signals that must hold steady during a stall). Use this BEFORE inspect_handshake so you don't have to hand-assemble {clock, valid, ready, payload} signal paths. Covers AXI *valid/*ready, generic valid/ready, and req/ack. It does NOT synthesise an AHB 'valid' (there is no literal valid signal — it is htrans != IDLE); use suggest_protocol_bundles for AHB/APB. Reads existing waveforms only.
Inputs: wave_path (required), scope, max_candidates.
suggest_protocol_bundlesA
Scan a waveform for protocol-specific AHB/APB bundles. AHB candidates return ready-to-use inspect_handshake args with valid_htrans + ready + payload (address-phase control), plus hwrite/write_data (HWDATA, for the write data-phase hold check) ONLY on initiator-side interfaces (a responder's HWDATA is an interconnect-mux output that glitches at the clock edge, so the check is withheld there to stay zero-FP), because AHB has no literal valid signal. APB candidates return psel/penable/pready facts and loudly report that inspect_handshake still needs a derived valid signal for psel && penable. Direction tags are mechanical discovery facts only; unknown/conflicting markers degrade to direction_tag='unknown' rather than guessing a side. Reads existing waveforms only.
Inputs: protocol (required), wave_path (required), scope, max_candidates.
sweep_handshakesA
Whole-design handshake anomaly sweep: discover EVERY valid/ready interface and every AHB interface, then inspect each over the window in one call, returning a comparative fact table (per-interface stalls, deadlock signature ended_in_stall, x-while-valid, payload-hold, write-data-hold, premature valid deassertion, backpressure) ordered by a transparent mechanical key. Use on opaque global symptoms (timeout/hang) when you don't know which of many interfaces misbehaves — it collapses N suggest+inspect round-trips into one. Always interpret flagged_count together with coverage_status: zero_coverage means no protocol interfaces were checked and is NOT a pass; truncated/degraded means partial coverage. Workflow follow-ups relay only parameter-changing retries: an unscoped zero-coverage result is not blindly replayed, but remains inconclusive. FSDB native transition-buffer truncation is propagated per row and forces degraded coverage; zero findings then cover only returned prefixes. Returns FACTS, not a root-cause verdict; re-rank as the symptom warrants. Reads existing waveforms only.
Inputs: wave_path (required), edge, scope, end_time_ps, +3 more.
trace_signal_pathA
Find a structural connectivity path between two signals. A trusted Verdi NPI result wins; otherwise TraceWeave tries a bounded, dual-endpoint Source Graph before Legacy Static. Source Graph follows only projected IR facts across bindings and supported combinational dependencies. claim_semantics reports confidence in a proved positive path independently from global coverage; a found path is not an exhaustive enumeration. A no-path result is exact only when negative_claim_allowed=true; an inconclusive result falls through to unsupported_reason='static_backend_no_path_api'. This is connectivity, NOT temporal driver direction — use explain_signal_driver for driver semantics.
Inputs: to_signal (required), compile_log (required), from_signal (required), top_hint, +2 more.
trace_x_sourceA
When a signal shows X/Z at a target time, trace its propagation chain through upstream driver logic. Uses the selected connectivity route (trusted local/LSF NPI, bounded Source Graph, then Static). A Source Graph trace may expand to bounded direct-child frontiers when an unresolved parent net can be driven by a child output. Any backend or artifact change discards the partial chain and restarts from the original signal, so one returned chain never mixes provenance. Connectivity queries run outside waveform locks. backend_status reports selected versus actual backend; trace_restarted reports a whole-trace retry. Source Graph chain nodes preserve claim_semantics, so an exact positive edge can be used without implying global coverage or exclusive drive. NPI testbench-driven/cross-check evidence is preserved on the node.
Inputs: time_ps (required), wave_path (required), compile_log (required), signal_path (required), +3 more.
verify_windowA
Evaluate a temporal predicate over a clock window and return a precise verdict (holds) plus a concrete witness/counterexample (cycle + sampled values). You state the predicate; the tool checks it against the waveform over thousands of cycles you cannot read yourself. Templates, not a DSL: a term is {signal, op, value} (op: eq/ne/gt/ge/lt/le/is_x/is_known); a predicate is a list of terms (implicit AND — run two calls for OR). Modes: always(P), never(P), eventually(P), implication (A |-> B within N cycles, the protocol-response template; set overlap=false for |=> = a stability/hold property where B must STILL hold the NEXT cycle, e.g. HTRANS/valid held through a wait state), and sequence (the per-accepted-beat increment of a signal — address-stride checks like AHB haddr +stride; supports modulo for WRAP bursts and restart_when for burst boundaries). x/z cycles are reported as unknown (never silently passed); an implication whose response window runs past end-of-trace is reported inconclusive (never silently failed). On a finding it sets violating_signal + a next_action to explain_signal_driver (bus facts do not self-attribute master/slave). Use to prove/disprove an RTL inference in one call. Reads existing waveforms only.
Inputs: mode (required), clock (required), wave_path (required), edge, +10 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 38 tools
Several near-synonymous clusters exist: analyze_failures/analyze_failure_event/recommend_failure_debug_next_steps, get_signal_at_time/get_signal_transitions/get_signals_around_time/get_signals_by_cycle, and trace_signal_path/trace_x_source/explain_signal_driver/find_signal_loads. Long descriptions differentiate them, but the tool set itself does not make the boundaries obvious, so misselection is likely.
Most tools follow a readable snake_case verb_noun pattern (get_tb_subtree, parse_sim_log, inspect_handshake). Minor inconsistencies: period is a bare noun, cursor_set/list/delete invert the noun-verb order, and singular/plural varies (get_signal_at_time vs get_signals_by_cycle).
38 tools is far above the 25+ threshold for a coherent surface. Several families (signal getters, handshake suggestors, failure analyzers) could be consolidated into parameterized tools, making the surface heavier than necessary for an agent to navigate.
The core hardware-debug lifecycle is well covered: hierarchy build/query, log discovery/parsing/failure comparison, waveform search/sampling, driver/load/path tracing, and handshake/protocol checks. Minor gaps include no source-file content access, no full waveform diff beyond first divergence, and no functional coverage analysis, but these are not blocking for the stated purpose.
Maintenance
Related MCP Connectors
Deterministic PASS/FAIL deliverable checks with objective evidence and repair instructions.
Physics-based validation of simulation results: receipts with per-check verdicts, via MCP.
Remote MCP for A2A failure replay MCP, structured receipts, audit logs, and reviewer-ready evidence.
Discover software problems, analyze evidence, and create implementation-ready Build plans.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables analysis of RTL waveform files (VCD, FST) through WAL (Waveform Analysis Language). Supports signal inspection, transition extraction, and advanced waveform queries for hardware design verification.17BSD 3-Clause
- AlicenseBqualityDmaintenanceEnables AI assistants to control Cadence Xcelium and SimVision simulators in real time for automated RTL and gate-level debugging. It provides 25 tools for signal inspection, watchpoints, binary search, and simulation state management.252MIT
- FlicenseNot gradedqualityCmaintenanceAn MCP server that provides AI assistants with a persistent, sandboxed Python environment for waveform analysis, enabling loading and manipulation of VCD/FST/FSDB files and temporal pattern matching.11-
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to analyze RTL simulation and synthesis logs through deterministic tools for compile-log summaries, signal tie-off safety checks, and regression result statistics.-