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.
In this repository25 other files it gives its agents.
- agent-runtimeSkill
- ball-alignSkill
- canvas-clientSkill
- checkSkill
- collaboration-panelSkill
- debug-bemuSkill
- debug-compilerSkill
- debug-p2eSkill
- debug-performanceSkill
- debug-verilatorSkill
- domain-modelingSkill
- graph-contractSkill
- grillingSkill
- grill-with-docsSkill
- ip-designerSkill
- model-optimizeSkill
- model-portSkill
- model-recipeSkill
- plugin-verifySkill
- programming-principlesSkill
- repo-installSkill
- reportSkill
- role-identitySkill
- waveformSkill
- workload-testsSkill
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
- Very specific: line 14
Create the design skeleton under examples/designs/<design>/, using existing designs as templates:
- Distinctive: line 21
Add workloads and regression TOMLs only when their consumers exist.
- Distinctive: line 41
Do not silently resize, truncate, or default mismatched inter-core data.
- Distinctive: line 42
Do not edit Ball registration and Ball implementation in the same change unless the user explicitly requests the coupled change.
≈ “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.
Files
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
- 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.
- 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.
- Create the design skeleton under
examples/designs/<design>/, using existing designs as templates:configs/design.tomlincludesdevice/default.tomlandsims/default.toml. Configuration lives only here (IP defaults < design < sim config); every system reads the generateddesign.pb, never the TOML.configs/device/default.tomllistsddr,clint,plic,scuand the[[cores]], each includingcores/<core>/default.tomlwith itscomponent,hartId,[[threads]](each with acomponentand anincludeof the thread's default config),[sharedMem]and, for cores with a direct accelerator,accelerator.configs/sims/default.tomlnames 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 inCORES/BALLS;stack/device(andstack/device/corefor a design-owned core): the per-level software stacks.- Add workloads and regression TOMLs only when their consumers exist.
- 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. - 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.
- 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 thebbdev_*MCP tools; poll each returnedtrace_idto a terminal successful result before advancing.bbdev config --installwritesexamples/designs/<design>/output/sims/device/<Config>/generated/design.pb; everything for that config (RTL, workloads, stack, emu, logs) lives underoutput/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.
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
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.

