# Hw debug loop

> Hw debug loop is an open-source agent skill for developer tools. Guides a bounded hardware debug loop for chips that pass simulation but fail on silicon. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/vibeic/vibe-ic/tree/main/vibe-ic-marketplace/plugins/vibe-ic/skills/hw-debug-loop
- **Repository:** https://github.com/vibeic/vibe-ic
- **GitHub stars:** 33
- **License:** Apache-2.0
- **Skill name:** hw-debug-loop
- **Collection:** https://github.com/vibeic/vibe-ic
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill gives an agent a fixed sequence for diagnosing a half-duplex protocol IC whose simulation testbench passes but whose burned FPGA image fails the host acceptance test. It sets up a baseline failure record, burns a known-good reference image to confirm the test rig is sound, and captures scope traces from both images to compare pulse timing.

Based on the scope comparison, the agent follows a decision tree. Matching waveforms point to pad-level or synthesis-inference differences, which are tested by swapping wrapper expressions one at a time. Differing byte streams are diffed against a bytewise dump of the reference image, and each deviation is recorded as a waiver rather than silently copied into the design. Each fix is followed by a re-burn, a re-test and saved evidence files.

The workflow relies on Quartus compile and program steps, an oscilloscope capture tool and a device tester exposed through MCP tools, and it expects a reference SOF file and a Keysight-class scope. The skill is written as a methodology from one reference project and uses Python-based scripts.

## When your agent uses it

