/vibe-ic:analog-hw-measurefrom vibe-ic
Drives oscilloscope and FPGA ADC to capture analog block measurements (LDO, oscillator, POR, bandgap, comparator) and compares against spec limits for hardware-in-the-loop verification.
Ships in vibe-ic. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Drives the measurement instruments (oscilloscope + FPGA ADC) to capture real analog block behavior, then parses the results into a structured measurement report comparable to SPICE simulation output.
analog-hw-testbench-gen has programmed the FPGAanalog-hw-tuning-loop iterationsanalog/<block>/spec.json — specs with min/max limitsanalog/<block>/hw_test/pin_assignments.qsf — which scope channel maps to which signal| Tool | Purpose |
|---|---|
device_scope_capture | Capture transient waveform (CSV: time, voltage) |
device_scope_periodic_pulse_check | Measure frequency, duty cycle, amplitude |
eda_fpga_adc_read | Read MAX10 ADC for DC voltage (when available) |
device_camera_led_diff | Capture LED pass/fail indication |
| Block type | Key measurements | Instrument |
|---|---|---|
| LDO | Vout DC, load regulation, PSRR, transient response | ADC (DC) + Scope (transient) |
| Oscillator | Frequency, duty cycle, jitter, startup time | Scope (periodic) |
| POR | Trip voltage, hysteresis, release delay | Scope (single-shot ramp) |
| Bandgap | Vref DC, temperature coefficient | ADC (DC, sweep temp manually) |
| Comparator | Propagation delay, offset, hysteresis | Scope (transient) |
The DC/rise/settling/overshoot/freq/jitter math below is FIXED and
deterministic — do NOT re-derive it by hand each run. Once you have a
captured scope CSV (time,voltage), invoke the program so the numbers come
out identically every time:
Read the actual scope trace with its sampling interval and voltage scale. Measure the required levels, periods, edges or response timing and compare them with the original electrical/protocol limits.
It emits {dc_level, rise_time, settling_time, overshoot, freq, jitter} and,
when a spec JSON with per-metric min/max is given, a per-spec
PASS/FAIL (a metric that cannot be computed grades SKIP, never a false
FAIL). Exit 0 = extracted / all gradeable specs PASS, 1 = a spec FAILed,
2 = IO/parse error. The program degrades gracefully: a capture shorter than
--min-samples (default 8), with no detectable edge, or non-periodic reports
the affected metric as null + a MISSING/SKIP note instead of guessing.
The frozen formulas it implements (kept here for reference / review only):
AI judgment stays with you — choosing the right instrument per block
(scope transient vs ADC DC vs periodic-pulse), setting timebase/trigger,
deciding when a capture is trustworthy, and interpreting a SKIP/MISSING
metric (re-capture vs accept) are NOT delegated to the program. The program
only freezes the arithmetic on a capture you already judged good.
analog/<block>/hw_measurements.json{
"block_name": "ldo_1v8",
"timestamp": "2026-04-29T14:30:00Z",
"measurements": {
"vout_dc": {"value": 1.803, "unit": "V", "spec_min": 1.75, "spec_max": 1.85, "status": "PASS"},
"load_reg": {"value": 0.5, "unit": "%", "spec_max": 2.0, "status": "PASS"},
"settling_time": {"value": 12.3, "unit": "us", "spec_max": 50, "status": "PASS"}
},
"scope_files": ["analog/ldo_1v8/hw_test/scope_transient.csv"],
"all_pass": true
}
hw_measurements.json → analog-hw-tuning-loop for three-way comparisonWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub vibeic/vibe-ic --plugin vibe-ic71 skills in this plugin
/ams-simPlan and run analog / mixed-signal simulations — DC op, AC, transient, Monte Carlo, corner sweeps, PSRR/CMRR, noise — using ngspice, Xyce, Spectre, or HSPICE, and triage the results. Use when the user says "SPICE", "ngspice", "Monte Carlo", "corner simulation", "analog sim", "AC analysis", "transient", "PSRR", "CMRR", "noise analysis"./analog-extraction-resimPost-layout parasitic extraction + re-simulation for analog blocks — compares pre-layout vs post-layout specs. Use when the user says "post-layout resim", "extract and resimulate", "parasitic check", or at Step A7 of the analog track./analog-flow-orchestrateCanonical reference doc for the Analog A1-A9 track — spec extraction → topology → netlist → corner sweep → layout → per-block PV (DRC/LVS) → post-layout resim → hardmacro → HIL. Used when an agent wants to walk the A1-A9 plan step-by-step. For unified one-command execution (deterministic runner + AI fall-through + final audit aggregated), prefer the slash command `/vibe-ic-analog` (v1.6.13+) which merges this skill's workflow with `analog_one_shot_runner.py`./analog-hardmacro-genPackage a verified analog block into a hardmacro (LEF abstract + Liberty timing + GDS + behavioral Verilog) for digital PnR integration. Use when the user says "package analog block", "generate hardmacro", "create LEF/Liberty", or at Step A7 of the analog track./analog-hw-testbench-genGenerate FPGA RTL for hardware-in-the-loop analog testing — digital stimulus controller + ADC readback + scope trigger. Use when verifying analog blocks on real hardware, "generate hw testbench", "FPGA analog test", or at the hardware verification phase./analog-hw-tuning-loopClosed-loop hardware-in-the-loop analog tuning — iterates SPICE sizing → hardware build → measure → compare → adjust until hardware matches SPICE matches spec. Use when the user says "tune analog on hardware", "hardware convergence", "HIL tuning loop".Other plugins' skills for the same job