/vibe-ic:analog-sizingfrom vibe-ic
Sizes transistors in analog circuit topologies (op-amps, LDOs, bandgaps, comparators) to meet gain, bandwidth, noise, and power specs. Acts as a copilot layer over SPICE and PDK characterization data.
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.
Given an analog topology (schematic or netlist) and a performance spec (gain, UGB, phase margin, noise, power, area), propose transistor W/L sizes and bias currents that meet the spec. Acts as the LLM copilot layer over classical analog sizing tools and SPICE.
Trigger when the user:
Do not derive k', the threshold, the resistor sheet or the MiM density by hand, and do not quote them from memory. They are a deterministic measurement of the target PDK's own models, taken once and published with their provenance:
# read what has already been measured for the target family
python3 plugins/vibe-ic/programs/pdk_analog_device_params.py --pdk <family>
# measure (or refresh) a family that carries no record yet
python3 plugins/vibe-ic/programs/pdk_analog_characterize.py \
--pdk <family> --container vibeic-eda --corners typ,slow,fast
The record lives under each PDK entry's analog_device_params.measured in
programs/pdk_registry.json — or, for a PDK STAGED INTO the design (which may
not be publishable), under analog/_pdk_char/analog_device_params.json in the
project, which outranks the shipped record. What it gives you, per corner:
| constant | what it is |
|---|---|
k_prime_n_ua_per_v2 / k_prime_p_ua_per_v2 | µ·Cox, from a two-point square-law fit in saturation |
vth_n_extracted_v / vth_p_extracted_v | the threshold THAT fit implies, which is not the model card's Vth0 |
vgs_at_id_n_v / vgs_at_id_p_v | the gate drive a stated current buys in a stated geometry — the bias-chain handle |
rsheet_ohm_per_sq, r_end_ohm, r_per_um_ohm | the resistor sheet, and the end/contact term a single-device measurement hides in it |
cap_area_ff_per_um2, cap_perim_ff_per_um | the capacitance density, and the fringe a single-plate measurement hides in it |
Read the fit residual before you use a k'. It is the relative error of an
interior bias point the fit did not use. A residual of a few percent means the
square law describes the device; a large one means the value is the best
square-law fit of a device that is not square-law, and a gm/Id argument is the
better tool at that operating point.
Read not_measured too. A constant that is absent is absent because the
measurement refused, and the reason is stated — most commonly a resistor
flavour that ignores the drawn width, for which r_per_um_ohm is published
instead of a sheet. Never substitute a neighbouring family's number for one
this family does not carry.
What stays YOUR judgment, and is not in that record: which spec binds which device, how to split the current budget, what overdrive to spend, which corner the block must close at, and whether the topology can meet the spec at all. The measurement removes the arithmetic, not the design.
# Analog Sizing — <topology>
Process: <node>
Supply: <V>
## Operating point plan
| Device | Role | gm/Id | Id (µA) | W (µm) | L (µm) | Region |
|--------|------------|-------|---------|--------|--------|--------|
| M1 | input pair | 15 | 20 | 40 | 0.5 | moderate |
| ... |
## Predicted performance (gm/Id estimates)
| Spec | Target | Estimate | Margin |
|------|--------|----------|--------|
| Gain | 60 dB | ~62 dB | + |
| UGB | 10 MHz | ~11 MHz | + |
| PM | 60° | ~62° | + |
| Power | 200 µW | ~180 µW | + |
## Compensation
Cc = ..., Rz = ...
## Verification
Run SPICE: <suggested testbench(es) — AC, transient, noise, corners>
Grounded in ADO-LLM, Maieutic Semiconductor's analog copilot direction, and gm/Id methodology (Silveira, Flandre, Jespers). Core idea: analog sizing is a constrained optimization where good initial conditions matter more than the optimizer — and LLMs trained on analog literature are very good at initial conditions.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
analog-design, transistor-sizing, circuit-design, spice, pdk
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-orchestrateOther plugins' skills for the same job