fpgacapZero (fcapz)
Open-source FPGA debug cores — in native Verilog and VHDL — that you drop into any design to see and control what's happening inside your FPGA over JTAG: no extra board pins, no soft CPU, no vendor lock-in.
Think of it as an open, vendor-neutral alternative to ChipScope / SignalTap / Reveal that works the same way across AMD/Xilinx, Intel/Altera, Lattice, Gowin, Microchip and Efinix parts, plus a Python / CLI / web host stack on top.
It is also built to be driven by AI coding agents. The bundled Model Context Protocol (MCP) server gives Claude Code, or any other MCP client, hardware-debug tools to use while it iterates on RTL: connect, set triggers, capture, search the waveform, and read or write registers on the real board.
📖 New here? Start with the User Manual — especially First capture in 10 minutes. This page is just the quick tour.
What's in the box
Five small RTL cores, all driven over JTAG:
- ELA — Embedded Logic Analyzer — capture internal signals into a waveform with flexible triggers, and export to VCD / CSV / JSON.
- AXI monitor — a passive tap on an AXI4-Lite bus that captures, triggers on, and decodes its transactions, error responses included.
- EIO — Embedded I/O — read and drive fabric signals live at runtime.
- EJTAG-AXI — a JTAG-to-AXI4 master bridge for memory-mapped bus access.
- EJTAG-UART — a JTAG-to-UART console bridge.
Plus a host stack: a browser-based web interface (fcapz-web) with an
embedded Surfer waveform viewer that you can reach from the local machine or
across the network, a Python API, the fcapz command-line tool, a
JSON-RPC server, and an MCP server (fcapz-mcp) that exposes the lab
controls to coding agents.
Why fpgacapZero
- Vendor-agnostic — one portable core with thin TAP wrappers for AMD/Xilinx 7-series, AMD/Xilinx UltraScale / UltraScale+, Lattice ECP5, Intel / Altera, Gowin, and Microchip PolarFire-family devices. An Efinix (Trion / Titanium) wrapper (two JTAG User TAP blocks via the Efinity Interface Designer) synthesizes, places and routes in Efinity on Trion and Titanium; hardware validation is pending.
- Small, and only as big as you need — a usable 8-bit / 1024-sample ELA fits in about 600 LUTs + 0.5 BRAM. Extra triggers, timestamps, decimation, segmenting, and more are compile-time options you enable only when a design needs them.
- Verilog and VHDL — the portable core ships as native Verilog and native VHDL, with shared regression coverage for both.
- Apache-2.0 — usable in proprietary designs.
Let an agent drive the bench
fcapz-mcp exposes the lab controls as MCP tools, so a coding agent can
check what the FPGA actually does while it writes the RTL. Register it with
your agent:
pip install "fpgacapzero[mcp]"
claude mcp add fpgacapzero -- fcapz-mcp --probe-root /abs/path/to/probes
--probe-root names the directory the agent may load probe maps (such as
axi.prob below) from. For a session that only observes, use
fcapz-mcp --read-only, which also disables capture control.
- Results sized for a context window. A capture returns a summary. The agent then pages samples by probe name, jumps to the window around the trigger, searches for edges, values or runs of one signal, and reads decoded AXI4-Lite transactions with the bus faults first, instead of receiving megabytes of raw samples.
- Self-describing.
fcapz_list_coresreports the ELA, AXI monitor and EIO cores on the board and their JTAG chains (AXI and UART bridge chains are given explicitly).fcapz_statusreports the session state and what the agent is allowed to do, so it learns the policy without being refused. - Writes are opt-in. EIO and AXI writes, UART sends and bitstream
programming are disabled until you enable them. AXI writes can be
confined to specific address windows, and programming to a directory
with
--bitfile-root.--read-onlyadditionally disables capture control; reads stay available, including UART receives, which consume the bytes they read. - Long and stuck calls. Hardware commands run on one owner thread, so a
concurrent hardware command returns
busyinstead of queueing behind a long capture, while status and cached-capture tools stay usable. A watchdog bounds every wait; after a timeout the agent reconnects oncefcapz_statusreportsready. - Local or remote. Use stdio for an agent on the same machine, or HTTPS with a bearer token for a bench machine elsewhere on the network.
A typical agent session, chasing a bus fault:
fcapz_connect(backend="hw_server")
fcapz_list_cores() # find the AXI monitor's chain
fcapz_connect(backend="hw_server", chain=<monitor chain>)
fcapz_capture(config={"probe_file": "axi.prob", "pretrigger": 32,
"posttrigger": 223}, timeout=10.0)
fcapz_axi_transactions(only_anomalies=True) # error responses and unaligned addresses
fcapz_get_capture_samples(around_trigger=32) # the raw signals around the trigger
Every tool, safety flag and result format is in the MCP server chapter. Agent frameworks without MCP can use the same controls through the JSON-RPC server or the Python API.
Will it work on my board?
Any board with JTAG access works. You drive it through OpenOCD (any
OpenOCD-supported adapter — FTDI, WCH CH347, CMSIS-DAP, J-Link, …), the
AMD/Xilinx hw_server (Vivado — hardware-validated on the Arty A7 and on the
Kria KV260, a Zynq UltraScale+ MPSoC), or Quartus quartus_stp
(Intel/Altera USB-Blaster — hardware-validated on the DE25-Nano / Agilex 5), or
directly over an FTDI cable (--backend ftdi: the FlashPro5 on Microchip
boards, a Digilent cable, or any FT2232H/FT4232H, with no OpenOCD or vendor
server — hardware-validated through FTDI's D2XX driver on the PolarFire SoC
Discovery Kit, the Arty A7, where it also programs the bitstream, and the
Kria KV260, where it reaches the FPGA past the ARM DAP on the JTAG chain;
the libusb driver and multi-device chains are on main, not yet in a
release, and libusb is validated for raw JTAG scans only). A board with no JTAG to the fabric can
use the serial TAP bridge instead: two spare pins and a UART
(--backend serial; hardware-validated on the Forgix board's Efinix Trion). On
Zynq UltraScale+ MPSoC parts (xck*, xczu*) the host picks the PS TAP's
chain mode from the tap name, so all four USER chains work with no extra
setup. The
full per-vendor matrix and JTAG-chain rules are in the manual's
RTL integration chapter; see also
Support status below.
Quick start
You need Python 3.10+, an FPGA board, and a supported transport: Vivado
hw_server, OpenOCD, Quartus quartus_stp (Intel/Altera USB-Blaster), a
direct FTDI cable, or the serial TAP bridge. Full setup is in
Installation.
git clone https://github.com/lcapossio/fpgacapZero.git
cd fpgacapZero
pip install -e ".[web]" # core host stack + web interface
fcapz-web # the easiest way to take your first capture
Then open http://127.0.0.1:7373 in your browser: connect to the board, arm an ELA capture with the run controls, set triggers, and inspect the result in the embedded Surfer waveform viewer — EIO and JTAG-AXI live there too. It runs over the same JSON-RPC API as the rest of the stack and can be exposed across the network with a bearer token. See Web interface.
Prefer the command line? Build the Arty A7 reference bitstream (see Build from source — or use your own), then capture:
fcapz --backend hw_server --port 3121 \
--program examples/arty_a7/arty_a7_vex_top.bit \
capture --trigger-value 0 --trigger-mask 0xFF --out capture.vcd --format vcd
The end-to-end walkthrough lives in First capture in 10 minutes. For every command and flag, see the CLI reference; for scripting, the Python API (every signature in the API reference) and JSON-RPC server. To hand the bench to a coding agent instead, see Let an agent drive the bench.
Add it to your design
One instantiation per core — swap the wrapper suffix to match your FPGA vendor:
wire [127:0] my_signals;
// Embedded Logic Analyzer (all JTAG plumbing bundled inside the wrapper)
fcapz_ela_xilinx7 #(.SAMPLE_W(128), .DEPTH(4096)) u_ela (
.sample_clk (sys_clk),
.sample_rst (reset),
.probe_in (my_signals)
);
That's the minimal ELA. Wrapper names follow fcapz_<core>_<vendor> (e.g.
fcapz_ela_ecp5, fcapz_eio_intel). Every parameter, the EIO / AXI / UART
cores, LiteX integration, VHDL sources under rtl/vhdl/, and the per-vendor
JTAG-chain rules are covered in RTL integration.
The canonical register / shift maps live in
docs/specs/register_map.md.
Support status
| Area | Status |
|---|---|
AMD/Xilinx hw_server backend |
✅ Hardware-validated on Arty A7 and Kria KV260 (Zynq UltraScale+ MPSoC) |
| OpenOCD backend | ✅ Hardware-validated on Gowin BRS-100 and the PolarFire SoC Discovery Kit; AMD/Xilinx/OpenOCD path still less exercised than hw_server |
Quartus USB-Blaster (quartus_stp) backend |
✅ Hardware-validated on DE25-Nano (Agilex 5) |
Direct FTDI backend (--backend ftdi, D2XX or libusb) |
✅ Hardware-validated over D2XX on the PolarFire SoC Discovery Kit's embedded FlashPro5, the Arty A7 (including 7-series programming) and the Kria KV260 (multi-device JTAG chain, on main); libusb (on main, unreleased) validated for raw JTAG scans only, full sessions not yet |
Serial TAP bridge (--backend serial, fcapz_ela_uart) |
✅ Hardware-validated on Forgix (Efinix Trion T8F49, over its configuration pins) |
| AMD/Xilinx 7-series wrappers | ✅ Hardware-validated on Arty A7-100T |
| Gowin wrapper | ✅ Hardware-validated on BRS-100-GW1NR9 |
| Intel / Altera wrapper | ✅ Hardware-validated on DE25-Nano (Agilex 5) via USB-Blaster |
| Microchip PolarFire wrapper | ✅ Hardware-validated on the PolarFire SoC Discovery Kit (MPFS095T) over OpenOCD |
| AMD/Xilinx UltraScale / UltraScale+ wrappers | ✅ Hardware-validated on Kria KV260 (xck26) and on a Kintex UltraScale KU035 (proprietary board); standalone UltraScale+ not yet tested |
| ECP5 wrappers | RTL complete; host / hardware validation still limited |
| Efinix (Trion / Titanium) wrapper | ⏳ Synthesized, placed and routed in Efinity 2025.1 (Trion T20F256, Titanium Ti60F225); hardware validation pending |
| ELA / EIO / EJTAG-AXI / EJTAG-UART | ✅ Validated on Arty A7 and Kria KV260 (details in the manual) |
The full, always-current matrix is in Overview and RTL integration.
Build from source
# Build the Arty A7 reference bitstream (Vivado)
python examples/arty_a7/build.py
# Or the Kria KV260 one (Zynq UltraScale+ MPSoC; needs the kv260_som board files)
python examples/kv260/build.py
# Run the host test suite — no hardware needed
pip install -e ".[dev,hdl]"
pytest tests/ -v
RTL simulation (Icarus / Verilator / cocotb / GHDL), the VHDL parity gates, the CI jobs, and the hardware-in-the-loop tests are all documented in CONTRIBUTING.md. Live CI status is the badge at the top.
Project layout
rtl/ Portable Verilog cores + vendor TAP wrappers (VHDL in rtl/vhdl/)
host/fcapz/ Python host stack: Analyzer, transports, CLI, RPC, web, MCP
examples/ Reference designs (Arty A7, Kria KV260, DE25-Nano, Gowin BRS-100,
PolarFire SoC Discovery Kit, Forgix, and more)
docs/ User manual (start at docs/README.md) + canonical specs
tb/, sim/ Testbenches and simulation runners
Project links
- 📖 User Manual — the complete guide; it also builds into a searchable
HTML site (
mkdocs serve) - 📝 CHANGELOG — releases, with breaking changes called out
- 🤝 CONTRIBUTING — dev setup, testing, adding a board
- 🐛 Troubleshooting — common errors and fixes
Author
Leonardo Capossio — bard0 design — hello@bard0.com
Contributors
Sponsoring
If fpgacapZero helps your FPGA debug flow, you can support continued development through GitHub Sponsors.
License
Apache License 2.0 — see LICENSE for details.
Metadata
Release files for fpgacapzero 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fpgacapzero-0.5.2.tar.gz | 6.2 MB | With provenance | Details for fpgacapzero-0.5.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fpgacapzero-0.5.2-py3-none-any.whl | Python 3 | none | any | Details for fpgacapzero-0.5.2-py3-none-any.whl |
Total release size: 12.2 MB
Release files / fpgacapzero-0.5.2.tar.gz
| Download URL | fpgacapzero-0.5.2.tar.gz |
|---|---|
| Size | 6.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7c137a6dd425498ac1f06dc444eee5f26bdccdb3fa72cca84deaa326f40fd21
|
|
BLAKE2b-256 checksum How to use checksums |
fdbebf25694a2564fd88216d533f859910c9150ad4b5a844706aa2a8ade9d0dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / fpgacapzero-0.5.2-py3-none-any.whl
| Download URL | fpgacapzero-0.5.2-py3-none-any.whl |
|---|---|
| Size | 6.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
96f5255d4825d0fd636e63ab9ef866251cb81bf0b589bc6b4aab82aa5385eb82
|
|
BLAKE2b-256 checksum How to use checksums |
5a3259119c12fa04561e9b90e951ab1550c49eabf8578e2b693a3390f93c04ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logSecurity for fpgacapzero 0.5.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for fpgacapzero-0.5.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.