agentleFS
DangoSysDangoSys/skills/chip-designer/SKILL.md

chip-designer

Skill1 starsChanged 2 months agoApache-2.0View on GitHub

Lead creation of a new Buckyball design (chip): choose topology and core/thread composition, define inter-core contracts, create the design skeleton, and sequence integration. Use when creating or leading a design rather than implementing one Ball, thread or core. Build and simulation use project MCP tools only.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create the design skeleton under examples/designs/<design>/, using existing designs as templates:

    line 14
  2. Distinctive:

    Add workloads and regression TOMLs only when their consumers exist.

    line 21
  3. Distinctive:

    Do not silently resize, truncate, or default mismatched inter-core data.

    line 41
  4. Distinctive:

    Do not edit Ball registration and Ball implementation in the same change unless the user explicitly requests the coupled change.

    line 42

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Design (Chip) Creation

Own the design's topology and integration boundaries. Do not take ownership of a component's Ball ISA, RTL, compiler or emulator unless the user explicitly expands the scope. Default to leaving arch/src/main/scala/framework/ unchanged; framework gaps belong to mainline work.

Design Flow

  1. Explain why an existing design does not fit the workload. Identify its stages (for a multi-core device, the semantic graph classes the frontend cuts the model into), the data exchanged between them, and which run in parallel or in sequence.
  2. Choose topology before implementation. Group stages into core classes by what the hardware must do (not one class per graph class); a core may bind several graphs; choose replica counts from the parallelism and latency of the stages. Core classes and counts are configuration and must stay easy to change. Define the inter-core contracts: which values move between cores, their shape/dtype/layout, ownership, and mismatch behavior; invalid shape or layout fails explicitly.
  3. Create the design skeleton under examples/designs/<design>/, using existing designs as templates:
    • configs/design.toml includes device/default.toml and sims/default.toml. Configuration lives only here (IP defaults < design < sim config); every system reads the generated design.pb, never the TOML.
    • configs/device/default.toml lists ddr, clint, plic, scu and the [[cores]], each including cores/<core>/default.toml with its component, hartId, [[threads]] (each with a component and an include of the thread's default config), [sharedMem] and, for cores with a direct accelerator, accelerator.
    • configs/sims/default.toml names the device config class ([targets.device]) and registers device configs [targets.device.configs] as name → override TOML (<Design>VerilatorConfig, <Design>P2EConfig, …). Commands always name a config.
    • arch/device/DeviceTop.scala: the CBus instantiates and connects the configured cores; never instantiate cores one by one in the top. Topology (links, shared memory networks) is written in the code of the layer that owns it, not generated from configuration.
    • sims/device/{arch,emu,stack,workloads,regression}: the simulation entry (one shared scaffolding for all device configs).
    • emu/src/device/core: the design's emulator models, registered in CORES/BALLS; stack/device (and stack/device/core for a design-owned core): the per-level software stacks.
    • Add workloads and regression TOMLs only when their consumers exist.
  4. Components live in examples/prefab/{cores,threads,balls} or inside the design when the design owns them. Interfaces: Core → CLink, Thread → TLink, Ball → BLink. The SharedMem inside a core is invisible to threads (software and hardware): threads see plain DDR semantics; core-level and device-level shared memory are separate code bases.
  5. Give each component owner a brief with its mission, fixed contracts, acceptance tests and non-goals. Do not delegate topology or contract decisions as an open-ended task.
  6. Integrate in order: component unit tests, pairwise inter-core test, then end-to-end workload. Add a regression entry only for a supported binary.

Commands

  • nix develop -c bbdev <step> … --design <design> --device <Config> from the repo root, or the bbdev_* MCP tools; poll each returned trace_id to a terminal successful result before advancing.
  • bbdev config --install writes examples/designs/<design>/output/sims/device/<Config>/generated/design.pb; everything for that config (RTL, workloads, stack, emu, logs) lives under output/sims/device/<Config>/. Re-run it after any TOML change.

Existing References

  • examples/designs/poly/: heterogeneous device — a reduce core with a direct accelerator plus poly cores with attention/ffn threads; tensor-parallel model partition.
  • examples/designs/goban/: one core with matmul threads driven by the engine.
  • examples/designs/pebble/, examples/designs/toy/: single-core designs with a direct accelerator.
  • examples/designs/multi-rocket/: several plain CPU cores.

Constraints

  • Designs never depend on each other; shared code goes to the framework or the component.
  • Do not silently resize, truncate, or default mismatched inter-core data.
  • Do not edit Ball registration and Ball implementation in the same change unless the user explicitly requests the coupled change.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.