pynq-workflow
/pynq-workflow
Build and diagnose PYNQ overlays using an explicit hardware contract, matched BIT/HWH artifacts, bounded simple AXI DMA transfers, buffer ownership, and golden-reference evidence. Use for PYNQ data acquisition or accelerator projects; adapt board pins and packet formats to the actual hardware.
- Author
- liuziyi20192010 ↗
- Repository
- far_field_radio_df ↗
- Licence
- MIT
- Last repository change
- 26.10.2026
Assessment and security
- Files in this package
- 10
- Scripts
- 4
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 4 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/dma_session.py, scripts/golden_compare.py, scripts/overlay_audit.py, scripts/report_metrics.py
What it does and when to use it
Build and diagnose PYNQ overlays using an explicit hardware contract, matched BIT/HWH artifacts, bounded simple AXI DMA transfers, buffer ownership, and golden-reference evidence. Use for PYNQ data acquisition or accelerator projects; adapt board pins and packet formats to the actual hardware.
Original author description
Build and diagnose PYNQ overlays using an explicit hardware contract, matched BIT/HWH artifacts, bounded simple AXI DMA transfers, buffer ownership, and golden-reference evidence. Use for PYNQ data acquisition or accelerator projects; adapt board pins and packet formats to the actual hardware.
How it works
SKILL.md has no level-two headings · 17 lines, 409 words
SKILL.md preview
--- name: pynq-workflow description: Build and diagnose PYNQ overlays using an explicit hardware contract, matched BIT/HWH artifacts, bounded simple AXI DMA transfers, buffer ownership, and golden-reference evidence. Use for PYNQ data acquisition or accelerator projects; adapt board pins and packet formats to the actual hardware. --- # PYNQ workflow Make the interface contract explicit before generating host code: board/part and image version; IP instance names and VLNV; register offsets/bitfields; stream width, byte length and TLAST; cache policy; start/done/rearm; reset/quiescence. Never infer these from another project's constants or from an IP name alone. Read [interface_contract.md](references/interface_contract.md) when creating or changing an overlay interface. BIT, same-stem HWH and host decoder must come from one build. Use `scripts/overlay_audit.py --bit <file> --contract <json> --manifest <json>` before loading. The audit is read-only and proves configured metadata/hashes, not electrical compatibility or bitstream correctness. Check `overlay.ip_dict` and the actual IP `register_map` on the target image before changing registers. For finite simple AXI DMA S2MM, use [dma_and_cdc.md](references/dma_and_cdc.md) and `scripts/dma_session.py`. Compute bytes from count and dtype; compare against the configured BTT width, DRE/alignment and allocation. Receive must be armed before a producer starts. Keep the PYNQ buffer alive until completion and driver cache invalidation; copy results before freeing. Timeout, transfer errors and KeyboardInterrupt require retention until a successful hardware reset ends every old write. A stopped notebook/UI is insufficient. One physical DMA needs one shared owner. The helper assumes the AXI DMA simple S2MM register layout; do not apply it to SG, cyclic DMA or MCDMA. Separate transport correctness from signal/algorithm correctness: use a counter or known vector for the first, then independent same-frame reference results for the second. Compare stages from raw samples to intermediate accumulators, products and final output when diagnosing divergence. Use `scripts/golden_compare.py <npz> --tolerance <limit>` (add `--circular` only for degrees), and `scripts/report_metrics.py <report_dir>`. Reject unknown report formats instead of inventing numbers. Preserve invalid/overrange frames in evidence. Before changing an estimator or adding compensation for a stable measurement bias, check source outputs, cable seating, common reference, input range and calibration conditions. Keep physical observations separate from digital same-frame agreement. For notebook presentation changes, read [presentation_and_evidence.md](references/presentation_and_evidence.md): simplify the normal view while retaining invalid states, raw diagnostics and reproducible evidence outside it. Read [pitfalls.md](references/pitfalls.md) for a matching symptom, and [prompts.md](references/prompts.md) to organize model/tool correction loops. Verify a claimed improvement with the same input and defined baseline; label simulation, offline mock behavior, calculated bounds and board measurements separately. Templates and prompts are aids, not independently proven universal workflows. The scripts contain no ADC format, carrier frequency, phase protocol, package pins or fixed DMA instance name. A new board still needs its own PS/DDR/MIO, constraints and image compatibility checks. Cross-board physical validation has not been performed; see the parent [README](../README.md) for demonstrated scope and failure conditions.
Files in this package (10)
- SKILL.md 4 KB
- references/dma_and_cdc.md 3 KB
- references/interface_contract.md 2 KB
- references/pitfalls.md 5 KB
- references/presentation_and_evidence.md 3 KB
- references/prompts.md 2 KB
- scripts/dma_session.py 4 KB
- scripts/golden_compare.py 2 KB
- scripts/overlay_audit.py 3 KB
- scripts/report_metrics.py 2 KB
Versions
The database has no other skills named pynq-workflow.
Database snapshot: 13.11.2026 · package version d1ce160571f0 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 91pynq-stream-validation
Validate fixed-length AXI DMA stream contracts, generate PYNQ host skeletons, diagnose transfers, compare golden arrays and extract Vivado metrics. Use for Overlay verification, not SG DMA or audio classifier design. - 100pynq-overlay-bringup
Use when a PYNQ Overlay, MMIO, DMA, video pipeline, or first board test fails, hangs, resets, reports No Devices Found, or exhausts CMA. - 100fpga-project-analyzer
Analyze and explain existing AMD/Xilinx FPGA projects visually - Vivado block designs (.xpr, .bd, .hwh, .xsa, BD Tcl), Verilog/SystemVerilog/VHDL, PYNQ overlays and notebooks, HLS/bare-metal C, device trees, timing/DRC reports and build logs. Builds a drill-down Vivado-style… - 100esp32-dma-buffer-placement
Use when reviewing or implementing esp32 dma buffer placement on an ESP32 target., including target-specific constraints and repeatable validation steps. - 90esp32-audio-dma-buffer-sizing
Use when designing, reviewing, debugging or validating audio dma buffer sizing for ESP32 firmware; apply target-specific constraints, failure analysis and measurable verification before release. - 100dma-baremetal
Bare-metal DMA skill for memory-peripheral transfers. Use when configuring DMA channels, circular mode, double buffering, or DMA IRQ completion. Activates on queries about DMA bare-metal, circular buffer, memory-to-peripheral, or DMA stream configuration.