/vibe-ic:ams-simfrom vibe-ic
Plans and runs analog/mixed-signal simulations (DC, AC, transient, Monte Carlo, corner sweeps, PSRR/CMRR, noise) using ngspice, Xyce, Spectre, or HSPICE, and triages results.
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.
Analog blocks must be verified across process corners, temperature, voltage, and mismatch. This skill plans the testbench matrix, generates the simulator decks, and triages results.
/analog-sizing produces a schematic/analog-layout + extraction (post-layout).sp, .cir, .scs).lib / .scs)| Analysis | Purpose |
|---|---|
.op | DC operating point, bias validation |
.dc | Sweeps (supply, input, parameter) |
.ac | Gain, bandwidth, phase margin |
.tran | Settling, slew, large-signal; sampled converter ENOB/SNR/SNDR via spectrum |
.noise | Input-referred noise and small-signal analog SNR estimates |
.pss / .pac / .pnoise | Periodic steady-state (for RF / SC circuits) |
.mc | Monte Carlo mismatch + process |
The spec → required-analysis-subset mapping in this table is a frozen
lookup, enforced by programs/ams_analysis_select.py — do NOT pick
the analysis set by hand (two agents would otherwise pick different /
incomplete subsets for the same spec list). Run it on the block's
spec.json (or the project dir to scan analog/*/spec.json) and use
the emitted analyses set:
python3 programs/ams_analysis_select.py <block>/spec.json
# -> {"analyses": [".op", ".ac", ".tran", ".noise"], "mapping": [...]}
It always selects .op (bias validation) when ≥1 measurable spec is
present, adds .mc whenever any spec declares a mismatch / σ / yield
concern, and FAILs honestly (exit 1) when a spec carries no recognizable
measurable metric. Agent judgment is only needed to override an
ambiguous / custom spec key the table does not recognize.
ENOB and SINAD require a sampled dynamic measurement; declared converter
SNR/SNDR use transient capture and spectral processing as well. A small-signal
.noise result cannot establish these converter metrics. Separate physical
noise specifications still select .noise. See
Analog Devices MT-003,
pages 1 and 5–6. Stimulus, sampling and capture settings must be recorded with
the result; choosing an engineering measurement setting does not add a new
electrical acceptance requirement to the source specification.
programs/ams_analysis_select.py (see Analysis matrix).meas statements — generated by programs/analog_meas_from_spec_gen.pysim/<block>.sp (or equivalent) — simulator decksim/<block>_results.md:
corner_yield_vs_spec_check.py (per-corner / per-spec PASS/FAIL re-derived from spec.json limits), not graded by eyeOpen source: ngspice (https://ngspice.sourceforge.io/), Xyce. Commercial: Cadence Spectre, Synopsys HSPICE, Silvaco SmartSpice.
Pelgrom mismatch model, corner methodology from PDK, Monte Carlo with correlated process parameters. Mixed-signal co-sim per Verilog-AMS / Verilog-A standards.
/analog-sizing (re-size)/analog-layoutWhen model qualification has no declared deck, the producer writes one per
PDK device the delivered netlist instantiates, per process corner and
temperature of the analog corner grid: the device, terminal count and geometry
of its first instance, biased at the block's delivered rail value. The IC
expert reviews those decks instead of writing them, and declares only what does
not follow mechanically: a model library whose corner sections carry no
process-corner name (for example worst/best-case passives) gets its sections
named in model_corner_sections, otherwise that device stays at its nominal
section. A device with no declared role or defining library leaves the row
NOT_MEASURED with that reason. Read every simulator measurement; do not fill in
a result or add a performance limit to obtain a model-qualification PASS.
Keep a requested DC measurement point inside the simulator's actual sweep. A descending decimal sweep can stop just above a nominal zero endpoint; starting at the requested zero preserves the bias and measurement target. Repair the project deck and rerun the native measurement, rather than substituting the nearby trace value. A successful model/device check does not measure converter accuracy, supply rejection or electrical noise budgets.
When reviewing statistical results for several source-bound studies, distinguish each study's measured yield from the yield of satisfying all required properties. A joint result needs those properties evaluated for the same circuit realization under each property's required conditions. Independent runs at different loads or analysis contexts do not establish that relationship merely because their sample counts, seeds or row positions match.
Keep each native study's results, load, analysis and applicable source bounds visible. Do not pool or multiply marginal results and present the number as a measured joint yield. If required joint observations are absent, retain the existing NOT_MEASURED result for that obligation alongside the separate results; a native failure in any required study remains a failure. Preserve the declared population and limits rather than inventing sample correspondence or discarding a study to obtain a passing aggregate.
ngspice cannot step between two source breakpoints a fraction of a femtosecond
apart: a transient with two PWL corners 0.05 fs apart (one source's ramp end,
another's start, both from alignment arithmetic) stopped with "timestep too
small" under Gear, Trap, KLU and an explicit MINBREAK, and completed unchanged
once the corners were coincident or 1 fs apart. When a deck's corner times are
computed, round them to a 1 fs grid (glitch_noise.on_stimulus_grid does this
for PWL corners and EXP delays). Do not loosen reltol, abstol or the minimum
step, and do not report the abort as a result: it is NOT_MEASURED until the deck
runs. Where a sub-femtosecond separation is itself the measured quantity, do
not round it; keep the native abort visible instead.
Analog electromigration is judged per wire segment, not per net: Magic
extresist segments of the block's layout (the vibeic fork writes their
geometry) carry the native ngspice OP current of the block's own deck at the
case temperature, and the unchanged analog_native_em grader compares each
against the PDK table (analog_em_wire_currents.py). The table qualifies only at
its rating temperature; a case at another temperature is NOT_MEASURED, never
derated by hand. An OP current is the DC point only; a clocked block's switching
current needs a transient window.
A deck with any time-varying source (a clock, PWL, SIN, dc 0 pulse(...), a
testbench subcircuit or B-source of time) is a clocked/time-varying case: run
analog_em_wire_currents.py ... --tran (measure_tran), never the OP, whose
t=0 state is the clock frozen. The transient is the bench's own stimulus with
its DC sources brought up by its own power-on ramp. Its window must be the
workload (convention flow/rtl_conventions.json#analog_em_workload_window):
the bench's own declared stop, or one complete conversion of an incremental
block -- only when the case file declares both the conversion length
(workload.periods + source path:line stating it) and the per-conversion
reset (workload.reset: node, active low|high, source path:line naming it)
and every input/reference is held DC; the window then runs reset slot to reset
slot in the capture. Never derive a count (no OSR from bandwidth). A window
short of both, with a source still changing, or a caller period budget
(--tran-periods) is an observation: it can FAIL, never PASS. The grader
recomputes everything from the executed deck, the bench the run executed (pass
it as the case's testbench) and the case's declared workload; a PASS holds
for the recorded input condition only.
PDK-rated resistor bodies (SG13G2 2.8 Rppd IMRPPD, 2.9 Rhigh IMRHIGH, mA per um
of width) are graded too: the producer adds a .save of each extracted
instance's body current -- the PDK subcircuit's single element with a body
operating-point variable, CMC R3 ibody (rppd -> @n.<dut>.xrcx.xnative.<X>.nr1[ibody])
-- and the grader compares that native current (OP value; transient: peak,
then window and both half averages, as for wires) with rating x w x m. A rated
body without a saved current falls back to terminal KCL and is otherwise
NOT_MEASURED; a case holding one can never PASS. Never infer a body current
from a gate or chain assumption. If the wire mapping is incomplete, keep
any violation established by a bound saved body current and leave the
wire population incomplete. The terminal KCL fallback needs the full mapping.
A calibration feeds the measuring chain a stimulus whose answer is known
exactly and requires the chain to recover it; comparing the circuit with its
ideal model is a different quantity (a transistor loop never matches its ideal
model bit for bit; report that count as an observation, never as the
calibration). Bit-exact for sampled-data loops, the solver tolerance for
continuous .meas (A06 known_stimulus_calibration):
analog_incremental_capture.simulated_calibration):
replace the modulator in the bench's own deck by an ideal behavioural model
of the declared loop (same subcircuit, ports and the internal node names the
bench reads; ideal sampled integrators, an ideal clocked comparator with
Q(0) = +1, a conversion counter, all on the deck's own clock) and run the
unchanged bench (ngspice, capture, sampling, decode) for every declared
input; every decision and code must equal Schreier's simulateDSM. A first
mismatch at a locally resolvable decision (|y| > reltol*|y| + vntol, the
run's values) fails; below it, it fails when the model's own comparator
input decided as the reference, else it is NOT_MEASURED. Never accumulate
the solver's acceptance tolerance through the loop as an error bound: it is
a threshold, not an error, and declares every decision unusable. A
post-capture injection checks the decoder only: it cannot see the saved
node, the decision-valid window or the analog thresholding. The plugin's
recurrence is not the reference; a missing deltasigma is NOT_MEASURED.
D=1 means the transfer-phase decision on the updated state, fed back at the
next update.analog_bound_measurements.py --calibrate), and a
reused operating point graded at the same step: re-run the same bench with
an ideal linear stand-in for the DUT (distinct links, a capacitance per pin
so AC answers depend on frequency); each value must lie
within the tolerance the run itself reports (ngspice option: reltol, vntol,
abstol; Kundert, Designer's Guide to SPICE, App. A), propagated to first
order for a difference or a dB ratio; a run that reports none is NOT_MEASURED.
Every graded bench carries a calibration, or the block count is not
published. A mismatch is a bench finding to fix at its source (sampling phase, reset
alignment, polarity, decimation length, normalization, deck), not a reason to
loosen the comparison. Read flow/rtl_conventions.json#measurement_bench_calibration
from this plugin tree: a bound the design documents declare
(known_stimulus_calibration min/max) always wins; when they declare none, the
disclosed convention (zero mismatches, the exactness criterion) applies and the
row's limit_source names it. Report it as a Vibe-IC convention, never as a
design limit.The nominal-performance step compares each transistor-level value with what an
early model predicted (early_model_correlation,
requirements/base_A6/early_model_correlation.json, read by
programs/analog_early_model.py). Review the row by asking the three questions
separately; a missing answer is reported as missing, never filled in.
limit_decided_by) and its date. Never derive it from the measured value, and
never borrow a percentage from another check. Each declared point is graded on
its own; points with neither a tolerance nor a reason stay one NOT_MEASURED row
beside it, so a FAIL shows and a PASS cannot close the check while any remain.blocks.<block> with required true (it has one; its points are then compared)
or false (it needs none), plus reason, decider and date. Only required: false
reads NOT_APPLICABLE; a block without an answer is NOT_MEASURED by name, never
exempt, and the exemption is refused when the flow holds a model for the block. When the difference is large, split it
term by term (quantization, sampled noise, settling and gain, reference, clock)
and say which terms the run can and cannot show: a noise-free transient shows no
sampled noise, and a fit that removes gain and offset does not see a linear
gain error.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub vibeic/vibe-ic --plugin vibe-ic71 skills in this plugin
/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`./Other plugins' skills for the same job