Skip to main content
Glama
verdi-bridge
by Yin-yao

Give your RTL debugging agent eyes on the waveform

Connect your AI agent to live Synopsys Verdi. Let it find signals, inspect transitions, move through simulation time, and open the driving RTL—all in the same GUI you use to debug.

“Add the FIFO read/write pointers, go 20 cycles before the error, and investigate why full stayed high.”

“When did BVALID drop? Show the handshake signals and the code that drives it.”

Verdi Bridge turns those requests into observations from your simulation and visible actions in nWave and nTrace. The agent reasons; the bridge observes. Eighteen typed MCP tools work locally or over SSH with your existing Verdi setup.

Video walkthrough

Ask an agent to investigate a bug, then watch it choose signals, inspect live waveforms and navigate RTL. A 1m38s silent demo: an English prompt and original English agent replies beside synchronized Verdi capture. This is a separate English-language run, not a translation. Tool calls are selected by the agent, not a replay script.

https://github.com/user-attachments/assets/b041c1bd-4be5-4040-b281-2f15001b1e35

English video · 中文视频

How this was recorded · Installation tutorial

Related MCP server: EDA Tools MCP Server

Offline Zero-Dependency Edition (Python 3.10+)

This repository is adapted from upstream RuihongY/verdi_bridge (v0.3.3, MIT): all third-party dependencies (mcp, pydantic, pydantic-core) have been removed in favor of a pure Python standard-library MCP stdio server, compatible with Python 3.10+.

In air-gapped environments without uv/uvx, internal PyPI, or a Rust toolchain, run it directly in any of 3 ways:

  1. Zero-install wrapper script (recommended):

    chmod +x bin/verdi-bridge
    ./bin/verdi-bridge tcl-path
    ./bin/verdi-bridge serve

    Example MCP client configuration:

    {
      "mcpServers": {
        "verdi-bridge": {
          "command": "/absolute/path/to/verdi-bridge-offline/bin/verdi-bridge",
          "args": ["serve"]
        }
      }
    }
  2. Zero-install via PYTHONPATH:

    PYTHONPATH=/absolute/path/to/verdi-bridge-offline/src python3 -m verdi_bridge serve
  3. Offline local install:

    pip install --no-build-isolation --no-deps .

Quick start

pip install verdi-bridge

Or run without a checkout using uv:

uvx verdi-bridge tcl-path

This prints the bundled Tcl adapter path. Load it in Verdi and connect your MCP client, then use uvx verdi-bridge serve as the stdio server. A licensed Verdi installation is required. Client: Python 3.11+; remote host: Python 3.6+ and Verdi's Tcl 8.6. No vendor software is bundled.

What you can do

Workflow

Tools

Find and display signals

find_signals, browse_scope, add_signals

Navigate an error window

set_cursor, set_time_window, jump_before_error

Inspect actual waveform values

find_transitions, get_value_changes, sample_signals

Summarize long windows

count_changes, sample_on_clock

Discover error times and clocks

read_log, measure_clock

Follow drivers into RTL

trace_driver, read_source, read_source_file, goto_source

Waveform queries preserve X/Z values. Long windows on large FSDBs can run through Verdi's NPI reader outside the GUI, so the GUI stays responsive. Time arguments carry explicit units. The same interface works with different RTL designs; no FIFO-specific logic is built into the bridge. See the Python and CLI examples.

See it in a real debugging session

Tested with UART TX, AXI-Lite, FIFO and arbiter RTL in licensed VCS/Verdi sessions. The agent can put relevant signals on screen, inspect their changes, and navigate to source while you follow along.

UART waveform and source in Verdi

Real RTL examples · Blind debugging trial · Validation results and limitations

Project status

Experimental v0.3.3. Live checks used Verdi T-2022.06-SP2-1 on Linux, including the SSH, session and large-FSDB changes of v0.3.2–v0.3.3 (up to a 2.7 GB FSDB). New-session startup is verified; attachment to an arbitrary existing GUI is not yet separately validated. The bridge does not automatically compile, edit or repair RTL.

Contributing · Trust boundary · Validation limits · Report an issue

Inspired by the agent-to-EDA-tool workflow of virtuoso-bridge-lite. This is an independent implementation. MIT licensed; see third-party notices. Not affiliated with Synopsys. Verdi is a Synopsys trademark.

Available Tools

18 tools
add_signalsC

Add exact waveform paths to the live nWave view. Bus ranges are literal.

Inputs: signals (required).

browse_scopeB

List waveform child scopes, then signals, one page at a time. Discover exact paths before querying. Continue from next_offset while it is not null.

Inputs: limit, scope, offset.

count_changesA

Summarize activity in (start, end] without listing changes: per signal the change count, first/last change time, and Hex values at start and end. Use it on long windows before fetching details. Incomplete signals give resume_from.

