/analog-design-ams-verification:ams-verificationfrom analog-design-ams-verification
Builds mixed-signal testbenches, defines connect rules, and runs analog-digital co-simulation with real-number-model regressions. Use when verifying AMS blocks against digital control or re-validating after model/circuit fixes.
Ships in analog-design-ams-verification. 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.
None: SKILL.md is the whole skill.
analog-chip-design-agents:ams-verification-orchestrator agent and pass the full user
request and any available context. Do not execute stages directly.ams-verification-orchestrator mid-flow (including re-validation):
do not spawn a new agent. Treat this file as read-only — return the requested stage rules,
sign-off criteria, or loop-back guidance.Spawning the orchestrator from within an active orchestrator run causes recursive delegation and must never happen.
Before executing or advising on any stage, read the following if they exist:
memory/ams-verification/knowledge.md — known co-sim sync pitfalls, connect-rule recipes,
RNM-vs-SPICE divergence patterns, coverage-closure tactics. Incorporate its guidance.memory/ams-verification/run_state.md — current run identity for resume-after-interruption.Verify an analog/mixed-signal block against its digital control: build mixed-signal
testbenches, define connect rules, run analog-digital co-simulation and real-number-model
regressions, and close functional coverage. Six stages with explicit QoR gates. On a
mismatch the testbench cannot resolve, this domain opens a fix_request routed by the
pipeline-orchestrator to behavioral-modeling (model fault) or circuit-design (circuit fault).
python -m cocotb) + ngspice / Xyce — analog-digital co-simulation harnessverilator) / Icarus (iverilog) — digital + RNM regressionXyce) — mixed-signal SPICE for the analog sidexrun) — AMS co-sim + coveragespectre) — analog engine for AMSvcs) — AMS co-simafs) — fast-SPICE analog enginedesign_state.circuit.netlist or the behavioral model from design_state.modeling), the digital control, and the cocotb driver/monitor harness over ngspice/Xyce co-sim.| Issue | Fix |
|---|---|
| Spec checked by eye | Add a cocotb assertion/scoreboard for it |
| Non-reproducible regression | Fix the RNG seed; record it in the testbench |
| DUT won't instantiate in harness | Reconcile port order / connect natures with the model/netlist |
constraints.supply.vdd_v. Reuse the modeling-domain connect modules where they exist (read design_state.modeling.connect_modules).supply.vdd_v| Issue | Fix |
|---|---|
| Implicit connect-module insertion | Add an explicit connect rule at the boundary |
| Boundary behaves differently at Vmin | Parameterise thresholds vs supply.vdd_v |
fix_request to behavioral-modeling or circuit-design) or the connect rule / testbench is wrong (→ loop back locally).functional (the only fix_request class this stage opens — see VALID_FR_FAILURE).| Issue | Fix |
|---|---|
| Analog/digital time drift | Tighten sync step; enable rollback; align analog max-timestep to the digital tick |
| Functional mismatch (model wrong) | Open fix_request → behavioral-modeling (functional) |
| Functional mismatch (circuit wrong) | Open fix_request → circuit-design (functional) |
rnm_mismatch_count (cases where RNM diverges beyond tolerance).regression_failures (failing testcases) across the seed/corner matrix; a single failing seed blocks sign-off.fix_request to behavioral-modeling (failure_class: functional); on divergence that indicts the circuit, route to circuit-design.rnm_mismatch_count = 0 (or within documented waivers)regression_failures = 0 across the seed/corner matrix| Issue | Fix |
|---|---|
| RNM diverges from SPICE | Re-validate RNM thresholds/quantisation (modeling fix_request) |
| Intermittent seed failure | Fix the underlying non-determinism; never waive a real divergence |
rnm_mismatch_count, regression_failures by seed/corner)fix_request).| Issue | Fix |
|---|---|
| Coverage hole | Add directed/constrained-random stimulus in ams_testbench (loop ×2) |
| Vacuously-passing assertion | Add stimulus that drives the antecedent |
| Check | Criterion |
|---|---|
| Functional coverage | ≥ target functional_coverage_pct (default 95%) |
| RNM agreement | rnm_mismatch_count = 0 (unwaived) |
| Regression | regression_failures = 0 across seeds/corners |
| Connect modules | 100% explicit, 0 implicit insertions |
| Co-sim | clean, time-synchronised, all assertions exercised |
design_state.ams; close any serviced fix_request re-validations as PASS.fix_request (failure_class: functional) → behavioral-modeling or circuit-designconnectivityfix_request entries for any unresolved mismatchSee plugins/meta/skills/pipeline-orchestration/SKILL.md §Constraints Schema for the authoritative schema and stage-entry validation rule.
Required at entry (ams_testbench) — hard-fail if missing:
constraints.supply.vdd_v — for supply-relative connect-module thresholdsdesign_state.circuit.netlist, or a usable model artifact
(design_state.modeling.model_source or design_state.modeling.osdi); a bare
design_state.modeling object with no artifact does not qualify (else spec_gap)Optional (schema defaults apply when absent):
constraints.corners (sweep matrix defaults to the nominal corner when absent)Skip constraint validation entirely when invoked in re-validation / fix-request-servicing
mode (a fix_request.id was passed in the prompt).
Write memory/ams-verification/run_state.md as the first action before launching any tool:
run_id: ams-verification_<YYYYMMDD>_<HHMMSS>
design_name: <design>
pdk: <pdk or unknown>
tool: <primary tool>
start_time: <ISO-8601>
last_stage: null
Update last_stage to the completed stage name only after each stage finishes successfully.
After each stage completes, upsert one JSON record in memory/ams-verification/experiences.jsonl
keyed by run_id (do not append a second line for the same run). key_metrics fields:
functional_coverage_pct, rnm_mismatch_count, regression_failures. Set
signoff_achieved: false until ams_signoff passes; then true. Create the file and parent
directories if they do not exist.
If mcp__plugin_ecc_memory__add_observations is available, emit each mismatch fix as an
observation to entity analog-design-ams-verification-fixes after writing to
experiences.jsonl. Skip silently if absent — the JSONL file is the canonical record.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hdl-tools/analog-chip-design-agents --plugin analog-design-ams-verificationOther plugins' skills for the same job