/litex:litex-timing-triagefrom litex
Triages timing failures in LiteX FPGA builds by parsing Vivado, Quartus, Gowin, Efinity, or nextpnr reports, classifying failing paths (logic depth, clock crossing, I/O, congestion), and guiding fixes in the Python design.
Ships in litex. 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.
Read the result as data, find which clock and which paths fail, and fix the cause in the design; tool directives come last.
python3 -c "import json; from litex.build.report import parse_build_reports; print(json.dumps(parse_build_reports('build/<board>', max_paths=10), indent=1))"
With litex_mcp: litex_build_report(job) or litex_build_report(output_dir="build/<board>").
Parsed reports: Vivado (gateware/<name>_timing.rpt, <name>_utilization_place.rpt), Quartus
(.sta.summary, .fit.summary), Gowin (impl/pnr/), Efinity (outflow/), nextpnr (the Fmax
lines of litex.log). The raw report stays the reference for anything the summary lacks:
grep -n -E "WNS|WHS|VIOLATED" build/<board>/gateware/*timing*.rpt
| Failing paths look like | Likely cause | Fix in the design |
|---|---|---|
| Many logic levels inside one domain | Deep combinatorial logic | Pipeline (register stages, stream.PipeValid/Buffer), narrower muxes |
| Source and destination in two clocks | Missing CDC or constraint | MultiReg, PulseSynchronizer, stream.ClockDomainCrossing, false paths |
| From/to a pin | I/O timing | IOB registers, the PHY's delay settings, correct I/O constraints |
| Short logic, long routing, high utilization | Congestion or placement | Smaller design, fewer wide buses, floorplanning last |
| Hold violations | Clock skew or a gated clock | Clocks from the PLL/BUFG, no logic on clocks |
Check first that the failing clock is the one intended: --sys-clk-freq, the PLL output and the
period constraints (platform.add_period_constraint). A derived or unconstrained clock gives
meaningless slack.
--sys-clk-freq: if the board then works, the logic is right and timing is
the issue; if not, it is a logic bug (litex-csr-debug, litescope-capture skills).--vivado-synth-directive, --vivado-place-directive, --vivado-route-directive,
--vivado-post-route-phys-opt-directive, --vivado-max-threads.--nextpnr-seed, --nextpnr-timingstrict (fail the build on a timing failure);
Yosys: --yosys-abc9, --yosys-nowidelut.--help lists them). A seed that
passes once is not a fix: say so in the report.sys.What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/litescope-captureCapture internal signals of a running LiteX SoC with the LiteScope logic analyzer (add a narrow probe to the target, rebuild, trigger, read the capture as data or VCD) through litescope_cli --json or the litex_mcp scope tools. Use when a question about timing, a handshake or a state sequence cannot be answered by polling registers./litex-bringupBring up a LiteX SoC on a new or unfamiliar board, one layer at a time (clock, UART and BIOS, host bridge, DRAM, Ethernet, then the other peripherals), or check the same loop in simulation first. Use when a board does not boot, when adding a board target, or when asked to get a LiteX design running on hardware./litex-build-and-loadnpx claudepluginhub enjoy-digital/litex --plugin litexOther plugins' skills for the same job