/claude-for-hardware:reference-driven-rohdfrom claude-for-hardware
Guides implementing hardware blocks in ROHD by fetching authoritative specs, reference implementations, and reusable libraries before writing RTL. Use for standardized protocols, peripherals, or ISA features.
Ships in claude-for-hardware. 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.
Writing a protocol or peripheral from memory is how you ship a design that is subtly wrong: a reserved bit in the wrong place, a handshake that almost matches the spec, an edge case the standard calls out that you never saw. The fix is cheap and boring: get the real sources first, then implement against them.
Core principle: Before writing custom ROHD, fetch the authoritative spec, the existing reference implementations, and any reusable library that already solves part of the problem. Implement from primary sources, not from recall. The spec is the oracle, the references show the behavior, the library saves the parts you should not rewrite.
Skip for genuinely novel internal logic that has no external spec and no prior art.
Do this before writing a line of RTL. Three buckets, in order:
rohd_hcl and existing Midstall ROHD (River, Harbor) before writing anything new. A FIFO, ECC, ready/valid handshake, rotator, or arbiter is probably already there, tested. Compose it; do not reinvent it.If you cannot find a source for something the block needs, that gap is the first thing to resolve, not to guess past.
Turn the fetched spec into a checklist before implementing:
You read references to understand behavior, then write your own clean ROHD.
hdl-module-design.The reference implementation or C model you fetched is not just documentation, it is a verification oracle.
| Smell | Do instead |
|---|---|
| "I know how SPI works, I'll just write it" | Fetch the datasheet and an existing controller first |
| Implementing a CRC/ECC/FIFO from scratch | Check rohd_hcl and existing ROHD first |
| Citing the protocol from memory | Cite the spec by version and section number |
| Pasting GPL/incompatible RTL into a clean design | Read it, reimplement the behavior cleanly in ROHD |
| Reserved bits left to "whatever the tools do" | Implement read-zero/preserve as the spec states |
| No golden model when a reference exists | Diff the DUT against the reference as the oracle |
rohd_hcl and existing modules before adding custom RTL.hdl-module-design for the module shape, rohd-rtl-gotchas for the ROHD pitfalls, and differential-verification for the golden-model harness.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
reference-driven, rohd, hardware-design, spec-driven, implementation
npx claudepluginhub lilithsemi/claude-for-hardware --plugin claude-for-hardware14 skills in this plugin
/bare-metal-bringupUse when bringing up bare-metal or kernel code on a new architecture, SoC, or board (RISC-V, ARM, x86, ESP32) and it won't boot, hangs after boot, or faults early; covers trap vectors, MMU/PMP, syscall ABI, and boot ordering/codegen-validationUse when building or debugging a compiler backend, codegen, or assembler and you need to prove the generated machine code is correct by executing it on a real CPU or a fast emulator, not just inspecting the output/differential-verificationUse when verifying a hardware DUT (a CPU core, FPGA, or netlist) against a golden reference model, building coverage-guided fuzzing, or detecting where silicon diverges from a simulator like Spike, an emulator, or SPICEOther plugins' skills for the same job