Skip to content
Projects

al-nafisah/fpga-project-analyzer

View on GitHub

About

See and review any Vivado / Zynq / PYNQ project: drill-down Vivado-style diagrams and clock-domain, constraint and overlay checks for AI coding agents.

Developer Tools

How these counts are measured

What you can do

  • Diagram: one offline HTML file. Click from block design → hierarchy → Verilog/VHDL → registers; wires coloured by clock domain.
  • Checks: clock-domain crossings traced from the block design into RTL, synchronizers missing ASYNC_REG, unconstrained pins, reset polarity, address map, interrupts, PYNQ .bit/.hwh mistakes.
  • Logs: failed Vivado/PetaLinux builds condensed to the lines that matter.
  • Software links: PYNQ notebooks, bare-metal C and device trees mapped to the blocks they drive.

Measured star growth

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

FPGA Project Analyzer

An AI agent skill that explains and reviews Vivado, Zynq and PYNQ projects - visually.
Ask your agent; get a clickable Vivado-style diagram, plus the bugs that "timing met" hides.

Claude Code plugin MCP server Python Offline MIT license

How it works: your FPGA project files (Vivado .xpr/.bd/.tcl, Verilog/SystemVerilog/VHDL, .xdc/.hwh/.xsa/.bit, PYNQ notebooks, C drivers and device trees, failed build logs) go to your AI agent (Claude Code, Cursor, Codex, Gemini CLI, Copilot or any MCP/skills agent) with the fpa skill. You get a clickable diagram from block design down to registers, real bugs with file:line, why the build failed and the exact fix, and design docs. Runs offline; Vivado optional.

▶ Try it live: the analyzer's diagram of a RISC-V SoC, with the same RTL running in your browser

Install

Easiest: ask your AI agent to do it.

Install the FPGA Project Analyzer from https://github.com/al-nafisah/fpga-project-analyzer and set it up for yourself, following its README.

Or do it yourself:

  1. Install the tool (Python 3.8+):

    pipx install git+https://github.com/al-nafisah/fpga-project-analyzer
    
  2. Connect your agent:

Agent Setup
Claude Code /plugin install fpga --marketplace al-nafisah/fpga-project-analyzer (step 1 not needed)
Claude Desktop add the JSON below to its MCP config
Cursor add the JSON below to ~/.cursor/mcp.json
Gemini CLI gemini mcp add fpga fpa mcp
OpenAI Codex codex mcp add fpga -- fpa mcp
VS Code (Copilot) add the JSON below to .vscode/mcp.json, with "servers" instead of "mcpServers"
{"mcpServers": {"fpga": {"command": "fpa", "args": ["mcp"]}}}

Any other MCP-capable agent works the same way. Agents that load SKILL.md skills can use skills/ directly. Browser chats can't read your files; use the vendor's coding agent instead. Without AI: fpa build <project>, then fpa view <project>. Vivado is optional.

Use

Open your project folder in your agent and ask:

Ask You get
"Explain this FPGA project" How the design works, as a clickable diagram
"Review it for hardware bugs" Clock crossings, pins, resets, address map, PYNQ issues
"Why did my build fail?" The root cause and the exact fix

In Claude Code these are also commands: /fpga:explain, /fpga:review, /fpga:debug.

See it in action

Demo: block design coloured by clock domain, drill-down into RTL, ending on an unsynchronized clock-domain crossing finding

Features

  • Diagram: one offline HTML file. Click from block design → hierarchy → Verilog/VHDL → registers; wires coloured by clock domain.
  • Checks: clock-domain crossings traced from the block design into RTL, synchronizers missing ASYNC_REG, unconstrained pins, reset polarity, address map, interrupts, PYNQ .bit/.hwh mistakes.
  • Logs: failed Vivado/PetaLinux builds condensed to the lines that matter.
  • Software links: PYNQ notebooks, bare-metal C and device trees mapped to the blocks they drive.
  • Docs: export any level as SVG/PNG, or generate a Markdown design document with diagrams (fpa doc).

Examples

examples/zynq_dma_scaler: Vivado reports timing met; the analyzer finds

H io-unconstrained  gpio_rtl_0_tri_o[3]: no IOSTANDARD / PACKAGE_PIN   ← why write_bitstream failed
H cdc  .../gain_q_reg   16-bit CDC 100 MHz → 50 MHz                     (Vivado report_cdc agrees)
H cdc  .../u_mul/y_reg  CDC 50 MHz → 100 MHz through logic             (Vivado report_cdc agrees)
M pynq-bitname  notebook loads design_1.bit, build makes design_1_wrapper.bit

NEORV32 RISC-V, live in your browser: the analyzer's diagram of the unmodified NEORV32 SoC, next to the same RTL running in your browser (GHDL → Verilator → WebAssembly). Boot the real bootloader, run programs, and watch the blocks light up as the CPU uses them. Sources: examples/neorv32.

Limitations

Without Vivado, RTL is read structurally: clocks routed through SystemVerilog interface internals may go untraced, so "no findings" can mean "not checked". VHDL generics and if/case ... generate conditions are evaluated (package constants and simple helper functions included); a condition fpa cannot evaluate keeps its branch, a for ... generate is drawn once, and Verilog generate blocks are not evaluated. fpa.py deep uses Vivado elaboration for exact results. Findings are candidates to confirm against the source.

Contributing

The analyzer improves with every real project it sees. Most helpful:

  • Wrong or missed finding? Open an issue with a small repro or an anonymized build log.
  • A check you wish existed? Propose it, or pick one labelled new-check.
  • Not on AMD? Help add Quartus, Lattice or Yosys/nextpnr support (toolchain).
  • New here? Start with a good first issue.

See CONTRIBUTING.md. If it saved you a debug session, a ⭐ helps other FPGA engineers find it.


Created by Abdullah AlNafisah with Claude Code. Diagram layout by ELK; sketch font Architects Daughter (OFL); see THIRD_PARTY.md. AMD, Vivado, Zynq and PYNQ are trademarks of AMD; this project is not affiliated with AMD. MIT © 2026 Abdullah AlNafisah

Explore related projects

Loading…