/vibe-ic:fpga-hps-bridgefrom vibe-ic
Generates HPS-to-FPGA bridge integration for DE10-Nano verification, replacing slow UART with memory-mapped register access from ARM Cortex-A9 for 100x faster BIST testing.
Ships in vibe-ic. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Generate a complete HPS-to-FPGA bridge integration for Cyclone V SoC FPGA verification, enabling the ARM Cortex-A9 to control BIST engines via direct memory-mapped I/O instead of UART.
Implement the Avalon-MM bridge and software register access from the project's actual register map. Keep byte offsets, widths, reset values, address decoding and handshake timing consistent between RTL and software. Simulate reads, writes, byte enables and reset behavior with native HDL tools, then compile with Quartus for the selected board. Read its timing and fit reports.
The register table below is a worked integration template. Confirm the project's required map before using it; no retired generator supplies an authoritative map.
/dev/mem)cd4013b_bist_v5.sv)The following files describe the bridge RTL, software access and integration guide to author for the selected project. Validate them with native simulation and Quartus.
common_rtl/hps_bridge.sv — Avalon-MM Slave Register BridgeParameterized bridge module that maps BIST control/status to 16 registers accessible from HPS Linux via /dev/mem. Features:
cd4013b_hps_top.sv — HPS-Enabled FPGA Top ModuleTop-level module that instantiates:
soc_system)hps_bridge (Avalon-MM slave on LW H2F bridge)cd4013b_bist_v5)cd4013b)Dual-interface: HPS (fast, no cable) OR UART (universal).
hps_test.py — Python Test Script (runs ON DE10-Nano)7-stage test flow matching the UART version:
Plus:
HPS_INTEGRATION_GUIDE.md — Setup InstructionsStep-by-step guide for:
DE10-Nano SoC
+---------------------------------------------------+
| HPS (ARM Cortex-A9) | FPGA Fabric |
| +-------------------+ | +-------------+ |
| | Linux (Debian) | | | BIST v5 | |
| | +---------------+ | H2F | | Engine | |
| | | hps_test.py |-+--LW---+->| | |
| | | (mmap) | | Bridge | | +-------+ | |
| | +---------------+ | | | | DUT | | |
| +-------------------+ | | +-------+ | |
| | +-------------+ |
+---------------------------------------------------+
Keep the selected register map identical in hps_register_map.md, the RTL
read/write logic and the software constants. Confirm each offset through
native simulation before hardware access.
| Offset | Name | R/W | Description |
|---|---|---|---|
| 0x00 | CTRL | R/W | start_bist, start_loop, start_fmax, cov_reset |
| 0x04 | STATUS | R | running, done, all_pass, state |
| 0x08 | TEST_NUM | R | Current test number |
| 0x0C | PASS_COUNT | R | Pass count |
| 0x10 | FAIL_COUNT | R | Fail count |
| 0x14 | TOTAL_TESTS | R | Total test count |
| 0x18 | COV_TOGGLE | R | Toggle coverage bitmap |
| 0x1C | COV_STATE | R | State coverage bitmap |
| 0x20 | COV_GROUP | R | Group coverage bitmap |
| 0x24 | COV_BRANCH | R | Branch coverage bitmap |
| 0x28 | LOOP_COUNT | R/W | Stress loop iteration count |
| 0x2C | LOOP_PASS | R | Loop pass iterations |
| 0x30 | LOOP_FAIL | R | Loop fail iterations |
| 0x34 | FMAX_RESULT | R | Fmax sweep result (MHz) |
| 0x38 | CHIP_ID | R | IC identifier constant |
| 0x3C | VERSION | R | BIST version constant |
| Metric | UART | HPS |
|---|---|---|
| Single BIST (48 tests) | ~2-5 seconds | ~0.01-0.05 seconds |
| Stress loop (10K iters) | ~30-60 minutes | ~5-15 seconds |
| Coverage layers | 5 | 6 (adds branch) |
| External hardware | USB-UART cable | None |
| Per-test detail | Full (input/output/diff) | Aggregate only |
| Feature | UART (fpga_test_harness) | HPS (fpga-hps-bridge) |
|---|---|---|
| Speed | Slow (115200 baud serial) | Fast (memory-mapped AXI) |
| Cable | Required | Not needed |
| Per-test data | Full detail per test | Aggregate pass/fail |
| Debug capability | Excellent (debug trace) | Limited (use UART for debug) |
| Setup complexity | Low (plug in cable) | High (Qsys + Linux) |
| Board support | Any FPGA with GPIO | Cyclone V SoC only |
| Host | Any PC (Win/Mac/Linux) | DE10-Nano Linux (ARM) |
| Coverage | 5 layers | 6 layers (+ branch) |
1. Initial development:
fpga_test_harness (UART) --> debug per-test failures
2. Bridge validation:
hps_test.py --compare-uart test_report_v5_*.json --> verify match
3. Regression testing:
hps_test.py --stress 10000 --> fast stress test via HPS
4. Production:
hps_test.py --> automated on-board validation
The structural adaptation is mechanical — let the generator do it instead of copy-editing:
Implement the bridge from the selected project register map. Keep RTL/software byte offsets, widths, reset behavior and handshakes aligned, then verify them through native HDL simulation and Quartus.
This re-emits hps_bridge.sv (with the new CHIP_ID_VALUE), <ic>_hps_top.sv
(instantiating the named DUT + BIST), and hps_test.py (with the new
IC_NAME / TOTAL_TESTS) — all with the IDENTICAL 16-register offsets.
Then apply the parts that need engineering judgment (NOT generated):
pin_cur and branch conditions inside
the BIST engine to your DUT's pins/groups.<ic>_hps_top.HPS_INTEGRATION_GUIDE.md — Linux/SD-card + Qsys setup steps.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub vibeic/vibe-ic --plugin vibe-ic71 skills in this plugin
/ams-simPlan and run analog / mixed-signal simulations — DC op, AC, transient, Monte Carlo, corner sweeps, PSRR/CMRR, noise — using ngspice, Xyce, Spectre, or HSPICE, and triage the results. Use when the user says "SPICE", "ngspice", "Monte Carlo", "corner simulation", "analog sim", "AC analysis", "transient", "PSRR", "CMRR", "noise analysis"./analog-extraction-resimPost-layout parasitic extraction + re-simulation for analog blocks — compares pre-layout vs post-layout specs. Use when the user says "post-layout resim", "extract and resimulate", "parasitic check", or at Step A7 of the analog track./analog-flow-orchestrateCanonical reference doc for the Analog A1-A9 track — spec extraction → topology → netlist → corner sweep → layout → per-block PV (DRC/LVS) → post-layout resim → hardmacro → HIL. Used when an agent wants to walk the A1-A9 plan step-by-step. For unified one-command execution (deterministic runner + AI fall-through + final audit aggregated), prefer the slash command `/vibe-ic-analog` (v1.6.13+) which merges this skill's workflow with `analog_one_shot_runner.py`./analog-hardmacro-genPackage a verified analog block into a hardmacro (LEF abstract + Liberty timing + GDS + behavioral Verilog) for digital PnR integration. Use when the user says "package analog block", "generate hardmacro", "create LEF/Liberty", or at Step A7 of the analog track./analog-hw-measureExecute hardware measurements on analog blocks via scope capture + FPGA ADC read. Use when running hardware-in-the-loop verification, "measure analog", "scope capture", "read ADC", or during analog hardware tuning./analog-hw-testbench-genGenerate FPGA RTL for hardware-in-the-loop analog testing — digital stimulus controller + ADC readback + scope trigger. Use when verifying analog blocks on real hardware, "generate hw testbench", "FPGA analog test", or at the hardware verification phase.Other plugins' skills for the same job