/litex:litex-build-and-loadfrom litex
Builds a LiteX SoC from a board target or script, checks generated files, and loads the bitstream onto an FPGA board. Use for LiteX build, elaboration, compile, load, or flash workflows.
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.
A LiteX design is a platform (the board) and a target (the SoC). Every target takes
--build, --load and the SoC/Builder/toolchain options; --help lists them with defaults.
python3 -m litex_boards.targets.<board> --help # every option of the target, by group
python3 target.py --help # same for a target script
With litex_mcp: litex_list_boards(filter), litex_board_info(name, sections=["Target", "SoC"])
(FPGA device, platform class, the options of each group), litex_list_cpus(filter) (with their
variants), litex_list_cores() (which ecosystem cores are installed).
python3 -m litex_boards.targets.<board> [options] --build --no-compile --output-dir=build/<board>
Read build/<board>/csr.csv (or csr.json) for the memory map, CSRs, IRQs and constants, and the
Verilog in build/<board>/gateware/. --no-compile-gateware also builds the BIOS and the headers
(needs the CPU's gcc, meson and ninja).
python3 -m litex_boards.targets.<board> [options] --build --output-dir=build/<board>
With litex_mcp: litex_build_start(target, args, output_dir) (board name or .py script, runs
--build as a background job), litex_job_wait(job, timeout=600) (repeat: one call waits at
most 600 s), then litex_build_report(job): timing met or not, WNS/TNS, per-clock results,
failing paths, utilization, error lines. Without MCP, the same data:
python3 -c "import json; from litex.build.report import parse_build_reports; print(json.dumps(parse_build_reports('build/<board>'), indent=1))"
Timing not met: use the litex-timing-triage skill before loading anything.
python3 -m litex_boards.targets.<board> [same options] --load --output-dir=build/<board>
litex_term /dev/ttyUSBx # the BIOS console (--speed for another baudrate)
--load is volatile (SRAM configuration), --flash (on the targets that have it) writes the
SPI flash. Through litex_mcp, both are refused unless the server runs with --allow-write.
--flash unless the user asked: --load is the default for experiments.--load as to --build (at least --output-dir): the target looks
for the bitstream in its gateware directory, under the build name.build/<platform>/ by default: give --output-dir when several variants are
built, and pass the matching --csr-csv to the host tools.litex_build_start writes in a temporary job directory unless output_dir is given; files a
target writes in the current directory (such as analyzer.csv) land in the MCP server's
directory.--uart-baudrate=1000000); CPU
variants are exact keys (litex_list_cpus).PATH (or LITEX_ENV_VIVADO/LITEX_ENV_ISE/LITEX_ENV_EFINITY);
--toolchain selects another one when the platform supports it.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-csr-debugnpx claudepluginhub enjoy-digital/litex --plugin litexOther plugins' skills for the same job