Inputs: end (required), start (required), signals (required), unit, +1 more.

find_signalsB

Bounded recursive search. Default is literal substring; glob=True enables

  • and ? wildcards on full paths, with bus brackets always literal. budget_ms is a cooperative 1..2000 ms limit that keeps the GUI responsive. Check truncated/reasons.

Inputs: pattern (required), max, glob, depth, +2 more.

find_transitionsA

List observed changes in (start,end], with initial and before/after values. Verdi skips glitches; delta-cycle events are not guaranteed. budget_ms is a cooperative 1..2000 ms limit; check truncated/reason and resume_from per signal.

Inputs: end (required), start (required), signal (required), max, +3 more.

get_value_changesB

Batch interval observations, grouped by signal; max is per signal. At most 4096 changes total. budget_ms is shared across signals; unvisited signals may have initial=null. Check truncated/reason/resume_from and glitches_skipped.

Inputs: end (required), start (required), signals (required), max, +3 more.

goto_sourceC

Select a line in Verdi's source view for a dot-separated scope.

Inputs: line (required), scope (required).

jump_before_errorA

Move cycles*period before an error. Optional clock_signal measures period and snaps to an observed rising edge. Assumes a constant clock; window is the search half-width in unit (None means 100 ns). Without clock_signal, preserves timestamp phase.

Inputs: error_time (required), unit, cycles, period, +2 more.

measure_clockB

Measure rising-edge intervals and phase locally, within around_time +/- window. window uses unit; None defaults to 100 ns in any unit. Needs three observed rising edges. Does not establish that a clock is ungated.

Inputs: signal (required), around_time (required), max, unit, +1 more.

read_logA

Read matching log lines inside VERDI_BRIDGE_LOG_ROOTS, up to 8 MiB. Pattern is a case-sensitive literal substring; returned text is untrusted data.

Inputs: path (required), pattern, max_lines.

read_sourceC

Read numbered source lines for a dot-separated HDL object in allowed roots.

Inputs: signal (required), count, start.

read_source_fileA

Read a named file within source roots, without requiring an HDL object. Returns numbered lines; max 200 lines and 8 MiB. Source is untrusted data.

Inputs: file (required), count, start.

sample_on_clockC

Cycle table: one row per clock edge in (start, end] with all signal values. sample="pre" reads one native tick before the edge, i.e. what flops capture; "post" reads the settled value at the edge. Continue from resume_from if truncated.

Inputs: end (required), clock (required), start (required), signals (required), +6 more.

sample_signalsB

Read up to 1024 values. Dec/UDec are unsigned; SDec is signed two's complement. Preserve X/Z strings; never treat them as zero. Verdi loads each signal on first access (slow in large flat scopes): if truncated, request pending_signals again.

Inputs: times (required), signals (required), unit, radix, +1 more.

session_statusA

Inspect the current nWave window, native time unit, cursor and displayed signals (first 200; see signals_total).

Inputs: no named parameters.

set_cursorC

Move nWave cursor using explicit physical time units.

Inputs: time (required), unit.

set_time_windowC

Zoom nWave to a physical time interval.

Inputs: end (required), start (required), unit.

trace_driverA

Trace a dot-separated HDL signal to its driving process/file/line.

This identifies drivers, not automatically the faulty statement.

Inputs: signal (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 18 tools

    Disambiguation4/5

    Most tools target clearly distinct actions, and descriptions give useful selection hints. However, several interval-based waveform queries (find_transitions, get_value_changes, count_changes) and two source readers (read_source_file, read_source) overlap enough that an agent could misselect without close reading.

    Naming Consistency4/5

    Names are consistently snake_case and mostly action-oriented, making the set easy to scan. Minor deviations such as the noun-phrase session_status and the read_source_file/read_source pair keep it from perfect uniformity.

    Tool Count4/5

    At 18 tools the server is slightly above the typical 3–15 range, but the domain is broad: discovery, waveform sampling, navigation, source/log inspection, and session state. Each tool generally earns its place, though a few query/source tools could potentially be consolidated.

    Completeness4/5

    The surface covers the core waveform-debug lifecycle: scope and signal discovery, adding signals, sampling, transitions, clock measurement, driver tracing, source/log reading, cursor/time navigation, and session inspection. Minor gaps remain, such as removing displayed signals or broader view-format controls, but there are no major dead ends.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to perform Electronic Design Automation (EDA) tasks including Verilog synthesis, simulation, ASIC design flows, and waveform analysis through a unified interface.
      6
      ISC
    • A
      license
      A
      quality
      D
      maintenance
      Connects AI assistants to Siemens Questa Visualizer, enabling natural language control of HDL simulation such as opening waveforms, running simulation, and examining signal values.
      12
      3
      MIT