You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(pfc): add 3 industry reference design Values tests per §3.D Phase 6
Adds golden-tier closed-form Values gates for three commercial PFC EVMs
spanning the power range:
* NCP1654-100W (consumer / LED driver, 100 kHz)
* UCC28180-360W (mid-range adapter, 65 kHz)
* L4981-1000W (industrial / server PSU, 50 kHz)
All anchor calculate_inductance_ccm, calculate_duty_cycle,
calculate_peak_current, and determine_actual_mode against the analytical
boost-PFC closed form with η=1, Vd=0, ripple=0.3 (1 % tolerance — the
implementation formulas reduce algebraically to the same expression).
Scope rationale (Values-only, no analytical-vs-ngspice PtP gate):
PFC's simulate_and_extract_* family is purely analytical (rectified-sine
envelope + triangular ripple synthesised in C++, no ngspice call), and
its existing generate_ngspice_circuit emits a behavioural-source netlist
mathematically equivalent to that synthesis — running ngspice on it does
not provide independent confirmation. A real switching boost-PFC SPICE
netlist would require a production-grade average-current-mode controller
(multiplier + voltage PI loop + current PI loop, per TI SNVA408B,
NXP AN5257, Plexim PFC tutorial). Open-loop feed-forward duty is
unstable, hysteretic peak-current schemes oscillate at line zero
crossings, and feed-forward against Vbus_nom needs many line cycles for
the bulk-cap dynamic to settle. Building, validating and converging
such a controller is several days of SPICE engineering and out of scope
for a magnetic-component test harness.
The PFC analytical model is exercised end-to-end by the §5.1 converter-
port gate Test_Pfc_ConverterPortWaveforms, which validates the synthesis
on three input-voltage operating points against the PFC port contract
(rectified-sine input mean/RMS, DC bus mean, DC load current mean,
2·fline Cbus ripple amplitude). That, plus the new closed-form Values
gates, fully covers the magnetic-design surface of the PFC.
[pfc-topology] suite: 8 → 11 cases (62 → 82 assertions).
Full converter regression: 264 → 267 cases / 5575 → 5587 assertions, all
green.
0 commit comments