/oh-my-fpga:qor-reportfrom oh-my-fpga
Generates a one-page FPGA design-health scorecard (QoR) grading timing, area, power, congestion, clocking, and DRC/methodology. Use after synthesis or implementation to assess readiness for signoff.
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 QoR (Quality of Results) report is a measurement task, not a fix task. The goal is one page that tells the user, with grades and hard numbers, how healthy the design is across six axes — Timing, Area/Utilization, Power, Congestion, Clocking, and Rule-cleanliness (DRC/methodology/CDC) — and what the single most important problem is. Every number on the scorecard must come from a fresh tool call against the currently open design, not from memory, not from a prior run, and not inferred.
Do these in order. Do not skip — a scorecard built on the wrong design stage is worse than no scorecard.
test_connection. If it fails, stop and tell the
user to open Vivado and start the Tcl server (TCP:9999). Optionally
vivado_version to record the tool version on the scorecard.get_project_info. Capture part/device,
project name, and top module — these go in the scorecard header. If no
project is open, stop and ask the user to open_project.get_run_status.
open_implemented_design.open_synthesized_design.run_implementation_async, then poll get_run_status until complete, then
open_implemented_design. (Use run_synthesis_async + poll if the user
only wants a synthesis-stage card.) Never block on a synchronous multi-minute
call when an async + poll path exists.This skill is single-pass and read-only. There is no fix loop. The loop, if any, is only "build if not built, then measure". Collect each axis's evidence with the listed tool, grade it against the rubric, then assemble the one-pager.
report_timing_summary — the authoritative WNS/TNS/WHS/THS, failing endpoint
count, and number of timing-violating paths across all clocks.extract_timing_metrics — structured WNS/TNS/TPWS and per-clock margins for the
scorecard table (easier to parse than the raw summary).report_worst_timing_paths (top N) to name
the worst path and its clock — but only to report it, not to fix it.check_timing — flags unconstrained / problematic timing setup (no-clock,
partial input/output delays, combo loops). A design that "meets timing" with
large unconstrained sections is a false green; surface the unconstrained
count prominently.report_utilization — LUT, FF, CARRY, DSP, BRAM, URAM, IO percentages.report_utilization_hierarchical — only if a module is over budget and the user
wants to know which block is the hog (still reporting, not fixing).report_power (post-implementation only for a real number) — total on-chip
watts, dynamic vs static split, thermal margin / junction temp, and the
confidence level Vivado reports (High/Medium/Low). A "Low confidence" power
number must be labeled as such on the card — do not present it as signoff power.report_congestion (post-place/route only) — per-direction congestion levels and
the worst window. This is the leading indicator of why routing/timing struggle.report_route_status — routed vs unrouted/partially-routed nets, conflicts. Any
non-zero unrouted or conflict count is a hard fail on the routing axis; the
design is not actually built even if other numbers look fine.report_clock_utilization — BUFG/MMCM/PLL usage and headroom.get_all_clocks / report_clock_networks — confirm every intended clock exists
and is driven. A primary clock that Vivado did not create (typo'd create_clock)
silently makes huge swaths of logic unconstrained — cross-check against the
check_timing unconstrained finding from axis 1.report_clock_interaction — for multi-clock designs, which clock pairs are
related/unrelated/asynchronous, so the timing grade can be read in context.report_drc — design-rule violations. Categorize by severity. Any Error-level
DRC is a hard fail for signoff.report_methodology — methodology (TIMING-*, etc.) checks that DRC misses; these
are the strongest signal that a green timing number is real vs accidental.report_cdc — clock-domain-crossing safety. CDC criticals are a signoff blocker
even when timing/area/power are perfect. (Run on the synthesized or implemented
design; report counts by severity.)report_qor_suggestions — Vivado's built-in QoR analysis and recommendations.
Include the top suggestions verbatim as "Vivado recommends", clearly separated
from your own grading. Do not auto-apply any suggestion.report_design_analysis — complexity/congestion/timing characterization to back
up the grades with second-source evidence where available.Collapse the evidence into the scorecard (see Output). Compute an overall verdict from the worst axis, not the average — a single Error DRC or an unrouted net caps the whole design at FAIL regardless of how good timing looks.
Grade each axis PASS / MARGINAL / FAIL using post-route numbers. Thresholds are engineering defaults; state them on the card so the user can recalibrate for their device/process.
| Axis | PASS (green) | MARGINAL (amber) | FAIL (red) | Source tool |
|---|---|---|---|---|
| Timing (setup) | WNS ≥ 0 and 0 unconstrained paths | 0 ≤ WNS < ~5% of period, or WNS≥0 but unconstrained paths exist | WNS < 0 (TNS < 0) | report_timing_summary, extract_timing_metrics, check_timing |
| Timing (hold) | WHS ≥ 0 | WHS ≥ 0 small margin | WHS < 0 (THS < 0) | report_timing_summary |
| Utilization | every resource < 80% | any resource 80–90% | any resource > 90% (or any over 100% = won't fit) | report_utilization |
| Power | within thermal budget, confidence High/Med | near thermal limit, or Low confidence | exceeds thermal/junction limit | report_power |
| Congestion | levels low (≤ ~level 4 / Vivado's "low") | medium congestion windows | high congestion / unroutable region | report_congestion |
| Routing | 100% routed, 0 conflicts | — (routing is binary) | any unrouted net or conflict | report_route_status |
| Clocking | all clocks created+driven, clock-region/BUFG headroom OK | tight BUFG/MMCM headroom | missing/undriven clock, or over-subscribed clocking | report_clock_utilization, get_all_clocks, check_timing |
| DRC / methodology | 0 Errors, warnings reviewed | Warnings only | any Error-severity DRC, or TIMING-* methodology error | report_drc, report_methodology |
| CDC | 0 Critical, 0 unsafe | warnings/cautions only | any Critical / unsafe crossing | report_cdc |
Overall verdict = the worst single axis. Any FAIL ⇒ overall NOT READY FOR SIGNOFF. All PASS ⇒ HEALTHY. Mix of PASS/MARGINAL ⇒ CONDITIONAL — review amber items.
This skill does not iterate on fixes. The only loop is producing a valid input:
Loop:
status = get_run_status
if implementation complete -> open_implemented_design ; MEASURE ; STOP
if synthesis complete only -> ask: want post-synth ESTIMATE card, or build impl?
- estimate card -> open_synthesized_design ; MEASURE (labeled estimate) ; STOP
- build impl -> run_implementation_async ; poll get_run_status ; (next loop)
if nothing built -> ask user to build; if yes run_synthesis_async/run_implementation_async + poll
if a build is RUNNING -> poll get_run_status (async pattern); do not start another run
Hard STOP conditions (stop and hand back to the human):
get_run_status reports failure) — surface
get_implementation_warnings / get_synthesis_warnings and stop. Do not retry
blindly or change strategy to force a pass.report_route_status shows unrouted nets) — report the contradiction and stop;
do not paper over it.set_false_path, set_multicycle_path, set_max_delay,
set_clock_groups, waive_lint_violation, set_synthesis_strategy,
set_implementation_strategy, or edit RTL/constraints. The only allowed
mutating action is building the design itself (run_synthesis_async /
run_implementation_async) and only with the user's agreement.Deliver a single one-page scorecard in this shape (fill from fresh tool output; never leave a grade unsupported by a cited tool):
================ DESIGN HEALTH SCORECARD ================
Project : <name> Top: <top_module>
Device : <part> Vivado: <version>
Stage : POST-ROUTE (signoff) | POST-SYNTH (ESTIMATE) <- caveat-bearing
Overall : HEALTHY | CONDITIONAL | NOT READY FOR SIGNOFF <- = worst axis
AXIS GRADE KEY NUMBERS (with source)
------------- ------- --------------------------------------------
Timing setup PASS/.. WNS <ns>, TNS <ns>, <N> failing eps; <U> unconstrained
Timing hold PASS/.. WHS <ns>, THS <ns>
Utilization PASS/.. LUT <%>, FF <%>, DSP <%>, BRAM <%>, URAM <%>, IO <%>
Power PASS/.. <W> total (dyn <W> / static <W>), Tj <C>, conf=<H/M/L>
Congestion PASS/.. worst level <L> dir <H/V>; (post-route only)
Routing PASS/.. <100%/partial> routed, <N> unrouted, <N> conflicts
Clocking PASS/.. <N> clocks (all driven? y/n), BUFG <u/avail>, MMCM <u/avail>
DRC/Methodology PASS/.. <E> errors, <W> warnings (top: <code> ...)
CDC PASS/.. <C> critical, <W> warning crossings
TOP PROBLEM : <the single worst finding, one sentence, with its number>
VIVADO SAYS : <top 1-3 report_qor_suggestions items, verbatim, not applied>
RECOMMENDED NEXT STEPS (not performed here):
1. <constraint/strategy-level option + cost>
2. <RTL/architectural option + cost — recommendation only>
EVIDENCE : <list the tool calls this card is built from>
========================================================
Rules for the output:
What SKILL.md sets; muted values are Claude Code's defaults
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