/litex:litescope-capturefrom litex
Captures internal signals of a running LiteX SoC with LiteScope logic analyzer. Use when timing, handshake, or state sequence questions cannot be answered by polling registers.
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.
One question per capture, the fewest signals that answer it, a precise trigger. Registers first
(litex-csr-debug skill): a probe costs a rebuild.
from litescope import LiteScopeAnalyzer
analyzer_signals = [fsm_state, bus.valid, bus.ready, bus.first, bus.last, error] # control before data
self.analyzer = LiteScopeAnalyzer(analyzer_signals,
depth = 512,
clock_domain = "sys",
samplerate = sys_clk_freq,
csr_csv = "analyzer.csv")
Put it behind a target switch (--with-<feature>-probe) so the default build stays clean. The SoC
needs a host bridge (--with-uartbone, --uart-name=crossover+uartbone, --with-jtagbone,
--with-etherbone). litex_sim --with-analyzer has one built in to try the flow without a board.
litex_server --uart --uart-port=/dev/ttyUSBx --bind-port=1240
litescope_cli --csr-csv=build/<board>/csr.csv --csv=analyzer.csv --port=1240 --list --json
litescope_cli --csr-csv=build/<board>/csr.csv --csv=analyzer.csv --port=1240 \
-r <signal> --offset=32 --length=256 --timeout=10 --json --dump=capture.vcd
Triggers: -r/--rising-edge, -f/--falling-edge, -v <signal> <value> (--value-trigger);
none means an immediate capture. --group selects a group, --subsampling=N keeps one sample in
N (long sequences on level signals). With --json the result is one object with
"triggered"; exit code 2 when the trigger did not fire within --timeout, 1 on errors.
With litex_mcp: litex_scope_list(analyzer_csv), then
litex_scope_capture(analyzer_csv, group, triggers=[{"signal": "...", "type": "rising"}], offset, length, timeout, signals)
(types rising, falling, value with "value": "0x10"). It returns, per signal, the value at
the trigger, the transition count and the first changes, plus the path of a VCD of the whole
capture: read the summary first, open the VCD only when needed.
offset; look at what changes around it, not at the end of the
buffer.sys. An analyzer in a fast transceiver domain can fail
timing itself.analyzer.csv is written in the directory the build ran from (or the path given to csr_csv=),
not next to csr.csv; a stale one decodes the wrong layout. Its file name sets the CSR prefix
the client looks for (analyzer.csv -> analyzer_*).--timeout waits forever for its trigger.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/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-loadBuild a LiteX SoC (a LiteX-Boards target or a target script), check what it generates, read the build result and load the bitstream on the board. Use when asked to build, elaborate, compile, load or flash a LiteX design, or to find the command line for a board, a CPU and a set of cores./litex-csr-debugObserve and debug a running LiteX SoC through its CSRs (control/status registers) and bus from the host, with litex_server, litex_cli --json or the litex_mcp tools, and add the status registers or counters that answer the next question. Use when a LiteX design misbehaves on a board or in simulation and you need to read or write registers, check the host link, or decide what to instrument./litex-timing-triageTriage a LiteX build that fails timing or fails in the toolchain: read the parsed reports (WNS/TNS, per-clock results, failing paths, utilization, errors), classify the failing paths (logic depth, clock crossing, I/O, congestion) and pick the fix in the Python design. Use after a Vivado, Quartus, Gowin, Efinity or nextpnr build of a LiteX design reports negative slack or errors, or when a design works at a lower clock only./litex-upstream-a-fixTurn a fix or an addition made for a project (a patched LiteX file, a copied core, a board target change, a workaround subclass) into a clean pull request against the LiteX repository it belongs to, with a test and a verification report. Use when a project needed to change LiteX, LiteX-Boards or a Lite* core, when asked to "upstream", "send back" or "contribute" a change, or before ending a task that left a local patch of the framework.npx claudepluginhub enjoy-digital/litex --plugin litexOther plugins' skills for the same job