agentsclimarketplace

Soc integration

Skill Midstall/claude-for-hardware/skills/soc-integration

Claude Code skills for hardware design, validation, and bring-up

Install
npx -y skills add Midstall/claude-for-hardware --skill soc-integration

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 7 stars7 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when composing an SoC from peripherals and a bus fabric, or when generating device trees, ACPI tables, docs, or pin lists from a hardware description and they keep drifting out of sync

SKILL.md

4.0 KB, as published. Nobody here has run it

SoC Integration

Overview

An SoC is a CPU, a bus fabric, and a set of peripherals connected by an address map. The integration job is to make that map the single source of truth and derive everything else (RTL wiring, device trees, ACPI, docs, firmware headers) from it.

Core principle: Describe the SoC once in a neutral structure. Every output is a consumer of that structure, never a producer of its own truth. The day a device tree and the RTL disagree about a base address is the day you debug ghosts.

When to Use

  • Wiring peripherals onto a bus and assigning an address map
  • Generating a DTS/DTB, ACPI tables, a memory map doc, or firmware register headers
  • Two generated artifacts disagree (the kernel's device tree says one base address, the RTL another)
  • A generator reaches into a CPU/peripheral's internals to dig out wiring details

Skip for a single fixed-function block with no bus and no software-visible map.

Peripherals Are Modules, Not Plugins

Model each peripheral as a first-class hardware module that exposes its bus interface, its register block, and its metadata (compatible string, interrupt number, address size). Because it is a real module, you can elaborate it, test it, and read its metadata to generate a device tree node.

Avoid a "plugin" that is just a config blob with no hardware behind it. If the device tree generator and the RTL both have to know a peripheral exists, they should learn it from the same module, not from two parallel lists that rot independently.

One Neutral Description, Many Generators

Do not couple the generators to each other or to one CPU implementation. Define a neutral type that captures what every consumer needs (cores, memory regions, peripherals, interrupts, the address map) and have each generator read from it.

       SoC description (neutral)
       /        |          \
     RTL      DeviceTree   ACPI / docs / headers
   wiring     generator    generators
  • The DTS generator, the ACPI generator, and the docs generator all take the neutral description. None of them imports another.
  • Adding a new output (say, a Linux defconfig fragment) is a new consumer, not a change to the existing ones.
  • A new CPU implementation just produces the same neutral description. The generators don't change.

Per-Instance State, No Globals

The thing that hosts peripherals and builds the fabric must be per-instance, not a global registry. Two SoCs (or two test cases) being elaborated at once must not stomp each other. Per-instance state is also what lets you build many configurations in parallel.

Address Map Discipline

  • Assign base addresses and sizes in one place, validated for overlap at build time. An overlap is a build error with both offending regions named, not a runtime surprise.
  • Interrupt numbers, the same: one allocator, checked for collisions.
  • Alignment and size rules (naturally-aligned, power-of-two windows) are asserted where the map is built.

Red Flags

SmellDo instead
DTS list and RTL list of peripherals maintained separatelyDerive both from the peripheral modules
Generator imports another generatorBoth read the neutral description
Global peripheral registryPer-instance host
Base addresses assigned ad hocOne validated address-map allocator
Generator hardcodes one CPU typeGenerators take a neutral SoC type

Midstall House Style

  • Harbor: peripherals are bridge modules (real modules with bus interfaces), which is what enables device-tree generation. The plugin host is per-instance.
  • Share a neutral CPU/SoC type across the DTS/ACPI/graph generators; do not couple them.
  • No em dashes, no emoji. See hdl-module-design for the module/config conventions and silicon-grade-discipline for the validation discipline.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.