/vibe-ic:analog-hardmacro-genfrom vibe-ic
Packages a verified analog block into a hardmacro (LEF, Liberty, GDS, Verilog) for digital PnR integration with OpenROAD. Use after SPICE corner sweeps pass or at Step A7 of the analog track.
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.
Takes a verified analog block (SPICE corner sweep passed, optionally hardware-verified) and produces the four deliverables that digital PnR (OpenROAD) needs to integrate it alongside standard cells.
analog-extraction-resim confirms post-layout specs are acceptableanalog/<block>/corner_results.json — worst-case timing from SPICEanalog/<block>/layout.mag — Magic layout (or generate via eda_analog_layout)analog/<block>/spec.json — port definitionsDeliverable PRESENCE + non-degeneracy is enforced deterministically:
programs/analog_hardmacro_check.py(all 4 files exist; LEF has MACRO/PIN, LIB has cell, V has module) andprograms/analog_liberty_nonzero_delay_check.py(the "no zero-delay Liberty" rule — area-only / all-zero.lib=> FAIL; a propagation arc slower than the design's declared SDC/L8 clock period => FAIL). Cross-file pin-name equality is enforced byprograms/analog_hardmacro_pinname_consistency_check.py.
hardmacro/<block>/<block>.gds)programs/analog_hardmacro_gds_emit.py
streams phase3/analog/<block>/layout.mag out to
phase3/analog/hardmacro/<block>/<block>.gds with Magic, against the
technology the layout's own tech line names. analog_one_shot_runner
invokes it at A8_hardmacro_gen, before the A8 checks. It is deliberately
a producer, not a signoff verdict. Inspect the actual Magic output and
native tool results in reports/flow_engine.json against their original
requirements, then AI review each result. Missing native data is
NOT_MEASURED; producing a declared output does not prove its correctness.
Do not hand-author a .gds.magic_port_extract_emit.build_gds_write_tcl — the same fixed
load / select top cell / gds write template the extraction path uses.
Between v0.1.114 and 2026-07 that emitter had no caller at all, which is
why A8 declared a layout no run produced.layout.mag is skipped so the PASS_WITH_STUB tier
is untouched.layout.mag yet, run eda_analog_layout (A5) first —
the producer names that as its skip reason rather than inventing geometry.hardmacro/<block>/<block>.lef)lef write (see magic_port_extract_emit.py)programs/analog_hardmacro_pinname_consistency_check.py (3-way
set-equality: spec.json interface.pins ↔ LEF PINs ↔ Verilog ports;
portless LEF + ported Verilog => FAIL).hardmacro/<block>/<block>.lib)programs/analog_liberty_nonzero_delay_check.py: the .lib must carry
at least one timing/leakage attribute and every timing value must be
non-zero (an area-only or all-zero .lib is the documented vacuous-STA
defect and FAILs). If a cell_rise/cell_fall/intrinsic propagation
delay exceeds the design-owned clock period in SDC/L8, the same check
FAILs: an analog settling time is not a synchronous cell arc. Keep a
leakage+capacitance-only Liberty when the macro has no real synchronous
propagation arc, and record settling in interface.json
timing_contract. The check also reports the corner-sweep provenance
(real_ngspice vs stub) read from corner_results.json.corner_results.json carries the
analog spec value (e.g. vout_v, ota_ugbw_hz) per PVT corner, NOT pre-computed
cell_rise/cell_fall/setup/hold/leakage timing arcs. Mapping
a measured analog metric onto Liberty timing arcs for a given control
interface is an analog-modeling decision. The deterministic boundary is:
SS-worst-corner selection, non-zero formatting, and no propagation arc
may exceed the design clock period; a slower settling contract belongs
in interface.json timing_contract instead.hardmacro/<block>/<block>.v)programs/analog_hardmacro_pinname_consistency_check.py.module ldo_1v8 (input vin, input en, input [2:0] trim, output vout);
assign vout = en ? 1'b1 : 1'bz; // simplified: high when enabled
endmodule
analog_hardmacro_gds_emit produces it from
layout.mag; if there is no layout.mag, run eda_analog_layout (A5) firstlef write with correct pin definitionscorner_results.json and
author the .lib with non-zero leakage and only genuine sub-period
propagation arcs (modeling judgment per § 3 above); put analog settling
in interface.json timing_contract;
non-degeneracy gate = analog_liberty_nonzero_delay_check.pyspec.json interface.pins; behavior-modeling is judgment (§ 4 above)analog_hardmacro_check.py + analog_hardmacro_pinname_consistency_check.py
analog_liberty_nonzero_delay_check.py on the project dirhardmacro/<block>/
├── <block>.gds — physical layout
├── <block>.lef — abstract for PnR placement
├── <block>.lib — timing model for STA
└── <block>.v — behavioral model for simulation
programs/analog_liberty_nonzero_delay_check.py)cell_rise / cell_fall: an analog macro carries no synchronous cell
arc for that contract. Move it to interface.json timing_contract
(enforced by programs/analog_liberty_nonzero_delay_check.py)programs/analog_hardmacro_pinname_consistency_check.py)hardmacro/<block>/ → Digital Step 15 (Floorplan; was Step 14 pre-Wave-91) via OpenROAD macro placementeda_pnr additional_lefs parametereda_sta additional liberty patheda_simulate for mixed-signal gate-level simWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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