Vivado MCP Native

v0.2.1
io.github.Arthurzxy/vivado-mcp-native Checked 1 day ago Published 4 months ago

Native MCP server for controlling AMD/Xilinx Vivado on Windows and Linux via persistent Tcl.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

start_session

Start a persistent Vivado TCL session. Must be called before other commands.

ParameterTypeDescription
vivado_pathstringPath to Vivado executable (default: 'vivado' from PATH)

stop_session

Stop the Vivado TCL session and free resources

session_status

Get status and statistics of the current Vivado session

check_session_health

Check if Vivado session is responsive and recover if needed. Use this if commands are timing out or behaving unexpectedly.

ParameterTypeDescription
auto_recoverbooleanRestart session if unhealthy (default: true)

get_host_status

Get status of this Vivado MCP server host including hostname, free memory, and session state. If free memory is below 64GB, use vivado-snoke instead.

open_project

Open a Vivado project (.xpr file)

ParameterTypeDescription
project_path *stringPath to .xpr project file

close_project

Close the current project

get_project_info

Get information about the currently open project

run_synthesis

Run synthesis on the current project

ParameterTypeDescription
jobsintegerNumber of parallel jobs (default: 4)
timeoutintegerTimeout in seconds (default: 1800 = 30 minutes). Increase for large designs.

run_implementation

Run implementation (place and route) on the current project

ParameterTypeDescription
jobsintegerNumber of parallel jobs (default: 4)
timeoutintegerTimeout in seconds (default: 3600 = 60 minutes). Increase for large designs.

generate_bitstream

Generate bitstream for the implemented design

get_timing_summary

Get timing summary (WNS, TNS, WHS, THS). Returns parsed metrics only by default. Use generate_full_report for raw output.

ParameterTypeDescription
detail_levelstringDetail level: 'summary' (default, parsed metrics only), 'standard' (+ truncated raw), 'full' (+ complete raw)
report_typestringType: 'summary' (default), 'setup', 'hold', or 'all'

get_timing_paths

Get timing paths for failing or critical paths. Returns structured summary (slack, source, dest, clocks) by default. Use generate_full_report for verbose path details.

ParameterTypeDescription
clockstringFilter paths by clock domain name
detail_levelstringDetail level: 'summary' (default, structured only), 'standard' (+ truncated raw), 'full' (+ complete raw)
from_pinstringFilter paths starting from this pin/cell pattern (Vivado -from option)
num_pathsintegerNumber of paths to report (default: 10)
path_typestringType: 'setup' (default) or 'hold'
slack_thresholdnumberOnly show paths with slack less than this (default: 0 for failing paths)
throughstringFilter paths going through this pin/cell pattern (Vivado -through option)
to_pinstringFilter paths ending at this pin/cell pattern (Vivado -to option)

get_utilization

Get resource utilization (LUT, FF, BRAM, DSP, IO). Returns parsed metrics only by default. Use generate_full_report for hierarchical details.

ParameterTypeDescription
detail_levelstringDetail level: 'summary' (default, parsed only), 'standard' (+ truncated raw), 'full' (+ complete raw)
hierarchicalbooleanInclude hierarchical breakdown (default: false)
module_filterstringWildcard pattern to filter modules in hierarchical report
threshold_percentnumberOnly show resources above this utilization percentage (0-100)

get_clocks

Get clock information and constraints

get_messages

Get synthesis/implementation messages (errors, warnings)

ParameterTypeDescription
severitystringFilter by severity: 'all' (default), 'error', 'critical', 'warning'

get_design_hierarchy

Get the design hierarchy (modules and instances)

ParameterTypeDescription
instance_patternstringWildcard pattern to filter instances (e.g., '*cpu*', 'core/alu/*')
max_depthintegerMaximum hierarchy depth to return (default: 3)

get_ports

Get top-level ports of the design

get_nets

Search for nets in the design

ParameterTypeDescription
limitintegerMaximum number of results (default: 100)
patternstringWildcard pattern to match net names (default: '*')

get_cells

Search for cells (instances) in the design

ParameterTypeDescription
limitintegerMaximum number of results (default: 100)
patternstringWildcard pattern to match cell names (default: '*')

run_tcl

Execute a raw TCL command in Vivado. Use for advanced operations not covered by other tools.

ParameterTypeDescription
command *stringTCL command to execute

launch_simulation

Launch behavioral simulation (xsim). Opens the simulator and loads the design.

ParameterTypeDescription
modestringSimulation mode (default: behavioral)

run_simulation

Run the simulation for a specified time

ParameterTypeDescription
time *stringTime to run (e.g., '100ns', '1us', '10ms', 'all')

restart_simulation

Restart the simulation from time 0

close_simulation

Close the current simulation

get_simulation_time

Get the current simulation time

get_signal_value

Get the current value of a signal in simulation

ParameterTypeDescription
signal *stringFull hierarchical signal path (e.g., '/tb/dut/clk', '/tb/dut/data_out')
radixstringDisplay radix (default: hex)

get_signal_values

Get current values of multiple signals matching a pattern

ParameterTypeDescription
pattern *stringSignal pattern with wildcards (e.g., '/tb/dut/*', '/tb/dut/data*')
radixstringDisplay radix (default: hex)

add_signals_to_wave

Add signals to the waveform viewer

ParameterTypeDescription
signals *arrayList of signal paths to add (e.g., ['/tb/dut/clk', '/tb/dut/rst'])

set_simulation_top

Set the top module for simulation

ParameterTypeDescription
top_module *stringName of the testbench module
filesetstringSimulation fileset (default: sim_1)

get_simulation_objects

List simulation objects (signals, variables) in a scope

ParameterTypeDescription
filterstringFilter by object type (default: all)
scopestringHierarchical scope (e.g., '/tb', '/tb/dut'). Default is root.

get_scopes

List available scopes (hierarchy) in the simulation

ParameterTypeDescription
parentstringParent scope to list children of (default: root)

step_simulation

Step the simulation by a delta cycle or time step

ParameterTypeDescription
countintegerNumber of steps (default: 1)

add_breakpoint

Add a simulation breakpoint on a signal condition

ParameterTypeDescription
signal *stringSignal to monitor
conditionstringTrigger condition (default: change)

remove_breakpoints

Remove all breakpoints

get_simulation_messages

Get simulation log messages (errors, warnings, info)

ParameterTypeDescription
severitystringFilter by severity (default: all)

request_feature

Request a new feature or capability for the Vivado MCP server. Use this when you encounter a limitation or wish you had a tool that doesn't exist.

ParameterTypeDescription
description *stringDetailed description of what you need and why
title *stringShort title for the feature request
prioritystringHow important is this feature? (default: medium)
use_casestringThe specific use case or task you were trying to accomplish

list_feature_requests

List all feature requests that have been submitted

generate_full_report

Generate a full Vivado report to a file. Use when inline reports are truncated or you need the complete output.

ParameterTypeDescription
report_type *stringType of report to generate
optionsobjectReport-specific options (e.g., {'hierarchical': true} for utilization)
output_filestringOptional custom output path. Default: the platform temporary directory/vivado_mcp/<type>_<id>.txt

read_report_section

Read a section of a previously generated report file

ParameterTypeDescription
file_pathstringAlternative: direct file path to read
num_linesintegerNumber of lines to read (default: 100)
report_idstringReport ID returned by generate_full_report
search_patternstringRegex pattern to find a section (returns lines around first match)
start_lineintegerLine number to start reading from (1-indexed, default: 1)