debug-p2e
Skill1 starsChanged 2 months agoApache-2.0View on GitHub
Diagnose Buckyball P2E bitstream/runtime builds, FPGA loading, Linux boot, workload failures, and hardware output differences. Use for P2E execution after emulator and small RTL gates are green.
In this repository25 other files it gives its agents.
- agent-runtimeSkill
- ball-alignSkill
- canvas-clientSkill
- checkSkill
- chip-designerSkill
- collaboration-panelSkill
- debug-bemuSkill
- debug-compilerSkill
- 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
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Do not classify missing files or tools as accelerator numerical failures.
- Very specific: line 20
After interruption, check live processes and saved checkpoints before retrying.
- Very specific: line 21
Do not mark a partial case successful.
- Distinctive: line 26
Board/loading: check the selected FPGA and loading/runtime messages.
- Very specific: line 37
Keep waveform capture off initially.
- Very specific: line 52
When asked for run duration, use the current p2e_timing.log and label its values as host wall-clock time.
- Very specific: line 57
Prefer project bbdev_* MCP tools and poll terminal results.
≈ “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
P2E Debugging
Identify the chip/configuration, RTL revision, diff capability, bitstream, complete runtime case, logical image, firmware ELF/hex, and FPGA location. Confirm focused BEMU and Verilator gates before using a full model to investigate operator semantics.
Locate the red stage
- Build/environment: preserve the first Nix/Rust/VVAC/Vivado error. Check source inclusion, generated chip artifacts, selected RTL directory, and dependencies. Do not classify missing files or tools as accelerator numerical failures.
- Bitstream/runtime: bitstream existence alone is insufficient. Verify matching
rtcfg, runtime libraries, and executable from the same case. Use a fresh task output directory; never clean another task's case. After interruption, check live processes and saved checkpoints before retrying. Do not mark a partial case successful. With a validated matching case, explicit--reuse-runtimeruns its existing executable, rtcfg, and libraries without rebuilding. The complete case and diff capability are checked before queueing. Keep its trace-protocol marker unchanged; a legacy blocking case and a nonblocking case have different runtime contracts. - Board/loading: check the selected FPGA and loading/runtime messages. Do not reprogram a board known to be running another task; resolve its ownership first.
- Boot/image: inspect UART, boot hart count/DTB, image base address, Linux/rootfs, input/resource installation, executable ABI, and memory/exit diagnostics.
- Accelerator: enable diff on the first focused P2E case with a diff-capable
bitstream/runtime. On crash, mismatch, or lost progress, inspect diff then
itrace and mtrace at the first failing instruction/bank transaction. Use
$debug-bemuor$debug-verilatorfor the corresponding semantic/timing layer. - Model output: compare UART/tensor outputs to the declared reference. Separate preprocessing/layout/quantization defects from Linux/runtime and hardware issues.
Keep waveform capture off initially. Use $waveform only after trace evidence leaves
a specific timing/handshake question unresolved and the P2E case supports capture.
Re-run a failure only after a targeted correction. Check small diff cases, the full
model, and an affected existing workload/model. Record terminal return status, UART
results, bitstream/image identity, and the actual comparison performed. Booting or
loading the FPGA is not a successful model port; follow $model-port through output
validation. Do not call BEMU measurements P2E timing or claim full-logit equality from
classification agreement alone.
For performance, read FPGA Cycle count and layer intervals from the actual UART
and follow $debug-performance. Golden-emulator stdout can contain its own cycle
records. Stdout buffering can also place trace lines after the classification;
use their recorded start/end values rather than console arrival order.
When asked for run duration, use the current p2e_timing.log and label its values
as host wall-clock time. Distinguish model RUN-to-PASS from boot/setup and total
command time; bitstream builds are a separate operation. Do not use duration as a
substitute for the requested FPGA cycle target.
Prefer project bbdev_* MCP tools and poll terminal results. If the user authorizes
CLI fallback for MCP failure, use nix develop -c bbdev; inspect current help and
retain logs/exit codes. Do not replace the documented flow with private build scripts.
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.

