Spaces:
Running
Running
Validate 2:1 switched-capacitor analytical model
Browse filesFiles changed (7)
- docs/topology/2to1_switching_capacitors/analytical_derivation.mdAdded+146
- docs/topology/2to1_switching_capacitors/compare_sp2.pyAdded+79
- docs/topology/2to1_switching_capacitors/numerical_results.jsonAdded+212
- docs/topology/2to1_switching_capacitors/sp2_comparison.mdAdded+44
- docs/topology/2to1_switching_capacitors/sp2_comparison_results.jsonAdded+67
- docs/topology/2to1_switching_capacitors/verify_phase_b.pyAdded+249
- docs/topology/minjie_confirmation_list.md+9
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146# Phase B — independent analytical derivation
## Approved modeling circuit and scope
Use one NMOS at each of Q1–Q8 in the [Phase A pin map](../2to1_switching_capacitors_circuit_definition.md#power-connectivity-and-orientation). The approved local model omits Q1′ and Q5′. The original Canvas project is preserved. Only connectivity, component types and the two illustrated states are taken from Canvas. The analysis uses symbolic parameters and independent numerical fixtures. It uses no Canvas component values or device-model bindings.
Assume ideal gate transitions, zero dead time, equal half-periods and 180° interleaving. Treat each commanded-on MOSFET as a positive linear resistor and each off channel as open. Source and output ports are stiff during one period, and the output has no net capacitor charge change over that period. The two flying capacitors have the same capacitance `C` and series ESR `Rc`. The finite-RC solution permits different on-resistances for individual MOSFETs. Body-diode or body-junction currents, gate transients and capacitor parasitics beyond `Rc` are outside this passive charge-transfer solution. Validity requires the intended switch states, periodic settling, and voltages/currents for which the channel-resistor and stiff-port assumptions are adequate. There are no windings or magnetic losses in the approved graph.
## 1. States, gain and charge balance
Let `Vi`, `Vo` be the input and output rail voltages, `T = 1/fs`, `h = T/2`, and `vL`, `vR` the voltages of the ideal flying capacitors, plate 1 minus plate 2. A positive flying-cap current enters plate 1. Use analytical reference area `A0`, dimensionless area `ak = Ak/A0 > 0`, and `rk = Rs/ak` for each switch. The complete charging and discharging path resistances are
```textrcL = r1 + r3 + Rc rdL = r2 + r4 + RcrcR = r5 + r7 + Rc rdR = r6 + r8 + RcU = Vi − Vo L = Vocharge: C dv/dt = (U − v)/rcdischarge: C dv/dt = (L − v)/rd```
In a charge path, current flows from `Vi` through the upper switch and flying cap/ESR to the lower output switch and `Vo`. In a discharge path, current enters from ground through the bottom switch and flying cap/ESR, then reaches `Vo` through the upper output switch. Signs below refer to the capacitor plate-1 convention. The output currents are defined into `Vo`.
| Interval | ON switches | `iL` | `iR` | Input current | Output injection || --- | --- | --- | --- | --- | --- || `0 < t < h`, A high | Q1, Q3, Q6, Q8 | `(U−vL)/rcL` | `(L−vR)/rdR` | `iL` | `iL−iR` || `h < t < T`, B high | Q2, Q4, Q5, Q7 | `(L−vL)/rdL` | `(U−vR)/rcR` | `iR` | `−iL+iR` |
If `qL` and `qR` are the positive charging transfers, periodic capacitor balance makes each discharge transfer `−qL` or `−qR`. Thus `Qin = qL+qR` and `Qout = 2(qL+qR)` per period. This is the exact port charge relationship for the assumed paths even with unequal positive path resistances. Both configurations have the same target cap voltage at zero load when `Vi−Vo = Vo`, so `Vo,ideal = Vi/2`. Also, `Iin = Iout/2` and `Vi·Iin = Vo·Iout` in the lossless limit. The ideal conversion ratio is fixed by the switched connection pattern.
For matched phase paths, the transfers are equal. Then `q = Qout/4`, and the charge multipliers are:
| Quantity | Per-period charge divided by `Qout` || --- | --- || Each flying capacitor, signed by half-period | `+1/4` while charging, `−1/4` while discharging || Each switch, magnitude for its one active interval | `1/4` || Each flying-cap ESR, signed as its cap current | `+1/4`, `−1/4` || Each branch, net input and delivered output | `1/4` input, `1/2` output || Whole converter | `1/2` input, `1` output |
With unequal phase paths, each branch's multiplier is instead `qj/[2(qL+qR)]`; equal splitting is not obtained from charge conservation alone. The matched values apply to the symmetric allocation derived below.
## 2. FSL and SSL, with a common loss boundary
At high frequency with small flying-cap voltage ripple and matched phase paths, one capacitor charges and one discharges with current magnitude `q/h = Iout/2`. Each MOSFET carries it for `T/2`, giving mean-square current `Iout²/8` per switch. The cap ESR carries it in both halves, giving mean-square current `Iout²/4` each. At that symmetric operating point:
```textRFET,FSL = Σ rk/8 PFET,FSL = Iout² RFET,FSLRCAP,FSL = 2 Rc/4 = Rc/2 PCAP,FSL = Iout² RCAP,FSLRFSL = RFET,FSL + RCAP,FSL```
In the low-frequency fully settled limit each flying capacitor moves between `L` and `U`, so `q = C(U−L)`. Each capacitor loses the energy `C(U−L)²/2` on each transition in its resistive path, or `q²/C` per period. The two capacitors deliver `Iout = 4fsq`, hence `PSSL = 2fs q²/C = Iout²/(8 C fs)` and `RSSL = 1/(8 C fs)`. This limit is taken with positive path resistance and fixed stiff port voltages. At fixed nonzero load, lowering `fs` eventually drives the required droop outside the useful domain.
`RFSL` and `RSSL` describe the same transfer mechanism in opposite regimes. Charging dissipation in the exact finite-RC solution is already distributed over the paths' MOSFET resistances and capacitor ESR. [OpenPELS series conventions](../analytical_model_specification.md#common-loss-functions-and-physical-scope)
## 3. Exact periodic finite-RC solution
For each phase independently, take `v0` at the start of its charge interval and `v1` at the end. Define `α = exp(−h/(rc C))` and `β = exp(−h/(rd C))`. The two affine RC maps are
```textv1 = U + (v0−U) αv0 = L + (v1−L) βv0 = [L(1−β) + β U(1−α)]/(1−αβ)v1 = [U(1−α) + α L(1−β)]/(1−αβ)q = C(v1−v0) = C(U−L)(1−α)(1−β)/(1−αβ)```
As a function of local interval time `τ`, the signed currents are `ich = (U−v0) exp(−τ/(rc C))/rc` and `idis = (L−v1) exp(−τ/(rd C))/rd`. For `0 < Vo < Vi/2`, the periodic solution has `L < v0 < v1 < U`. Its discharge current is negative under the chosen capacitor convention. The two branches' output contributions add. In a DC load model the net output-cap charge is zero, making the average injected current equal to the load current.
Write `k = h/(2C) = 1/(4 C fs)`, a resistance scale, and `S(rc,rd) = coth(k/rc) + coth(k/rd)`. The identity `S/2 = (1−αβ)/[(1−α)(1−β)]` gives each branch an output-referred resistance `Rbranch = S/(8 C fs)`. The two branches share the same output droop `Δ = Vi/2−Vo`; `Iout,j = Δ/Rbranch,j`. For unequal paths the converter `Req` is the parallel combination of the two `Rbranch` values.
With equal charge and discharge path resistance `r` in each branch and matched branches, this simplifies to
```textReq = [1/(8 C fs)] coth[1/(4 C fs r)]RFSL = r/2RSSL = 1/(8 C fs)Req = RSSL coth(RSSL/RFSL)Vo = Vi/2 − Iout Req```
`Req → RFSL` as `fs → ∞` and `Req/RSSL → 1` as `fs → 0⁺`. With fixed loads, require a positive solved output and practical ripple/settling consistent with the stiff-port model. For a resistor load with a stiff-cycle approximation, the DC load line gives `Vo = (Vi/2)·Rload/(Rload+Req)`. With a current sink, the droop formula gives the predicted mean. Neither expression models output-cap dynamics over a cycle.
### Exact component dissipation
The charge and discharge current-square time integrals in one branch, `Jc` and `Jd`, have units `A²·s`:
```textJc = C(U−v0)² (1−α²)/(2 rc)Jd = C(v1−L)² (1−β²)/(2 rd)Ek = rk Jc for each of the two charging MOSFETsEk = rk Jd for each of the two discharging MOSFETsEESR,branch = Rc(Jc+Jd)```
Power is cycle energy multiplied by `fs`. The sum `rc Jc + rd Jd` equals `(U−L)q` by capacitor energy closure. The total satisfies `Ppath = Vi·Iin − Vo·Iout = Iout²·Req` for the passive RC model. In one symmetric branch, `Jc = Jd`, and all four paths have the same `r`. This lets the per-device and per-ESR exact contributions be computed via the integrals or proportional path resistances. The OpenPELS alternative ledger splits the same total into `Iout² RFET,FSL`, `Iout² RCAP,FSL`, and `Iout²(Req−RFSL)`. The exact component ledger and the FSL-plus-increment ledger are two complete decompositions of the same path loss.
## 4. Area optimum and OpenPELS coefficients
Impose `Σ ak = B` with identical technology. With symmetric FSL current weights fixed at `1/8` per switch, minimizing `Σ (1/ak)` with positive `ak` gives equal areas by strict convexity or the Lagrange condition. The finite-RC proof also covers redistribution across unequal candidate branch budgets.
1. The sum `1/ai+1/aj` of any two switches at fixed pair area is minimized at equal areas. `coth(k/r)` increases with `r`, so this minimizes each path's contribution to `S`.2. After equalizing the switches within each pair, a pair with area `b` has path resistance `r(b) = Rc+4Rs/b`. For a branch with fixed `b_c+b_d`, equalize the two pairs. Indeed `g(r)=coth(k/r)` is increasing and convex for `k,r>0`, with `g''(r) = 2k csch²(k/r)[(k/r)coth(k/r)−1]/r³ > 0`. Its composition with the convex `r(b)` is convex. Jensen's inequality therefore minimizes the sum of charge and discharge contributions at `b_c=b_d`.3. For branch total area `b_j`, the optimized path is `r_j = Rc+8Rs/b_j` and branch conductance is `4 C fs tanh(k b_j/(Rc b_j+8Rs))`. This is strictly concave in `b_j>0` at finite positive frequency and `Rs>0`, because the inner function is positive, increasing and concave for `Rc≥0`, and `tanh` is increasing and strictly concave on positive arguments. Thus equal branch budgets maximize summed conductance and minimize converter `Req`. All eight MOSFETs have equal area. In the strict SSL asymptote, area drops out of the limiting expression. In the strict FSL limit with zero ESR, each internally balanced branch has conductance proportional to its total area, so splits between branches tie at leading order. Equal areas still minimize the finite-RC resistance.
With OpenPELS `B=12`, each switch gets `1.5 A0` or one eighth of total area. Each has `Ron = 2Rs/3`. The symmetric path is `r = 4Rs/3 + Rc`, giving:
| Quantity | Output-referred value | Intrinsic coefficient || --- | --- | --- || MOSFET FSL | `2Rs/3` | `kFET = 2/3` || Flying-cap ESR FSL | `Rc/2` | `kCAP = 1/2` || Windings | Absent from approved graph | `kIND = 0` by topology || SSL | `1/(8 C fs)` | `kSSL = 1/8` |
With `C = Cf` per flying capacitor, use `ρC=Rc/Rs`, `ρQ=1/(C fs Rs)`, and `ρL=Rl/Rs` only as an unused winding scale. Then `RFSL/Rs = 2/3 + ρC/2`, `RSSL/Rs = ρQ/8`, and `Radd/Rs = Req/Rs − RFSL/Rs`. If the capacitance input is a total flying-cap budget, `C` is half of it. `Req` is separate from `Rload`. [OpenPELS normalization and sizing](../analytical_model_specification.md#quantities-and-normalization)
## 5. Gate drive, Coss and total power
Each gate command has one charge event per device per period. With a conventional non-recovering driver and defined gate charge per event `Qg,k`, `Pgate = fs Σ Vg,k Qg,k`. For a common `VGS`, same process with `Qg` proportional to width, and one event per period, use the OpenPELS convention `Pgate = VGS fs FOMg/Rparallel`, where `FOMg = Ron,ref Qg,ref`, `Rparallel = Rs/12`, and `Wk = Wtotal ak/12`. This accounts for gate charge separately from `Req`. At fixed total width this idealized term is independent of how width is split, so adding it leaves the passive-model area optimum intact. Different drive swings, Miller charges, or Coss energy weights can alter the optimum when included. Driver overhead beyond gate charge and energy recovery are outside this expression.
Candidate Coss-related loss exists at the changing drain/source and bulk junction voltages. In the zero-drop state sketch, the off-state signed `VDS` is `Vi−Vo` for Q1/Q5 and Q2/Q6 during their respective off halves, `−Vo` for Q3/Q7, and `+Vo` for Q4/Q8. These are ideal-state endpoint estimates, not measured device stress. Body remains at ground. A nonlinear output charge relation has stored energy `E(V)=∫₀^V v Cdiff(v) dv` for an appropriate positive swing and bias model. The scalar `Qoss` point does not determine irreversible loss. For an explicitly linear capacitance hard-discharged from `|VDS|` to zero into a dissipative path, `½ C VDS²` is the energy released in that event. Whole-cycle unrecovered energy can differ if charging and discharging paths or recovery are coupled. Use `Poss = fs Σ Eeff,k` only with independently established, non-overlapping effective cycle energies. The OpenPELS technology panel equivalently accepts total effective energy per mm of width per cycle. Here `Poss` remains **unknown**. No numerical MOSFET or Coss model was chosen. [OpenPELS technology conventions](../analytical_model_specification.md#fixed-sizing-technology-and-supplemental-loss)
```textPout = Vo IoutPpath = Iout² ReqPknown = Ppath + Pgate, if gate charge inputs are specifiedPtotal = Ppath + Pgate + Poss + any other separately qualified nonoverlapping termsη = Pout / (Pout + Ptotal)```
The stiff-rail stage already has `Vi Iin = Pout + Ppath`. If accounting for supplemental terms, start from this input power or from `Pout + Ppath` and add each supplemental term once. Do not also add raw SSL, the exact component powers, or the charging increment on top of `Ppath`. A driver or Coss term already inside the chosen power boundary cannot be appended a second time. The numerical fixtures report passive efficiency only and, where independent illustrative gate inputs are supplied, an efficiency subtotal. No single total efficiency is claimed with Coss unknown.
The exact claim here covers periodic linear RC charge transfer only. Finite output ripple, coupled dynamics through non-stiff ports, filter ESR and interconnect, on-resistance variation, thermal/PVT effects, body-diode conduction, leakage, gate overlap/dead time, startup, regulation, switching-edge overlap, and validated device-voltage stress are outside the current derivation. Their losses remain unquantified.
## 6. Independent numerical verification
The Python script integrates the switched branch ODEs by RK4 and solves the periodic boundary condition from the numerically integrated cycle map. It checks the closed-form endpoints, signed charges, integrated current squared, parallel branch resistance, and energy dissipated in each branch and across both rails. At 16 and 128 steps per half-period, the relative current-square integral errors were `2.61×10⁻⁶` and `6.00×10⁻¹⁰`. Across the main matched and unequal-path fixtures, the largest relative charge residual was `1.94×10⁻¹⁴` and the largest relative energy residual was `1.46×10⁻¹²`. The script also checks no-load balance and the dimensions of RC time, charge, resistance, energy, power and per-unit terms. [Verification script](verify_phase_b.py), [complete results](numerical_results.json)
| Matched fixture at `Vi = 3.0 V`, `Vo = 1.4 V`, `Rs = 90 mΩ`, `Rc = 20 mΩ`, `C = 1 µF per cap`, `fs = 2 MHz` | Result || --- | ---: || Output current | 1.140483 A || FSL, SSL and exact finite-RC resistance | 70.0000, 62.5000 and 87.6821 mΩ || Exact MOSFET and cap ESR losses | 97.7557 and 16.2926 mW || Passive path loss and delivered-point efficiency | 114.0483 mW and 93.3333% |
The numerical approaches to FSL and SSL agreed with their limits within one part per million. Those frequencies exercise the mathematical model. Across 2,880 trial area allocations at three frequencies and three ESR values, none improved on the symmetric optimum. An independent asymmetric shooting case confirmed the direction of the area result at the same frequency and resolved unequal branch charge multipliers of 0.227554 and 0.272446. A separate illustrative gate input of 2.5 V and 9 pC total charge gave 45 µW. It exercises the gate expression and subtotal accounting. Physical gate loss, Coss loss and total efficiency remain open. [Recorded checks](numerical_results.json), [post-verification `sp2` comparison](sp2_comparison.md)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879#!/usr/bin/env python3"""Compare the completed Phase B verification with the shipped browser model."""
import jsonfrom pathlib import Pathimport subprocess
from verify_phase_b import close, exact_req, verify
def compare(): independent = verify() verification = Path(__file__).with_name('numerical_results.json') recorded = json.loads(verification.read_text()) for case in ('matched', 'asymmetric'): close(independent[case]['req_ohm'], recorded[case]['req_ohm'], rel=2e-8)
root = Path(__file__).resolve().parents[3] program = '''const fs = require('node:fs');const engine = require('./static/compare/engine.js');const technology = require('./static/compare/technology.js');const recommend = require('./static/compare/recommend.js');const data = require('./static/compare/models-data.json');const fixtures = JSON.parse(fs.readFileSync(0,'utf8'));const rows = fixtures.map(p => ({ absolute: engine.evaluate('sp2', 0.5, p), pu: engine.analyzePU({ratio:2, topologies:['sp2'], rho_c:p.rc/p.rs, rho_l:p.rl/p.rs, rho_q:1/(p.cf*p.fs*p.rs)}, data).rows[0],}));const example = technology.example([rows[0].pu], {width_mm:360, cap_uf:4, fs_mhz:10});console.log(JSON.stringify({rows, example, reference:technology.reference, validity: [0.25, 0.499, 0.5, 0.501].map(m => engine.valid('sp2',m)), family:recommend.familyIds(2)}));''' fixtures = [dict(rs=0.09, rc=0.02, rl=0.321, cf=1e-6, fs=2e6), dict(rs=0.09, rc=0, rl=0.321, cf=1e-6, fs=2e8), dict(rs=0.005, rc=0.003, rl=0.321, cf=4e-6, fs=2e4)] # Build all independent resistance expectations before launching the browser code. area = [12/8]*8 expected = [exact_req(area,p['rs'],p['rc'],p['cf'],p['fs']) for p in fixtures] browser = json.loads(subprocess.run(['node','-e',program], cwd=root, input=json.dumps(fixtures), capture_output=True, text=True, check=True).stdout) assert browser['validity'] == [False, False, True, False] assert 'sp2' not in browser['family']
rows = [] for p, req, result in zip(fixtures, expected, browser['rows'], strict=True): absolute, pu = result['absolute'], result['pu'] close(absolute['total'], req) close(pu['total']*p['rs'], req) close((pu['fsl']+pu['ssl_series'])*p['rs'], req) close(absolute['fet'], sum(p['rs']/a for a in area)/8) close(absolute['cap'], p['rc']/2) close(absolute['ind'], 0.0) close(absolute['ssl'], 1/(8*p['cf']*p['fs'])) assert pu['allocation']['areas']*2 == area assert pu['allocation']['total_area'] == 12 assert pu['D'] == 1 and pu['gate_duty'] == 0.5 rows.append({'inputs':p,'independent_req_ohm':req, 'shipped_req_ohm':absolute['total'],'shipped_req_pu':pu['total'], 'shipped_coefficients':pu['coefficients']}) close(rows[0]['shipped_req_ohm'], independent['matched']['req_ohm'], rel=2e-8)
example = browser['example'] example_row = example['rows'][0] ref = browser['reference'] close(example['gate_power'], 3.3*10e6*ref['qg']*360/ref['width_mm']) close(example_row['req'], exact_req(area, example['rs'], 0.02, 2e-6, 10e6)) assert example_row['capacitors'] == 2 and example_row['cf'] == 2e-6 assert example_row['poss'] is None and example_row['oss_r'] is None return {'equivalent_symmetric_fixtures':rows,'fixed_gain_validity':browser['validity'], 'catalog_in_current_2to1_recommendation':False, 'existing_technology_example_gate_w':example['gate_power'], 'existing_technology_example_coss_w':example_row['poss']}
if __name__ == '__main__': print(json.dumps(compare(), indent=2, allow_nan=False))123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212{ "fixture_inputs": { "rs_ohm": 0.09, "esr_ohm_per_cap": 0.02, "c_farad_per_cap": 1e-06, "input_v": 3.0, "stiff_output_v": 1.4, "area_budget_a0": 12.0, "matched_frequency_hz": 2000000.0, "asymmetric_frequency_hz": 1700000.0, "asymmetric_areas_a0": [ 3, 1, 1.5, 0.5, 2, 1, 2, 1 ] }, "dimension_checks": [ "time_constant", "normalized_rc_time", "charge", "port_current", "ssl_resistance", "esr_or_fet_energy", "rail_power", "series_loss", "gate_loss", "linear_coss_energy", "coss_loss", "per_unit_charge_scale", "efficiency" ], "nominal_open_circuit_gain": 0.5, "matched": { "req_ohm": 0.08768212563882566, "input_a": 0.5702416500023813, "output_a": 1.1404833000047625, "path_loss_w": 0.11404833000054758, "output_w": 1.5966766200066673, "input_w": 1.7107249500071438, "passive_efficiency": 0.9333333333333332, "fet_loss_w": 0.09775571142904078, "cap_esr_loss_w": 0.0162926185715068, "fet_loss_by_device_w": { "Q1": 0.012219463928629961, "Q2": 0.012219463928630235, "Q3": 0.012219463928629961, "Q4": 0.012219463928630235, "Q5": 0.012219463928629961, "Q6": 0.012219463928630235, "Q7": 0.012219463928629961, "Q8": 0.012219463928630235 }, "cap_esr_loss_by_branch_w": { "left": 0.0081463092857534, "right": 0.0081463092857534 }, "parallel_branch_resistances_ohm": [ 0.17536425127762573, 0.17536425127762573 ], "flying_charge_multipliers": [ 0.25, 0.25 ], "flying_voltage_swings_v": [ 0.1425604125005968, 0.1425604125005968 ], "maximum_charge_residual_relative": 1.2068818011473647e-14, "maximum_energy_residual_relative": 6.244452857663373e-13 }, "asymmetric": { "req_ohm": 0.10997591576184565, "input_a": 0.4546449979855201, "output_a": 0.9092899959710402, "path_loss_w": 0.0909289995972229, "output_w": 1.2730059943594563, "input_w": 1.3639349939565604, "passive_efficiency": 0.9333333333333332, "fet_loss_w": 0.07979301392170426, "cap_esr_loss_w": 0.011135985675518642, "fet_loss_by_device_w": { "Q1": 0.003943151393555308, "Q2": 0.008355828694567986, "Q3": 0.007886302787110616, "Q4": 0.01671165738913597, "Q5": 0.008478615835932795, "Q6": 0.012969420992734394, "Q7": 0.008478615835932795, "Q8": 0.012969420992734394 }, "cap_esr_loss_by_branch_w": { "left": 0.004485618416718647, "right": 0.006650367258799996 }, "parallel_branch_resistances_ohm": [ 0.24164769696996752, 0.2018308442565784 ], "flying_charge_multipliers": [ 0.22755423937579353, 0.2724457606242065 ], "flying_voltage_swings_v": [ 0.12171340788541762, 0.1457248262237143 ], "maximum_charge_residual_relative": 1.935538923344277e-14, "maximum_energy_residual_relative": 1.452797107141544e-12 }, "matched_fsl_ohm": 0.06999999999999999, "matched_ssl_ohm": 0.0625, "matched_charging_increment_ohm": 0.01768212563881287, "matched_closed_form_req_ohm": 0.08768212563881286, "regime_limits": { "FSL": { "frequency_hz": 200000000000.0, "req_over_limit": 1.0000000000265734, "shooting_frequency_hz": 2000000000.0, "shooting_req_over_limit": 1.0000002657304312 }, "SSL": { "frequency_hz": 100.0, "req_over_limit": 1.0, "shooting_frequency_hz": 30000.0, "shooting_req_over_limit": 0.999999999998439 } }, "rk4_convergence": [ { "steps_per_half": 16, "charge_error_relative": 8.74447830923053e-07, "i2_integral_error_relative": 2.6056587405509646e-06 }, { "steps_per_half": 32, "charge_error_relative": 5.216481291370201e-08, "i2_integral_error_relative": 1.5748520199032612e-07 }, { "steps_per_half": 64, "charge_error_relative": 3.185296360008749e-09, "i2_integral_error_relative": 9.677847634392833e-09 }, { "steps_per_half": 128, "charge_error_relative": 1.9677448559463073e-10, "i2_integral_error_relative": 5.997580210248543e-10 } ], "area_trial_count": 2880, "area_trials": [ { "esr_ohm": 0.0, "frequency_hz": 200000.0, "minimum_trial_req_over_equal": 1.0000000000725242 }, { "esr_ohm": 0.0, "frequency_hz": 2000000.0, "minimum_trial_req_over_equal": 1.0002967420871254 }, { "esr_ohm": 0.0, "frequency_hz": 30000000.0, "minimum_trial_req_over_equal": 1.0003420260954605 }, { "esr_ohm": 0.02, "frequency_hz": 200000.0, "minimum_trial_req_over_equal": 1.00000000124212 }, { "esr_ohm": 0.02, "frequency_hz": 2000000.0, "minimum_trial_req_over_equal": 1.0003153564959057 }, { "esr_ohm": 0.02, "frequency_hz": 30000000.0, "minimum_trial_req_over_equal": 1.0005043770572855 }, { "esr_ohm": 0.2, "frequency_hz": 200000.0, "minimum_trial_req_over_equal": 1.0000023873584192 }, { "esr_ohm": 0.2, "frequency_hz": 2000000.0, "minimum_trial_req_over_equal": 1.0003047639299456 }, { "esr_ohm": 0.2, "frequency_hz": 30000000.0, "minimum_trial_req_over_equal": 1.0001092322668244 } ], "illustrative_gate_subtotal": { "gate_drive_v": 2.5, "total_gate_charge_c": 9e-12, "power_w": 4.4999999999999996e-05, "efficiency_excluding_coss_and_other_unknowns": 0.9333087829839424, "coss_loss_w": null, "total_efficiency": null }}1234567891011121314151617181920212223242526272829303132333435363738394041424344# Comparison with the existing `sp2` model
**Disposition.** The approved eight-switch circuit is already represented by `sp2`, the 2:1 series-parallel SC analytical entry. Reuse that identity in any later approved integration. Creating a separate topology would duplicate the power graph and its loss model. This conclusion follows the [independent derivation](analytical_derivation.md) and [independent numerical verification](numerical_results.json).
## Circuit and state crosswalk
The reference SVG generator draws a four-switch stack in each branch. Each flying capacitor connects the two internal plate nodes. The midpoint of each stack connects to `Vout`, and the bridges over the flying-capacitor leads indicate no junction. Each branch alternates the capacitor between `(Vin, Vout)` and `(Vout, 0)`. `Cout` is common to both phases. The reference also shows an input bypass capacitor, which is outside the stiff-input loss calculation and absent from the approved Canvas power graph. The Canvas output load symbol and the browser model’s current input are different representations of the load boundary. [Approved pin map](../2to1_switching_capacitors_circuit_definition.md#power-connectivity-and-orientation), [SVG generator](../../../local-source/openpels-analysis/build_family_schematics.py#L46), [shipped reference SVG](../../../static/compare/assets/sp2.svg), [reference model assumptions](../../../local-source/openpels-analysis/README.md#L177)
| Function | Approved Canvas labels | `sp2` reference labels | A high | B high || --- | --- | --- | --- | --- || Left charge path | Q1, Q3 | S1, S3 | On | Off || Left discharge path | Q2, Q4 | S2, S4 | Off | On || Right charge path | Q5, Q7 | Q1, Q3 | Off | On || Right discharge path | Q6, Q8 | Q2, Q4 | On | Off |
The branch order, alternating gates, 50% timing and 180° phase shift agree. This establishes equivalence of the switched power connectivity and channel-resistor model. The shipped SVG is an illustration. It supplies no four-terminal model, body bias contract, realized gate driver, or device parasitics. Electrical equivalence at switching edges remains unverified. [Catalog](../../../static/compare/models-data.json#L116), [SVG clock labels](../../../local-source/openpels-analysis/build_family_schematics.py#L61)
## Executable model crosswalk
| Item | Independent result | Shipped `sp2` behavior || --- | --- | --- || Ideal gain and timing | `M = 0.5`, each device on for `T/2` | `valid` accepts only `M = 0.5` within tolerance. Internal `D = 2M = 1` is a family coordinate. `gate_duty = 0.5` is the physical duty. || Charge and sizes | One quarter of delivered charge per switch. Eight equal areas of `1.5 A0` at total area `12 A0` | `allocation` returns four sizes of `1.5 A0` for the representative phase, mirrored in the other phase. Catalog and drawing use eight devices. || FSL and SSL | `RFET = 2Rs/3`, `RCAP = Rc/2`, no windings, `RSSL = 1/(8 C fs)` | `evaluate` yields the same terms. Absolute `cf` is per capacitor. The technology example splits the total flying-capacitance input in two. || Finite RC | `Req = RSSL/tanh(RSSL/RFSL)` | The `sp2` branch of `chargingResistance` uses the same expression and implements the zero-scale limits. It reports `Req − RFSL` as `ssl_series` in the per-unit breakdown. || Per unit | `Req/Rs`, with `Rc/Rs` and `1/(C fs Rs)` as independent inputs | `analyzePU` uses the same resistance base and intrinsic coefficient vector `[2/3, 1/2, 0, 1/8]`. Its `Rl` input has no effect on this topology. || Supplemental losses | Gate loss needs drive and charge inputs. Coss needs independently supported, cycle-effective dissipated energy | The separate technology helper uses the same fixed-width gate convention at one charge event per cycle. Coss power is `null` without effective energy. Its `partial_loss` sums available terms only. |
[Gain, loss and allocation functions](../../../static/compare/engine.js#L8), [per-unit implementation](../../../static/compare/engine.js#L20), [technology helper](../../../static/compare/technology.js#L3), [catalog coefficients](../../../static/compare/models-data.json#L170)
Two bookkeeping differences matter when comparing outputs. First, the independent derivation can assign **exact** linear-RC dissipation to each MOSFET and ESR by integrating its current squared. `sp2` shows the symmetric FSL terms and a charging increment. These ledgers have the same total and different individual labels. Second, browser absolute `analyze` computes its displayed conduction-efficiency reference with `Pout = Vin·M·Iout` and reports droop separately. The independent energy check uses delivered `Pout = Vo·Iout`. Compare efficiency at the same delivered operating point and with the same auxiliary loss boundary. The separate technology helper computes drooped `vo` from `req`. [Absolute analysis](../../../static/compare/engine.js#L13), [technology loss return](../../../static/compare/technology.js#L7)
## Numerical comparison and remaining gaps
The independent RK4 calculation supplied the matched operating-point result first. The follow-up script recalculates that evidence and then executes the existing browser engine and technology helper with Node using local data. Three symmetric fixtures agree in ohms, per unit and coefficient vector. The matched fixture yields `87.6821256388 mΩ`. A zero-ESR, high-frequency fixture yields `60.0021701232 mΩ`, and a low-frequency fixture yields `1562.5 mΩ`. The shipped illustrative technology example gives `29.8188 mW` of gate drive and reports Coss as `null`. These are distinct from the independent gate fixture and carry no claim about the actual devices. The unequal-area verification applies to the derivation's extension to unequal path resistances. The existing `sp2` implementation intentionally models matched paths. [Independent Python](verify_phase_b.py), [comparison script](compare_sp2.py), [comparison results](sp2_comparison_results.json)
Reproduce from the repository root with its existing Python and Node runtimes:
```sh.venv/bin/python -B docs/topology/2to1_switching_capacitors/verify_phase_b.py.venv/bin/python -B docs/topology/2to1_switching_capacitors/compare_sp2.py```
The analytical catalog already contains `sp2`. Its ID is absent from the excitation list that supplies the 2:1 recommendation and the Gallery's ratio filter. It also has no Gallery preset mapping, editable starter or simulation preset. Any future Gallery or simulator work should preserve the existing model and reuse its identity, subject to the applicable approvals. The actual gate driver and effective Coss energy remain open. Phase B qualifies the passive analytical model in its stated domain. Circuit-level NGSpice, physical switching loss, and application integration require later review. [Family selection](../../../static/compare/recommend.js#L3), [Gallery presets and filters](../../../static/gallery.js#L4), [Gallery loader](../../../static/gallery.js#L107), [starter index](../../../static/starters/index.json), [preset index](../../../static/testbenches/index.json), [Minjie confirmations](../minjie_confirmation_list.md#phase-b-findings)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ "equivalent_symmetric_fixtures": [ { "inputs": { "rs": 0.09, "rc": 0.02, "rl": 0.321, "cf": 1e-06, "fs": 2000000.0 }, "independent_req_ohm": 0.08768212563881289, "shipped_req_ohm": 0.08768212563881285, "shipped_req_pu": 0.9742458404312542, "shipped_coefficients": [ 0.6666666666666666, 0.5, 0, 0.125 ] }, { "inputs": { "rs": 0.09, "rc": 0, "rl": 0.321, "cf": 1e-06, "fs": 200000000.0 }, "independent_req_ohm": 0.06000217012319071, "shipped_req_ohm": 0.06000217012319071, "shipped_req_pu": 0.6666907791465635, "shipped_coefficients": [ 0.6666666666666666, 0.5, 0, 0.125 ] }, { "inputs": { "rs": 0.005, "rc": 0.003, "rl": 0.321, "cf": 4e-06, "fs": 20000.0 }, "independent_req_ohm": 1.5625, "shipped_req_ohm": 1.5625, "shipped_req_pu": 312.5, "shipped_coefficients": [ 0.6666666666666666, 0.5, 0, 0.125 ] } ], "fixed_gain_validity": [ false, false, true, false ], "catalog_in_current_2to1_recommendation": false, "existing_technology_example_gate_w": 0.0298188, "existing_technology_example_coss_w": null}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249#!/usr/bin/env python3"""Verify the approved circuit using its two RC paths, with no OpenPELS model imports."""
import jsonimport mathimport random
# Zero-based Q labels in the approved left and right charge/discharge paths.PATHS = (((0, 2), (1, 3)), ((4, 6), (5, 7)))
def resistances(areas, rs, esr): ron = [rs / area for area in areas] return ron, [(ron[c0] + ron[c1] + esr, ron[d0] + ron[d1] + esr) for (c0, c1), (d0, d1) in PATHS]
def closed_branch(upper, lower, capacitance, half, rc, rd): x, y = half / (rc * capacitance), half / (rd * capacitance) a, b = -math.expm1(-x), -math.expm1(-y) denominator = -math.expm1(-x - y) gap = upper - lower charge_headroom = gap * b / denominator discharge_headroom = gap * a / denominator q = capacitance * charge_headroom * a jc = capacitance * charge_headroom**2 * (-math.expm1(-2*x)) / (2*rc) jd = capacitance * discharge_headroom**2 * (-math.expm1(-2*y)) / (2*rd) return upper - charge_headroom, lower + discharge_headroom, q, jc, jd
def advance(v, target, cap, resistance, half, steps): """Integrate voltage, signed Coulombs and A²·s by RK4 over one state.""" dt = half / steps charge = square_current = 0.0 for _ in range(steps): i1 = (target-v) / resistance i2 = (target-v-dt*i1/(2*cap)) / resistance i3 = (target-v-dt*i2/(2*cap)) / resistance i4 = (target-v-dt*i3/cap) / resistance dq = dt * (i1+2*i2+2*i3+i4) / 6 v += dq / cap charge += dq square_current += dt * (i1**2+2*i2**2+2*i3**2+i4**2) / 6 return v, charge, square_current
def shoot_branch(upper, lower, cap, half, rc, rd, steps): """Find the periodic start from the numerically integrated cycle map.""" def cycle(start): up = advance(start, upper, cap, rc, half, steps) down = advance(up[0], lower, cap, rd, half, steps) return up, down
# The ODE is linear. Two numerically integrated endpoints determine its map. end_lo = cycle(lower)[1][0] end_hi = cycle(upper)[1][0] slope = (end_hi-end_lo) / (upper-lower) start = lower + (end_lo-lower) / (1-slope) up, down = cycle(start) return start, up[0], down[0], up[1], down[1], up[2], down[2]
def close(value, expected, *, rel=1e-10, absolute=1e-16): if not math.isclose(value, expected, rel_tol=rel, abs_tol=absolute): raise AssertionError(f'{value:.16g} != {expected:.16g}')
def account(areas, rs, esr, cap, fs, vin, vout, steps=768): ron, paths = resistances(areas, rs, esr) upper, lower = vin-vout, vout half = 0.5/fs cap_charge, cap_swing, cap_power = [], [], [] fet_power = [0.0] * len(ron) q_errors, energy_errors = [], [] for (charge_pair, discharge_pair), (rc, rd) in zip(PATHS, paths, strict=True): start, peak, end, qc, qd, jc, jd = shoot_branch(upper, lower, cap, half, rc, rd, steps) v0, v1, q, exact_jc, exact_jd = closed_branch(upper, lower, cap, half, rc, rd) for actual, expected in ((start,v0),(peak,v1),(end,start),(qc,q),(qd,-q), (jc,exact_jc),(jd,exact_jd)): close(actual, expected, rel=2e-8, absolute=1e-20) if not lower < start < peak < upper or not qc > 0 > qd: raise AssertionError('Unexpected capacitor states or current signs') branch_energy = rc*jc+rd*jd close(branch_energy, (upper-lower)*qc, rel=2e-8, absolute=1e-20) q_errors.append(abs(qc+qd)/qc) energy_errors.append(abs(branch_energy-(upper-lower)*qc)/branch_energy) cap_charge.append(qc) cap_swing.append(peak-start) for pair, integral in ((charge_pair, jc), (discharge_pair, jd)): for i in pair: fet_power[i] = ron[i] * integral * fs cap_power.append(esr * (jc+jd) * fs) iin = fs*sum(cap_charge) iout = 2*iin req = (vin/2-vout)/iout k = 1/(4*cap*fs) branch_resistances = [(1/math.tanh(k/rc)+1/math.tanh(k/rd))/(8*cap*fs) for rc,rd in paths] close(req, 1/sum(1/r for r in branch_resistances), rel=2e-8) output = vout*iout input_power = vin*iin loss = sum(fet_power)+sum(cap_power) close(input_power-output, loss, rel=2e-8) close(loss, iout**2*req, rel=2e-8) qout = iout/fs return { 'req_ohm': req, 'input_a': iin, 'output_a': iout, 'path_loss_w': loss, 'output_w': output, 'input_w': input_power, 'passive_efficiency': output/input_power, 'fet_loss_w': sum(fet_power), 'cap_esr_loss_w': sum(cap_power), 'fet_loss_by_device_w': dict(zip((f'Q{i+1}' for i in range(8)), fet_power, strict=True)), 'cap_esr_loss_by_branch_w': dict(zip(('left','right'), cap_power, strict=True)), 'parallel_branch_resistances_ohm': branch_resistances, 'flying_charge_multipliers': [q/qout for q in cap_charge], 'flying_voltage_swings_v': cap_swing, 'maximum_charge_residual_relative': max(q_errors), 'maximum_energy_residual_relative': max(energy_errors), }
def exact_req(areas, rs, esr, cap, fs): _, paths = resistances(areas, rs, esr) q = sum(closed_branch(2.0, 1.0, cap, 0.5/fs, rc, rd)[2] for rc, rd in paths) # The fixture rail gap U−L is 1 V, so output droop is 0.5 V. return 0.5 / (2*fs*q)
def check_dimensions(): """Check products of physical units as powers of volt, ampere and second.""" v, i, t = (1,0,0), (0,1,0), (0,0,1) zero = (0,0,0)
def product(*terms): return tuple(map(sum, zip(*terms, strict=True)))
def power(term, exponent): return tuple(exponent*x for x in term)
ohm, hz, coulomb = (1,-1,0), (0,0,-1), (0,1,1) farad, joule, watt = (-1,1,1), (1,1,1), (1,1,0) current_square_integral = product(power(i,2),t) ledger = { 'time_constant': (product(ohm,farad),t), 'normalized_rc_time': (product(t,power(product(ohm,farad),-1)),zero), 'charge': (product(farad,v),coulomb), 'port_current': (product(coulomb,hz),i), 'ssl_resistance': (power(product(farad,hz),-1),ohm), 'esr_or_fet_energy': (product(ohm,current_square_integral),joule), 'rail_power': (product(v,i),watt), 'series_loss': (product(power(i,2),ohm),watt), 'gate_loss': (product(hz,v,coulomb),watt), 'linear_coss_energy': (product(farad,power(v,2)),joule), 'coss_loss': (product(hz,joule),watt), 'per_unit_charge_scale': (product(farad,hz,ohm),zero), 'efficiency': (product(watt,power(watt,-1)),zero), } for name, (actual, expected) in ledger.items(): if actual != expected: raise AssertionError(name) return list(ledger)
def verify(): rs, esr, cap = 0.09, 0.02, 1e-6 vin, vout, budget = 3.0, 1.4, 12.0 equal = [budget/8] * 8 matched = account(equal, rs, esr, cap, 2e6, vin, vout) unequal = account([3,1,1.5,0.5,2,1,2,1], rs, esr, cap, 1.7e6, vin, vout) rfet = sum(rs/a for a in equal)/8 rcap = esr/2 rfsl = rfet+rcap rssl = 1/(8*cap*2e6) matched_req = rssl/math.tanh(rssl/rfsl) close(matched['req_ohm'], matched_req, rel=2e-8) for q in matched['flying_charge_multipliers']: close(q, 0.25) current_squared = matched['output_a']**2 close(matched['path_loss_w'], current_squared*(rfet+rcap+(matched_req-rfsl)), rel=2e-8) close(matched['fet_loss_w']/matched['cap_esr_loss_w'], rfet/rcap)
limits = {} for name, fs, limit in [('FSL', 2e11, rfsl), ('SSL', 100.0, 1/(8*cap*100.0))]: req = exact_req(equal, rs, esr, cap, fs) close(req/limit, 1.0, rel=1e-9) limits[name] = {'frequency_hz':fs, 'req_over_limit':req/limit} # Check the approaches to both asymptotes with shooting at resolvable time scales. for name, fs, limit in [('FSL', 2e9, rfsl), ('SSL', 3e4, 1/(8*cap*3e4))]: numerical = account(equal, rs, esr, cap, fs, vin, vout, steps=4096) ratio = numerical['req_ohm']/limit close(ratio, 1.0, rel=1e-6) limits[name].update(shooting_frequency_hz=fs, shooting_req_over_limit=ratio) no_load = advance(vin/2, vin/2, cap, .14, 0.25e-6, 128) assert no_load == (vin/2, 0.0, 0.0) convergence = [] for steps in (16, 32, 64, 128): _, _, _, q, _, jc, _ = shoot_branch(upper=vin-vout, lower=vout, cap=cap, half=0.25e-6, rc=.14, rd=.14, steps=steps) _, _, exact_q, exact_jc, _ = closed_branch(vin-vout, vout, cap, 0.25e-6, .14, .14) convergence.append({'steps_per_half':steps, 'charge_error_relative':abs(q/exact_q-1), 'i2_integral_error_relative':abs(jc/exact_jc-1)}) for previous, current in zip(convergence, convergence[1:]): for key in ('charge_error_relative','i2_integral_error_relative'): if not current[key] < previous[key]/12: raise AssertionError('RK4 refinement did not approach fourth-order convergence')
generator = random.Random(271828) area_checks = [] for esr_value in (0.0, 0.02, 0.2): for fs in (0.2e6, 2e6, 30e6): reference = exact_req(equal, rs, esr_value, cap, fs) minimum_ratio = math.inf for index in range(320): spread = 2.0 if index < 160 else 0.1 weights = [math.exp(generator.uniform(-spread,spread)) for _ in equal] areas = [budget*weight/sum(weights) for weight in weights] close(sum(areas), budget) minimum_ratio = min(minimum_ratio, exact_req(areas, rs, esr_value, cap, fs)/reference) if minimum_ratio < 1-1e-12: raise AssertionError('An unequal area allocation improved the symmetric solution') area_checks.append({'esr_ohm':esr_value,'frequency_hz':fs, 'minimum_trial_req_over_equal':minimum_ratio}) if unequal['req_ohm'] <= exact_req(equal, rs, esr, cap, 1.7e6): raise AssertionError('Independent shooting result contradicted the area optimum')
# Independent illustrative gate parameters, unrelated to the Canvas project. gate_v, gate_charge = 2.5, [9e-12/8]*8 pg = gate_v*2e6*sum(gate_charge) close(pg, 45e-6) efficiency_subtotal = matched['output_w']/(matched['input_w']+pg) return { 'fixture_inputs': {'rs_ohm':rs,'esr_ohm_per_cap':esr,'c_farad_per_cap':cap, 'input_v':vin,'stiff_output_v':vout,'area_budget_a0':budget, 'matched_frequency_hz':2e6,'asymmetric_frequency_hz':1.7e6, 'asymmetric_areas_a0':[3,1,1.5,0.5,2,1,2,1]}, 'dimension_checks':check_dimensions(), 'nominal_open_circuit_gain': (vin/2)/vin, 'matched':matched,'asymmetric':unequal, 'matched_fsl_ohm':rfsl,'matched_ssl_ohm':rssl,'matched_charging_increment_ohm':matched_req-rfsl, 'matched_closed_form_req_ohm':matched_req, 'regime_limits':limits,'rk4_convergence':convergence, 'area_trial_count':320*len(area_checks),'area_trials':area_checks, 'illustrative_gate_subtotal':{'gate_drive_v':gate_v,'total_gate_charge_c':sum(gate_charge), 'power_w':pg,'efficiency_excluding_coss_and_other_unknowns':efficiency_subtotal, 'coss_loss_w':None,'total_efficiency':None}, }
if __name__ == '__main__': print(json.dumps(verify(), indent=2, allow_nan=False))6 unmodified lines7896 unmodified lines| Admit an uncoupled switched-capacitor entry to the 2:1 Gallery and Analysis workflow | The Gallery admits the coupled-inductor families enumerated by `excitation` and labels its cards as coupled magnetics. `sp2` has a distinct 2:1 model but is outside Gallery admission. This Canvas circuit has no winding. Its approved graph and coefficients must be established independently before deciding how this entry fits. [family membership](../../static/compare/recommend.js#L3), [Gallery labeling](../../static/gallery.js#L71), [current inventory](topology_inventory.md) | Verify the graph and derive and validate the candidate model outside the existing application. Preserve `sp2` and all existing models. || Enable integrated simulation for this 2:1 entry | The Gallery capability label, workbench eligibility, simulator frame and return handoff explicitly assume 4:1. A preset ID alone cannot lift that restriction. [Gallery badge](../../static/gallery.js#L74), [workbench gate](../../static/pe.js#L61), [return handoff](../../static/simulator.js#L40), [frame guard](../../simulator_bridge.js#L129) | Prepare the validated standalone testbench, evidence and proposed registration assets. Leave the 4:1 restriction in place pending approval. || Approve any required preset or shared measurement changes for a winding-free converter | The existing engine assumes two winding-current probes, winding storage and an inferred open-loop duty based on `Vin/2`. The source `IOUT` is a current sink, while standard presets derive a resistive load from targets. A fixed two-state capacitor converter may need a different preset contract. The approval scope should be set after independent qualification. [duty inference](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1072), [metric processing](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1282), [load setting](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1439) | Validate gate, load, power and energy measurement choices in a standalone bench. Identify only the incompatible shared behaviors and required probe semantics for review. |6 unmodified lines7891011121314151617186 unmodified lines| Admit an uncoupled switched-capacitor entry to the 2:1 Gallery and Analysis workflow | The Gallery admits the coupled-inductor families enumerated by `excitation` and labels its cards as coupled magnetics. `sp2` has a distinct 2:1 model but is outside Gallery admission. This Canvas circuit has no winding. Its approved graph and coefficients must be established independently before deciding how this entry fits. [family membership](../../static/compare/recommend.js#L3), [Gallery labeling](../../static/gallery.js#L71), [current inventory](topology_inventory.md) | Verify the graph and derive and validate the candidate model outside the existing application. Preserve `sp2` and all existing models. || Enable integrated simulation for this 2:1 entry | The Gallery capability label, workbench eligibility, simulator frame and return handoff explicitly assume 4:1. A preset ID alone cannot lift that restriction. [Gallery badge](../../static/gallery.js#L74), [workbench gate](../../static/pe.js#L61), [return handoff](../../static/simulator.js#L40), [frame guard](../../simulator_bridge.js#L129) | Prepare the validated standalone testbench, evidence and proposed registration assets. Leave the 4:1 restriction in place pending approval. || Approve any required preset or shared measurement changes for a winding-free converter | The existing engine assumes two winding-current probes, winding storage and an inferred open-loop duty based on `Vin/2`. The source `IOUT` is a current sink, while standard presets derive a resistive load from targets. A fixed two-state capacitor converter may need a different preset contract. The approval scope should be set after independent qualification. [duty inference](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1072), [metric processing](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1282), [load setting](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1439) | Validate gate, load, power and energy measurement choices in a standalone bench. Identify only the incompatible shared behaviors and required probe semantics for review. |## Phase B findingsThe [independent comparison](2to1_switching_capacitors/sp2_comparison.md) establishes that the approved circuit maps to the existing `sp2` analytical identity. The Phase A entries above retain their approval boundaries.| Decision for Minjie | Existing boundary | Work that can proceed after the appropriate user phase approval || --- | --- | --- || Reuse `sp2` if admitting this circuit to the 2:1 Gallery and its linked workflows is approved | The analytical model already represents this circuit. The winding-excitation list used for ratio eligibility omits `sp2`, and the Gallery has no preset mapping for it. [Catalog](../../static/compare/models-data.json#L116), [family selection](../../static/compare/recommend.js#L3), [Gallery loader](../../static/gallery.js#L107) | Prepare registration material against the existing `sp2` identity. Preserve the current model and avoid a duplicate topology. || Approve any later change to the shipped loss or operating-point display contracts if a proposed workflow needs one | The absolute analysis reports a nominal-voltage efficiency reference and separate droop. The technology example exposes optional effective Coss energy and a partial loss total. The validated physical comparison uses delivered output voltage and explicitly tracks missing auxiliary losses. [Absolute analysis](../../static/compare/engine.js#L13), [technology helper](../../static/compare/technology.js#L7) | Report delivered-point results and unresolved losses in the qualification evidence. Retain the current display and technology behavior pending approval for any proposed change. |
docs/topology/2to1_switching_capacitors/analytical_derivation.mdAdded+146
docs/topology/2to1_switching_capacitors/compare_sp2.pyAdded+79
docs/topology/2to1_switching_capacitors/numerical_results.jsonAdded+212
docs/topology/2to1_switching_capacitors/sp2_comparison.mdAdded+44
docs/topology/2to1_switching_capacitors/sp2_comparison_results.jsonAdded+67
docs/topology/2to1_switching_capacitors/verify_phase_b.pyAdded+249
docs/topology/minjie_confirmation_list.md+9