> Closed-loop hardware debug methodology for half-duplex protocol ICs when BFM passes but real-silicon connect_test FAILs (Category B/C from the A/B/C extraction-gap analysis). Use after spec-to-rtl and the selected native tool results meet their original requirements, the SOF has been burned to FPGA, and the host-side acceptance test (e.g., <half-duplex-tester> byte[6]=0x02) is FAILing. The skill drives a deterministic bisect using scope capture + oracle bytewise dump + controlled wrapper-flip experiments until byte[6]=0xF2 PASS or until the failing item is recorded as an irreducible Category-B silicon discrepancy. Triggers on "byte[6]=0x02 FAIL", "BFM passes HW fails", "connect_test FAIL", "silicon-vs-spec mismatch", or "I have an oracle SOF and need to bisect".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/vibeic/vibe-ic/tree/HEAD/vibe-ic-marketplace/plugins/vibe-ic/skills/hw-debug-loop)
- [No network calls found in its scripts](https://github.com/vibeic/vibe-ic/tree/HEAD/vibe-ic-marketplace/plugins/vibe-ic/skills/hw-debug-loop)
- [License: Apache-2.0](https://github.com/vibeic/vibe-ic/tree/HEAD/vibe-ic-marketplace/plugins/vibe-ic/skills/hw-debug-loop)

## Features

- **Baseline failure capture:** Records the host acceptance verdict, frame bytes and build identity before any changes are made.
- **Oracle rig verification:** Burns a known-good reference image to confirm the test rig works before blaming the design.
- **Scope comparison workflow:** Captures bus pulse trains from both images and compares wake width and interval.
- **Decision tree for fault class:** Routes timing mismatches and byte-stream mismatches to separate investigation paths.
- **Recorded spec deviations:** Logs each silicon-versus-specification difference as a waiver linked to dump evidence.
- **Convergence audit:** Checks saved evidence and reviews native tool results before declaring the chip passing.

## Good for

- Diagnose why a chip passes simulation but fails the host connect test on hardware
- Compare scope captures from a failing FPGA image against a known-good reference
- Bisect RTL wrapper expression changes to find which style flips a pass to a fail
- Record byte-level differences between the spec and measured silicon behavior
- Assemble evidence files proving a hardware fix before moving to the next project phase

## Install

### Claude Code

This skill ships in the `vibe-ic` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add vibeic/vibe-ic
/plugin install vibe-ic@vibe-ic-marketplace
```

Or copy only this skill to `~/.claude/skills/hw-debug-loop`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vibeic/vibe-ic.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/hw-debug-loop &&
cp -R "$tmp/vibe-ic-marketplace/plugins/vibe-ic/skills/hw-debug-loop" ~/.claude/skills/hw-debug-loop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/hw-debug-loop` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/hw-debug-loop` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vibeic/vibe-ic.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/hw-debug-loop &&
cp -R "$tmp/vibe-ic-marketplace/plugins/vibe-ic/skills/hw-debug-loop" ~/.agents/skills/hw-debug-loop &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/hw-debug-loop` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/hw-debug-loop` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vibeic/vibe-ic.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/hw-debug-loop &&
cp -R "$tmp/vibe-ic-marketplace/plugins/vibe-ic/skills/hw-debug-loop" ~/.cursor/skills/hw-debug-loop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/hw-debug-loop` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/vibeic/vibe-ic.git --path vibe-ic-marketplace/plugins/vibe-ic/skills/hw-debug-loop
```

Or copy the folder to `~/.gemini/skills/hw-debug-loop` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/hw-debug-loop`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vibeic/vibe-ic.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/hw-debug-loop &&
cp -R "$tmp/vibe-ic-marketplace/plugins/vibe-ic/skills/hw-debug-loop" ~/.copilot/skills/hw-debug-loop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/hw-debug-loop` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/vibeic/vibe-ic.git
```

Then copy `vibe-ic/vibe-ic-marketplace/plugins/vibe-ic/skills/hw-debug-loop` into your agent's skills folder as `hw-debug-loop`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should Hw debug loop be used?

When the simulation bytewise test passes, the SOF is burned and the host acceptance test returns a FAIL with a non-canonical byte[6]. It should not be used if a selected native tool result itself fails or if the simulation is not yet fully passing.

### Does Hw debug loop change the specification automatically?

No. Silicon deviations are recorded in waivers.json, and the spec is only changed through an explicitly accepted input amendment.

### What inputs does Hw debug loop need?

A burned failing SOF, a known-passing oracle SOF or bytewise dump, and a scope reachable through the device_scope_capture tool, such as a Keysight DSO-X class instrument.

### Which AI clients can run Hw debug loop?

The skill is distributed as a Claude Code plugin in a marketplace, so it is written for Claude Code and uses its MCP tool names.

### How do I install Hw debug loop in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/hw-debug-loop to use it in all your projects, or to .claude/skills/hw-debug-loop in one project. Or install the vibe-ic plugin, which includes it: /plugin marketplace add vibeic/vibe-ic, then /plugin install vibe-ic@vibe-ic-marketplace.

### Does Hw debug loop run scripts?

Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Hw debug loop?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Hw debug loop?

The closest alternatives to Hw debug loop are Bus debugging, Diagnosing bugs, Probe debugging, Hardware TDD and Analog hw measure.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Bus debugging](https://ai-powered.com/skills/bus-debugging): Bus debugging is an open-source agent skill for developer tools.
- [Diagnosing bugs](https://ai-powered.com/skills/diagnosing-bugs): Diagnosing bugs is an open-source agent skill for developer tools.
- [Probe debugging](https://ai-powered.com/skills/probe-debugging): Probe debugging is an open-source agent skill for developer tools.
- [Hardware TDD](https://ai-powered.com/skills/hardware-tdd): Hardware TDD is an open-source agent skill for developer tools.
- [Analog hw measure](https://ai-powered.com/skills/analog-hw-measure): Analog hw measure is an open-source agent skill for developer tools.
- [Analog hw tuning loop](https://ai-powered.com/skills/analog-hw-tuning-loop): Analog hw tuning loop is an open-source agent skill for developer tools.
- [Memory timing debugging](https://ai-powered.com/skills/memory-timing-debugging): Memory timing debugging is an open-source agent skill for knowledge and memory.
- [Scope pattern attestation](https://ai-powered.com/skills/scope-pattern-attestation): Scope pattern attestation is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/hw-debug-loop
