gm/Id — Evaluate (Phase 5)¶
Phase 5 — Evaluate: analytical performance metrics from the solved sizing.
Wraps the shared (model-injected) metric evaluation with the gm/Id-specific corrections: the cascode-aware first-stage output resistance (the single-device-gds estimate misses the gm·ro·ro boost of a cascode load) and the resistor-network metric modifiers from Phase 4 (degeneration on gm1, resistor tail on gd_tail, CMFB averager loading on the output).
Analytical (ngspice-free) estimate: a deterministic sizing-quality signal for
tests/programmatic callers. The CLI measures PTM performance with ngspice
(spice_sim.simulate_metrics) and displays that instead of these numbers.
- circuitgenome.sizer.gmid.evaluate.evaluate_circuit(view, currents, plan, sizing, modifiers, spec, tech)[source]¶
Return
(metrics, margins, notes)for the solved sizing.notessurfaces the resistor-load DC-bias advisories (:func:` _resistor_load_bias`); when that operating point is invalid the gain-derived metrics are dropped rather than reported optimistically.- Parameters:
view (CircuitView)
currents (CurrentPlan)
plan (SizingPlan)
sizing (dict[str, TransistorSizing])
modifiers (MetricModifiers)
spec (SizingSpec)
tech (TechParams)
- Return type: