Skip to main content

MCP Server for AI-powered RTL diagram generation from Verilog source

Project description

RTLViz

Generate interactive block diagrams from Verilog source files.

Python License

Installation

Step 1: Install Package

pip install rtlviz

Step 2: Setup IDE

Spins up the MCP server config for all popular IDEs.

rtlviz setup

Step 3: Manual IDE Setup (if Step 2 fails)

If the automatic setup doesn't work, you can manually configure your IDE's MCP settings (e.g., claude_desktop_config.json).

Command: rtlviz-server works if installed in PATH. Otherwise use python -m rtlviz.

JSON Config:

{
  "mcpServers": {
    "rtlviz": {
      "command": "python",
      "args": ["-m", "rtlviz"]
    }
  }
}

Usage

AI Agent

After setup, ask your AI assistant (Role: Software Engineer):

"Use rtlviz MCP to generate a diagram for the Verilog files in <path to code>"

The diagram will automatically open in your browser.

Recommended Models: For best results, use state-of-the-art reasoning models:

  • Claude: Opus 4.5 , Sonnet 4.5
  • Google: Gemini 3
  • OpenAI: GPT-5.2

Example Output

RISC-V CPU Block Diagram

Features

  • Automatic Parsing - Extractions modules and connections from Verilog
  • Pipeline Detection - Identifies CPU stages (IF, ID, EX, MEM, WB)
  • Beautiful Diagrams - Orthogonal routing with semantic clustering
  • Interactive - Pan, zoom, and export to SVG
  • Auto-Open - Instantly opens generated diagrams in browser

Requirements

  • Python 3.10+
  • Internet connection (for Viz.js rendering)

Authors

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rtlviz-0.5.7.tar.gz (358.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rtlviz-0.5.7-py3-none-any.whl (43.9 kB view details)

Uploaded Python 3

File details

Details for the file rtlviz-0.5.7.tar.gz.

File metadata

  • Download URL: rtlviz-0.5.7.tar.gz
  • Upload date:
  • Size: 358.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for rtlviz-0.5.7.tar.gz
Algorithm Hash digest
SHA256 473c61fb2588a500e4e00c4b4b7eb5d1f953f893f8c15e51c292d0112ef9e3ab
MD5 e1210b43a9f40de279d1f5edc003f687
BLAKE2b-256 1325fc8b5e2deecd1bfb37568c206944b3e8303257f7da3f13a55aa8e1b3c9fe

See more details on using hashes here.

File details

Details for the file rtlviz-0.5.7-py3-none-any.whl.

File metadata

  • Download URL: rtlviz-0.5.7-py3-none-any.whl
  • Upload date:
  • Size: 43.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for rtlviz-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9319029f69e93d925d69097d7a6d517c3013f3c3ac8e50b45c7934f4ac48966b
MD5 92bc628b125882eceeed22265ef247a1
BLAKE2b-256 553e162dc0fa4cd15080f05051b88c1afb71a3dab4cf123e2783ea97eea07e97

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page