/oh-my-fpga:zynq-bringupfrom oh-my-fpga
Creates and validates Zynq-7000 PS7 block designs: configures PS7, wires AXI fabric, sets up clocks/resets/address maps, generates HDL wrapper, and runs full synth/impl/DRC sign-off.
Ships in oh-my-fpga. 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.
None: SKILL.md is the whole skill.
A methodology playbook for standing up a Zynq-7000 SoC: create a block design, instantiate and configure the PS7 Processing System, wire PS↔PL AXI fabric with clean clock/reset, assign and verify the address map, validate, generate the HDL wrapper, then prove it through synthesis/implementation/DRC. This is a build-and-verify flow, not a fix-it flow — but the rigor is the same: every "it works" claim is backed by fresh tool output, never by assumption.
The PS7 is a hard ARM Cortex-A9 block. You do not write RTL for it — you configure it (FCLKs, DDR, MIO peripherals, PS-PL AXI ports) and wire the PL side to it correctly. Most bring-up failures are wiring/clocking/address errors, not logic errors, so this skill measures the graph state at each step.
A critical fact that shapes the whole flow: many wrong-but-plausible mistakes
pass bd_validate_design and even synthesis, and surface only at
post-implementation report_drc / check_timing / report_cdc (wrong DDR
part, polarity-mismatched reset, unconstrained PL-side IO, missing CDC
constraints). The graph being "valid" is therefore never sign-off — only fresh
post-implementation evidence is.
M_AXI_GP0, or feed a PL master into S_AXI_HP0.export_hardware (XSA) output for a downstream software/BSP flow.zynq_ultra_ps_e, A53/R5). Use the MPSoC bring-up
skill and bd_create_mpsoc / bd_apply_mpsoc_preset family — PS7 tools do not
apply.emb_*) flow; this skill stops at hardware handoff (XSA).Do not start building blind. Confirm the environment and the part with tools:
test_connection — confirm the Tcl bridge to Vivado is live. If it fails,
STOP and tell the user to open Vivado and start tcl_server.tcl. Nothing
below works without this.get_license_status — required precondition. Block Design (bd_*) tools
are PRO/MAX tier. If the license is FREE, the bd_* calls below are blocked;
surface this now and stop, rather than failing opaquely mid-flow.get_project_info — is a project open, and what is the target part?
xc7z…, e.g. xc7z020clg484-1)
or a Zynq board part. If the part is not Zynq-7000, STOP and ask the
user — PS7 will not instantiate on a non-Zynq part, and silently guessing a
part is a destructive surprise.create_project with the user-confirmed part/board.
Ask for the exact part or board before creating one; never invent it.list_block_designs — is there already a BD? Reuse it (open_block_design)
rather than creating a duplicate; only create_block_design if none exists or
the user wants a fresh one.Record the part, board (if any), and target FCLK frequency before proceeding — these drive every later decision (DDR config, MIO, automation).
The single most important branch in PS7 bring-up is whether a board part is set on the project. It changes how DDR/MIO get configured and whether you can trust automation.
Condition (from get_project_info) | DDR + MIO strategy | Automation | Risk |
|---|---|---|---|
| Board part set (e.g. Zedboard, Cora, Pynq) | bd_create_ps7(run_automation=True) — this runs Vivado's PS block automation (the underlying apply_bd_automation Tcl command, invoked for you by the MCP tool; do not call apply_bd_automation directly — it is not an MCP tool), filling DDR part, MIO pinout and FIXED_IO from the board file | Trust bd_run_block_automation for the PS | Low — board file is authoritative |
Bare part only (xc7z…, no board) | bd_create_ps7(run_automation=False), then inspect with bd_get_ps7_config and explicitly set DDR part / bus width / MIO via bd_configure_ps7. DDR config MUST match the physical board's memory or hardware will not boot | Do NOT trust block automation for DDR/MIO — it has no board data | High — wrong DDR = dead board. Ask the user for the DDR part / board if unknown |
Tool-name note:
bd_create_ps7(run_automation=True)andbd_run_block_automationare the MCP tools.apply_bd_automation/run_bd_automationare native Vivado Tcl commands those tools wrap — never call them as if they were MCP tools.
Bare-part DDR safety rail (read this). On a bare part, do not invent DDR timing/part numbers to make validation pass. Be explicit that the tooling will not catch a wrong DDR part for you:
bd_validate_designwill pass with a wrong-but-plausible DDR part.- Synthesis will pass — the DDR/FIXED_IO are hard-pinned PS pins, not logic.
bd_get_ps7_configreadback only confirms the value you wrote, not that it matches the physical board — it cannot detect a wrong DDR part.- The only automated gate that catches a missing/wrong DDR + FIXED_IO pinout is post-implementation
report_drc(UCIO / FIXED_IO / DDR no-pin errors). Therefore, whenever you configure DDR on a bare part, the §13 post-implreport_drcgate is mandatory and is the decision's verification — never skip it. If the DDR part is unknown, state the assumption explicitly and ask the user before configuring it.
One change-class per step, then measure before moving on. The recurring
verbs are: configure → inspect (bd_get_* / bd_list_*) → connect →
re-inspect (bd_get_unconnected_pins) → validate.
create_block_design(name=...) (or open_block_design if reusing).bd_generate_* later.bd_list_ps7_presets — see available presets (minimal, ddr_enabled,
hp_slave, multi_clock).bd_create_ps7(name="ps7_0", preset=<chosen>, run_automation=<board-aware>):
run_automation=True (exports DDR + FIXED_IO from board
via the wrapped block automation).run_automation=False (you will configure DDR/MIO yourself).bd_get_ps7_config(cell="ps7_0") — read back the actual state (DDR, clocks,
MIO/peripheral I/O, interrupts, PS-PL interfaces). This is your ground truth
for what was written — but remember it does not prove DDR matches the
board (see safety rail). Do not assume the preset did what its name implies;
confirm it here.Skip if board automation already populated DDR/FIXED_IO (verify via
bd_get_ps7_config that DDR is configured before skipping).
bd_configure_ps7(cell="ps7_0", config="{...}") to set the board-correct
DDR part, bus width, and any MIO peripheral pinout the design needs.bd_get_ps7_config to confirm the writes landed. If a parameter is
read-only or silently ignored, you will see it here — surface it, don't paper
over it.report_drc
gate in §13. Do not declare DDR "done" until that gate is clean.The PS provides the PL clock; get this right before wiring anything.
bd_ps7_set_fclk(cell="ps7_0", fclk_id=0, freq_mhz=<target>, enable=True) for
the primary PL clock. Add more FCLKs only if the design needs multiple clock
domains.bd_get_ps7_config(cell="ps7_0") — confirm the FCLK is enabled at the
requested frequency. The requested vs. actually-realizable frequency can
differ (PLL granularity); note the actual value — it is your real timing
constraint later.axi_clock_converter (see step 7/8 and Safety rails).Only enable ports the design uses; spurious ports create unconnected-pin noise.
bd_ps7_enable_axi_port(cell="ps7_0", ...) for M_AXI_GP0
(or use the minimal preset which already exposes M_AXI_GP0).S_AXI_HP0 (or the hp_slave preset).bd_get_ps7_config(cell="ps7_0") — verify which PS-PL interfaces are now live.Examples (use the exact tool; bd_search_ip / ToolSearch to confirm a specific
IP's tool name if unsure):
bd_create_axi_gpio (then bd_gpio_set_width / bd_gpio_set_direction).bd_create_axi_uartlite (then bd_uartlite_set_baudrate).bd_create_axi_bram_ctrl.bd_add_ip.bd_list_ips — confirm every block you expect is present, named as you expect.The PS does NOT provide a synchronized PL reset by itself — you need a Processor System Reset block driven by FCLK0 and the PS reset.
bd_create_proc_sys_reset(name="rst_ps7_0_<freq>").aresetn. A polarity mismatch
validates clean and passes DRC but breaks function on silicon (peripherals held
in reset, or never reset). Call bd_proc_sys_reset_get_config(...) and confirm:
peripheral_aresetn is active-low — it is by design, and matches what every
downstream AXI IP's s_axi_aresetn expects (AXI uses active-low reset). No action
needed if you drive AXI resets from it.ext_reset_in is fed by the PS FCLK_RESET0_N (active-low). Its polarity
(C_EXT_RESET_HIGH) is fixed at IP creation and read-only — in the standard
PS7/board-automation flow it is already correct. bd_proc_sys_reset_set_polarity
does not change ext_reset_in; it only sets the auxiliary reset
(aux_reset_active_low, used only if you wire aux_reset_in). If ext_reset_in
polarity is genuinely wrong, recreate the proc_sys_reset block with the right
setting — do not wire-and-hope.FCLK_CLK0 → proc_sys_reset slowest_sync_clk and every AXI IP's
s_axi_aclk and the interconnect/smartconnect clocks
(bd_connect_pins / bd_connect_interfaces).FCLK_RESET0_N → proc_sys_reset ext_reset_in.peripheral_aresetn → every AXI IP's s_axi_aresetn and
interconnect reset.axi_clock_converter for a
CDC — see Safety rails). Mixing FCLK0 and FCLK1 across a single AXI link without
a converter is a silent functional bug.bd_create_smartconnect
(auto width/clock conversion, preferred for new designs) or
bd_create_axi_interconnect.S_AXI:
bd_connect_interfaces(src="ps7_0/M_AXI_GP0", dst="<sc>/S00_AXI"),
then <sc>/M0x_AXI → <periph>/S_AXI.bd_run_block_automation(cell="ps7_0")
for the PS itself, and/or bd_run_automation to auto-connect AXI/clk/reset for
a peripheral. If you use automation, still run step 9 — automation can
mis-guess clock domains.bd_get_unconnected_pins — must be empty (or contain only pins you have a
documented reason to leave open, e.g. an intentionally-external interrupt). If
it lists clock/reset/AXI pins, go back to step 7/8. Do not proceed with
dangling AXI clocks/resets — they produce a design that validates the graph
but is functionally broken.bd_list_nets / bd_get_info if you need to see how something actually wired.bd_assign_addresses — auto-assign AXI addresses.bd_get_address_map — inspect the result and confirm it is sane:
bd_validate_design — must return clean (errors include the offending
pin/net path). Treat any ERROR as a hard stop; fix the specific net/pin it
names, then re-validate. Warnings: read each one — distinguish benign
(e.g. board-flow info) from real (unconnected interface, clock mismatch).save_block_design.bd_generate_output_and_wrapper(...) to produce IP output products and the
top-level HDL wrapper.bd_check_output_status (and/or
bd_wait_on_output_generation) with an explicit ceiling: pick a sane wall-
clock budget (e.g. 15 min) and a max poll count; if generation has not
completed by then, STOP and report it as a stalled long-op rather than looping
forever. Do not assume success; confirm status is complete before proceeding.set_top_module(<wrapper>).get_project_info and/or
list_source_files: the active top in the synthesis fileset must equal the
generated wrapper module. If the fileset top is still an old/placeholder
module, synthesis will build the wrong thing. Do not start synthesis until
this is confirmed.report_ip_status — confirm no IP is locked/out-of-date. If locked, the design
is not buildable as-is; surface it (an upgrade_ip may be needed) rather than
proceeding.A valid BD that won't implement is not a bring-up. Prove it with fresh, post-implementation evidence. Synthesis success is necessary, not sufficient — it proves neither timing, nor routability, nor pin legality.
13a. Constrain PL-side IO before trusting timing. Any PL-side top-level port made external in the BD (e.g. a UART/GPIO pin, a PL clock/reset, an LED) is an unconstrained endpoint until you constrain it. Unconstrained IO produces an optimistic / false WNS ≥ 0. Where the design has PL-side IO:
set_input_delay / set_output_delay on those ports against the
relevant clock, andcreate_io_constraint).
The PS DDR/FIXED_IO pins are handled by the PS (do not constrain those by hand);
this step is about the PL ports.13b. Run the flow (bounded async poll).
run_synthesis_async, then poll get_run_status with an explicit max-poll
/ timeout ceiling (same bounded-poll rule as §12 — a poll loop with no
ceiling can hang). On completion: check_synthesis_issues +
get_synthesis_warnings.run_implementation_async, poll get_run_status the same bounded way until
done.13c. Sign-off evidence — ALL must be fresh and post-implementation:
check_timing — run this first, before trusting any WNS. It surfaces
unconstrained endpoints / no-clock / missing input-output-delay problems. A
clean report_timing_summary WNS is meaningless if check_timing shows
unconstrained paths producing a false positive. There must be no
unconstrained-endpoint / no-clock issues here.report_timing_summary — assert BOTH:
report_cdc — for any PS-PL crossing or multi-FCLK design, run
report_cdc (and, pre-synth, check_cdc_lint). The PS-PL boundary is an
intrinsic clock crossing; multiple FCLKs add more. There must be no unsafe
/ missing-constraint CDC paths. report_methodology alone does NOT catch
every missing CDC constraint — report_cdc is the dedicated check and is
required here.report_drc — no critical DRC violations. This is the mandatory gate
for the bare-part DDR/FIXED_IO decision (UCIO / FIXED_IO / DDR no-pin
errors): if you configured DDR on a bare part, this gate is what proves the
pinout is real. It is non-optional.report_methodology — no critical methodology violations (catches
additional clock/CDC/structural issues; complements, does not replace,
report_cdc).report_utilization → fits the device.generate_bitstream (or run_full_flow end-to-end if the user wants one shot —
but still verify §13 reports afterward; run_full_flow does not exempt you from
evidence).export_hardware to produce the XSA for the downstream software/BSP flow.| Symptom (from a tool) | Likely cause | Smallest safe fix |
|---|---|---|
bd_validate_design ERROR naming an AXI s_axi_aclk pin | AXI clock unconnected or wrong FCLK domain | Connect that pin to the correct FCLK in step 7; re-validate. |
bd_get_unconnected_pins lists *aresetn | Missing proc_sys_reset wiring | Add/connect bd_create_proc_sys_reset outputs (step 7). |
| Peripheral held in reset / never resets, but graph validates clean | proc_sys_reset wiring/polarity | bd_proc_sys_reset_get_config: confirm ext_reset_in is fed by active-low FCLK_RESET0_N (its polarity is fixed at creation — recreate the block if wrong) and peripheral_aresetn (active-low by design) drives the AXI resets. set_polarity only changes the aux reset (step 7). |
bd_get_address_map shows a slave with no range | Slave not reachable from the PS master / not assigned | Confirm master→slave interface path (step 8), re-run bd_assign_addresses. |
| Address ranges overlap | Manual/partial assignment | Re-run bd_assign_addresses; if still overlapping, inspect and set non-overlapping ranges; never ship an overlap. |
check_timing shows unconstrained endpoints / no-clock | PL-side IO has no input/output delay or no clock | Add set_input_delay/set_output_delay + IO constraints (§13a); re-run. A WNS taken before this is false. |
| FCLK realized freq ≠ requested | PLL granularity | Accept the realized value and use it as the timing constraint; note it to the user. Do not over-constrain a clock the PS cannot produce. |
report_timing_summary setup WNS ≥ 0 but hold (WHS) < 0 | Hold violation (short paths / clock skew) | This is a real failure, not "timing met" — hand off to timing-closure; do not report success. |
report_timing_summary WNS < 0 on a PS-PL AXI path | PL too slow for FCLK, or a true CDC across FCLK domains | First confirm it's a real same-domain path (run report_clock_interaction / report_cdc). If real same-domain → timing-closure skill. If genuinely async across two FCLKs (proven by report_clock_interaction / report_cdc) → insert bd_create_axi_clock_converter (a real CDC fix), not a blanket set_false_path. |
report_cdc flags an unsafe/unconstrained crossing | PS-PL or multi-FCLK crossing without synchronizer/constraint | Add the correct CDC structure (axi_clock_converter for AXI, proper synchronizer for single bits) — never paper over with set_false_path unprovenly. |
report_ip_status shows a locked IP | Version mismatch | upgrade_ip / regenerate output products; re-validate. Surface to user if it changes behavior. |
report_drc UCIO/no-pin errors on FIXED_IO/DDR | DDR/FIXED_IO not exported (bare-part path) or board automation skipped | Run PS bd_run_block_automation / configure DDR+FIXED_IO (steps 2–3); these are hard-pinned by the PS and must be present. This DRC IS the bare-part DDR gate. |
| Synthesis built the wrong/old top | Wrapper not actually set as top in fileset | set_top_module(<wrapper>), then confirm via get_project_info/list_source_files (§12) before re-synth. |
Each step's bd_get_* / report_* is the "measure". Iterate only the failing
sub-step, change one class of thing, then re-measure. STOP and act when:
bd_validate_design clean and, on fresh post-impl runs:
check_timing clean (no unconstrained endpoints), report_timing_summary
setup WNS/TNS ≥ 0 and hold/min-delay ≥ 0, report_cdc clean, report_drc
clean, and report_methodology clean → declare bring-up complete with the
metrics shown.set_false_path / set_multicycle_path /
waive_lint_violation a path that could be real just to turn a number green.check_timing clean) → this is the timing-closure skill's job;
hand off with the report, don't thrash on RTL here.bd_validate_design, bd_get_address_map, post-impl
check_timing + report_timing_summary, report_cdc, generate_bitstream).
Never infer success from a prior step or from a tool running without error.
Synthesis numbers never substitute for post-implementation sign-off.check_timing shows no unconstrained
endpoints. Setup-only is not sign-off.report_cdc
(and pre-synth check_cdc_lint) is required; report_methodology does not
replace it.set_false_path / set_multicycle_path / set_clock_groups /
waive_lint_violation to silence a violation that could be real. A true
asynchronous PS-PL crossing (different FCLKs, or PS clock vs. a separately-
generated PL clock) is the only place an exception is legitimate — and you
must prove it is genuinely asynchronous with fresh report_clock_interaction
and/or report_cdc evidence showing the two clocks have no timed relationship,
before applying set_clock_groups -asynchronous or inserting
bd_create_axi_clock_converter. A self-declared "assume it's async" is not
acceptable. If the evidence is unclear, ask first.bd_validate_design,
bd_get_ps7_config readback, AND synthesis — it is caught only by
post-impl report_drc (UCIO/FIXED_IO/DDR no-pin). State the assumption and ask
the user for the board/DDR if unknown; treat the §13 report_drc gate as the
decision's verification.bd_proc_sys_reset_get_config before connecting
aresetn: peripheral_aresetn is active-low by design; ext_reset_in polarity is
fixed at creation (recreate the block if wrong — set_polarity only affects the aux
reset). See step 7.set_top_module, verify via
get_project_info / list_source_files before synthesis (step 12).bd_get_unconnected_pins check produces
designs that validate but are functionally dead.bd_wait_on_output_generation /
bd_check_output_status / *_async + get_run_status, each with an explicit
poll-count / wall-clock ceiling so the poll loop cannot hang indefinitely.
Confirm completion before the next stage.Report, with the tool output backing each line:
bd_get_ps7_config), DDR status,
reset polarity confirmed (bd_proc_sys_reset_get_config), enabled PS-PL ports,
PL peripherals added.bd_get_unconnected_pins result (empty, or the documented
exceptions).bd_get_address_map table (slave → base/range), noted as
non-overlapping.bd_validate_design result verbatim (clean / the errors).get_project_info / list_source_files).check_timing (no
unconstrained endpoints), report_timing_summary setup WNS/TNS AND hold
(WHS/THS) ≥ 0, report_cdc (clean / flagged crossings), report_drc
(clean — explicitly note this is the DDR/FIXED_IO gate on a bare part),
report_methodology, report_utilization. If any failed, say so plainly and
route to the right next step (timing-closure / user decision) — do not
report a partial build as a success. Never report setup-only timing as "met".export_hardware was run).If a STOP-ASK or STOP-TRADEOFF condition was hit, the output is the question or the options table — not a claim of completion.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
zynq, ps7, vivado, block-design, fpga, soc-bringup
npx claudepluginhub lnc0831/oh-my-fpga --plugin oh-my-fpga13 skills in this plugin
/bitstream-programGenerate a bitstream and program a Xilinx FPGA over JTAG, or build an MCS image and burn it into SPI/BPI configuration flash for power-on boot. Invoke when the user says "program the board", "generate bitstream", "flash the device", "download to FPGA", "burn the flash", "load my design onto the board", "make a .mcs / .bit", or "why won't my board come up after power cycle". Covers the full hand-off from a routed implementation to live silicon: DRC + route + timing sign-off gating, .bit generation, hardware-server / JTAG connect, volatile JTAG download, and non-volatile flash programming (generate_mcs + add_flash_configuration + program_flash). Requires the SynthPilot MCP server with Vivado running and the Tcl server connected; flash / JTAG steps additionally require a physical board cabled to the host (or reachable through a remote hw_server).
/cdc-auditAudit and resolve clock-domain-crossing (CDC) risks on a design: enumerate every clock crossing, classify each by structure (synchronizer present/absent, single-bit vs bus, async reset, reconvergence), and apply the smallest safe fix (synchronizer RTL, set_clock_groups / set_max_delay -datapath_only / set_bus_skew constraints) without ever waiving a real crossing. Invoke when the user says "cdc analysis", "check clock domain crossings", "metastability review", "are my async crossings safe", "audit clock crossings", "fix CDC violations", "report_cdc is showing critical", "do I need a synchronizer here", or asks about gray-code, handshake, async FIFO, or reset-domain-crossing (RDC) safety. Requires the SynthPilot MCP server with Vivado open and the Tcl server running (TCP:9999); CDC reporting needs an elaborated or synthesized design./constraints-authoringAuthor a correct Vivado XDC timing constraint set from scratch — primary clocks, generated (derived) clocks, input/output delays, and timing exceptions (clock groups / false paths / multicycle paths) — for a design that has no constraints yet, or whose constraints are incomplete (unconstrained ports, missing generated clocks, unrelated async clocks reported as failing paths).
Invoke when the user says: "write constraints", "author xdc", "set up timing constraints", "no constraints yet", "constrain my clocks", "add input/output delays", "my clocks are asynchronous / I need clock groups", or whenever check_timing / report_timing_summary reports unconstrained clocks, ports, or combinational endpoints. This is the FIRST step before any timing-closure or signoff work — WNS/TNS numbers are meaningless until the design is correctly constrained.
Requires the SynthPilot MCP server connected to an OPEN Vivado session with the Tcl server running (test_connection must pass) and a project that elaborates and synthesizes.
/coverage-closureMeasure RTL simulation code coverage (statement / branch / condition) and iteratively close it toward an explicit target by adding targeted testbench stimulus. Use when the user asks "what is my code coverage", "how much is covered", "coverage closure", "improve coverage to N%", "which lines aren't tested", "are there untested branches", or wants a sign-off-grade coverage report before tape-out / merge. Requires the SynthPilot MCP server with Vivado + the Tcl server running (xsim/xelab/xcrg, validated on Vivado 2024.2). PRO-tier tool sim_get_coverage. This is a methodology playbook, not code: it tells the AI which real SynthPilot tools to call, in what order, and how to decide what to do with the numbers.
/full-flow-demoDrive a Xilinx FPGA design end-to-end through the complete build flow: RTL -> simulation -> synthesis -> implementation -> bitstream, with a verification gate after every stage so a downstream stage never runs on an upstream stage that silently regressed. Invoke this skill when the user says "rtl to bitstream", "end to end", "full flow", "run everything", "build the whole thing", "take this design all the way to a .bit", "complete build", or asks to drive a project from source files to a programmed/exportable bitstream in one orchestrated pass. Requires the SynthPilot MCP server connected to an open Vivado session with the Tcl server (tcl_server.tcl on TCP:9999) running. This is the ORCHESTRATION playbook: it sequences the real flow tools, gates each stage on fresh tool evidence, stops on the first real failure, and hands off to the specialist skills (timing-closure, cdc-analysis, lint, simulation-debug) instead of trying to fix violations itself./ila-hw-debugInsert/connect an ILA (Integrated Logic Analyzer), program the board, arm a trigger, and read back captured waveforms on real FPGA hardware. Use when the user says "debug on hardware", "insert ILA", "capture waveform on the board", "the design works in sim but fails on the board", "trigger when X happens on hardware", "probe a signal live", "read the ILA", or wants to observe live silicon behavior via JTAG. Covers the full loop: mark/insert debug cores -> re-implement -> bitstream -> connect hardware server -> program with .ltx probes -> set trigger -> arm -> capture -> read CSV. Requires the SynthPilot MCP server with Vivado open and tcl_server.tcl running, plus a physical JTAG-connected board and a running hw_server (hardware server).
Other plugins' skills for the same job