fpga

fpga is a command for Claude Code from HermeticOrmus/LibreEmbed-Claude-Code. It costs 25 tokens per session (833 once invoked), scanned A, original, MIT.

An FPGA helper command that generates Verilog hardware modules, synthesis scripts, programming commands, or microcontroller interface code. An FPGA is a programmable chip used to implement digital hardware.

In plain words
What is it for?
Use it to design modules such as SPI, UART, PWM, or AXI-Lite interfaces; create Vivado or Quartus synthesis scripts; program a device; and generate MCU-side drivers.
Why use it?
It brings several steps of FPGA development into one command instead of requiring each file and command to be written separately.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the fpga-integration plugin — 1 skill, 1 command, 1 agent shipped together

Good fit Use it to design modules such as SPI, UART, PWM, or AXI-Lite interfaces; create Vivado or Quartus synthesis scripts; program a device; and generate MCU-side drivers.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hermeticormus/libreembed-claude-code/fpga
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/HermeticOrmus/LibreEmbed-Claude-Code

Made for: Claude Code.

Or install fpga-integration, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fpga

README.md
[![agentmods](https://agentmods.dev/badge/commands/hermeticormus/libreembed-claude-code/fpga/github.svg)](https://agentmods.dev/commands/hermeticormus/libreembed-claude-code/fpga)
Your own site
<a href="https://agentmods.dev/commands/hermeticormus/libreembed-claude-code/fpga"><img src="https://agentmods.dev/badge/commands/hermeticormus/libreembed-claude-code/fpga/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fpga

Your own site · 80×15
<a href="https://agentmods.dev/commands/hermeticormus/libreembed-claude-code/fpga"><img src="https://agentmods.dev/badge/commands/hermeticormus/libreembed-claude-code/fpga.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 833 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.00833
Opus 5.5 $0.00010 $0.00333
Sonnet 5.5 $0.00005 $0.00167
Haiku 4.5 $0.00003 $0.00083

Measured 15d ago against content hash fe670d91e0fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fpga scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/fpga-integration/commands/fpga.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/fpga

FPGA integration command: HDL generation, synthesis, programming, MCU interface.

Trigger

/fpga <action> [options]

Actions

design

Generate a Verilog module for a specified function.

/fpga design --module axi-lite-slave --regs 8 --data-width 32
/fpga design --module spi-slave --mode 0 --bits 8
/fpga design --module pwm --channels 4 --resolution 16
/fpga design --module uart --baud 115200 --clk 100MHz

synthesize

Generate synthesis Tcl script for Vivado or Quartus.

/fpga synthesize --tool vivado --part xc7a35tcpg236-1 --top my_top
/fpga synthesize --tool quartus --device 5CEBA4F23C7 --top my_top

program

Generate programming commands.

/fpga program --tool vivado --interface jtag --bitfile my_top.bit
/fpga program --tool openocd --interface jlink --bitfile my_top.svf
/fpga program --tool quartus-pgm --interface usb-blaster

interface

Generate MCU-side driver code for the FPGA interface.

/fpga interface --type spi --mcu stm32f407 --fpga-regs 8
/fpga interface --type axi-lite --mcu zynq --base-addr 0x43C00000

Process

  1. Define register map (address, name, R/W, reset value) before writing HDL.
  2. Write Verilog with non-blocking assignments in clocked always blocks.
  3. Write a testbench and simulate with Icarus Verilog or Vivado Simulator.
  4. Add timing constraints for all clocks and CDC paths.
  5. Run implementation, check timing report (worst negative slack must be positive).

Output Examples

Register map definition

Offset | Name       | Access | Bits  | Description
0x00   | CTRL       | R/W    | [0]   | Enable (1=on)
                              [1]   | Reset (self-clearing)
0x04   | PERIOD     | R/W    | [15:0]| PWM period in clock cycles
0x08   | DUTY       | R/W    | [15:0]| PWM duty cycle count
0x0C   | STATUS     | RO     | [0]   | Output active
                              [7:4] | Error flags

Icarus Verilog simulation

# Compile
iverilog -o sim.vvp tb_spi_slave.v spi_slave.v

# Run
vvp sim.vvp

# Waveform (requires GTKWave)
vvp sim.vvp -lxt2
gtkwave sim.lxt

Read the full file on GitHub · 101 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago First seen · 101 lines · 25 tokens per session scan A fe670d91e0fe

Subscribe to this mod's changes

fpga is a command published in the GitHub repository HermeticOrmus/LibreEmbed-Claude-Code (50 stars, last pushed 6d ago), licensed MIT. It adds 25 tokens to every session and 833 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-01.