/oh-my-fpga:timing-closure [run name, target clock, or constraint to focus on (optional)]from oh-my-fpga
Iteratively closes FPGA timing on Vivado designs via the SynthPilot MCP: measures slack, diagnoses critical paths, and applies constraint/strategy fixes until WNS/TNS ≥ 0.
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 disciplined loop that drives a Vivado design to timing closure using the SynthPilot MCP tools. You are the conductor: measure → diagnose → classify → apply the safest fix → re-measure → repeat. Never make a number go green by hiding a real violation.
full-flow-demo).report_timing_summary.test_connection succeeds (Vivado + Tcl server up).get_project_info). If only RTL exists, run synthesis first.run_synthesis (or run_synthesis_async +
poll get_run_status for large designs). Synthesis WNS is optimistic — true signoff is
post-implementation, but synth WNS is a fast first signal.report_timing_summary, then extract_timing_metrics for structured
WNS/TNS/WHS/THS, failing-endpoint count, and per-clock breakdown.If WNS ≥ 0 post-implementation: report closed, show the margin, stop. (Post-synth
positive is necessary but not sufficient — confirm with run_implementation.)
analyze_critical_paths and report_worst_timing_paths → the top failing paths.report_timing_path / report_datapath_delay to split delay into
logic vs net vs clock-skew/uncertainty.report_high_fanout_nets → fanout-driven net delay.get_all_clocks / analyze_clock_domain_timing / report_clock_interaction → is the
failing path intra-clock, or a cross-clock / async path that shouldn't be timed
at all?Map the worst paths to one of these, in this priority order:
| # | Signature | Likely cause | Safe fix |
|---|---|---|---|
| A | Failing path crosses unrelated/async clocks, or is a config/quasi-static reg | Missing exception | set_false_path or set_clock_groups (async) / set_multicycle_path (multi-cycle) — only if genuinely valid |
| B | I/O path failing, no/incorrect input/output delay | Missing I/O constraint | set_input_delay / set_output_delay from the real interface spec |
| C | Big net delay, high fanout | Placement/fanout | implementation strategy (Performance_*), or recommend register duplication / max_fanout |
| D | Big logic delay, deep combinational path, intra-clock | Real logic depth | recommend RTL pipelining/retiming — do NOT fake-pass with exceptions |
| E | Small negative, close to met | Last-mile | set_implementation_strategy Performance_Explore / phys-opt; tighten nothing |
save_constraints. Before any
set_false_path/set_multicycle_path, state the assumption ("treating CDC path
reg_a→reg_b as async; valid only if a synchronizer exists") and get confirmation if the
path could be real.set_implementation_strategy (e.g. Performance_ExplorePostRoutePhysOpt)
/ set_synthesis_strategy. Cheapest lever, try before touching RTL.run_implementation for signoff; run_synthesis if you
changed RTL/synth strategy). Use the async variants + get_run_status for long runs.extract_timing_metrics. Compare to baseline and to the previous
iteration. Did it improve, regress, or stall?Repeat Steps 1–4 until one stop condition:
set_false_path/set_multicycle_path/waivers to a path
that could be real just to clear a violation. If unsure it's safe, ask.extract_timing_metrics showing WNS ≥ 0 — never infer it.Iter N | change: <what> (class <X>) | WNS <before> → <after> ns | TNS <before> → <after> | failing <n>→<m>
Final: closed/not-closed verdict, the ordered list of changes that worked, remaining risks, and (if not closed) the recommended RTL/architectural next step.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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