NM

nellyw8/mcp4eda

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

114 stars 13 forks 质量 59 趋势 0

nellyw8/mcp4eda 是从 https://github.com/nellyw8/mcp4eda. 导入的 MCP 服务器候选服务器。

概览

nellyw8/mcp4eda 是从 https://github.com/nellyw8/mcp4eda. 导入的 MCP 服务器候选服务器。

概述(AI 翻译)

论文实现:MCP4EDA:基于LLM的模型上下文协议RTL转GDSII自动化,具备后端感知综合优化

这是一台全面的模型上下文协议(MCP)服务器,为Claude Desktop和Cursor IDE等AI助手提供电子设计自动化(EDA)工具集成。该服务器使AI能够通过统一界面执行Verilog合成、仿真、ASIC设计流程和波形分析。

  • 我们的网站

演示

https://github.com/user-attachments/assets/65d8027e-7366-49b5-8f11-0430c1d1d3d6

EDA MCP 服务器演示,展示 Verilog 综合、仿真和 ASIC 设计流程

特色

  • Verilog 合成:使用Yosys合成Verilog代码,用于各种FPGA目标(通用、ice40、xilinx)
  • Verilog 模拟:使用 Icarus Verilog 模拟设计,并配备自动测试平台执行
  • 波形查看:启动GTKWave以进行VCD文件可视化和信号分析
  • ASIC 设计流程:完整的 RTL 到 GDSII 流程,使用 OpenLane 与 Docker 集成
  • 布局查看:在KLayout中打开GDSII文件进行物理设计检查

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

EDA Tools MCP Server

Implementation of the paper: MCP4EDA: LLM-Powered Model Context Protocol RTL-to-GDSII Automation with Backend Aware Synthesis Optimization

A comprehensive Model Context Protocol (MCP) server that provides Electronic Design Automation (EDA) tools integration for AI assistants like Claude Desktop and Cursor IDE. This server enables AI to perform Verilog synthesis, simulation, ASIC design flows, and waveform analysis through a unified interface.

Demo

https://github.com/user-attachments/assets/65d8027e-7366-49b5-8f11-0430c1d1d3d6

EDA MCP Server demonstration showing Verilog synthesis, simulation, and ASIC design flow

Features

  • Verilog Synthesis: Synthesize Verilog code using Yosys for various FPGA targets (generic, ice40, xilinx)
  • Verilog Simulation: Simulate designs using Icarus Verilog with automated testbench execution
  • Waveform Viewing: Launch GTKWave for VCD file visualization and signal analysis
  • ASIC Design Flow: Complete RTL-to-GDSII flow using OpenLane with Docker integration
  • Layout Viewing: Open GDSII files in KLayout for physical design inspection
  • Report Analysis: Read and analyze OpenLane reports for PPA metrics and design quality assessment

Prerequisites

Before using this MCP server, you need to install the following EDA tools:

1. Yosys (Verilog Synthesis)

macOS (Homebrew):

brew install yosys

Ubuntu/Debian:

sudo apt-get update
sudo apt-get install yosys

From Source:

# Install prerequisites
sudo apt-get install build-essential clang bison flex \
    libreadline-dev gawk tcl-dev libffi-dev git \
    graphviz xdot pkg-config python3 libboost-system-dev \
    libboost-python-dev libboost-filesystem-dev zlib1g-dev

# Clone and build
git clone https://github.com/YosysHQ/yosys.git
cd yosys
make -j$(nproc)
sudo make install

Alternative - OSS CAD Suite (Recommended): Download the complete toolchain from: https://github.com/YosysHQ/oss-cad-suite-build/releases

2. Icarus Verilog (Simulation)

macOS (Homebrew):

brew install icarus-verilog

Ubuntu/Debian:

sudo apt-get install iverilog

Windows: Download installer from: https://bleyer.org/icarus/

3. GTKWave (Waveform Viewer)

Direct Downloads (Recommended):

  • Windows: Download from SourceForge
  • macOS: Download from SourceForge or use Homebrew: brew install --cask gtkwave
  • Linux: Download from SourceForge or use package manager: sudo apt-get install gtkwave

Alternative Installation Methods:

# macOS (Homebrew)
brew install --cask gtkwave

# Ubuntu/Debian
sudo apt-get install gtkwave

# Build from source (all platforms)
git clone https://github.com/gtkwave/gtkwave.git
在 GitHub 查看完整 README

安装

docker run -i --rm alpine/socat STDIO TCP:host.docker.internal:8811
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "MCP_DOCKER": { "command": "docker", "args": [ "run", "-i", "--rm", "alpine/socat", "STDIO", "TCP:host.docker.internal:8811" ] } } }