/oh-my-fpga:power-optimizationfrom oh-my-fpga
Analyzes and reduces dynamic and static power on Xilinx Vivado FPGA designs including junction temperature and thermal margin. Requires an implemented design and the SynthPilot MCP server.
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 measurement-driven playbook for analyzing and reducing FPGA power. Power is a
physical, post-implementation property: it depends on placement, routing,
clock enables, switching activity, and I/O drive — not just RTL. Every claim of
power reduction MUST be backed by a fresh report_power from an
implemented design. Synthesis-stage estimates are directional only.
report_power) explained, or a confidence-level
/ breakdown analysis (clocks vs logic vs signals vs BRAM vs DSP vs I/O vs
static).Run these BEFORE any analysis. Do not assume state.
test_connection — confirm the Tcl bridge to Vivado is live. If it fails,
stop and tell the user to start Vivado + paste tcl_server.tcl.get_project_info — confirm a project is open and learn the target part
(power is part- and speed-grade-specific) and the active run.get_run_status — confirm whether implementation is complete. report_power
is only meaningful on an implemented (placed + routed) design.
run_implementation_async, then
poll get_run_status until complete. Do NOT block.open_synthesized_design + report_power is allowed but you MUST label
the result "synthesis estimate, low confidence — not signoff."open_implemented_design — load the routed design into memory so power and
utilization queries reflect real placement/routing.report_power (total W, dynamic vs static split, per-category breakdown,
junction temperature, thermal margin, and the confidence level).report_utilization (LUT/FF/BRAM/DSP/IO/CLK counts — power scales with
these and with clock count).
Record these numbers. Every later iteration is compared against this
baseline.report_power is only as good as its switching-activity assumptions. Know
which mode you are in:
report_power.Always read and report the confidence level. Never present a Low/Medium vectorless number as a guaranteed result.
Work in a strict measure → classify → smallest-safe-change → re-measure loop. One change-class per iteration so cause and effect are attributable.
report_power. Identify total power, the dynamic/static
split, and the dominant categories (sort the breakdown: Clocks, Logic,
Signals, BRAM, DSP, I/O, GTs/MMCM/PLL, Static/Device).Use the breakdown to pick ONE target category, then consult the table below. Attack the biggest movable contributor first.
Ordered by safety:
set_implementation_strategy (e.g. Area_Explore to shrink logic/route, or
Flow_RuntimeOptimized only for quick iteration). Vivado's
power_opt_design (intelligent clock gating) is enabled inside power-oriented
strategies; this is the safest single lever because it does not touch RTL.
Re-run implementation and re-measure.create_io_constraint / editing the constraint file). For unused clocks,
removing or gating the source.configure_clocking_wizard / create_clocking_wizard).read_file
/ read_file_lines, and let the user approve before update_file /
replace_in_file.Apply exactly ONE change-class, then go to step 4. Never stack a strategy change, an I/O change, and an RTL change in one pass — you will not know what worked.
run_implementation_async; poll get_run_status until done.
(Never claim a power result from a stale run.)open_implemented_design, then report_power again. Compare against the
previous iteration: total W, the targeted category, AND the confidence level.report_timing_summary (WNS/TNS must not
have gone negative) and report_drc (no new violations). A power win that
breaks timing or DRC is not a win — revert it.Repeat steps 2–4. Stop when a STOP condition is met, then produce the Output.
Dominant category in report_power | Likely root cause | Smallest safe fix first | Tools |
|---|---|---|---|
| Clocks high | Too many/high-freq clock nets always toggling; ungated clock trees; redundant MMCM/PLL outputs | Power-aware impl strategy (enables clock gating); reduce clock frequency where spec allows; remove unused generated clocks; consolidate clock domains | report_clock_networks, report_clock_utilization, set_implementation_strategy, configure_clocking_wizard, then re-impl + report_power |
| Logic / Signals high | High average toggle rate; large always-active combinational/sequential mass; high-fanout nets driving wide loads | Power-aware impl strategy + power_opt clock gating; then RECOMMEND clock-enable gating / operand isolation in RTL | report_high_fanout_nets, report_utilization_hierarchical (find the hot module), set_implementation_strategy, then RECOMMEND RTL via read_file_lines |
| BRAM high | Memories with enable always asserted; over-wide/over-deep RAMs; no sleep/cascade | Reconfigure memory IP (narrower/cascade/sleep); RECOMMEND RAM enable gating so unused banks idle | report_utilization, get_memory_config, configure_memory, then re-impl + report_power |
| DSP high | DSP slices clocked/active when idle; no operand isolation | Strategy that reduces/area-optimizes DSP (Flow_AreaMultThresholdDSP synth); RECOMMEND operand isolation / DSP enable gating | set_synthesis_strategy, report_utilization, then RECOMMEND RTL |
| I/O high | Excess slew rate, high drive strength, power-hungry I/O standard, unnecessary on-chip termination, high-toggle outputs | Edit XDC: lower SLEW (SLOW), reduce DRIVE, choose lower-power IOSTANDARD, remove needless termination | report_io, create_io_constraint / edit constraint file via read_file+replace_in_file, then re-impl + report_power |
| MMCM / PLL / GT high | More clock outputs or transceiver lanes than used; high VCO; unused GT channels powered | Reduce MMCM/PLL outputs & VCO; disable unused GT lanes (IP reconfigure) | report_clock_utilization, configure_clocking_wizard, IP reconfigure, then re-impl + report_power |
| Static / Device high (large share) | Silicon leakage: high junction temp, hot speed grade, oversized device | Mostly a device/thermal DECISION: lower junction temp (cooling/ambient), lower-power speed grade, smaller part. Surface as options — do NOT expect RTL to move it | report_power (junction temp, thermal margin), then present options + STOP |
| Junction temp / thermal margin critical | Inadequate cooling, high ambient, or genuinely high total power | Reduce dynamic power (rows above) AND flag cooling/ambient/derating; recompute margin after | report_power, then iterate dynamic-power rows + surface thermal trade-off |
Iterate the measure→fix→re-measure loop. STOP and hand back to the human when any of:
report_power meets the user's watt
or temperature target AND report_timing_summary shows WNS ≥ 0 (or unchanged
from baseline) AND report_drc is clean. Report the confidence level with the
number.Never thrash: if a change doesn't help, revert it and move to the next table row rather than re-trying variants of the same lever.
report_power from a completed implementation run — never inferred from
synthesis, never from a stale run, never extrapolated. Always state the
confidence level of the number you quote.report_timing_summary (no new negative slack) and report_drc (no new
violations). A lower power number on a now-failing design is a regression.update_file / replace_in_file. Never silently rewrite RTL for power.Produce a concise power report, not a narrative:
report_power, with confidence level, plus confirmation that
report_timing_summary and report_drc are still clean. Quantify the
reduction vs baseline (W and %).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.Other plugins' skills for the same job