- Home
- Skills
- Technical Documentation
- fig-gen: Hardware Figure Generator
Works with the AI Agents you already use
fig-gen: Hardware Figure Generator
by laz
Generate paper-ready datapath, FSM, microarchitecture and timing figures from typed JSON, with optional RTL cross-checks and simulation-grounded waveforms.
Free
What it does
- Generate datapath schematics with muxes, registers, pipelines and memories
- Build FSM diagrams with states, guards, resets and transitions
- Create timing waveforms from JSON or Verilator simulation stimuli
- Map SoC fabrics, interfaces, address maps, interrupts, DMA and clock/reset domains
- Check coverage, connectivity, labels and latency against available RTL or simulation evidence
- Deliver editable SVG, outlined PDF and a receipt in IEEE/ACM-style column sizes
Who it's for
Hardware researchers writing papers
Editable hardware figures laid out for paper columns, with checks and evidence summarized in a receipt.
Try asking: “Create a two-column datapath figure for this Verilog decoder and show which parts are cross-checked.”
RTL and FPGA engineers
Readable views of datapaths, controller FSMs, and timing for design reviews.
Try asking: “Show the fetch pipeline and validate the registers and connections against my RTL.”
SoC architects and systems designers
System overviews with bus fabrics, address maps, interfaces, interrupts and domains.
Try asking: “Make a microarchitecture view of this accelerator with its AXI fabrics and address map.”
fig-gen: Hardware Figure Generator
Example session with this skill installed
The request
I'm writing a paper and need a figure of the fast multiplier in PicoRV32 (picorv32_pcpi_fast_mul, default parameters). The RTL is in rtl/picorv32.v.
Please make a register-transfer datapath figure that shows:
- sign/zero extension of the two operands
- the operand registers and the multiplier
- the 64-bit product register and the high/low word select at the output
Requirements
- IEEE style: one-column and two-column versions
- Editable SVG (I'll touch it up in Figma) plus a print-ready PDF with text converted to outlines
- Check it against the actual RTL. I don't want a wrong width or a missing register that a reviewer would catch
- Tell me what was verified and what wasn't
- Read your context and instructions
- Compiled the fig-gen
- Generated the UI component
Summary
I made a register-transfer datapath figure of picorv32_pcpi_fast_mul (default parameters) from your RTL and checked it against a Verilator netlist.
The RTL cross-check passed: every register, net and register transfer in the module is drawn, and the bit widths and pipeline latency match the RTL. Both column variants passed the paper-format checks (uniform strokes, no avoidable wire jogs, no text overlapping lines).
Deliverables
| File | Purpose |
|---|---|
figures/fast-mul.2col.svg | Editable, Figma-safe SVG, double-column width (main deliverable) |
figures/fast-mul.2col.pdf | Print PDF, text outlined, double-column width |
figures/fast-mul.1col.svg / .1col.pdf | Single-column variant |
figures/fast-mul.datapath.json | Source of truth: edit this and re-run instead of editing the SVG |
figures/fast-mul.receipt.json | Verification receipt (what was checked, and against which RTL file hash) |
What the figure shows
- Operands:
rs1andrs2pass through sign/zero extension (selected by the instruction) into the operand registers - Multiplier: one combinational multiply block
- Product register: 64-bit
- Output select: a bold bar mux picks the high or low 32-bit word for
pcpi_rd - Style: names only inside boxes, slash-N bus widths, dashed control/valid wires, bold bar muxes, compact registers
Verification (from the receipt)
| Check | Result |
|---|---|
| RTL structural cross-check (Verilator) | pass |
| Register coverage | 5 / 5 |
| Net coverage | 18 / 18 |
| Register transfers | 42 / 42 |
| Bit widths at every port | match RTL |
| Paper format (strokes, jogs, text/line overlap, fonts) | pass |
| Unverified regions | none |
The RTL files were hashed bef
The RTL files were hashed before and after extraction, so the receipt is tied to this exact version of rtl/picorv32.v. If
| RTL structural cross-check (Verilator) | pass |
| Register coverage | 5 / 5 |
| Net coverage | 18 / 18 |
| Register transfers | 42 / 42 |
| Bit widths at every port | match RTL |
| Paper format (strokes, jogs, text/line overlap, fonts) | pass |
| Unverified regions | none |
The RTL files were hashed before and after extraction, so the receipt is tied to this exact version of rtl/picorv32.v. If the RTL changes, re-run deliver and the check runs again.
Suggested caption
Datapath of the PicoRV32 fast multiplier (
picorv32_pcpi_fast_mul, default parameters). Operands are sign- or zero-extended and registered; the 64-bit product register feeds a high/low word select. Dashed lines are control.
Datapath of the PicoRV32 fast multiplier (picorv32_pcpi_fast_mul, default parameters). Operands are sign- or zero-extended and registered; the 64-bit product register feeds a high/low word select. Dashed lines are control.
Next steps
- Open the PNG preview (
fig-gen preview figures/fast-mul.2col.svg) and check the layout. - To rename a block or change the abstraction (e.g. collapse the extension logic into one box), tell me and I'll change the JSON and re-deliver. The checks run again on every delivery.
- For a talk or design doc, I can also deliver this in
studyformat (more labels, instance frames). - Want the multiplier's handshake as a timing diagram? I can make one from a Verilator simulation of the same module.
2col.pdf
TSX · React component
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
fig-gen is a Claude Code skill for publication-quality hardware figures from typed JSON. It covers datapath schematics, FSMs, timing waveforms, and SoC/microarchitecture views.
How it works
Choose a figure type and scope, then define or refine a JSON spec using the bundled schemas and examples. When Verilog/SystemVerilog is available, the CLI can draft structure from a Verilator netlist. Run validation, render, and deliver; fix diagnostics before finalizing.
Checks and evidence
Structural checks cover items such as coverage, connectivity, labels, and latency. Datapath regions can be cross-checked against RTL, with gate-level equivalence checks for mixed-abstraction regions. Timing waveforms can be grounded in Verilator simulations for the supplied stimulus. The receipt records checks and marks unsupported or unverified content rather than assuming it is correct.
Output
Editable, Figma-safe SVG plus outlined-text PDF and a JSON receipt. The two-column paper variant is the required deliverable; one-column is best effort. The figures use print-size rules for IEEE/ACM-style columns.
Requirements and limits
Requires Node.js 20+ and Git; run npm ci to install dependencies. Verilator 5.x is optional for RTL extraction and simulation. Without source or simulation evidence, the skill can work from a hand-written JSON spec, but those claims cannot be source-verified.
Verilator 5.x is optional but needed for RTL extraction and simulation-grounded checks. With a JSON-only spec, structural validation still runs, but code/simulation claims cannot be cross-checked. The one-column layout is best effort; the two-column variant is the required deliverable.
Claude Code skill in SKILL.md format. CLI: node bin/fig-gen.mjs. Requires Node.js 20+ and Git; npm ci installs dependencies. Verilator 5.x is optional for RTL extraction, FSM extraction, and simulation-grounded timing. Bundled resvg handles headless previews by default; no browser is required. Inputs: datapath, fsm, timing, and microarch JSON. Outputs: editable SVG, outlined PDF, and a JSON receipt. MIT license.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed today
- Free with an Agensi account
- Software
Node.js
Git
- Optional
- Verilator 5.x
Network is needed only for Git/npm setup. Verilator 5.x is optional; without it, use JSON specs but skip RTL extraction and simulation checks. No API keys needed.
Permissions
File Scopes
Reads hardware RTL/JSON inputs and writes figure JSON, SVG, PDF and receipts. Network is for initial Git/npm dependency setup; no external accounts or API keys.
What's inside
Frequently Asked Questions
New in Technical Documentation
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Technical Documentation.