Elvis0001 commited on
Commit
e8ab011
·
1 Parent(s): 7afca52

Release the qualified right-hand Buck_Stacked workflow

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. Dockerfile +1 -0
  2. README.md +5 -0
  3. buck_stacked/NOTICE.md +5 -0
  4. buck_stacked/__init__.py +0 -0
  5. buck_stacked/preset.py +278 -0
  6. buck_stacked/preset_contract.json +163 -0
  7. buck_stacked/stacked-buck.cir +78 -0
  8. docs/topology/2to1_buck_stacked/README.md +63 -0
  9. docs/topology/2to1_buck_stacked/analytical_model.md +34 -0
  10. docs/topology/2to1_buck_stacked/approval.md +9 -0
  11. docs/topology/2to1_buck_stacked/build_starter.mjs +78 -0
  12. docs/topology/2to1_buck_stacked/circuit_definition.md +83 -0
  13. docs/topology/2to1_buck_stacked/evidence/SHA256SUMS +19 -0
  14. docs/topology/2to1_buck_stacked/evidence/baseline-2to1-quality.json +111 -0
  15. docs/topology/2to1_buck_stacked/evidence/browser.json +242 -0
  16. docs/topology/2to1_buck_stacked/evidence/cache.json +61 -0
  17. docs/topology/2to1_buck_stacked/evidence/coss-browser.json +979 -0
  18. docs/topology/2to1_buck_stacked/evidence/coss-cache.json +62 -0
  19. docs/topology/2to1_buck_stacked/evidence/coss-regressions.json +290 -0
  20. docs/topology/2to1_buck_stacked/evidence/coss-sweeps.json +274 -0
  21. docs/topology/2to1_buck_stacked/evidence/coss-workflow.json +243 -0
  22. docs/topology/2to1_buck_stacked/evidence/coss-workspace.json +22 -0
  23. docs/topology/2to1_buck_stacked/evidence/duty-comparison.svg +2392 -0
  24. docs/topology/2to1_buck_stacked/evidence/event-comparison.svg +1997 -0
  25. docs/topology/2to1_buck_stacked/evidence/executed-decks.zip +3 -0
  26. docs/topology/2to1_buck_stacked/evidence/matched-results.json +1019 -0
  27. docs/topology/2to1_buck_stacked/evidence/sweeps.json +274 -0
  28. docs/topology/2to1_buck_stacked/evidence/workspace.json +22 -0
  29. docs/topology/2to1_buck_stacked/numerical.py +65 -0
  30. docs/topology/2to1_buck_stacked/package_source.py +83 -0
  31. docs/topology/2to1_buck_stacked/parity.md +114 -0
  32. docs/topology/2to1_buck_stacked/qualification.md +47 -0
  33. docs/topology/2to1_buck_stacked/review/README.md +94 -0
  34. docs/topology/2to1_buck_stacked/review/SHA256SUMS +3 -0
  35. docs/topology/2to1_buck_stacked/review/build_review_figures.py +204 -0
  36. docs/topology/2to1_buck_stacked/review/original-right.svg +2 -0
  37. docs/topology/2to1_buck_stacked/review/switching-states.svg +0 -0
  38. docs/topology/2to1_buck_stacked/review/timing.svg +2 -0
  39. docs/topology/2to1_buck_stacked/source/README.md +14 -0
  40. docs/topology/2to1_buck_stacked/source/SHA256SUMS +4 -0
  41. docs/topology/2to1_buck_stacked/source/buck-stacked-right.structural.sp +25 -0
  42. docs/topology/2to1_buck_stacked/validate.py +150 -0
  43. docs/topology/2to1_buck_stacked/verify_browser.mjs +209 -0
  44. docs/topology/2to1_buck_stacked/verify_coss_browser.mjs +147 -0
  45. docs/topology/2to1_buck_stacked/verify_sizing.cjs +48 -0
  46. docs/topology/2to1_buck_stacked/verify_sweeps.mjs +72 -0
  47. docs/topology/2to1_buck_stacked/verify_workspace.mjs +51 -0
  48. docs/topology/2to1_cross_validation/circuit.py +8 -6
  49. docs/topology/2to1_resonant/verify_browser.mjs +4 -2
  50. docs/topology/2to1_switched_inductor/verify_browser.mjs +2 -2
Dockerfile CHANGED
@@ -14,6 +14,7 @@ COPY --chown=appuser simulator ./simulator
14
  COPY --chown=appuser sp2 ./sp2
15
  COPY --chown=appuser rsc2 ./rsc2
16
  COPY --chown=appuser si2 ./si2
 
17
  COPY --chown=appuser operating_conditions.py server.py simulator_service.py simulator_frame.py simulator_bridge.js simulator-source.json ./
18
  USER appuser
19
  EXPOSE 7860
 
14
  COPY --chown=appuser sp2 ./sp2
15
  COPY --chown=appuser rsc2 ./rsc2
16
  COPY --chown=appuser si2 ./si2
17
+ COPY --chown=appuser buck_stacked ./buck_stacked
18
  COPY --chown=appuser operating_conditions.py server.py simulator_service.py simulator_frame.py simulator_bridge.js simulator-source.json ./
19
  USER appuser
20
  EXPOSE 7860
README.md CHANGED
@@ -95,6 +95,11 @@ includes eight switching drawings. The NGSpice preset exposes continuous
95
  voltage and duty modes, inverse coupling, parasitics, waveforms and custom sweeps.
96
  [Derivation and local validation](docs/topology/2to1_switched_inductor/README.md) · [Operating Conditions Interface](docs/topology/operating_conditions.md)
97
 
 
 
 
 
 
98
  ## Rebuild the frontend
99
 
100
  The release contains the built UI in `static/`. The source archive includes the
 
95
  voltage and duty modes, inverse coupling, parasitics, waveforms and custom sweeps.
96
  [Derivation and local validation](docs/topology/2to1_switched_inductor/README.md) · [Operating Conditions Interface](docs/topology/operating_conditions.md)
97
 
98
+ For **2:1 Buck_Stacked**, the Gallery opens the eight-switch design, editable
99
+ right-hand starter, and ideal positive-current CCM Simulator. Analysis and
100
+ Simulator support duty and loaded-output commands. A blank Coss value reports
101
+ a subtotal with the unknown loss excluded. [Qualification and release scope](docs/topology/2to1_buck_stacked/qualification.md)
102
+
103
  ## Rebuild the frontend
104
 
105
  The release contains the built UI in `static/`. The source archive includes the
buck_stacked/NOTICE.md ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # Buck_Stacked schematic notice
2
+
3
+ The right-hand Buck_Stacked schematic was authored by Fangyu Mao in Analog Canvas. The author authorized public redistribution and adaptation of that schematic and its derivatives under the GNU Affero General Public License, version 3 only. This release covers the right-hand circuit of cloud revision 21, `dut` revision 266, structure revision 59.
4
+
5
+ The source package includes the right-hand Gallery drawings and the editable starter derived from the reviewed circuit. The starter retains external SKY130 interface references. The executable NGSpice qualification deck uses ideal channel elements.
buck_stacked/__init__.py ADDED
File without changes
buck_stacked/preset.py ADDED
@@ -0,0 +1,278 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """NGSpice preset for the approved equal-sharing eight-channel stacked buck."""
2
+ from dataclasses import asdict, dataclass
3
+ import json
4
+ from pathlib import Path
5
+ import subprocess
6
+ import time
7
+
8
+ import numpy as np
9
+
10
+ from operating_conditions import add_measurement, request_contract, resolve
11
+ from rsc2.preset import execute_deck, interval
12
+ from si2.preset import current_profile, estimate, timing
13
+ from sp2.sp2_preset import SweepRejection, validate_preset, write_sweep
14
+
15
+ HERE = Path(__file__).resolve().parent
16
+ TRACE = ('time_s,vin_v,vout_v,input_current_a,sw_a_v,sw_b_v,vgs_q1_v,vgs_q2_v,vgs_q3_v,vgs_q4_v,'
17
+ 'il_a_a,il_b_a,vl_a_v,vl_b_v,iq1_a,iq2_a,iq3_a,iq4_a,vcap_v,'
18
+ 'vds_m13_v,vds_m15_v,vds_m11_v,vds_m9_v,vds_m14_v,vds_m16_v,vds_m12_v,vds_m10_v,'
19
+ 'gate_fixture_power_w,coss_discharge_fixture_power_w')
20
+ EXTRA = 'icap_a,output_current_a,input_power_w,delivered_power_w,winding_sum_a,winding_delta_a'
21
+
22
+
23
+ def contract():
24
+ return json.loads((HERE/'preset_contract.json').read_text())
25
+
26
+
27
+ @dataclass(frozen=True)
28
+ class Case:
29
+ name: str
30
+ vin: float
31
+ load: float
32
+ fs: float
33
+ duty: float
34
+ winding: float
35
+ coupling: float
36
+ dcr: float
37
+ high: float # stack sum, for common LC timing estimate
38
+ low: float
39
+ esr: float
40
+ cout: float
41
+ coss: float | None
42
+ gate_cap: float
43
+ stop: float | None
44
+ step: float | None
45
+ operating_point: dict
46
+
47
+ @property
48
+ def period(self):
49
+ return 1/self.fs
50
+
51
+ @property
52
+ def ideal(self):
53
+ return self.duty*self.vin
54
+
55
+ @property
56
+ def loaded(self):
57
+ return self.operating_point['derived']['analytical_output_voltage_v']
58
+
59
+
60
+ def build_case(name, s):
61
+ vin, load, fs = s['input_voltage_v'], s['output_current_a'], s['switching_frequency_mhz']*1e6
62
+ winding, coupling = s['inductance_nh']*1e-9, s['coupling']
63
+ high = s['switch_ron_mohm']*2e-3
64
+ low = high if s['low_ron_mohm'] is None else s['low_ron_mohm']*2e-3
65
+ dcr = s['dcr_mohm']*1e-3
66
+ inputs = dict(input_voltage_v=vin,load=dict(kind='current',value=load),switching_frequency_hz=fs)
67
+ if 'target_output_v' in s:
68
+ inputs.update(mode='output_voltage',target_output_v=s['target_output_v'])
69
+ else:
70
+ inputs.update(mode='duty_cycle',duty=s['duty'])
71
+
72
+ def screen(duty):
73
+ _, _, valley = current_profile(duty,vin,load,fs,winding,coupling)
74
+ return ('positive_current_ccm', []) if valley > 0 else (
75
+ 'outside_positive_current_ccm', ['Predicted winding current crosses zero. Increase load, L or frequency.'])
76
+
77
+ point = resolve('buck_stacked',inputs,balance=dict(input_voltage_v=vin,winding_drop_v=load*dcr/2,
78
+ high_drop_v=load*high/2,low_drop_v=load*low/2),screen=screen)
79
+ if not point['solver']['valid']:
80
+ raise ValueError(' '.join(point['solver']['diagnostics']))
81
+ coss = None if s['switch_coff_pf'] is None else s['switch_coff_pf']*1e-12
82
+ return Case(name,vin,load,fs,point['derived']['applied_duty'],winding,coupling,dcr,high,low,
83
+ s['output_esr_mohm']*1e-3,s['output_cap_uf']*1e-6,coss,
84
+ s['gate_cap_pf']*1e-12,s['stop_us'],s['max_step_ps'],point)
85
+
86
+
87
+ def validate(payload):
88
+ mode, numeric, spec = request_contract('buck_stacked',payload,contract())
89
+ settings, main, axis, cases = validate_preset(numeric,spec,build_case,estimate,
90
+ 'stacked buck',retain_infeasible=True)
91
+ return {**settings,'voltage_mode':mode},main,axis,cases
92
+
93
+
94
+ def deck_source(c, cycles, step, *, cold=False):
95
+ ia, ib, _ = current_profile(c.duty,c.vin,c.load,c.fs,c.winding,c.coupling)
96
+ values = dict(VIN=c.vin, ILOAD=c.load, FS=c.fs, DUTY=c.duty, LW=c.winding, KCOUP=c.coupling,
97
+ RDCR=c.dcr, RH=c.high/2, RL=c.low/2, CESR=c.esr, CO=c.cout,
98
+ IA0=0 if cold else ia, IB0=0 if cold else ib, VC0=0 if cold else c.loaded,
99
+ CG=max(c.gate_cap, 1e-24))
100
+ if c.coss is not None:
101
+ values['CX'] = max(c.coss, 1e-24)
102
+ lines = (HERE/'stacked-buck.cir').read_text().splitlines()
103
+ lines[1] = '.param '+' '.join(f'{key}={value:.15g}' for key,value in values.items())
104
+ tran = next(i for i,line in enumerate(lines) if line.startswith('.tran'))
105
+ lines[tran] = f'.tran {step:.15g} {cycles*c.period:.15g} {(cycles-11)*c.period:.15g} {step:.15g} uic'
106
+ if c.coss is None:
107
+ first = next(i for i,line in enumerate(lines) if line.startswith('Voss_supply '))
108
+ lines[first:tran] = ['* Coss unspecified. Coss fixture and event loss excluded.']
109
+ lines = [line.removesuffix(' coss_w') for line in lines if not line.startswith('let coss_w=')]
110
+ return '\n'.join(lines)+'\n'
111
+
112
+
113
+ def measure(data, c):
114
+ t, vin, vout, iin, swa, swb, ga, ga_bar, gb, gb_bar, ia, ib, va, vb = data[:,:14].T
115
+ branches = data[:,14:18]
116
+ vc, stress, gate_power = data[:,18], data[:,19:27], data[:,27]
117
+ duration = t[-1]-t[0]
118
+
119
+ def average(x):
120
+ return np.trapezoid(x,t,axis=0)/duration
121
+
122
+ ic = (vout-vc)/c.esr
123
+ input_w, delivered = average(vin*iin), c.load*average(vout)
124
+ switch_w = average(np.repeat(branches,2,axis=1)*stress)
125
+ dcr_w = c.dcr*average(np.stack((ia**2,ib**2),axis=1))
126
+ esr_w = c.esr*average(ic**2)
127
+ stored = (c.winding*(ia**2+ib**2-2*c.coupling*ia*ib)+c.cout*vc**2)/2
128
+ storage_w = (stored[-1]-stored[0])/duration
129
+ electrical_loss = input_w-delivered
130
+ gate_w = float(average(gate_power)) if c.gate_cap else 0.
131
+ coss_w = None if c.coss is None else float(average(data[:,28])) if c.coss else 0.
132
+ known_coss = coss_w if coss_w is not None else 0.
133
+ modeled_input = input_w + known_coss
134
+ stage = electrical_loss + known_coss
135
+ vdrive = c.vin/2
136
+ # Use plateau probes while timing voltages are at their full logic levels.
137
+ plateau = (np.minimum(ga,ga_bar)<vdrive*.01)&(np.minimum(gb,gb_bar)<vdrive*.01)
138
+ peak = np.max(np.abs(stress[plateau]),axis=0)
139
+ return dict(vout_v=float(average(vout)),iout_a=c.load,iin_a=float(average(iin)),input_w=float(modeled_input),
140
+ electrical_input_w=float(input_w),delivered_w=float(delivered),stage_w=float(stage),
141
+ supplemental_gate_w=gate_w,coss_w=coss_w,gate_drive_v=vdrive,
142
+ stage_efficiency=float(delivered/modeled_input),
143
+ efficiency_with_gate=float(delivered/(modeled_input+gate_w)),
144
+ efficiency_includes_coss=coss_w is not None,
145
+ switch_w=switch_w.tolist(),esr_w=[float(esr_w)],dcr_w=dcr_w.tolist(),storage_w=float(storage_w),
146
+ balance_w=float(electrical_loss-sum(switch_w)-sum(dcr_w)-esr_w-storage_w),
147
+ resistance_power_ohm=float(stage/c.load**2),
148
+ resistance_droop_ohm=float((c.ideal-average(vout))/c.load),
149
+ ripple_vpp=float(np.ptp(vout)),duty=c.duty,
150
+ measured_duty=[float(average(g)/vdrive) for g in (ga,gb)],
151
+ winding_average_a=[float(average(i)) for i in (ia,ib)],
152
+ winding_rms_a=[float(np.sqrt(average(i**2))) for i in (ia,ib)],
153
+ winding_voltage_peak_v=[float(np.max(np.abs(v))) for v in (va,vb)],
154
+ winding_min_a=[float(np.min(i)) for i in (ia,ib)],
155
+ winding_ripple_a=[float(np.ptp(i)) for i in (ia,ib)],
156
+ winding_sum_ripple_a=float(np.ptp(ia+ib)),winding_delta_ripple_a=float(np.ptp(ia-ib)),
157
+ winding_voltage_mean_v=[float(average(v)) for v in (va,vb)],
158
+ switch_peak_v=peak.tolist(),output_cap_rms_a=float(np.sqrt(average(ic**2))),
159
+ output_cap_average_a=float(average(ic)),
160
+ gate_overlap_fraction=[float(average((g>vdrive/2)&(other>vdrive/2)))
161
+ for g,other in ((ga,ga_bar),(gb,gb_bar))])
162
+
163
+
164
+ def single_trace(case,directory,name,cycles,step,cold=False):
165
+ trace, checksum = execute_deck(directory,deck_source(case,cycles,step,cold=cold),name,
166
+ columns=28 if case.coss is None else 29)
167
+ if trace[-1,0] < cycles*case.period*(1-1e-7):
168
+ raise ValueError('NGSpice stopped before the measurement window.')
169
+ stop = (cycles-1.173205)*case.period
170
+ data = interval(trace,stop-4*case.period,stop)
171
+ measured = measure(data,case)
172
+ previous = measure(interval(trace,stop-8*case.period,stop-4*case.period),case)
173
+ measured['window_drift_v'] = abs(measured['vout_v']-previous['vout_v'])
174
+ measured['window_drift_w'] = abs(measured['stage_w']-previous['stage_w'])
175
+ return measured,data,checksum
176
+
177
+
178
+ def run_case(case,directory,*,cold=False):
179
+ cycles, step = timing(case)
180
+ coarse,_,_ = single_trace(case,directory,case.name+'-coarse',cycles,step,cold)
181
+ fine,data,checksum = single_trace(case,directory,case.name,cycles,step/2,cold)
182
+ if min(fine['winding_min_a']) <= 0 or not 0 < fine['vout_v'] < case.ideal:
183
+ raise ValueError('Measured operation is outside positive-output, positive-current CCM.')
184
+ if (fine['window_drift_v']>.0003 or fine['window_drift_w']>max(.00003,.01*fine['stage_w'])
185
+ or abs(fine['output_cap_average_a'])>.0003 or max(map(abs,fine['winding_voltage_mean_v']))>.001):
186
+ raise ValueError('No periodic steady state in the measurement window. Increase duration.')
187
+ if abs(fine['balance_w'])>max(.00003,.01*fine['stage_w']):
188
+ raise ValueError('Measured electrical stage failed energy closure.')
189
+ if abs(fine['vout_v']-coarse['vout_v'])>.0004 or abs(fine['stage_w']-coarse['stage_w'])>max(.00003,.02*fine['stage_w']):
190
+ raise ValueError('Time-step refinement failed. Use a smaller maximum step.')
191
+ if max(abs(d-case.duty) for d in fine['measured_duty'])>.0002 or max(fine['gate_overlap_fraction'])>1e-8:
192
+ raise ValueError('The complementary commands failed the duty or overlap check.')
193
+ if max(abs(v-case.vin/2) for v in fine['switch_peak_v'])>max(.004,.03*case.vin/2):
194
+ raise ValueError('The measured blocking plateaus exceed the ideal equal-sharing tolerance.')
195
+ _, vin, out, iin = data[:,:4].T
196
+ ia,ib = data[:,10:12].T
197
+ extras = ((out-data[:,18])/case.esr,np.full(len(data),case.load),vin*iin,case.load*out,ia+ib,ia-ib)
198
+ wave = directory/f'{case.name}_waveform.csv'
199
+ trace_header = TRACE.rsplit(',',1)[0] if case.coss is None else TRACE
200
+ if case.coss == 0:
201
+ data[:,28] = 0
202
+ np.savetxt(wave,np.column_stack((data,*extras)),delimiter=',',comments='',header=trace_header+','+EXTRA)
203
+ target = case.operating_point['inputs'].get('target_output_v')
204
+ row = dict(status='passed',message='',deck=f'{case.name}.cir',waveform=wave.name,deck_sha256=checksum,
205
+ nominal_vout_v=case.ideal,ideal_vout_v=case.ideal,ideal_gain=case.duty,vin_v=case.vin,
206
+ target_vout_v=target,analytical_vout_v=case.loaded,analytical_gain=case.loaded/case.vin,
207
+ simulated_gain=fine['vout_v']/case.vin,target_error_v=None if target is None else fine['vout_v']-target,
208
+ operating_point=add_measurement(case.operating_point,fine['vout_v']),
209
+ stop_us=cycles*case.period*1e6,max_step_ps=step/2*1e12,
210
+ window_start_cycles=cycles-5.173205,window_stop_cycles=cycles-1.173205,**fine)
211
+ (directory/f'{case.name}-measurements.json').write_text(
212
+ json.dumps(dict(settings=asdict(case),refined=row,coarse=coarse,cold=cold),allow_nan=False,indent=2)+'\n')
213
+ return row
214
+
215
+
216
+ def plot_waveform(directory,wave):
217
+ import matplotlib
218
+ matplotlib.use('Agg')
219
+ import matplotlib.pyplot as plt
220
+
221
+ values = np.genfromtxt(directory/wave,delimiter=',',names=True)
222
+ t = 1e6*(values['time_s']-values['time_s'][0])
223
+ event_keys = [key for key in ('gate_fixture_power_w','coss_discharge_fixture_power_w') if key in values.dtype.names]
224
+ plots = (
225
+ ('VGS command (V)', ['vgs_q1_v','vgs_q2_v','vgs_q3_v','vgs_q4_v']),
226
+ ('Switch node (V)', ['sw_a_v','sw_b_v']),
227
+ ('VDS (V)', [f'vds_m{i}_v' for i in (13,15,11,9,14,16,12,10)]),
228
+ ('Winding voltage (V)', ['vl_a_v','vl_b_v']),
229
+ ('Winding current (A)', ['il_a_a','il_b_a','winding_sum_a']),
230
+ ('Output voltage (V)', ['vout_v']),
231
+ ('Event fixtures (W)', event_keys),
232
+ )
233
+ figure,axes = plt.subplots(len(plots),1,sharex=True,figsize=(9,11),layout='constrained')
234
+ if len(event_keys) == 1:
235
+ axes[-1].set_title('Coss unknown · event loss excluded')
236
+ for ax,(label,keys) in zip(axes,plots):
237
+ for i,key in enumerate(keys):
238
+ ax.plot(t,values[key],('-','--',':','-.')[i%4],label=key.replace('_',' '))
239
+ ax.set_ylabel(label)
240
+ if len(keys)>1:
241
+ ax.legend(loc='upper right',ncol=min(4,len(keys)),fontsize=7)
242
+ axes[-1].set_xlabel('Time within measurement window (µs)')
243
+ figure.savefig(directory/'buck_stacked-waveforms.png',dpi=150)
244
+ plt.close(figure)
245
+
246
+
247
+ def run(payload,directory,progress=lambda complete,total: None):
248
+ settings,main,axis,entries = validate(payload)
249
+ started = time.perf_counter()
250
+ rows = []
251
+ total = 1+len(entries)
252
+ progress(0,total)
253
+ for index,(value,case) in enumerate([(None,main),*entries],1):
254
+ if isinstance(case,SweepRejection):
255
+ row = dict(status='failed',phase='operating_point',message=case.reason)
256
+ else:
257
+ try:
258
+ row = run_case(case,directory)
259
+ except (ValueError,subprocess.TimeoutExpired) as error:
260
+ row = dict(status='failed',phase='transient',message=str(error),operating_point=case.operating_point)
261
+ rows.append(dict(value=value,**row))
262
+ progress(index,total)
263
+ operating,*sweep = rows
264
+ success = operating['status']=='passed'
265
+ if not success and not sweep:
266
+ raise ValueError(operating['message'])
267
+ if success:
268
+ plot_waveform(directory,operating['waveform'])
269
+ if axis:
270
+ write_sweep(directory,axis,sweep,topology='buck_stacked')
271
+ return dict(run_id=directory.name,settings={**settings,'topologies':['buck_stacked'],'sweep':payload.get('sweep')},
272
+ operating_point=operating.get('operating_point'),elapsed_s=time.perf_counter()-started,
273
+ metrics=[operating] if success else [],validation=operating['status'],validation_message=operating['message'],
274
+ model_provenance=dict(id='buck_stacked',model='ideal equal-sharing stacked buck',
275
+ deck_sha256=operating.get('deck_sha256')),
276
+ sweep=sweep,parameter={k:axis[k] for k in ('label','unit')} if axis else None,
277
+ sweep_plot_url=f'/simulator/runs/{directory.name}/buck_stacked-sweep.png' if axis else None,
278
+ **({'plot_url':f'/runs/{directory.name}/buck_stacked-waveforms.png'} if success else {}))
buck_stacked/preset_contract.json ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "buck_stacked",
3
+ "ratio": 2,
4
+ "status": "local-generic-model",
5
+ "run_kind": "run",
6
+ "parameters": {
7
+ "vin": {
8
+ "field": "input_voltage_v",
9
+ "label": "Input voltage",
10
+ "unit": "V",
11
+ "minimum": 2.5,
12
+ "maximum": 3.8,
13
+ "default": 3,
14
+ "optional": false
15
+ },
16
+ "load": {
17
+ "field": "output_current_a",
18
+ "label": "Output current",
19
+ "unit": "A",
20
+ "minimum": 0.6,
21
+ "maximum": 2,
22
+ "default": 1,
23
+ "optional": false
24
+ },
25
+ "fs": {
26
+ "field": "switching_frequency_mhz",
27
+ "label": "Switching frequency",
28
+ "unit": "MHz",
29
+ "minimum": 1,
30
+ "maximum": 4,
31
+ "default": 2,
32
+ "optional": false
33
+ },
34
+ "duty": {
35
+ "field": "duty",
36
+ "label": "High-side duty",
37
+ "unit": "fraction",
38
+ "minimum": 0.25,
39
+ "maximum": 0.75,
40
+ "default": 0.5,
41
+ "optional": false
42
+ },
43
+ "target": {
44
+ "field": "target_output_v",
45
+ "label": "Target output voltage",
46
+ "unit": "V",
47
+ "minimum": 0.1,
48
+ "maximum": 3,
49
+ "default": 1.5,
50
+ "optional": false
51
+ },
52
+ "lt": {
53
+ "field": "inductance_nh",
54
+ "label": "Self-inductance per winding",
55
+ "unit": "nH",
56
+ "minimum": 750,
57
+ "maximum": 2000,
58
+ "default": 1000,
59
+ "optional": false
60
+ },
61
+ "coupling": {
62
+ "field": "coupling",
63
+ "label": "Inverse coupling magnitude",
64
+ "unit": "",
65
+ "minimum": 0,
66
+ "maximum": 0.75,
67
+ "default": 0.6,
68
+ "optional": false
69
+ },
70
+ "dcr": {
71
+ "field": "dcr_mohm",
72
+ "label": "DCR per winding",
73
+ "unit": "m\u03a9",
74
+ "minimum": 2,
75
+ "maximum": 25,
76
+ "default": 4,
77
+ "optional": false
78
+ },
79
+ "rs": {
80
+ "field": "switch_ron_mohm",
81
+ "label": "High-stack Ron per MOSFET",
82
+ "unit": "m\u03a9",
83
+ "minimum": 5,
84
+ "maximum": 25,
85
+ "default": 12,
86
+ "optional": false
87
+ },
88
+ "rslow": {
89
+ "field": "low_ron_mohm",
90
+ "label": "Low-stack Ron per MOSFET (blank uses high)",
91
+ "unit": "m\u03a9",
92
+ "minimum": 5,
93
+ "maximum": 25,
94
+ "default": null,
95
+ "optional": true
96
+ },
97
+ "gatecap": {
98
+ "field": "gate_cap_pf",
99
+ "label": "Effective gate capacitance per MOSFET",
100
+ "unit": "pF",
101
+ "minimum": 0,
102
+ "maximum": 100,
103
+ "default": 25,
104
+ "optional": false
105
+ },
106
+ "coss": {
107
+ "field": "switch_coff_pf",
108
+ "label": "Effective linear Coss per MOSFET",
109
+ "unit": "pF",
110
+ "minimum": 0,
111
+ "maximum": 30,
112
+ "default": 10,
113
+ "optional": true,
114
+ "placeholder": "Unknown"
115
+ },
116
+ "cout": {
117
+ "field": "output_cap_uf",
118
+ "label": "Output capacitance",
119
+ "unit": "\u00b5F",
120
+ "minimum": 20,
121
+ "maximum": 60,
122
+ "default": 47,
123
+ "optional": false
124
+ },
125
+ "esr": {
126
+ "field": "output_esr_mohm",
127
+ "label": "Output capacitor ESR",
128
+ "unit": "m\u03a9",
129
+ "minimum": 1,
130
+ "maximum": 12,
131
+ "default": 5,
132
+ "optional": false
133
+ },
134
+ "stop": {
135
+ "field": "stop_us",
136
+ "label": "Simulation duration",
137
+ "unit": "\u00b5s",
138
+ "minimum": 20,
139
+ "maximum": 1000,
140
+ "default": null,
141
+ "optional": true
142
+ },
143
+ "step": {
144
+ "field": "max_step_ps",
145
+ "label": "Refined maximum step ceiling",
146
+ "unit": "ps",
147
+ "minimum": 100,
148
+ "maximum": 3000,
149
+ "default": null,
150
+ "optional": true
151
+ }
152
+ },
153
+ "sweep_points": {
154
+ "minimum": 2,
155
+ "maximum": 15,
156
+ "default": 5
157
+ },
158
+ "name": "2:1 Buck_Stacked",
159
+ "short": "STACK",
160
+ "model_note": "Eight ideal channels in two inverse-coupled phases. Each blocked pair shares voltage equally. Positive-current CCM, zero dead time.",
161
+ "gate_note": "Effective gate swing is always half the input voltage. One equivalent gate cycle per device per period.",
162
+ "switch_note": "Coss uses the half-input hard-discharge energy per device. NGSpice measures switching energy in separate RC fixtures. Leave Coss blank to exclude the unknown loss from the subtotal, or enter zero explicitly."
163
+ }
buck_stacked/stacked-buck.cir ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ OpenPELS 2:1 Buck_Stacked, Analog Canvas dut r266, right-hand circuit
2
+ .param VIN=3 ILOAD=1 FS=2Meg DUTY=0.5 LW=1u KCOUP=0.6 RDCR=4m RH=12m RL=12m CESR=5m CO=47u IA0=0.38 IB0=0.62 VC0=1.486 CG=25p CX=10p
3
+ .param VG={VIN/2} PERIOD={1/FS} EDGE={PERIOD/10000} PW={DUTY*PERIOD-EDGE}
4
+ .options method=gear reltol=1e-6 abstol=1e-11 vntol=1e-9
5
+ Vinput vin 0 {VIN}
6
+ * The logic voltages represent effective VGS, with zero dead time.
7
+ Vga ga 0 PULSE({VG} 0 {DUTY*PERIOD-EDGE/2} {EDGE} {EDGE} {(1-DUTY)*PERIOD-EDGE} {PERIOD})
8
+ Vgb gb 0 PULSE(0 {VG} {PERIOD/2-EDGE/2} {EDGE} {EDGE} {PW} {PERIOD})
9
+ Bphaseb b 0 V=v(gb)+(time<{(DUTY-0.5)*PERIOD+EDGE/2} ? {VG}*min(1,max(0,({(DUTY-0.5)*PERIOD+EDGE/2}-time)/{EDGE})) : 0)
10
+ Babar ga_bar 0 V={VG}-v(ga)
11
+ Bbbar gb_bar 0 V={VG}-v(b)
12
+ .model high SW(Ron={RH} Roff=1G Vt={VG/2} Vh=0)
13
+ .model low SW(Ron={RL} Roff=1G Vt={VG/2} Vh=0)
14
+ * Both series channels are enabled by the branch command in the reduced model.
15
+ * Equal off resistances realize ideal static VDS sharing.
16
+ Vha vin dha 0
17
+ S_M13 dha hi_a ga 0 high
18
+ S_M15 hi_a swa ga 0 high
19
+ Vla swa dla 0
20
+ S_M11 dla lo_a ga_bar 0 low
21
+ S_M9 lo_a 0 ga_bar 0 low
22
+ Vhb vin dhb 0
23
+ S_M14 dhb hi_b b 0 high
24
+ S_M16 hi_b swb b 0 high
25
+ Vlb swb dlb 0
26
+ S_M12 dlb lo_b gb_bar 0 low
27
+ S_M10 lo_b 0 gb_bar 0 low
28
+ * First terminals are dotted. Phase B current toward the load is -i(L4).
29
+ L3 swa ra {LW} ic={IA0}
30
+ L4 rb swb {LW} ic={-IB0}
31
+ K34 L3 L4 {KCOUP}
32
+ R1 ra out {RDCR}
33
+ R2 rb out {RDCR}
34
+ RCO out co {CESR}
35
+ CO co 0 {CO} ic={VC0}
36
+ Iload out 0 {ILOAD}
37
+ * Independent event fixtures for the aggregate of eight identical capacitors.
38
+ * Use the power stage for conduction, and measure only the declared RC event
39
+ * boundaries here. Event circuits do not perturb the stage or duplicate loss.
40
+ Vevent event 0 PULSE(0 1 {PERIOD/4} {EDGE} {EDGE} {PERIOD/2-EDGE} {PERIOD})
41
+ Bnevent nevent 0 V=1-v(event)
42
+ .model ev SW(Ron=1m Roff=1T Vt=0.5 Vh=0)
43
+ Vgate_supply aux_gate 0 {VG}
44
+ Sg_charge aux_gate g_charge event 0 ev
45
+ Rg_charge g_charge cg 2
46
+ Cg cg 0 {8*CG}
47
+ Sg_release cg g_release nevent 0 ev
48
+ Rg_release g_release 0 2
49
+ Voss_supply aux_coss 0 {VG}
50
+ Sx_charge aux_coss x_charge event 0 ev
51
+ Rx_charge x_charge cx 2
52
+ Cx cx 0 {8*CX}
53
+ Sx_release cx x_release nevent 0 ev
54
+ Rx_release x_release 0 2
55
+ .tran 1n 100u 0 1n uic
56
+ .control
57
+ set wr_singlescale
58
+ set wr_vecnames
59
+ set numdgt=15
60
+ run
61
+ let input_a=-i(Vinput)
62
+ let ib=-i(L4)
63
+ let va=v(swa)-v(ra)
64
+ let vb=v(swb)-v(rb)
65
+ let gate_w=-v(aux_gate)*i(Vgate_supply)
66
+ let coss_w=v(x_release)*v(x_release)/2
67
+ let d13=v(dha)-v(hi_a)
68
+ let d15=v(hi_a)-v(swa)
69
+ let d11=v(dla)-v(lo_a)
70
+ let d9=v(lo_a)
71
+ let d14=v(dhb)-v(hi_b)
72
+ let d16=v(hi_b)-v(swb)
73
+ let d12=v(dlb)-v(lo_b)
74
+ let d10=v(lo_b)
75
+ wrdata trace.dat v(vin) v(out) input_a v(swa) v(swb) v(ga) v(ga_bar) v(b) v(gb_bar) i(L3) ib va vb i(Vha) i(Vla) i(Vhb) i(Vlb) v(co) d13 d15 d11 d9 d14 d16 d12 d10 gate_w coss_w
76
+ quit
77
+ .endc
78
+ .end
docs/topology/2to1_buck_stacked/README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 2:1 Buck_Stacked development and validation report
2
+
3
+ | Record item | Value |
4
+ | --- | --- |
5
+ | Scope | Right-hand eight-MOSFET circuit, Analog Canvas `dut` r266, cloud r21, structure r59 |
6
+ | Review | [User-approved Circuit Definition](approval.md), with equal device blocking and half-input effective gate swing |
7
+ | Local model, starter, Simulator IDs | `buck_stacked`, nominal 2:1 |
8
+ | Base and references | `openpels-dev` at `8d4868c`; `validated-2to1-v1.0` for SI2, SP2 and RSC2; `local-baseline-v1.0` for original 4:1 behavior |
9
+ | Claim | Ideal equal-sharing, symmetric two-phase, positive-current CCM, constant-current output load, independent average and transient validation |
10
+ | Validation tools | NGSpice 47, Python/NumPy periodic RK4 on the independently assembled switched circuit, JavaScript first-order calculation |
11
+
12
+ ## Circuit, equations and implementation
13
+
14
+ The [Circuit Definition](circuit_definition.md) and [visual review packet](review/README.md) map the device labels to the source pins, states, current paths and dot polarity. The original drawing, connectivity and project hashes are preserved. The [analytical derivation](analytical_model.md) applies signed KCL, KVL, charge balance and winding volt-seconds. It separates output voltage droop from RMS conduction and switching-event power. The ideal gain is D. The loaded-voltage command solves the mean volt-second law for duty and screens positive winding-current CCM.
15
+
16
+ The independent [numerical fixture](numerical.py) builds a branch-incidence state law from the eight reviewed channel positions, winding matrix, output KCL and individual ohmic/charge laws. It uses the shared fixed-step periodic shooting, Simpson sampling and conservation framework. The [NGSpice deck](../../../buck_stacked/stacked-buck.cir) contains all eight channels with separate measured drain-to-source stresses, an inverse-coupled winding pair, DCR, finite Cout with ESR, and a free-running output. Identical ideal off resistances give equal sharing within each blocked pair. The measured plateau stress can differ slightly from Vin/2 due to the active pair's ohmic drop. Switching energy uses nominal Vin/2 exactly. The numerical solution and NGSpice do not evaluate the first-order ripple or sizing formula to obtain steady-state waveforms.
17
+
18
+ The ideal switching model puts the two series devices into the appropriate branch state together. Effective gate loss assumes one equivalent charge/discharge per device at Vin/2. Coss uses the stored half-input hard-discharge energy. The numerical event calculation integrates capacitor charge, and NGSpice measures gate-rail energy and Coss release heat with separate RC fixtures. Charging-path energy, commutation waveforms, practical voltage-balancing mechanisms and dynamic sharing mismatch are outside this comparison. Model power includes only the explicit event terms. It makes no hardware startup, PDK transistor, core, dead-time, recovery or control-loop performance claim.
19
+
20
+ Sizing uses the per-device RMS weights under a shared width or area budget. The independent [sizing check](verify_sizing.cjs) verifies the constrained result against a grid of total areas and high/low allocations. In the illustrative technology example, the effective linear gate capacitance density is Qg(3.3 V)/3.3 V, with Qg = 2.51 pC/mm. The default Coss density is 0.4 pF/mm. The Simulator defaults can also be entered as standalone effective capacitances per MOSFET. Neither set constitutes a characterized library.
21
+
22
+ ## Results and ranges
23
+
24
+ The three methods used identical design inputs within each of 15 matches. The seven-point duty sweep held the nominal circuit and load fixed from D = 0.25 through 0.75. Additional cases exercised unequal high/low Ron, simultaneous changes, zero coupling, zero event capacitances, a loaded target, a lower-loss corner, and two independent zero-energy starts. The [tolerances and error definitions](analytical_model.md#qualification-criteria-set-before-comparisons) were fixed before comparing results. Pairwise checks passed.
25
+
26
+ At 3 V, 1 A, 2 MHz and D = 0.5, the ideal output is 1.5 V. The analytical and numerical loaded output is 1.486 V. The NGSpice output was 1.486 V, with 12.220 mW channel loss, 2.037 mW winding DCR loss, near-zero symmetric output ESR loss, 0.899 mW measured gate energy and 0.180 mW measured Coss discharge energy. Modeled efficiency including both event terms was 98.979%. Phase ripple was approximately 0.234 A peak-to-peak. At a commanded 1.5 V loaded target, the solver increases duty above 0.5 and the NGSpice output follows without a clamp.
27
+
28
+ | Largest difference | Analytic vs. numerical | Analytic vs. NGSpice | Numerical vs. NGSpice |
29
+ | --- | ---: | ---: | ---: |
30
+ | Mean output | 2.36 µV | 29.75 µV | 29.75 µV |
31
+ | Phase current peak-to-peak | 2.20 mA | 2.19 mA | 0.02 mA |
32
+ | Channel loss | 1.34 µW | 3.24 µW | 3.17 µW |
33
+ | Gate energy per second | 0 µW | 7.39 µW | 7.39 µW |
34
+ | Coss energy per second | 0 µW | 0.56 µW | 0.56 µW |
35
+
36
+ [Duty and conduction comparison plots](evidence/duty-comparison.svg) · [Gate and Coss comparison plots](evidence/event-comparison.svg) · [Matched results](evidence/matched-results.json) · [Executed decks, logs, measurements and nominal waveform](evidence/executed-decks.zip)
37
+
38
+ The continuous [Simulator input contract](../../../buck_stacked/preset_contract.json) accepts Vin 2.5–3.8 V, load 0.6–2 A, frequency 1–4 MHz, duty 0.25–0.75, L 750–2000 nH, inverse coupling magnitude 0–0.75, per-winding DCR 2–25 mΩ, per-device Ron 5–25 mΩ, Cout 20–60 µF, ESR 1–12 mΩ, effective gate capacitance 0–100 pF, and Coss 0–30 pF. Duration and maximum step are independently configurable. The joint domain further requires positive phase current, reachable loaded output, acceptable numerical work, periodicity and convergence. The input intervals do not qualify all combinations. The 4 MHz low-loss witness needed a shorter explicit 35 µs run because the conservative automatic settling estimate exceeded the shared work limit. It passed the normal whole-window and step-refinement checks.
39
+
40
+ ## Integration and regression
41
+
42
+ The workbench exposes a separate model ID alongside the historical `buck` comparator. The fixed 4:1 sizing reference remains available. The editable OpenPELS copy preserves source positions and device names and adds four input ports, an output port and the approved coupling element. The original Canvas file remains untouched. The starter's structural export uses the source's PDK binding. It is separate from the ideal executable validation bench.
43
+
44
+ The [feature parity record](parity.md) links the same-origin Chrome/NGSpice workflows and the tagged 4:1 comparison. All 16 applicable Simulator sweep axes passed with two executed points each. Chrome verified the normal same-tab transition from the previous build and the fresh context. Tag and live XFLY6S, XFLY8S, and C3L measurements matched, including the XFLY6S 15-point sweep and original Analysis exports. SI2, SP2, and RSC2 browser workflows passed. Their 80 matched bench cases and six zero-state replays passed the existing gates. All 45 packaged Analysis tests and the corresponding-source packaging replay passed. Use the [qualification record](qualification.md) for the current disposition of each stage. The [Minjie log](../minjie_confirmation_list.md) and [architecture discussion](../architecture_discussion.md) record the boundary between the historical comparison and the new physical model. The [regression registry](../regression_test_registry.md) lists permanent replays.
45
+
46
+ ## Stage 9–11 audit closure
47
+
48
+ Chrome ran the untouched 10 pF default through the Simulator selector. NGSpice delivered 1.486 V at 98.979% modeled efficiency. The same test exercised the Analysis handoff at positive, blank and explicit-zero Coss. Blank Coss transfers as null. Its fixture is omitted, its result is null, and the efficiency is labeled as excluding unknown Coss. Explicit zero reports a modeled zero, with a zero-power waveform column. Positive Coss matches the analytical event estimate within the established tolerance. A request that omits the field uses the documented default. [Chrome receipt](evidence/coss-browser.json)
49
+
50
+ The known-input electrical decks were unchanged. All 30 archived coarse and refined decks reproduce byte for byte. The prior signed KCL/KVL, independent numerical and three-way results remain the Stage 1–8 qualification evidence. The [closure checklist](parity.md#closure-checklist-for-stages-9-through-11) and [regression receipts](evidence/coss-regressions.json) cover the final browser, baseline and package checks. The [Minjie architecture issue](../architecture_discussion.md) records the relationship to gate-drive input defaults and missing-parameter handling.
51
+
52
+ ## Replay
53
+
54
+ From the repository root, generate the candidate data under the ignored runtime directory and run the analytical sizing check.
55
+
56
+ ```sh
57
+ .venv/bin/python docs/topology/2to1_buck_stacked/validate.py .openpels-runtime/buck-stacked-validation
58
+ node docs/topology/2to1_buck_stacked/verify_sizing.cjs
59
+ ```
60
+
61
+ The shipped editable starter is included in the corresponding-source archive. Maintainers with the original local Canvas snapshot can use the starter generation script with that snapshot.
62
+
63
+ Run `verify_browser.mjs`, `verify_coss_browser.mjs` and `verify_sweeps.mjs` with Chrome and OpenPELS at port 8765. The [evidence manifest](evidence/SHA256SUMS) binds the curated results.
docs/topology/2to1_buck_stacked/analytical_model.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Analytical model and matched test scope
2
+
3
+ The [approved circuit](approval.md) uses two series channels per high or low path. This model covers matched phases and positive-current CCM with a constant-current load, identical winding self inductance L, inverse coupling magnitude k, a finite output capacitor in the validation circuits, and zero dead time. Switching energy is a separate hard-switching event ledger. Refer each resistance to the actual modeled device and each capacitance to one device.
4
+
5
+ ## State equations and first-order solution
6
+
7
+ Let a and b be the approved binary high-stack commands. Positive phase current goes from the switch node toward VOUT. In state (a,b), each selected pair carries the phase current, drain to source in a high stack and source to drain in a low stack. The blocked pair carries zero ideal plateau current. Each pair has two series resistances. Denote their sums by R_H and R_L.
8
+
9
+ 1. Output KCL gives i_C = i_A + i_B − I_o. With C_o and R_ESR, v_o = v_C + R_ESR i_C and dv_C/dt = i_C/C_o.
10
+ 2. Phase A KVL gives L di_A/dt − kL di_B/dt = a V_in − v_o − (R_DCR + R_a) i_A. Phase B gives L di_B/dt − kL di_A/dt = b V_in − v_o − (R_DCR + R_b) i_B. R_a is R_H when a=1 and R_L when a=0.
11
+ 3. In the lossless ripple approximation, periodic volt-seconds give V_o = D V_in. Periodic output-capacitor charge and half-period phase symmetry give each phase mean I_o/2. Invert the two winding equations. Per normalized period, the phase A slope is V_in/[(1−k²) L f_s] times [(a−D) + k(b−D)]. Integrate over the approved gate edges and subtract the cycle mean of the accumulated zero-offset ramp before adding I_o/2. Phase B is phase A shifted by half a period.
12
+ 4. For a linear segment from x to y, the mean current is (x+y)/2 and the mean square is (x²+xy+y²)/3. Sum each with its interval fraction. Let J_H,J_L be the resulting per-phase second moments in the high/low intervals in A². Let Q_H,Q_L be the interval-weighted current means in A. Q_H+Q_L=I_o/2. Compute the capacitor second moment from i_A+i_B−I_o on the same segments.
13
+ 5. The first-order loaded mean is D V_in − R_DCR I_o/2 − R_H Q_H − R_L Q_L. This is distinct from the power-equivalent resistance. Invert this loaded-voltage prediction within the admissible positive-CCM duty region for a VOUT target. This is an open-loop operating-point estimate. It characterizes duty authority, with no controller dynamics or hardware regulation claim.
14
+
15
+ The first-order ripple uses the *lossless* winding voltage and a stiff mean output. The independently integrated numerical and NGSpice circuits retain resistive drops, finite C_o and ESR. Validate approximation error on the declared points. For equal stack resistances the loaded-voltage formula is exact within the ideal switch model by average KVL and charge balance.
16
+
17
+ Each high-command interval is symmetric around its own pulse center, and the half-period-shifted command is also even about that center. The lossless current excursion about its interval mean is then odd. The high and low mean currents are both I_o/2, giving Q_H = D I_o/2 and Q_L = (1−D) I_o/2. The fixed-device incremental duty gain is V_in − (I_o/2)(R_H−R_L), positive throughout the admitted parameter bounds. Compensating load-induced droop therefore raises duty at a fixed voltage target. With the nominal 3 V rail, 1 A load and equal 24 mΩ stacks, the first-order loaded range over D=0.25–0.75 is 0.736–2.236 V. A 1.500 V command requires D=0.504667. The periodic solver and switched bench verify that point independently. The first-order implementation shares the coupled-winding integration kernel with SI2 after deriving the current-carrying stacks from the approved graph.
18
+
19
+ ## Loss, drive and area
20
+
21
+ | Term | Model and boundary |
22
+ | --- | --- |
23
+ | Channel | 2(R_H J_H+R_L J_L), from two identical phases. Each MOSFET contributes its own resistance times its stack moment. |
24
+ | Winding DCR | 2 R_DCR (J_H+J_L). |
25
+ | Output ESR | R_ESR times mean square capacitor current from output KCL. |
26
+ | Effective gate supply | One equivalent full gate charge/discharge per MOSFET per period. Per device E_g = C_g (V_in/2)² = Q_g(V_in/2) × V_in/2, where Q_g(V) is the effective charge for the stated swing. The drive assumption is a port-energy model, including the effective swing of the biased devices. It does not characterize their practical bias supply. |
27
+ | Coss event | The approved equal-sharing rule sets each blocked device to V_in/2. Per device the hard turn-on discharges E_oss = ½ C_oss (V_in/2)² for constant effective C_oss, once per period. Use the dissipated stored-energy component once. Output-capacitor ripple and gate supply are separate. Charging-path redistribution, nonlinear energy recovery, and voltage-sharing dynamics are outside this event model. |
28
+ | Total efficiency | I_o V_o/[I_o V_o + P_channel + P_DCR + P_ESR + P_Coss + P_gate]. Switching-event power is a separate boundary and does not adjust the channel-only volt-second droop. |
29
+
30
+ At fixed total transistor area A_T, set R_i = ρ/A_i, C_g,i = c_g A_i, C_oss,i = c_oss A_i. All eight devices have one event and the same specified swing/stress. The two event totals therefore depend on A_T and not on its partition. Minimizing ∑ ρ J_i/A_i gives A_i/A_T = √J_i/∑√J_i with equality at the stationary solution by Cauchy–Schwarz. There are four high devices with J_H and four low devices with J_L. Under an area **ceiling** and allowance to vary total area, the loss has form α/A_T + β A_T + passive loss, where α=ρ(∑√J_i)² and β=f_s(V_in/2)²(c_g+c_oss/2). The unconstrained optimum is √(α/β). Use the budget ceiling if β=0, and otherwise clamp to the allowed area range. Absolute technology numbers are illustrative unless accompanied by device characterization.
31
+
32
+ ## Qualification criteria set before comparisons
33
+
34
+ Use matched abstract positive-current CCM switching and the approved bias and stress. Compare output mean (2 mV absolute), phase ripple (5% with a 5 mA floor) and each passive/channel loss (5% with a 30 µW floor) for the first-order approximation against both switched solutions. Use 0.5 mV for the numerical/NGSpice mean, 1% plus a 10 µW floor for channel/passive total, and 1% plus a 1 µW floor for individual event terms. Check output-capacitor charge mean below 0.3 mA, winding voltage mean below 1 mV, measured cycle-to-cycle output drift below 0.3 mV and electrical energy closure below max(30 µW, 1% of electrical-stage loss). Reject nonpositive winding current or unqualified numerical resource/operating limits. Interpret these gates as model checks, independent of hardware stress certification.
docs/topology/2to1_buck_stacked/approval.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Circuit Definition approval
2
+
3
+ The user explicitly approved Analog Canvas `dut` revision 266 (cloud revision 21, structure revision 59) in this OpenPELS chat on 2026-11-29 New York time. They manually reviewed and confirmed the [switching states and timing](review/README.md). The [source provenance](source/README.md) identifies the original local snapshot. The [published review artifacts](review/SHA256SUMS) cover the same right-hand circuit.
4
+
5
+ > I approve the Circuit Definition of `2:1 Buck_Stacked`, Analog Canvas dut revision 266. The switching states and timing diagrams have been manually reviewed and confirmed to be correct.
6
+
7
+ - The two MOSFETs in each blocked stack are assumed to share equally. Each has nominal blocking voltage Vin/2.
8
+ - The effective gate-to-source swing is Vdrive = Vin/2. Apply both assumptions in the analytical and periodic numerical models, NGSpice, and transistor sizing.
9
+ - Practical voltage-balancing mechanisms and dynamic sharing mismatch are outside the qualification scope. The fixed-drop idealization applies to drain-to-source blocking. The original Canvas artifact retains the reviewed geometry, labels and connections.
docs/topology/2to1_buck_stacked/build_starter.mjs ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import assert from 'node:assert/strict';
2
+ import {readFileSync, writeFileSync} from 'node:fs';
3
+ import {resolve} from 'node:path';
4
+ import {pathToFileURL} from 'node:url';
5
+
6
+ const packageFile = name => pathToFileURL(resolve('local-source/openpels/packages',name,'dist/index.js')).href;
7
+ const {parseProject,serializeCompactProject} = await import(packageFile('project-protocol'));
8
+ const {createDesignNetlistExport} = await import(packageFile('netlist'));
9
+ const raw = JSON.parse(readFileSync(process.argv[2],'utf8'));
10
+ assert.equal(raw.schemaVersion,87);
11
+ assert.equal(raw.documents[0].revision,266);
12
+ // The bundled editor uses schema 86. This source has no schema-87-only
13
+ // object in the right-hand cell; assert the compiled graph after migration.
14
+ raw.schemaVersion=86;
15
+ const project=parseProject(JSON.stringify(raw));
16
+ const [top]=project.documents;
17
+ assert.equal(project.documents.length,1);
18
+ top.instances=top.instances.filter(i=>i.placement.position.x>760);
19
+ const ids=new Set(top.instances.map(i=>i.id));
20
+ top.netlist.terminals=top.netlist.terminals.filter(t=>t.interfaceInstanceIds.some(id=>ids.has(id)));
21
+ top.junctions=top.junctions.filter(j=>j.position.x>760);
22
+ const junctions=new Set(top.junctions.map(j=>j.id));
23
+ const right=e=>e.kind==='terminal'?ids.has(e.instanceId):e.kind==='junction'?junctions.has(e.junctionId):(e.position??e.point)?.x>760;
24
+ for(const net of top.nets) net.terminals=net.terminals.filter(t=>ids.has(t.instanceId));
25
+ top.nets=top.nets.filter(n=>n.terminals.length);
26
+ const nets=new Set(top.nets.map(n=>n.id));
27
+ top.routes=top.routes.filter(r=>nets.has(r.netId)&&right(r.start));
28
+ top.connectivityEvidence=top.connectivityEvidence.filter(e=>nets.has(e.netId)&&
29
+ (!e.owner?.objectId||ids.has(e.owner.objectId)));
30
+ top.annotations=top.annotations.filter(o=>o.anchor.kind==='object'?ids.has(o.anchor.objectId):o.anchor.position.x>760);
31
+ top.drafting.objects=top.drafting.objects.filter(o=>o.anchor.position.x>760);
32
+ const device=ref=>top.instances.find(i=>i.reference===ref);
33
+ const netAt=(instance,pinName)=>top.nets.find(n=>n.terminals.some(t=>t.instanceId===instance.id&&t.pinName===pinName));
34
+ top.mosBulkDefaults={nmosNetId:netAt(device('M13'),'B').id,
35
+ pmosNetId:top.netlist.terminals.find(t=>t.name==='VIN').netId};
36
+ const connect=(name,destination,position,rotation,net,direction)=>{
37
+ const id='stack-port-'+name, pin={instanceId:id,pinName:'P'};
38
+ top.instances.push({id,symbolId:'port',placement:{position,rotation,mirror:'none'}});
39
+ top.netlist.terminals.push({id:'stack-terminal-'+name,netId:net.id,name,direction,interfaceInstanceIds:[id]});
40
+ net.terminals.push(pin);
41
+ top.routes.push({id:'stack-route-'+name,netId:net.id,start:{kind:'terminal',...pin},
42
+ legs:[{id:'stack-end-'+name,mode:'manual',to:{kind:'endpoint',endpoint:destination}}]});
43
+ };
44
+ for(const [reference,name,x,y] of [['M15','A',840,200],['M16','B',1010,200],
45
+ ['M9','ABAR',810,430],['M10','BBAR',970,430]]) {
46
+ const mos=device(reference);
47
+ const gate={kind:'terminal',instanceId:mos.id,pinName:'G'};
48
+ assert.equal(netAt(mos,'G'),undefined);
49
+ const net={id:'stack-gate-'+name,terminals:[{instanceId:mos.id,pinName:'G'}]};
50
+ top.nets.push(net);
51
+ connect(name,gate,{x,y},0,net,'input');
52
+ }
53
+ const bias=top.netlist.terminals.find(t=>t.id==='terminal-p1_13');
54
+ bias.name='VBIAS';
55
+ delete bias.signal;
56
+ const out=netAt(device('C1'),'1');
57
+ const junction=top.junctions.find(j=>j.position.x===1300&&j.position.y===270)
58
+ ??top.junctions.find(j=>j.position.x===1260&&j.position.y===270);
59
+ assert.ok(junction);
60
+ connect('VOUT',{kind:'junction',junctionId:junction.id},{x:1360,y:270},180,out,'output');
61
+ top.inductorCouplings=[{id:'stack-coupling',name:'K34',k:'.6',
62
+ members:['L3','L4'].map(ref=>({instanceId:device(ref).id,dotPin:'1'}))}];
63
+ // The native electrical object supplies dots and coupling lines on the copy.
64
+ top.drafting.objects=top.drafting.objects.filter(o=>!/^(circle-[78]|construction-9)/.test(o.id));
65
+ for(const [ref,value] of Object.entries({L3:'1u',L4:'1u',R1:'4m',R2:'4m',C1:'47u'}))
66
+ device(ref).netlist.parameters.value=value;
67
+ for(const ref of ['V1','V2']) device(ref).netlist.parameters.dc='1.5';
68
+ device('ILOAD').netlist.parameters.dc='1';
69
+ const saved=serializeCompactProject(project);
70
+ const reloaded=parseProject(saved);
71
+ const exported=createDesignNetlistExport(reloaded);
72
+ assert.equal(exported.status,'ready',JSON.stringify(exported.diagnostics.filter(x=>x.severity==='error')));
73
+ assert.equal(reloaded.documents[0].instances.filter(x=>x.symbolId==='nmos').length,8);
74
+ assert.match(exported.file.text,/K34 L3 L4 \.6/i);
75
+ assert.deepEqual(exported,createDesignNetlistExport(parseProject(serializeCompactProject(reloaded))));
76
+ writeFileSync('static/starters/buck_stacked.icproj.json',saved);
77
+ writeFileSync('static/starters/buck_stacked.sp',exported.file.text);
78
+ console.log('Eight-switch starter and native SPICE roundtrip verified.');
docs/topology/2to1_buck_stacked/circuit_definition.md ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Circuit Definition Review — 2:1 Buck_Stacked
2
+
3
+ **Approved.** The [approval record](approval.md) confirms the right-hand stacked buck and its timing, and adds the equal-sharing and half-input drive assumptions for qualification. This document retains the original review evidence.
4
+
5
+ [Visual review packet](review/README.md) · Original right-hand crop, eight-device gate and stress tables, switching-state overlays, PWM timing and winding polarity.
6
+
7
+ ## Source and review scope
8
+
9
+ | Record | Value |
10
+ | --- | --- |
11
+ | Analog Canvas | [Project 2:1 Buck_Stacked](https://analog-canvas.tokenzhang.com), cloud ID `4727dbf5-ce00-4d5f-a0d0-720ae7fc9cbd`, cloud revision 21 |
12
+ | Reviewed cell | `dut`, document `document-89c0d0f5-5984-4afc-89fb-10f008c79a68`, cell revision 266, structure revision 59, schema 87 |
13
+ | Capture | 2026-11-29 New York time, read-only MCP inspection and exports from the paired Editor. The active project was clean. No saved switching-state cells or simulation folders were present. |
14
+ | Provenance | Fangyu Mao confirmed authorship and authorized public release of the right-hand circuit and derivatives under AGPL-3.0-only. [Release scope](source/README.md). |
15
+ | Implementation base | `openpels-dev` at `8d4868c`, with SI2, SP2 and RSC2 pinned at `validated-2to1-v1.0`. XFLY6S at `local-baseline-v1.0` is the workflow reference. |
16
+ | Provisional identity | 2:1 nominal. Existing Analysis catalog `buck` is the stacked synchronous buck reference. Use `buck_stacked` as the qualification/starter/Simulator working ID. Confirm how to qualify the legacy entry while preserving its historical fixed-4:1 sizing behavior before registration. |
17
+
18
+ [Right-hand SVG](review/original-right.svg) · [Editable release starter](../../../static/starters/buck_stacked.icproj.json) · [Right-hand structural SPICE transcription](source/buck-stacked-right.structural.sp) · [SHA-256 manifest](source/SHA256SUMS)
19
+
20
+ The reviewed right-hand circuit has floating DC sources `V1` and `V2` and uses three external rail connections for `VIN`, ground, and `Vin/2` gate bias. The complete original export remains in the local qualification milestone.
21
+
22
+ ## Right-hand circuit and signed paths
23
+
24
+ | Phase | Upper series stack from `VIN` to switch node | Lower series stack from switch node to ground | Output branch, positive current toward `VOUT` |
25
+ | --- | --- | --- | --- |
26
+ | A | `M13 (Q1a)` → `hi_a` → `M15 (Q1b)` → `sw_a` | `sw_a` → `M11 (Q2a)` → `lo_a` → `M9 (Q2b)` → 0 | `sw_a` → L3 pin 1 (dot) → pin 2 → R1 → `VOUT` |
27
+ | B | `M14 (Q3a)` → `hi_b` → `M16 (Q3b)` → `sw_b` | `sw_b` → `M12 (Q4a)` → `lo_b` → `M10 (Q4b)` → 0 | `sw_b` → L4 pin 2 → pin 1 (dot) → R2 → `VOUT` |
28
+
29
+ All eight bulk pins resolve to ground. The output has `C1` (displayed as `COUT`) and `ILOAD` (displayed as `IOUT`) from output to ground. Positive capacitor current enters `C1.1`. Positive load current leaves the output through `ILOAD`, and `i_C1 = i_A + i_B − i_load` with the sign convention above. Winding voltage is positive from the switch node toward the series resistor. If the drawn dots denote magnetic coupling, positive phase A current enters its dot and positive phase B current leaves its dot, which gives inverse coupling in the two phase-current references. The dots are drafting objects. The source project has no electrical coupling element or coefficient. Review assumption: the dots denote an intended inverse-coupled pair. The coupling coefficient and winding self-inductance remain parameters for later qualification. This choice leaves the source drawing unchanged.
30
+
31
+ | Gate | Drawn drive or proposed external command |
32
+ | --- | --- |
33
+ | `M13.G`, `M14.G` | `V1+`, `V2+`, respectively. Source negatives are at `sw_a`, `sw_b`, so each gate rides its switch node by the floating source voltage. The symbols are annotated `VIN/2`; their saved DC value is 1 V. Review assumption: use a floating bias of `VIN/2` as annotated. The bias polarity follows the drawn source terminals. |
34
+ | `M11.G`, `M12.G` | Shared externally supplied `Vin/2` port, referenced to ground. |
35
+ | `M15.G`, `M16.G` | Proposed active-high `A` and `B`, based on the unbound drawing labels. Use source-referenced high-side drive with respect to `sw_a`/`sw_b` for the commanded gates. |
36
+ | `M9.G`, `M10.G` | Proposed active-high complementary commands `Ā` and `B̄`, grounded-source reference. The drawing uses overbars. Complementary commands exclude the dead-time blanks. |
37
+
38
+ The upper and lower inner MOSFETs receive the PWM commands. Their series partners receive voltage biases that can support stacked-switch operation when the level shifts and devices provide adequate gate overdrive. The candidate uses the full input rail for power transfer. The `VIN/2` connections serve gate bias. The midpoint nodes of the stacks are internal; biasing the gate at half the input does not establish equal blocking voltage, safe transient sharing or a fixed midpoint voltage. Drive amplitudes, bias current, device stress, thresholds, body-diode paths and startup need switched-device validation. The saved `1 nH`, `1 kΩ`, `1 pF`, `1 mA` and 1 V settings remain source facts. They do not establish a coherent, load-qualified operating point.
39
+
40
+ ## Proposed switching states and timing
41
+
42
+ The four steady states below assume correctly biased stacks, positive continuous phase currents, ideal commutation and a phase B pulse delayed by half a period. H or L denotes an available **series path**. A biased member of the inactive stack can still conduct transiently into its midpoint. Its instantaneous channel state is not determined by the logic command.
43
+
44
+ | State `AB` | Active commands | Phase A path | Phase B path | Ideal `sw_a, sw_b` |
45
+ | --- | --- | --- | --- | --- |
46
+ | `10` | `A, B̄` | `VIN → M13 → M15 → sw_a → L3 → R1 → VOUT` | `0 → M10 → M12 → sw_b → L4 → R2 → VOUT` | `VIN, 0` |
47
+ | `01` | `Ā, B` | `0 → M9 → M11 → sw_a → L3 → R1 → VOUT` | `VIN → M14 → M16 → sw_b → L4 → R2 → VOUT` | `0, VIN` |
48
+ | `00` | `Ā, B̄` | `0 → M9 → M11 → sw_a → L3 → R1 → VOUT` | `0 → M10 → M12 → sw_b → L4 → R2 → VOUT` | `0, 0` |
49
+ | `11` | `A, B` | `VIN → M13 → M15 → sw_a → L3 → R1 → VOUT` | `VIN → M14 → M16 → sw_b → L4 → R2 → VOUT` | `VIN, VIN` |
50
+
51
+ The NMOS channel current in a high path is drain-to-source. For positive winding current in a synchronous freewheel path it is source-to-drain in both lower devices. The load returns to ground. When the sum of winding currents exceeds the load current, the excess enters `C1.1`; otherwise the capacitor supplies the difference. For each winding the path voltage has positive polarity in H and negative polarity in L for a lossless stage with `0 < VOUT < VIN`.
52
+
53
+ Let `T` be the per-phase switching period and `D` the ideal high-command time divided by `T`. A is high on `[0,D)` and B is high on `[0.5,0.5+D)` modulo one period. The table and timeline share the same time origin.
54
+
55
+ ```text
56
+ 0 < D < 1/2 0 D 1/2 1/2+D 1
57
+ AB | 10 | 00 | 01 | 00 |
58
+
59
+ D = 1/2 0 1/2 1
60
+ AB | 10 | 01 |
61
+
62
+ 1/2 < D < 1 0 D−1/2 1/2 D 1
63
+ AB | 11 | 10 | 11 | 01 |
64
+ ```
65
+
66
+ For the lower region the four durations in order are `D, 1/2−D, D, 1/2−D` times `T`. At the nominal point each interval is `T/2`. Above it the four durations are `D−1/2, 1−D, D−1/2, 1−D` times `T`. State `11` energizes both phases through separate upper stacks and is allowed. Simultaneous upper and lower conduction in **one** phase shorts that phase's input rail to ground and is forbidden.
67
+
68
+ At each transition the outgoing PWM device turns off first, both commands in that phase are low for dead time, then the incoming device turns on. At 50% duty both phases can be blanked at the same time. A positive winding current must continue through device capacitances and available diode/channel paths while the switch node commutates. The grounded bulks make the diode path a device-level check. A negative winding current changes the commutation path and is outside the proposed positive-CCM envelope. The ideal timeline uses zero dead time. For an implementation that delays the incoming edges by `t_LH` and `t_HL`, both commanded plateaus exist only if `t_LH/T < D < 1−t_HL/T`. This is a timing condition. The safe dead time, minimum pulse widths and device-level duty bounds are open.
69
+
70
+ ## Nominal conversion and regulation
71
+
72
+ Under ideal CCM switching each winding input alternates between `VIN` for fraction `D` and ground for fraction `1−D`. Periodic winding flux requires its mean voltage to vanish. That gives the pre-model operating identification `VOUT/VIN = D`, hence nominal 2:1 at `D = 0.5`. The ideal two-phase PWM state sequence permits `0 < D < 1`; the endpoints are static commands. The above-50% state sequence is a review proposal and its loaded operating range is unverified. Device overdrive, stress, CCM, dead time and minimum pulse widths constrain any physical duty range.
73
+
74
+ Varying duty can set a different mean output in the ideal stage, and a feedback loop could use duty to correct loaded droop where the qualified range leaves headroom. The source includes no output feedback controller, loop compensation or demonstrated regulation range. At 50% the ideal summed phase excitation is constant; cancellation of summed winding-current ripple additionally requires symmetric windings and timing and the stated ideal conditions. Individual winding currents can still ripple.
75
+
76
+ ## Consistency checks and review decision
77
+
78
+ - Each active path was traced by `D/G/S/B` and passive pin membership in the MCP snapshot. The upper and lower stacks share only each phase's switch node in the series power path. The two output branches meet downstream of their separate resistors. The gate labels are separate drawing annotations and the overbars were checked in the rich-text data.
79
+ - Native SPICE export reported `MISSING_PIN_NET` for the four PWM gates on the reviewed circuit (`M9`, `M10`, `M15`, `M16`). The public structural transcription assigns distinct open nodes to those gates. It adds no gate sources or magnetic coupling. A qualified deck requires the approved external commands, bias and magnetic interpretation.
80
+ - Each timing row covers exactly one period, applies high commands for fraction `D` to each phase, and selects one series path per phase outside dead time. The transition from `00` through the nominal complementary states to `11` agrees with their path polarities and introduces no same-phase overlap.
81
+ - No local graph correction was applied to the original. The review decisions are the right-hand scope, external command map, floating biases interpreted from their annotations, inverse coupling interpreted from the visible dots, and the ideal timing with physical commutation deferred to qualification.
82
+
83
+ The user confirmed this source revision and timing in the [approval record](approval.md). The [qualification record](qualification.md) tracks dependent stages.
docs/topology/2to1_buck_stacked/evidence/SHA256SUMS ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 943c68f3a21e9ba67dcf98fd7165e2a86504d3144eaa25b7a6d4722165829a46 baseline-2to1-quality.json
2
+ ac92f6a999c5e2ab9cf93fe2cc18fb9fa44d69eb67254a69e2a67789252d1994 browser.json
3
+ 462e04e2fc0bd843db9180856d07fb87a72b23412ec36bd493f6948fdc9ef8e9 cache.json
4
+ eab0f303fc2f97a6a5fc6b1a38aa1a2e2d8107ecef86c70f9b67516996d4c0b3 coss-browser.json
5
+ ebf4d90cb7ef442fd006eb0d09bd2335348524b9445cee004c7b9ca5cfb48523 coss-cache.json
6
+ daae2b25b9841cae1e0d31de04fcd5159a802adacd491b257fdd2543a83c30db coss-regressions.json
7
+ 81c930ceba92f859f22702d73e69001f808000c383bc257a6d7066b065882f0c coss-sweeps.json
8
+ bbdcbb9409396ae091aa0cc97605289f06390124cecdc65f593cc2e123517e5f coss-workflow.json
9
+ c0ff0da00e568823ffbfca91de279ada01e86898b3d7ec8a9008810a422caeee coss-workspace.json
10
+ 755d7b9684dc9a57055f515e57a12803df8991396a7a5ea8c55df9668275a5a4 duty-comparison.svg
11
+ be07a80e3bc679e3743a9f73b8bcd0394c5d8a3c69c0dbd6c16fc9298968ec1a event-comparison.svg
12
+ 49fc608ed4afff7deffa3ef1dcf1cd35cdd74f911b11fb922147b0276544eff0 executed-decks.zip
13
+ 20f18bb607e3396b9af24a6260ee8f4237b87b1dfb64fcad28de64253b4337fd matched-results.json
14
+ 284fd680c76b2e46068c2a3694185a61ae1ea54900fcb3dc1c9bd070b7d39ed4 sweeps.json
15
+ c0ff0da00e568823ffbfca91de279ada01e86898b3d7ec8a9008810a422caeee workspace.json
16
+ 7d60ccbdd1b559e8f2132de95b828073383f37d099b73dfd6498aad444622e3d ../../../../static/openpels-source.zip
17
+ f7f5881fc34344c96c0069bfe55dc1b32643dfba8fa8a65aa3a7d83fe40bda67 ../../../../static/starters/buck_stacked.icproj.json
18
+ 0831135f2de8dc63696e502eeee848854d29d02123181c9dd6188a7c364edd14 ../../../../static/starters/buck_stacked.sp
19
+ c13511e72d73238deb24f53beb3c024b29159f1e00fb5b90e9df13f4751b3a81 ../../../../buck_stacked/stacked-buck.cir
docs/topology/2to1_buck_stacked/evidence/baseline-2to1-quality.json ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "si2": {
3
+ "cases": 33,
4
+ "bench_relative_req_error": {
5
+ "value": 0.0001262280412663852,
6
+ "case": "duty_4"
7
+ },
8
+ "bench_absolute_vo_error": {
9
+ "value": 9.940919230566614e-06,
10
+ "case": "duty_1"
11
+ },
12
+ "bench_convergence_ohm": {
13
+ "value": 9.703032875924e-07,
14
+ "case": "ccm_reject"
15
+ },
16
+ "bench_energy_residual_w": {
17
+ "value": 2.0323409635715165e-06,
18
+ "case": "unequal_switches"
19
+ },
20
+ "numeric_energy_residual_w": {
21
+ "value": 5.506762927598441e-11,
22
+ "case": "cf_2"
23
+ },
24
+ "analysis_relative_req_difference": {
25
+ "value": 3.772370049359708e-05,
26
+ "case": "unequal_symmetric_duty"
27
+ },
28
+ "analysis_output_difference_v": {
29
+ "value": 3.385607068295826e-05,
30
+ "case": "unequal_symmetric_duty"
31
+ }
32
+ },
33
+ "sp2": {
34
+ "cases": 20,
35
+ "bench_relative_req_error": {
36
+ "value": 4.761822107179903e-05,
37
+ "case": "io_1"
38
+ },
39
+ "bench_absolute_vo_error": {
40
+ "value": 3.458280290802307e-06,
41
+ "case": "fs_1"
42
+ },
43
+ "bench_convergence_ohm": {
44
+ "value": 2.689999308760904e-06,
45
+ "case": "co_1"
46
+ },
47
+ "bench_energy_residual_w": {
48
+ "value": 0.0004411606570880663,
49
+ "case": "fs_1"
50
+ },
51
+ "numeric_energy_residual_w": {
52
+ "value": 4.447195533362376e-07,
53
+ "case": "fs_1"
54
+ },
55
+ "analysis_relative_req_difference": {
56
+ "value": 0.15266292141261317,
57
+ "case": "fs_1"
58
+ },
59
+ "analysis_output_difference_v": {
60
+ "value": 0.09440669609019381,
61
+ "case": "fs_1"
62
+ },
63
+ "clamped_relative_req_error": {
64
+ "value": 0.00019448670000654644,
65
+ "case": "fs_1"
66
+ },
67
+ "stiff_analysis_relative_req_error": {
68
+ "value": 1.0491368788168032e-06,
69
+ "case": "ssl_limit"
70
+ }
71
+ },
72
+ "rsc2": {
73
+ "cases": 27,
74
+ "bench_relative_req_error": {
75
+ "value": 0.00044707001744093144,
76
+ "case": "weak_tuned"
77
+ },
78
+ "bench_absolute_vo_error": {
79
+ "value": 6.7699519501474015e-06,
80
+ "case": "cf_1"
81
+ },
82
+ "bench_convergence_ohm": {
83
+ "value": 2.2274308092401496e-05,
84
+ "case": "cf_1"
85
+ },
86
+ "bench_energy_residual_w": {
87
+ "value": 2.7397526158477866e-05,
88
+ "case": "io_2"
89
+ },
90
+ "numeric_energy_residual_w": {
91
+ "value": 8.59941517300511e-09,
92
+ "case": "overdamped_math"
93
+ },
94
+ "analysis_relative_req_difference": {
95
+ "value": 0.06154319455331281,
96
+ "case": "co_1"
97
+ },
98
+ "analysis_output_difference_v": {
99
+ "value": 0.001725527723591025,
100
+ "case": "cf_1"
101
+ },
102
+ "clamped_relative_req_error": {
103
+ "value": 3.43617421874054e-05,
104
+ "case": "width_split_equal"
105
+ },
106
+ "stiff_analysis_relative_req_error": {
107
+ "value": 1.0447304132910062e-09,
108
+ "case": "fs_1"
109
+ }
110
+ }
111
+ }
docs/topology/2to1_buck_stacked/evidence/browser.json ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "analysis": {
3
+ "controls": {
4
+ "utilization": ".5",
5
+ "die_mm2": "1.5",
6
+ "ron_area_mohm_mm2": "1.1",
7
+ "vout": "3.2",
8
+ "io": "1.25",
9
+ "fs_mhz": "2.4",
10
+ "cap_uf": "44",
11
+ "si_l_nh": "1180",
12
+ "si_coupling": ".56",
13
+ "si_duty": ".61",
14
+ "rc_mohm": "6",
15
+ "rl_mohm": "5"
16
+ },
17
+ "losses": {
18
+ "fet": 0.018274235898271443,
19
+ "cap": 0.000024274633725940832,
20
+ "ind": 0.003940303911711195,
21
+ "gate": 0.0019181212561983475,
22
+ "coss": 0.0006556765090909092
23
+ },
24
+ "efficiency": 0.9898425425204165,
25
+ "deviceCount": 8
26
+ },
27
+ "simulator": {
28
+ "edited": {
29
+ "run": "ea153c8017214ebca997f4bbf25a4c1a",
30
+ "settings": {
31
+ "vin": "3.12",
32
+ "load": "1.24",
33
+ "fs": "2.25",
34
+ "lt": "1150",
35
+ "coupling": ".57",
36
+ "dcr": "5.1",
37
+ "rs": "9",
38
+ "rslow": "15",
39
+ "gatecap": "29",
40
+ "coss": "12",
41
+ "cout": "44",
42
+ "esr": "5.5",
43
+ "stop": "110",
44
+ "step": "750"
45
+ },
46
+ "metrics": {
47
+ "value": null,
48
+ "status": "passed",
49
+ "message": "",
50
+ "deck": "physical_design.cir",
51
+ "waveform": "physical_design_waveform.csv",
52
+ "deck_sha256": "dad1e3d29c8156095d53a1178c168dfeef1316ebc4282f22809e7444fa2d0f35",
53
+ "nominal_vout_v": 1.548070447394674,
54
+ "ideal_vout_v": 1.548070447394674,
55
+ "ideal_gain": 0.4961764254470109,
56
+ "vin_v": 3.12,
57
+ "target_vout_v": 1.53,
58
+ "analytical_vout_v": 1.53,
59
+ "analytical_gain": 0.49038461538461536,
60
+ "simulated_gain": 0.49038525452589316,
61
+ "target_error_v": 0.0000019941207867191224,
62
+ "operating_point": {
63
+ "schema_version": 1,
64
+ "nominal_ratio": 2,
65
+ "inputs": {
66
+ "input_voltage_v": 3.12,
67
+ "load": {
68
+ "kind": "current",
69
+ "value": 1.24
70
+ },
71
+ "switching_frequency_hz": 2250000,
72
+ "mode": "output_voltage",
73
+ "target_output_v": 1.53
74
+ },
75
+ "derived": {
76
+ "applied_duty": 0.4961764254470109,
77
+ "ideal_output_voltage_v": 1.548070447394674,
78
+ "ideal_gain": 0.4961764254470109,
79
+ "ideal_operating_ratio": 2.015412157276696,
80
+ "analytical_output_voltage_v": 1.53,
81
+ "loaded_gain": 0.49038461538461536,
82
+ "operating_ratio": 2.03921568627451,
83
+ "conduction_mode": "positive_current_ccm"
84
+ },
85
+ "range": {
86
+ "duty": {
87
+ "min": 0.25,
88
+ "max": 0.75
89
+ },
90
+ "conduction_modes": [
91
+ "positive_current_ccm"
92
+ ],
93
+ "loaded_voltage_v": {
94
+ "min": 0.7600980000000002,
95
+ "max": 2.3238180000000006
96
+ }
97
+ },
98
+ "solver": {
99
+ "status": "resolved",
100
+ "valid": true,
101
+ "diagnostics": []
102
+ },
103
+ "measurement": {
104
+ "output_voltage_v": 1.5300019941207867,
105
+ "gain": 0.49038525452589316,
106
+ "operating_ratio": 2.039213028472491
107
+ }
108
+ },
109
+ "stop_us": 109.77777777777777,
110
+ "max_step_ps": 750,
111
+ "window_start_cycles": 241.826795,
112
+ "window_stop_cycles": 245.826795,
113
+ "vout_v": 1.5300019941207867,
114
+ "iout_a": 1.24,
115
+ "iin_a": 0.61531573502324,
116
+ "input_w": 1.9200478357384068,
117
+ "electrical_input_w": 1.9197850932725093,
118
+ "delivered_w": 1.8972024727097756,
119
+ "stage_w": 0.0228453630286312,
120
+ "supplemental_gate_w": 0.0012685368412732009,
121
+ "coss_w": 0.00026274246589745126,
122
+ "gate_drive_v": 1.56,
123
+ "stage_efficiency": 0.9881016698629046,
124
+ "efficiency_with_gate": 0.9874492820578386,
125
+ "switch_w": [
126
+ 0.001731450427558176,
127
+ 0.0017314504275581825,
128
+ 0.0029273181100958195,
129
+ 0.0029273181100958195,
130
+ 0.0017310186699023215,
131
+ 0.0017310186699023198,
132
+ 0.0029265873948264034,
133
+ 0.0029265873948264034
134
+ ],
135
+ "esr_w": [
136
+ 5.218069939160327e-8
137
+ ],
138
+ "dcr_w": [
139
+ 0.0019764422891168656,
140
+ 0.001975949183255344
141
+ ],
142
+ "storage_w": 0.0000016856390779655915,
143
+ "balance_w": -0.000004257934181265196,
144
+ "resistance_power_ohm": 0.014857806340160769,
145
+ "resistance_droop_ohm": 0.014571333285392972,
146
+ "ripple_vpp": 0.00005868304306799743,
147
+ "duty": 0.4961764254470109,
148
+ "measured_duty": [
149
+ 0.49617642544702895,
150
+ 0.49617642544708307
151
+ ],
152
+ "winding_average_a": [
153
+ 0.6200394746357759,
154
+ 0.6199615093272572
155
+ ],
156
+ "winding_rms_a": [
157
+ 0.6225252635422963,
158
+ 0.6224476012682332
159
+ ],
160
+ "winding_voltage_peak_v": [
161
+ 1.577966157209343,
162
+ 1.577967969800907
163
+ ],
164
+ "winding_min_a": [
165
+ 0.5219193478375418,
166
+ 0.5218412433449993
167
+ ],
168
+ "winding_ripple_a": [
169
+ 0.1963158339917308,
170
+ 0.1963160229724885
171
+ ],
172
+ "winding_sum_ripple_a": 0.010663416221979638,
173
+ "winding_delta_ripple_a": 0.3819915004426704,
174
+ "winding_voltage_mean_v": [
175
+ -0.0000028058149682428655,
176
+ -5.333717839772386e-7
177
+ ],
178
+ "switch_peak_v": [
179
+ 1.570772495601687,
180
+ 1.570772495601687,
181
+ 1.55530259719545,
182
+ 1.55530259719545,
183
+ 1.570771326869518,
184
+ 1.570771326869517,
185
+ 1.555303300116892,
186
+ 1.555303300116891
187
+ ],
188
+ "output_cap_rms_a": 0.0030801623154279407,
189
+ "output_cap_average_a": 9.839629561883076e-7,
190
+ "gate_overlap_fraction": [
191
+ 0,
192
+ 0
193
+ ],
194
+ "window_drift_v": 2.921751951490137e-8,
195
+ "window_drift_w": 0.0000011835857863934374
196
+ }
197
+ },
198
+ "sweep": {
199
+ "run": "e0658cce48c24b05a8982343376ac9f1",
200
+ "rows": [
201
+ {
202
+ "duty": 0.475,
203
+ "vout": 1.4639125507001383,
204
+ "status": "passed"
205
+ },
206
+ {
207
+ "duty": 0.4875,
208
+ "vout": 1.5029112624462917,
209
+ "status": "passed"
210
+ },
211
+ {
212
+ "duty": 0.5,
213
+ "vout": 1.5419081960398158,
214
+ "status": "passed"
215
+ },
216
+ {
217
+ "duty": 0.5125,
218
+ "vout": 1.5809086248649153,
219
+ "status": "passed"
220
+ },
221
+ {
222
+ "duty": 0.525,
223
+ "vout": 1.6199069273546736,
224
+ "status": "passed"
225
+ }
226
+ ]
227
+ }
228
+ },
229
+ "reload": {
230
+ "versioned": [
231
+ "/pe.js",
232
+ "/gallery.js",
233
+ "/compare/index.html",
234
+ "/compare/buck-stacked.js",
235
+ "/compare/engine.js",
236
+ "/compare/technology.js",
237
+ "/compare/recommend.js",
238
+ "/compare/scoreboard.js",
239
+ "/compare/app.js"
240
+ ]
241
+ }
242
+ }
docs/topology/2to1_buck_stacked/evidence/cache.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "currentId": "buck_stacked",
3
+ "previousBuildCards": 9,
4
+ "currentCards": 10,
5
+ "assets": [
6
+ {
7
+ "path": "/pe.js",
8
+ "url": "http://127.0.0.1:8765/pe.js?v=buck-stacked",
9
+ "cacheControl": "no-store"
10
+ },
11
+ {
12
+ "path": "/gallery.js",
13
+ "url": "http://127.0.0.1:8765/gallery.js?v=buck-stacked",
14
+ "cacheControl": "no-store"
15
+ },
16
+ {
17
+ "path": "/compare/app.js",
18
+ "url": "http://127.0.0.1:8765/compare/app.js?v=buck-stacked",
19
+ "cacheControl": "no-store"
20
+ },
21
+ {
22
+ "path": "/compare/style.css",
23
+ "url": "http://127.0.0.1:8765/compare/style.css?v=operating-conditions"
24
+ },
25
+ {
26
+ "path": "/compare/models-data.json",
27
+ "url": "http://127.0.0.1:8765/compare/models-data.json",
28
+ "cacheControl": "no-store"
29
+ },
30
+ {
31
+ "path": "/compare/switched-inductor.js",
32
+ "url": "http://127.0.0.1:8765/compare/switched-inductor.js?v=operating-conditions"
33
+ },
34
+ {
35
+ "path": "/compare/operating-point.js",
36
+ "url": "http://127.0.0.1:8765/compare/operating-point.js?v=operating-conditions"
37
+ },
38
+ {
39
+ "path": "/compare/operating-conditions.json",
40
+ "url": "http://127.0.0.1:8765/compare/operating-conditions.json",
41
+ "cacheControl": "no-store"
42
+ },
43
+ {
44
+ "path": "/compare/buck-stacked.js",
45
+ "url": "http://127.0.0.1:8765/compare/buck-stacked.js?v=buck-stacked",
46
+ "cacheControl": "no-store"
47
+ },
48
+ {
49
+ "path": "/compare/engine.js",
50
+ "url": "http://127.0.0.1:8765/compare/engine.js?v=buck-stacked",
51
+ "cacheControl": "no-store"
52
+ },
53
+ {
54
+ "path": "/compare/technology.js",
55
+ "url": "http://127.0.0.1:8765/compare/technology.js?v=buck-stacked",
56
+ "cacheControl": "no-store"
57
+ }
58
+ ],
59
+ "normalReload": true,
60
+ "freshContext": true
61
+ }
docs/topology/2to1_buck_stacked/evidence/coss-browser.json ADDED
@@ -0,0 +1,979 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "nominal": {
3
+ "payload": {
4
+ "topologies": [
5
+ "buck_stacked"
6
+ ],
7
+ "voltage_mode": "duty_cycle",
8
+ "input_voltage_v": 3,
9
+ "output_current_a": 1,
10
+ "switching_frequency_mhz": 2,
11
+ "duty": 0.5,
12
+ "inductance_nh": 1000,
13
+ "coupling": 0.6,
14
+ "dcr_mohm": 4,
15
+ "switch_ron_mohm": 12,
16
+ "low_ron_mohm": null,
17
+ "gate_cap_pf": 25,
18
+ "switch_coff_pf": 10,
19
+ "output_cap_uf": 47,
20
+ "output_esr_mohm": 5,
21
+ "stop_us": null,
22
+ "max_step_ps": null
23
+ },
24
+ "result": {
25
+ "run_id": "7b7b2ff4322d4dc1a18c59c14350f5aa",
26
+ "settings": {
27
+ "input_voltage_v": 3,
28
+ "output_current_a": 1,
29
+ "switching_frequency_mhz": 2,
30
+ "duty": 0.5,
31
+ "inductance_nh": 1000,
32
+ "coupling": 0.6,
33
+ "dcr_mohm": 4,
34
+ "switch_ron_mohm": 12,
35
+ "low_ron_mohm": null,
36
+ "gate_cap_pf": 25,
37
+ "switch_coff_pf": 10,
38
+ "output_cap_uf": 47,
39
+ "output_esr_mohm": 5,
40
+ "stop_us": null,
41
+ "max_step_ps": null,
42
+ "voltage_mode": "duty_cycle",
43
+ "topologies": [
44
+ "buck_stacked"
45
+ ],
46
+ "sweep": null
47
+ },
48
+ "metrics": {
49
+ "value": null,
50
+ "status": "passed",
51
+ "message": "",
52
+ "deck": "physical_design.cir",
53
+ "waveform": "physical_design_waveform.csv",
54
+ "deck_sha256": "77bdc1dedd8eccf19dbab9df9920758ffce3ff7c4a6f75d13f3860cfcd57f143",
55
+ "nominal_vout_v": 1.5,
56
+ "ideal_vout_v": 1.5,
57
+ "ideal_gain": 0.5,
58
+ "vin_v": 3,
59
+ "target_vout_v": null,
60
+ "analytical_vout_v": 1.486,
61
+ "analytical_gain": 0.49533333333333335,
62
+ "simulated_gain": 0.49533333333341184,
63
+ "target_error_v": null,
64
+ "operating_point": {
65
+ "schema_version": 1,
66
+ "nominal_ratio": 2,
67
+ "inputs": {
68
+ "input_voltage_v": 3,
69
+ "load": {
70
+ "kind": "current",
71
+ "value": 1
72
+ },
73
+ "switching_frequency_hz": 2000000,
74
+ "mode": "duty_cycle",
75
+ "duty": 0.5
76
+ },
77
+ "derived": {
78
+ "applied_duty": 0.5,
79
+ "ideal_output_voltage_v": 1.5,
80
+ "ideal_gain": 0.5,
81
+ "ideal_operating_ratio": 2,
82
+ "analytical_output_voltage_v": 1.486,
83
+ "loaded_gain": 0.49533333333333335,
84
+ "operating_ratio": 2.018842530282638,
85
+ "conduction_mode": "positive_current_ccm"
86
+ },
87
+ "range": {
88
+ "duty": {
89
+ "min": 0.25,
90
+ "max": 0.75
91
+ },
92
+ "conduction_modes": [
93
+ "positive_current_ccm"
94
+ ],
95
+ "loaded_voltage_v": {
96
+ "min": 0.736,
97
+ "max": 2.236
98
+ }
99
+ },
100
+ "solver": {
101
+ "status": "resolved",
102
+ "valid": true,
103
+ "diagnostics": []
104
+ },
105
+ "measurement": {
106
+ "output_voltage_v": 1.4860000000002356,
107
+ "gain": 0.49533333333341184,
108
+ "operating_ratio": 2.018842530282318
109
+ }
110
+ },
111
+ "stop_us": 126.49999999999999,
112
+ "max_step_ps": 1041.6666666666667,
113
+ "window_start_cycles": 247.826795,
114
+ "window_stop_cycles": 251.826795,
115
+ "vout_v": 1.4860000000002356,
116
+ "iout_a": 1,
117
+ "iin_a": 0.5000854395572357,
118
+ "input_w": 1.5004360960935776,
119
+ "electrical_input_w": 1.5002563186717073,
120
+ "delivered_w": 1.4860000000002356,
121
+ "stage_w": 0.014436096093341965,
122
+ "supplemental_gate_w": 0.0008987210708019572,
123
+ "coss_w": 0.00017977742187026314,
124
+ "gate_drive_v": 1.5,
125
+ "stage_efficiency": 0.9903787331357018,
126
+ "efficiency_with_gate": 0.9897858778809197,
127
+ "efficiency_includes_coss": true,
128
+ "switch_w": [
129
+ 0.0015280273225401928,
130
+ 0.0015280273225401896,
131
+ 0.001527002048296278,
132
+ 0.001527002048296278,
133
+ 0.0015279335512081813,
134
+ 0.0015279335512081815,
135
+ 0.001526908275990403,
136
+ 0.001526908275990403
137
+ ],
138
+ "esr_w": [
139
+ 3.882432009924975e-25
140
+ ],
141
+ "dcr_w": [
142
+ 0.0010183423736213496,
143
+ 0.0010182798590761914
144
+ ],
145
+ "storage_w": 1.718802983513399e-8,
146
+ "balance_w": -6.314532578050562e-8,
147
+ "resistance_power_ohm": 0.014436096093341965,
148
+ "resistance_droop_ohm": 0.013999999999764423,
149
+ "ripple_vpp": 2.5979218776228663e-14,
150
+ "duty": 0.5,
151
+ "measured_duty": [
152
+ 0.49999999999988076,
153
+ 0.5000000000001192
154
+ ],
155
+ "winding_average_a": [
156
+ 0.5000078143138162,
157
+ 0.4999921856775274
158
+ ],
159
+ "winding_rms_a": [
160
+ 0.5045647564043072,
161
+ 0.5045492689213293
162
+ ],
163
+ "winding_voltage_peak_v": [
164
+ 1.503281425519005,
165
+ 1.503281425519058
166
+ ],
167
+ "winding_min_a": [
168
+ 0.382821263489706,
169
+ 0.3828056221322905
170
+ ],
171
+ "winding_ripple_a": [
172
+ 0.2343731143693255,
173
+ 0.23437311436936847
174
+ ],
175
+ "winding_sum_ripple_a": 1.270095140171179e-13,
176
+ "winding_delta_ripple_a": 0.468746228738694,
177
+ "winding_voltage_mean_v": [
178
+ -2.374877125839877e-7,
179
+ 2.3748777207481734e-7
180
+ ],
181
+ "switch_peak_v": [
182
+ 1.507406052169711,
183
+ 1.507406052169711,
184
+ 1.495405864523097,
185
+ 1.495405864523097,
186
+ 1.507405864522849,
187
+ 1.507405864522849,
188
+ 1.495406052169959,
189
+ 1.495406052169959
190
+ ],
191
+ "output_cap_rms_a": 8.81184658278272e-12,
192
+ "output_cap_average_a": -8.81147874153936e-12,
193
+ "gate_overlap_fraction": [
194
+ 0,
195
+ 0
196
+ ],
197
+ "window_drift_v": 6.8833827526759706e-15,
198
+ "window_drift_w": 6.62651282803961e-10
199
+ }
200
+ },
201
+ "waveform_columns": [
202
+ "time_s",
203
+ "vin_v",
204
+ "vout_v",
205
+ "input_current_a",
206
+ "sw_a_v",
207
+ "sw_b_v",
208
+ "vgs_q1_v",
209
+ "vgs_q2_v",
210
+ "vgs_q3_v",
211
+ "vgs_q4_v",
212
+ "il_a_a",
213
+ "il_b_a",
214
+ "vl_a_v",
215
+ "vl_b_v",
216
+ "iq1_a",
217
+ "iq2_a",
218
+ "iq3_a",
219
+ "iq4_a",
220
+ "vcap_v",
221
+ "vds_m13_v",
222
+ "vds_m15_v",
223
+ "vds_m11_v",
224
+ "vds_m9_v",
225
+ "vds_m14_v",
226
+ "vds_m16_v",
227
+ "vds_m12_v",
228
+ "vds_m10_v",
229
+ "gate_fixture_power_w",
230
+ "coss_discharge_fixture_power_w",
231
+ "icap_a",
232
+ "output_current_a",
233
+ "input_power_w",
234
+ "delivered_power_w",
235
+ "winding_sum_a",
236
+ "winding_delta_a"
237
+ ]
238
+ },
239
+ "positive": {
240
+ "analysis": {
241
+ "coss_pf": 26,
242
+ "coss_w": 0.000468,
243
+ "efficiency": 0.9892588818338787,
244
+ "coss_included": true
245
+ },
246
+ "payload": {
247
+ "topologies": [
248
+ "buck_stacked"
249
+ ],
250
+ "voltage_mode": "duty_cycle",
251
+ "input_voltage_v": 3,
252
+ "output_current_a": 1,
253
+ "switching_frequency_mhz": 2,
254
+ "duty": 0.5,
255
+ "inductance_nh": 1000,
256
+ "coupling": 0.6,
257
+ "dcr_mohm": 4,
258
+ "switch_ron_mohm": 12.040000000000001,
259
+ "low_ron_mohm": 12.040000000000001,
260
+ "gate_cap_pf": 38.03030303030303,
261
+ "switch_coff_pf": 26,
262
+ "output_cap_uf": 47,
263
+ "output_esr_mohm": 5,
264
+ "stop_us": null,
265
+ "max_step_ps": null
266
+ },
267
+ "result": {
268
+ "run_id": "29af8867e3a84a3fb1555c5e0d96559e",
269
+ "settings": {
270
+ "input_voltage_v": 3,
271
+ "output_current_a": 1,
272
+ "switching_frequency_mhz": 2,
273
+ "duty": 0.5,
274
+ "inductance_nh": 1000,
275
+ "coupling": 0.6,
276
+ "dcr_mohm": 4,
277
+ "switch_ron_mohm": 12.040000000000001,
278
+ "low_ron_mohm": 12.040000000000001,
279
+ "gate_cap_pf": 38.03030303030303,
280
+ "switch_coff_pf": 26,
281
+ "output_cap_uf": 47,
282
+ "output_esr_mohm": 5,
283
+ "stop_us": null,
284
+ "max_step_ps": null,
285
+ "voltage_mode": "duty_cycle",
286
+ "topologies": [
287
+ "buck_stacked"
288
+ ],
289
+ "sweep": null
290
+ },
291
+ "metrics": {
292
+ "value": null,
293
+ "status": "passed",
294
+ "message": "",
295
+ "deck": "physical_design.cir",
296
+ "waveform": "physical_design_waveform.csv",
297
+ "deck_sha256": "37887d3d08acae94bc9e56feda72c1a484674e540ce8bb5e525a65f641b931af",
298
+ "nominal_vout_v": 1.5,
299
+ "ideal_vout_v": 1.5,
300
+ "ideal_gain": 0.5,
301
+ "vin_v": 3,
302
+ "target_vout_v": null,
303
+ "analytical_vout_v": 1.48596,
304
+ "analytical_gain": 0.49532,
305
+ "simulated_gain": 0.49532000000009324,
306
+ "target_error_v": null,
307
+ "operating_point": {
308
+ "schema_version": 1,
309
+ "nominal_ratio": 2,
310
+ "inputs": {
311
+ "input_voltage_v": 3,
312
+ "load": {
313
+ "kind": "current",
314
+ "value": 1
315
+ },
316
+ "switching_frequency_hz": 2000000,
317
+ "mode": "duty_cycle",
318
+ "duty": 0.5
319
+ },
320
+ "derived": {
321
+ "applied_duty": 0.5,
322
+ "ideal_output_voltage_v": 1.5,
323
+ "ideal_gain": 0.5,
324
+ "ideal_operating_ratio": 2,
325
+ "analytical_output_voltage_v": 1.48596,
326
+ "loaded_gain": 0.49532,
327
+ "operating_ratio": 2.018896874747638,
328
+ "conduction_mode": "positive_current_ccm"
329
+ },
330
+ "range": {
331
+ "duty": {
332
+ "min": 0.25,
333
+ "max": 0.75
334
+ },
335
+ "conduction_modes": [
336
+ "positive_current_ccm"
337
+ ],
338
+ "loaded_voltage_v": {
339
+ "min": 0.73596,
340
+ "max": 2.23596
341
+ }
342
+ },
343
+ "solver": {
344
+ "status": "resolved",
345
+ "valid": true,
346
+ "diagnostics": []
347
+ },
348
+ "measurement": {
349
+ "output_voltage_v": 1.4859600000002797,
350
+ "gain": 0.49532000000009324,
351
+ "operating_ratio": 2.018896874747258
352
+ }
353
+ },
354
+ "stop_us": 126.49999999999999,
355
+ "max_step_ps": 1041.6666666666667,
356
+ "window_start_cycles": 247.826795,
357
+ "window_stop_cycles": 251.826795,
358
+ "vout_v": 1.4859600000002797,
359
+ "iout_a": 1,
360
+ "iin_a": 0.50008568334754,
361
+ "input_w": 1.5007248643415778,
362
+ "electrical_input_w": 1.50025705004262,
363
+ "delivered_w": 1.4859600000002797,
364
+ "stage_w": 0.01476486434129816,
365
+ "supplemental_gate_w": 0.0013670390423962055,
366
+ "coss_w": 0.00046781429895788535,
367
+ "gate_drive_v": 1.5,
368
+ "stage_efficiency": 0.9901615114854674,
369
+ "efficiency_with_gate": 0.9892603752491099,
370
+ "efficiency_includes_coss": true,
371
+ "switch_w": [
372
+ 0.0015331191309726957,
373
+ 0.001533119130972695,
374
+ 0.0015320874904126787,
375
+ 0.0015320874904126787,
376
+ 0.0015330311892458313,
377
+ 0.0015330311892458271,
378
+ 0.0015319995746884184,
379
+ 0.0015319995746884184
380
+ ],
381
+ "esr_w": [
382
+ 4.694586506110313e-25
383
+ ],
384
+ "dcr_w": [
385
+ 0.0010183403227301863,
386
+ 0.0010182818983286344
387
+ ],
388
+ "storage_w": 1.6105487847225102e-8,
389
+ "balance_w": -6.305484563586162e-8,
390
+ "resistance_power_ohm": 0.01476486434129816,
391
+ "resistance_droop_ohm": 0.014039999999720276,
392
+ "ripple_vpp": 4.39648317751562e-14,
393
+ "duty": 0.5,
394
+ "measured_duty": [
395
+ 0.4999999999998195,
396
+ 0.5000000000001805
397
+ ],
398
+ "winding_average_a": [
399
+ 0.5000073030454115,
400
+ 0.4999926969450232
401
+ ],
402
+ "winding_rms_a": [
403
+ 0.5045642483198212,
404
+ 0.5045497741374566
405
+ ],
406
+ "winding_voltage_peak_v": [
407
+ 1.503290786457803,
408
+ 1.503290786457772
409
+ ],
410
+ "winding_min_a": [
411
+ 0.3828207587535012,
412
+ 0.3828061407146479
413
+ ],
414
+ "winding_ripple_a": [
415
+ 0.2343731005222961,
416
+ 0.23437310052227722
417
+ ],
418
+ "winding_sum_ripple_a": 5.4067861299245124e-14,
419
+ "winding_delta_ripple_a": 0.4687462010445733,
420
+ "winding_voltage_mean_v": [
421
+ -2.2253366647571375e-7,
422
+ 2.2253366625072062e-7
423
+ ],
424
+ "switch_peak_v": [
425
+ 1.507430732766297,
426
+ 1.507430732766297,
427
+ 1.495390556811717,
428
+ 1.495390556811716,
429
+ 1.507430556811456,
430
+ 1.507430556811456,
431
+ 1.495390732766557,
432
+ 1.495390732766557
433
+ ],
434
+ "output_cap_rms_a": 9.689774513486177e-12,
435
+ "output_cap_average_a": -9.689071599288718e-12,
436
+ "gate_overlap_fraction": [
437
+ 0,
438
+ 0
439
+ ],
440
+ "window_drift_v": 7.105427357601002e-15,
441
+ "window_drift_w": 6.227716311396625e-10
442
+ }
443
+ },
444
+ "waveform_columns": [
445
+ "time_s",
446
+ "vin_v",
447
+ "vout_v",
448
+ "input_current_a",
449
+ "sw_a_v",
450
+ "sw_b_v",
451
+ "vgs_q1_v",
452
+ "vgs_q2_v",
453
+ "vgs_q3_v",
454
+ "vgs_q4_v",
455
+ "il_a_a",
456
+ "il_b_a",
457
+ "vl_a_v",
458
+ "vl_b_v",
459
+ "iq1_a",
460
+ "iq2_a",
461
+ "iq3_a",
462
+ "iq4_a",
463
+ "vcap_v",
464
+ "vds_m13_v",
465
+ "vds_m15_v",
466
+ "vds_m11_v",
467
+ "vds_m9_v",
468
+ "vds_m14_v",
469
+ "vds_m16_v",
470
+ "vds_m12_v",
471
+ "vds_m10_v",
472
+ "gate_fixture_power_w",
473
+ "coss_discharge_fixture_power_w",
474
+ "icap_a",
475
+ "output_current_a",
476
+ "input_power_w",
477
+ "delivered_power_w",
478
+ "winding_sum_a",
479
+ "winding_delta_a"
480
+ ]
481
+ },
482
+ "blank": {
483
+ "analysis": {
484
+ "coss_pf": null,
485
+ "coss_w": null,
486
+ "efficiency": 0.9895671963569225,
487
+ "coss_included": false
488
+ },
489
+ "payload": {
490
+ "topologies": [
491
+ "buck_stacked"
492
+ ],
493
+ "voltage_mode": "duty_cycle",
494
+ "input_voltage_v": 3,
495
+ "output_current_a": 1,
496
+ "switching_frequency_mhz": 2,
497
+ "duty": 0.5,
498
+ "inductance_nh": 1000,
499
+ "coupling": 0.6,
500
+ "dcr_mohm": 4,
501
+ "switch_ron_mohm": 12.040000000000001,
502
+ "low_ron_mohm": 12.040000000000001,
503
+ "gate_cap_pf": 38.03030303030303,
504
+ "switch_coff_pf": null,
505
+ "output_cap_uf": 47,
506
+ "output_esr_mohm": 5,
507
+ "stop_us": null,
508
+ "max_step_ps": null,
509
+ "sweep": {
510
+ "axis": "duty",
511
+ "start": 0.475,
512
+ "stop": 0.525,
513
+ "points": 2
514
+ }
515
+ },
516
+ "result": {
517
+ "run_id": "660c459177594b698e4d25f3fe1139a4",
518
+ "settings": {
519
+ "input_voltage_v": 3,
520
+ "output_current_a": 1,
521
+ "switching_frequency_mhz": 2,
522
+ "duty": 0.5,
523
+ "inductance_nh": 1000,
524
+ "coupling": 0.6,
525
+ "dcr_mohm": 4,
526
+ "switch_ron_mohm": 12.040000000000001,
527
+ "low_ron_mohm": 12.040000000000001,
528
+ "gate_cap_pf": 38.03030303030303,
529
+ "switch_coff_pf": null,
530
+ "output_cap_uf": 47,
531
+ "output_esr_mohm": 5,
532
+ "stop_us": null,
533
+ "max_step_ps": null,
534
+ "voltage_mode": "duty_cycle",
535
+ "topologies": [
536
+ "buck_stacked"
537
+ ],
538
+ "sweep": {
539
+ "axis": "duty",
540
+ "start": 0.475,
541
+ "stop": 0.525,
542
+ "points": 2
543
+ }
544
+ },
545
+ "metrics": {
546
+ "value": null,
547
+ "status": "passed",
548
+ "message": "",
549
+ "deck": "physical_design.cir",
550
+ "waveform": "physical_design_waveform.csv",
551
+ "deck_sha256": "848000094a580f753a632f6d4bfa68e786ba9513f8ade887ef1a5a21ebbaf488",
552
+ "nominal_vout_v": 1.5,
553
+ "ideal_vout_v": 1.5,
554
+ "ideal_gain": 0.5,
555
+ "vin_v": 3,
556
+ "target_vout_v": null,
557
+ "analytical_vout_v": 1.48596,
558
+ "analytical_gain": 0.49532,
559
+ "simulated_gain": 0.49532000000007587,
560
+ "target_error_v": null,
561
+ "operating_point": {
562
+ "schema_version": 1,
563
+ "nominal_ratio": 2,
564
+ "inputs": {
565
+ "input_voltage_v": 3,
566
+ "load": {
567
+ "kind": "current",
568
+ "value": 1
569
+ },
570
+ "switching_frequency_hz": 2000000,
571
+ "mode": "duty_cycle",
572
+ "duty": 0.5
573
+ },
574
+ "derived": {
575
+ "applied_duty": 0.5,
576
+ "ideal_output_voltage_v": 1.5,
577
+ "ideal_gain": 0.5,
578
+ "ideal_operating_ratio": 2,
579
+ "analytical_output_voltage_v": 1.48596,
580
+ "loaded_gain": 0.49532,
581
+ "operating_ratio": 2.018896874747638,
582
+ "conduction_mode": "positive_current_ccm"
583
+ },
584
+ "range": {
585
+ "duty": {
586
+ "min": 0.25,
587
+ "max": 0.75
588
+ },
589
+ "conduction_modes": [
590
+ "positive_current_ccm"
591
+ ],
592
+ "loaded_voltage_v": {
593
+ "min": 0.73596,
594
+ "max": 2.23596
595
+ }
596
+ },
597
+ "solver": {
598
+ "status": "resolved",
599
+ "valid": true,
600
+ "diagnostics": []
601
+ },
602
+ "measurement": {
603
+ "output_voltage_v": 1.4859600000002275,
604
+ "gain": 0.49532000000007587,
605
+ "operating_ratio": 2.0188968747473286
606
+ }
607
+ },
608
+ "stop_us": 126.49999999999999,
609
+ "max_step_ps": 1041.6666666666667,
610
+ "window_start_cycles": 247.826795,
611
+ "window_stop_cycles": 251.826795,
612
+ "vout_v": 1.4859600000002275,
613
+ "iout_a": 1,
614
+ "iin_a": 0.5000856827065264,
615
+ "input_w": 1.5002570481195794,
616
+ "electrical_input_w": 1.5002570481195794,
617
+ "delivered_w": 1.4859600000002275,
618
+ "stage_w": 0.01429704811935184,
619
+ "supplemental_gate_w": 0.0013667666552488868,
620
+ "coss_w": null,
621
+ "gate_drive_v": 1.5,
622
+ "stage_efficiency": 0.9904702676536186,
623
+ "efficiency_with_gate": 0.989568749096491,
624
+ "efficiency_includes_coss": false,
625
+ "switch_w": [
626
+ 0.001533113827910972,
627
+ 0.0015331138279109698,
628
+ 0.0015320821941401147,
629
+ 0.0015320821941401147,
630
+ 0.00153303648620024,
631
+ 0.001533036486200241,
632
+ 0.0015320048803153464,
633
+ 0.0015320048803153464
634
+ ],
635
+ "esr_w": [
636
+ 2.8945267752046217e-25
637
+ ],
638
+ "dcr_w": [
639
+ 0.0010183368013564733,
640
+ 0.0010182854207808343
641
+ ],
642
+ "storage_w": 1.4164677867049528e-8,
643
+ "balance_w": -6.304459668009768e-8,
644
+ "resistance_power_ohm": 0.01429704811935184,
645
+ "resistance_droop_ohm": 0.014039999999772457,
646
+ "ripple_vpp": 2.398081733190338e-14,
647
+ "duty": 0.5,
648
+ "measured_duty": [
649
+ 0.4999999999998086,
650
+ 0.5000000000001914
651
+ ],
652
+ "winding_average_a": [
653
+ 0.5000064225682216,
654
+ 0.4999935774243123
655
+ ],
656
+ "winding_rms_a": [
657
+ 0.5045633759391563,
658
+ 0.5045506468088297
659
+ ],
660
+ "winding_voltage_peak_v": [
661
+ 1.50329076141758,
662
+ 1.50329076141763
663
+ ],
664
+ "winding_min_a": [
665
+ 0.3828198880701205,
666
+ 0.382807032422545
667
+ ],
668
+ "winding_ripple_a": [
669
+ 0.234373079499899,
670
+ 0.23437307949984554
671
+ ],
672
+ "winding_sum_ripple_a": 7.771561172376096e-14,
673
+ "winding_delta_ripple_a": 0.46874615899974453,
674
+ "winding_voltage_mean_v": [
675
+ -1.9570438230810508e-7,
676
+ 1.9570442741260953e-7
677
+ ],
678
+ "switch_peak_v": [
679
+ 1.507430722032988,
680
+ 1.507430722032988,
681
+ 1.495390567291985,
682
+ 1.495390567291985,
683
+ 1.50743056729175,
684
+ 1.50743056729175,
685
+ 1.495390722033223,
686
+ 1.495390722033222
687
+ ],
688
+ "output_cap_rms_a": 7.60858301552217e-12,
689
+ "output_cap_average_a": -7.60816829210874e-12,
690
+ "gate_overlap_fraction": [
691
+ 0,
692
+ 0
693
+ ],
694
+ "window_drift_v": 1.4210854715202004e-14,
695
+ "window_drift_w": 5.476170628071486e-10
696
+ }
697
+ },
698
+ "waveform_columns": [
699
+ "time_s",
700
+ "vin_v",
701
+ "vout_v",
702
+ "input_current_a",
703
+ "sw_a_v",
704
+ "sw_b_v",
705
+ "vgs_q1_v",
706
+ "vgs_q2_v",
707
+ "vgs_q3_v",
708
+ "vgs_q4_v",
709
+ "il_a_a",
710
+ "il_b_a",
711
+ "vl_a_v",
712
+ "vl_b_v",
713
+ "iq1_a",
714
+ "iq2_a",
715
+ "iq3_a",
716
+ "iq4_a",
717
+ "vcap_v",
718
+ "vds_m13_v",
719
+ "vds_m15_v",
720
+ "vds_m11_v",
721
+ "vds_m9_v",
722
+ "vds_m14_v",
723
+ "vds_m16_v",
724
+ "vds_m12_v",
725
+ "vds_m10_v",
726
+ "gate_fixture_power_w",
727
+ "icap_a",
728
+ "output_current_a",
729
+ "input_power_w",
730
+ "delivered_power_w",
731
+ "winding_sum_a",
732
+ "winding_delta_a"
733
+ ],
734
+ "sweep_csv": "value,status,message,vout_v,iout_a,input_w,delivered_w,stage_w,supplemental_gate_w,stage_efficiency,efficiency_with_gate,deck_sha256,deck,waveform,phase,target_vout_v,analytical_vout_v,target_error_v,duty,ideal_gain,analytical_gain,simulated_gain,coss_w,efficiency_includes_coss\r\n0.475,passed,,1.4109610518153586,1,1.4252704279272692,1.4109610518153586,0.014309376111910632,0.0013667666552458887,0.9899602378387095,0.98901182246847,9847541552fe5cc46bb76e796b1b67b8aa13d80229a09b5993d0a059b799e896,physical_sweep_01.cir,physical_sweep_01_waveform.csv,,,1.4109599999999998,,0.475,0.475,0.4703199999999999,0.4703203506051195,,False\r\n0.525,passed,,1.5609611533408074,1,1.575261374393645,1.5609611533408074,0.01430022105283757,0.0013667666552467292,0.9909220010816668,0.9900629785171401,3e228a43643af5c2d4e6f7402bc9d12b784a975989e015ab8ce76559863c79e8,physical_sweep_02.cir,physical_sweep_02_waveform.csv,,,1.5609600000000001,,0.525,0.525,0.52032,0.5203203844469358,,False\r\n"
735
+ },
736
+ "zero": {
737
+ "analysis": {
738
+ "coss_pf": 0,
739
+ "coss_w": 0,
740
+ "efficiency": 0.9895671963569225,
741
+ "coss_included": true
742
+ },
743
+ "payload": {
744
+ "topologies": [
745
+ "buck_stacked"
746
+ ],
747
+ "voltage_mode": "duty_cycle",
748
+ "input_voltage_v": 3,
749
+ "output_current_a": 1,
750
+ "switching_frequency_mhz": 2,
751
+ "duty": 0.5,
752
+ "inductance_nh": 1000,
753
+ "coupling": 0.6,
754
+ "dcr_mohm": 4,
755
+ "switch_ron_mohm": 12.040000000000001,
756
+ "low_ron_mohm": 12.040000000000001,
757
+ "gate_cap_pf": 38.03030303030303,
758
+ "switch_coff_pf": 0,
759
+ "output_cap_uf": 47,
760
+ "output_esr_mohm": 5,
761
+ "stop_us": null,
762
+ "max_step_ps": null
763
+ },
764
+ "result": {
765
+ "run_id": "b095cfd5c7804fef8cf1a3b965931bc9",
766
+ "settings": {
767
+ "input_voltage_v": 3,
768
+ "output_current_a": 1,
769
+ "switching_frequency_mhz": 2,
770
+ "duty": 0.5,
771
+ "inductance_nh": 1000,
772
+ "coupling": 0.6,
773
+ "dcr_mohm": 4,
774
+ "switch_ron_mohm": 12.040000000000001,
775
+ "low_ron_mohm": 12.040000000000001,
776
+ "gate_cap_pf": 38.03030303030303,
777
+ "switch_coff_pf": 0,
778
+ "output_cap_uf": 47,
779
+ "output_esr_mohm": 5,
780
+ "stop_us": null,
781
+ "max_step_ps": null,
782
+ "voltage_mode": "duty_cycle",
783
+ "topologies": [
784
+ "buck_stacked"
785
+ ],
786
+ "sweep": null
787
+ },
788
+ "metrics": {
789
+ "value": null,
790
+ "status": "passed",
791
+ "message": "",
792
+ "deck": "physical_design.cir",
793
+ "waveform": "physical_design_waveform.csv",
794
+ "deck_sha256": "9b77576c154fcb41c19d8ff767b85aff78c2ddb3e1b2fabd23b535f10c84004f",
795
+ "nominal_vout_v": 1.5,
796
+ "ideal_vout_v": 1.5,
797
+ "ideal_gain": 0.5,
798
+ "vin_v": 3,
799
+ "target_vout_v": null,
800
+ "analytical_vout_v": 1.48596,
801
+ "analytical_gain": 0.49532,
802
+ "simulated_gain": 0.49532000000008214,
803
+ "target_error_v": null,
804
+ "operating_point": {
805
+ "schema_version": 1,
806
+ "nominal_ratio": 2,
807
+ "inputs": {
808
+ "input_voltage_v": 3,
809
+ "load": {
810
+ "kind": "current",
811
+ "value": 1
812
+ },
813
+ "switching_frequency_hz": 2000000,
814
+ "mode": "duty_cycle",
815
+ "duty": 0.5
816
+ },
817
+ "derived": {
818
+ "applied_duty": 0.5,
819
+ "ideal_output_voltage_v": 1.5,
820
+ "ideal_gain": 0.5,
821
+ "ideal_operating_ratio": 2,
822
+ "analytical_output_voltage_v": 1.48596,
823
+ "loaded_gain": 0.49532,
824
+ "operating_ratio": 2.018896874747638,
825
+ "conduction_mode": "positive_current_ccm"
826
+ },
827
+ "range": {
828
+ "duty": {
829
+ "min": 0.25,
830
+ "max": 0.75
831
+ },
832
+ "conduction_modes": [
833
+ "positive_current_ccm"
834
+ ],
835
+ "loaded_voltage_v": {
836
+ "min": 0.73596,
837
+ "max": 2.23596
838
+ }
839
+ },
840
+ "solver": {
841
+ "status": "resolved",
842
+ "valid": true,
843
+ "diagnostics": []
844
+ },
845
+ "measurement": {
846
+ "output_voltage_v": 1.4859600000002464,
847
+ "gain": 0.49532000000008214,
848
+ "operating_ratio": 2.0188968747473033
849
+ }
850
+ },
851
+ "stop_us": 126.49999999999999,
852
+ "max_step_ps": 1041.6666666666667,
853
+ "window_start_cycles": 247.826795,
854
+ "window_stop_cycles": 251.826795,
855
+ "vout_v": 1.4859600000002464,
856
+ "iout_a": 1,
857
+ "iin_a": 0.5000856827044818,
858
+ "input_w": 1.5002570481134456,
859
+ "electrical_input_w": 1.5002570481134456,
860
+ "delivered_w": 1.4859600000002464,
861
+ "stage_w": 0.014297048113199207,
862
+ "supplemental_gate_w": 0.0013667666552562015,
863
+ "coss_w": 0,
864
+ "gate_drive_v": 1.5,
865
+ "stage_efficiency": 0.9904702676576806,
866
+ "efficiency_with_gate": 0.9895687491005408,
867
+ "efficiency_includes_coss": true,
868
+ "switch_w": [
869
+ 0.0015331138278973336,
870
+ 0.001533113827897334,
871
+ 0.00153208219412607,
872
+ 0.00153208219412607,
873
+ 0.0015330364861892538,
874
+ 0.0015330364861892562,
875
+ 0.0015320048803041909,
876
+ 0.0015320048803041909
877
+ ],
878
+ "esr_w": [
879
+ 6.830919726691321e-25
880
+ ],
881
+ "dcr_w": [
882
+ 0.0010183368013474297,
883
+ 0.001018285420773509
884
+ ],
885
+ "storage_w": 1.4163868103551953e-8,
886
+ "balance_w": -6.304982353398662e-8,
887
+ "resistance_power_ohm": 0.014297048113199207,
888
+ "resistance_droop_ohm": 0.014039999999753583,
889
+ "ripple_vpp": 2.3092638912203256e-14,
890
+ "duty": 0.5,
891
+ "measured_duty": [
892
+ 0.4999999999998086,
893
+ 0.5000000000001914
894
+ ],
895
+ "winding_average_a": [
896
+ 0.5000064225659601,
897
+ 0.49999357742248246
898
+ ],
899
+ "winding_rms_a": [
900
+ 0.5045633759369159,
901
+ 0.5045506468070153
902
+ ],
903
+ "winding_voltage_peak_v": [
904
+ 1.50329076141754,
905
+ 1.503290761417656
906
+ ],
907
+ "winding_min_a": [
908
+ 0.3828198880678799,
909
+ 0.3828070324207022
910
+ ],
911
+ "winding_ripple_a": [
912
+ 0.2343730794998009,
913
+ 0.2343730794999333
914
+ ],
915
+ "winding_sum_ripple_a": 2.731148640577885e-13,
916
+ "winding_delta_ripple_a": 0.4687461589997342,
917
+ "winding_voltage_mean_v": [
918
+ -1.9570433761388223e-7,
919
+ 1.95704460023378e-7
920
+ ],
921
+ "switch_peak_v": [
922
+ 1.50743072203296,
923
+ 1.50743072203296,
924
+ 1.495390567292012,
925
+ 1.495390567292012,
926
+ 1.507430567291729,
927
+ 1.507430567291729,
928
+ 1.495390722033245,
929
+ 1.495390722033244
930
+ ],
931
+ "output_cap_rms_a": 1.1688387165636943e-11,
932
+ "output_cap_average_a": -1.1687825260698341e-11,
933
+ "gate_overlap_fraction": [
934
+ 0,
935
+ 0
936
+ ],
937
+ "window_drift_v": 2.353672812205332e-14,
938
+ "window_drift_w": 5.473068664940683e-10
939
+ }
940
+ },
941
+ "waveform_columns": [
942
+ "time_s",
943
+ "vin_v",
944
+ "vout_v",
945
+ "input_current_a",
946
+ "sw_a_v",
947
+ "sw_b_v",
948
+ "vgs_q1_v",
949
+ "vgs_q2_v",
950
+ "vgs_q3_v",
951
+ "vgs_q4_v",
952
+ "il_a_a",
953
+ "il_b_a",
954
+ "vl_a_v",
955
+ "vl_b_v",
956
+ "iq1_a",
957
+ "iq2_a",
958
+ "iq3_a",
959
+ "iq4_a",
960
+ "vcap_v",
961
+ "vds_m13_v",
962
+ "vds_m15_v",
963
+ "vds_m11_v",
964
+ "vds_m9_v",
965
+ "vds_m14_v",
966
+ "vds_m16_v",
967
+ "vds_m12_v",
968
+ "vds_m10_v",
969
+ "gate_fixture_power_w",
970
+ "coss_discharge_fixture_power_w",
971
+ "icap_a",
972
+ "output_current_a",
973
+ "input_power_w",
974
+ "delivered_power_w",
975
+ "winding_sum_a",
976
+ "winding_delta_a"
977
+ ]
978
+ }
979
+ }
docs/topology/2to1_buck_stacked/evidence/coss-cache.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "currentId": "buck_stacked",
3
+ "previousBuildCards": 10,
4
+ "currentCards": 10,
5
+ "assets": [
6
+ {
7
+ "path": "/pe.js",
8
+ "url": "http://127.0.0.1:8765/pe.js?v=buck-stacked-coss",
9
+ "cacheControl": "no-store"
10
+ },
11
+ {
12
+ "path": "/gallery.js",
13
+ "url": "http://127.0.0.1:8765/gallery.js?v=buck-stacked-coss",
14
+ "cacheControl": "no-store"
15
+ },
16
+ {
17
+ "path": "/compare/app.js",
18
+ "url": "http://127.0.0.1:8765/compare/app.js?v=buck-stacked-coss",
19
+ "cacheControl": "no-store"
20
+ },
21
+ {
22
+ "path": "/compare/style.css",
23
+ "url": "http://127.0.0.1:8765/compare/style.css?v=operating-conditions"
24
+ },
25
+ {
26
+ "path": "/compare/models-data.json",
27
+ "url": "http://127.0.0.1:8765/compare/models-data.json",
28
+ "cacheControl": "no-store"
29
+ },
30
+ {
31
+ "path": "/compare/switched-inductor.js",
32
+ "url": "http://127.0.0.1:8765/compare/switched-inductor.js?v=operating-conditions"
33
+ },
34
+ {
35
+ "path": "/compare/operating-point.js",
36
+ "url": "http://127.0.0.1:8765/compare/operating-point.js?v=operating-conditions"
37
+ },
38
+ {
39
+ "path": "/compare/operating-conditions.json",
40
+ "url": "http://127.0.0.1:8765/compare/operating-conditions.json",
41
+ "cacheControl": "no-store"
42
+ },
43
+ {
44
+ "path": "/compare/buck-stacked.js",
45
+ "url": "http://127.0.0.1:8765/compare/buck-stacked.js?v=buck-stacked-coss",
46
+ "cacheControl": "no-store"
47
+ },
48
+ {
49
+ "path": "/compare/engine.js",
50
+ "url": "http://127.0.0.1:8765/compare/engine.js?v=buck-stacked-coss",
51
+ "cacheControl": "no-store"
52
+ },
53
+ {
54
+ "path": "/compare/technology.js",
55
+ "url": "http://127.0.0.1:8765/compare/technology.js?v=buck-stacked-coss",
56
+ "cacheControl": "no-store"
57
+ }
58
+ ],
59
+ "normalReload": true,
60
+ "freshContext": true,
61
+ "blankCossHandoff": true
62
+ }
docs/topology/2to1_buck_stacked/evidence/coss-regressions.json ADDED
@@ -0,0 +1,290 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "date": "2026-11-30",
3
+ "audited_commit": "b7e5560",
4
+ "baselines": {
5
+ "validated-2to1-v1.0": "659f8088111bf639bdfe2e4236cc48a66af50f28",
6
+ "local-baseline-v1.0": "4cbae7715292e963c65e12e90d13699234ab26fe"
7
+ },
8
+ "known_stacked_decks_identical": 30,
9
+ "packaged_analysis_tests_passed": 45,
10
+ "baseline_2to1": {
11
+ "matched": {
12
+ "si2": {
13
+ "cases": 33,
14
+ "bench_relative_req_error": {
15
+ "value": 0.0001262280412663852,
16
+ "case": "duty_4"
17
+ },
18
+ "bench_absolute_vo_error": {
19
+ "value": 9.940919230566614e-06,
20
+ "case": "duty_1"
21
+ },
22
+ "bench_convergence_ohm": {
23
+ "value": 9.703032875924e-07,
24
+ "case": "ccm_reject"
25
+ },
26
+ "bench_energy_residual_w": {
27
+ "value": 2.0323409635715165e-06,
28
+ "case": "unequal_switches"
29
+ },
30
+ "numeric_energy_residual_w": {
31
+ "value": 5.506762927598441e-11,
32
+ "case": "cf_2"
33
+ },
34
+ "analysis_relative_req_difference": {
35
+ "value": 3.772370049359708e-05,
36
+ "case": "unequal_symmetric_duty"
37
+ },
38
+ "analysis_output_difference_v": {
39
+ "value": 3.385607068295826e-05,
40
+ "case": "unequal_symmetric_duty"
41
+ }
42
+ },
43
+ "sp2": {
44
+ "cases": 20,
45
+ "bench_relative_req_error": {
46
+ "value": 4.761822107179903e-05,
47
+ "case": "io_1"
48
+ },
49
+ "bench_absolute_vo_error": {
50
+ "value": 3.458280290802307e-06,
51
+ "case": "fs_1"
52
+ },
53
+ "bench_convergence_ohm": {
54
+ "value": 2.689999308760904e-06,
55
+ "case": "co_1"
56
+ },
57
+ "bench_energy_residual_w": {
58
+ "value": 0.0004411606570880663,
59
+ "case": "fs_1"
60
+ },
61
+ "numeric_energy_residual_w": {
62
+ "value": 4.447195533362376e-07,
63
+ "case": "fs_1"
64
+ },
65
+ "analysis_relative_req_difference": {
66
+ "value": 0.15266292141261317,
67
+ "case": "fs_1"
68
+ },
69
+ "analysis_output_difference_v": {
70
+ "value": 0.09440669609019381,
71
+ "case": "fs_1"
72
+ },
73
+ "clamped_relative_req_error": {
74
+ "value": 0.00019448670000654644,
75
+ "case": "fs_1"
76
+ },
77
+ "stiff_analysis_relative_req_error": {
78
+ "value": 1.0491368788168032e-06,
79
+ "case": "ssl_limit"
80
+ }
81
+ },
82
+ "rsc2": {
83
+ "cases": 27,
84
+ "bench_relative_req_error": {
85
+ "value": 0.00044707001744093144,
86
+ "case": "weak_tuned"
87
+ },
88
+ "bench_absolute_vo_error": {
89
+ "value": 6.7699519501474015e-06,
90
+ "case": "cf_1"
91
+ },
92
+ "bench_convergence_ohm": {
93
+ "value": 2.2274308092401496e-05,
94
+ "case": "cf_1"
95
+ },
96
+ "bench_energy_residual_w": {
97
+ "value": 2.7397526158477866e-05,
98
+ "case": "io_2"
99
+ },
100
+ "numeric_energy_residual_w": {
101
+ "value": 8.59941517300511e-09,
102
+ "case": "overdamped_math"
103
+ },
104
+ "analysis_relative_req_difference": {
105
+ "value": 0.06154319455331281,
106
+ "case": "co_1"
107
+ },
108
+ "analysis_output_difference_v": {
109
+ "value": 0.001725527723591025,
110
+ "case": "cf_1"
111
+ },
112
+ "clamped_relative_req_error": {
113
+ "value": 3.43617421874054e-05,
114
+ "case": "width_split_equal"
115
+ },
116
+ "stiff_analysis_relative_req_error": {
117
+ "value": 1.0447304132910062e-09,
118
+ "case": "fs_1"
119
+ }
120
+ }
121
+ },
122
+ "cold_starts": [
123
+ {
124
+ "id": "si2",
125
+ "case": "nominal",
126
+ "errors": {
127
+ "baseline_voltage_v": 4.611609316640397e-09,
128
+ "baseline_resistance_ohm": 1.2890324189995805e-09,
129
+ "refinement_voltage_v": 4.027889133340068e-13,
130
+ "refinement_resistance_ohm": 3.605557406458071e-09
131
+ }
132
+ },
133
+ {
134
+ "id": "si2",
135
+ "case": "unequal_switches",
136
+ "errors": {
137
+ "baseline_voltage_v": 2.421202495161978e-06,
138
+ "baseline_resistance_ohm": 1.3946700029576764e-07,
139
+ "refinement_voltage_v": 4.966363553737807e-07,
140
+ "refinement_resistance_ohm": 1.3527678470112714e-07
141
+ }
142
+ },
143
+ {
144
+ "id": "sp2",
145
+ "case": "nominal",
146
+ "errors": {
147
+ "baseline_voltage_v": 1.9666076545021838e-08,
148
+ "baseline_resistance_ohm": 2.6735799091015533e-06,
149
+ "refinement_voltage_v": 8.432834288640834e-07,
150
+ "refinement_resistance_ohm": 1.320453879280481e-06
151
+ }
152
+ },
153
+ {
154
+ "id": "sp2",
155
+ "case": "fs_1",
156
+ "errors": {
157
+ "baseline_voltage_v": 2.6489895721404366e-08,
158
+ "baseline_resistance_ohm": 8.261655695118719e-07,
159
+ "refinement_voltage_v": 1.0837374647687525e-06,
160
+ "refinement_resistance_ohm": 1.7644583839571126e-06
161
+ }
162
+ },
163
+ {
164
+ "id": "rsc2",
165
+ "case": "nominal",
166
+ "errors": {
167
+ "baseline_voltage_v": 4.1622922886119795e-09,
168
+ "baseline_resistance_ohm": 5.441106242648486e-09,
169
+ "refinement_voltage_v": 3.1415094570164115e-06,
170
+ "refinement_resistance_ohm": 2.7725770391714977e-07
171
+ }
172
+ },
173
+ {
174
+ "id": "rsc2",
175
+ "case": "damped_tune",
176
+ "errors": {
177
+ "baseline_voltage_v": 5.544986692029852e-11,
178
+ "baseline_resistance_ohm": 1.9827707184449928e-10,
179
+ "refinement_voltage_v": 1.6516888017292786e-06,
180
+ "refinement_resistance_ohm": 8.188446290018081e-07
181
+ }
182
+ }
183
+ ],
184
+ "analysis_chrome": {
185
+ "warm": false,
186
+ "conduction_efficiency_pct": [
187
+ 93.33333333336213,
188
+ 0.6666666666666673,
189
+ null
190
+ ],
191
+ "comparison_csv": {
192
+ "Topology": "SP-SC 2:1",
193
+ "Target_ratio": "2",
194
+ "kFET_Rs": "0.6666666666666666",
195
+ "kCAP_Rc": "0.5",
196
+ "kIND_Rl": "0",
197
+ "kSSL_over_Cf_fs": "0.125",
198
+ "RFET_pu": "0.6666666666666666",
199
+ "RCAP_pu": "0.1111111111575",
200
+ "RIND_pu": "0",
201
+ "RSSL_pu": "0.6944444447325",
202
+ "Req_pu": "0.9742458406221695",
203
+ "RFSL_pu": "0.7777777778241666",
204
+ "RSSL_add_pu": "0.19646806279800288",
205
+ "Switching_loss_scope": "RFET_pu and RCAP_pu are FSL baselines. Physical finite-RC terms sum independently to Req. Separate gate and optional Coss.",
206
+ "rho_C": "0.222222222315",
207
+ "rho_L": "0.422222222398",
208
+ "rho_Q": "5.55555555786",
209
+ "Model_domain": "M = 0.5 only; finite output droop",
210
+ "SP2_RFET_fsl_pu": "0.6666666666666666",
211
+ "SP2_RCAP_fsl_pu": "0.1111111111575",
212
+ "SP2_R_finite_rc_increment_pu": "0.19646806279800288",
213
+ "SP2_RFET_finite_rc_pu": "0.8350678633406252",
214
+ "SP2_RCAP_finite_rc_pu": "0.13917797728154435"
215
+ },
216
+ "design_csv": {
217
+ "Output_current_A": "1.1404833",
218
+ "FSL_MOSFET_W": "0.07804212942232389",
219
+ "FSL_capacitor_ESR_W": "0.013007021575788901",
220
+ "Finite_RC_increment_W": "0.022999178976380208",
221
+ "Physical_MOSFET_W": "0.09775571140090882",
222
+ "Physical_capacitor_ESR_W": "0.016292618573584175",
223
+ "Series_loss_W": "0.11404832997449299"
224
+ },
225
+ "fresh_context": true
226
+ },
227
+ "si2_chrome": "Chrome SI: gallery, design controls and exports, editable starter and exports, nominal and swept jobs, recovery, and handoff passed.",
228
+ "rsc2_chrome": [
229
+ "Chrome editor verified Export SVG",
230
+ "Chrome editor verified Export Netlist",
231
+ "Chrome: Gallery, Analysis sizing and exports, editable project and undo, NGSpice default and edited 4-point sweep, artifact bytes, invalid timing recovery, handoffs, reload and fresh context"
232
+ ],
233
+ "rsc2_first_attempt": "The script clicked Simulator before the edited Analysis point reached the parent. The serial rerun waits for the focused Analysis card and updated parent point. It passed. No RSC2 runtime change."
234
+ },
235
+ "baseline_4to1": {
236
+ "simulator_chrome": [
237
+ "Tag and live 4:1 measurements match for xfly6s",
238
+ "Tag and live 4:1 measurements match for xfly8s",
239
+ "Tag and live 4:1 measurements match for c3l",
240
+ "Tag and live XFLY6S 15-point sweep charts match",
241
+ "Chrome simultaneous timing and operating controls verified",
242
+ "Chrome verified fixed gain, input/load handoff, unavailable combinations, and error recovery"
243
+ ],
244
+ "analysis_chrome": [
245
+ "XFLY6S baseline and live Chrome UI, controls, scoreboard values and all four exports match",
246
+ "SP-SC controls, loss accounting, optimum and droop-bound width, charts, comparison, exports, disclosure and local image-review checks passed",
247
+ "All other original 4:1 Analysis design exports match the tag in Chrome",
248
+ "Regular cache-enabled Chrome reload serves the rebuilt Analysis assets"
249
+ ],
250
+ "matching_xfly6s_sweep_points": 15,
251
+ "tagged_sweep_runs": [
252
+ "20261130-120714-5296d732",
253
+ "20261130-120715-0c697247",
254
+ "20261130-120715-a247f927",
255
+ "20261130-120715-a93972c8",
256
+ "20261130-120716-36e81612",
257
+ "20261130-120716-bf044a08",
258
+ "20261130-120717-25ac6038",
259
+ "20261130-120717-328273b6",
260
+ "20261130-120717-e27e4c7c",
261
+ "20261130-120718-5ba981ce",
262
+ "20261130-120718-d9653e1b",
263
+ "20261130-120719-38045764",
264
+ "20261130-120719-502abfa8",
265
+ "20261130-120719-5b4f360f",
266
+ "20261130-120720-6884b6a5"
267
+ ],
268
+ "live_sweep_runs": [
269
+ "20261130-120722-022ce702",
270
+ "20261130-120722-6feb110e",
271
+ "20261130-120723-9b9aab1f",
272
+ "20261130-120723-ce2bff86",
273
+ "20261130-120724-358f1128",
274
+ "20261130-120724-90cbac06",
275
+ "20261130-120725-39454f8d",
276
+ "20261130-120725-77c1a7a0",
277
+ "20261130-120725-cab58dea",
278
+ "20261130-120726-34c3467b",
279
+ "20261130-120726-eb7e653a",
280
+ "20261130-120727-18b9b440",
281
+ "20261130-120727-3a681ddb",
282
+ "20261130-120727-747692c8",
283
+ "20261130-120728-a06dded5"
284
+ ]
285
+ },
286
+ "candidate": {
287
+ "simulator_axes": 16,
288
+ "simulator_sweep_points": 32
289
+ }
290
+ }
docs/topology/2to1_buck_stacked/evidence/coss-sweeps.json ADDED
@@ -0,0 +1,274 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "vin": {
3
+ "run": "1a20138d89384ed2a89d0770702573d9",
4
+ "rows": [
5
+ {
6
+ "value": 2.8,
7
+ "vout_v": 1.217996672339401,
8
+ "efficiency_with_gate": 0.9876699546318513,
9
+ "deck_sha256": "7bb047254de2a3c50c291bc35f2fdf16a75b30ddaf3b86214dc9b006fc5e1e5c"
10
+ },
11
+ {
12
+ "value": 3.3,
13
+ "vout_v": 1.437995671597078,
14
+ "efficiency_with_gate": 0.9892206149387989,
15
+ "deck_sha256": "14ee01a24833eb8e30f369bb87e2ddc8bb9dfe6da11bd878469392ac1f761194"
16
+ }
17
+ ]
18
+ },
19
+ "load": {
20
+ "run": "b0428210260f428196c3dc9452bc1cf4",
21
+ "rows": [
22
+ {
23
+ "value": 0.8,
24
+ "vout_v": 1.308797285867849,
25
+ "efficiency_with_gate": 0.9902134506847732,
26
+ "deck_sha256": "bd9f5537cc948c0bb8334d9dc814e6f320809da916dd7dd7f2f1ea28d6690625"
27
+ },
28
+ {
29
+ "value": 1.25,
30
+ "vout_v": 1.3025043625572823,
31
+ "efficiency_with_gate": 0.9859222459636466,
32
+ "deck_sha256": "d049d5ad956672442e1c13cd2a8d52c9bbe665bca1791ccd1b231006fa38b1f7"
33
+ }
34
+ ]
35
+ },
36
+ "fs": {
37
+ "run": "2dfadd4f8fcc4d0eb6e49c86f80acbe7",
38
+ "rows": [
39
+ {
40
+ "value": 1.8,
41
+ "vout_v": 1.305996451210651,
42
+ "efficiency_with_gate": 0.988389622394636,
43
+ "deck_sha256": "c958f6aaba27a0300a216cdc7728bd75115dd3fca4db85880dc4fcd1add5f7e1"
44
+ },
45
+ {
46
+ "value": 2.4,
47
+ "vout_v": 1.3060047168845959,
48
+ "efficiency_with_gate": 0.988273627872244,
49
+ "deck_sha256": "9943d1eb3d0d9151c7bad34f845e244169099b154d1e29e7b52f1d325887126c"
50
+ }
51
+ ]
52
+ },
53
+ "duty": {
54
+ "run": "390377c0cd6e4f529689e1cbe528d0fb",
55
+ "rows": [
56
+ {
57
+ "value": 0.3,
58
+ "vout_v": 0.8860070892803505,
59
+ "efficiency_with_gate": 0.9827397914238437,
60
+ "deck_sha256": "290c55c36e13efb52afe6f2159a901de2139c87b2b7956e75ca171cf0ad59fd8"
61
+ },
62
+ {
63
+ "value": 0.7,
64
+ "vout_v": 2.086007242368526,
65
+ "efficiency_with_gate": 0.9925963342587494,
66
+ "deck_sha256": "bd936adfd014322a640ac78d561d22c7f1c8f478fa95679b04f9088dcc458d44"
67
+ }
68
+ ]
69
+ },
70
+ "lt": {
71
+ "run": "479b551594914122963684d8fdf08857",
72
+ "rows": [
73
+ {
74
+ "value": 800,
75
+ "vout_v": 1.3059963288644987,
76
+ "efficiency_with_gate": 0.9882287424150187,
77
+ "deck_sha256": "bbdc6aa5f481bafd08596a49f47f451caf5c1faa28f46c545b612bb43aa1a953"
78
+ },
79
+ {
80
+ "value": 1450,
81
+ "vout_v": 1.3060026058153993,
82
+ "efficiency_with_gate": 0.9884805769283901,
83
+ "deck_sha256": "1ce9081a8ef643a61d40b0d504e1f79b28d8955c0212231de52cf77b8807ec1d"
84
+ }
85
+ ]
86
+ },
87
+ "coupling": {
88
+ "run": "f319a570aa51484d92b451443e18de77",
89
+ "rows": [
90
+ {
91
+ "value": 0,
92
+ "vout_v": 1.305998024423819,
93
+ "efficiency_with_gate": 0.988104961469467,
94
+ "deck_sha256": "54760ca947c21fd752df8e800d15d54e3b1bdee33243e726ed547765d583d71a"
95
+ },
96
+ {
97
+ "value": 0.72,
98
+ "vout_v": 1.3060071186959756,
99
+ "efficiency_with_gate": 0.9883280610881346,
100
+ "deck_sha256": "e9122637dad7fcc10f03edd1265c93385c5139f24459d258257a44a4387bbc81"
101
+ }
102
+ ]
103
+ },
104
+ "dcr": {
105
+ "run": "3aef9d161d964857bf25fca002150323",
106
+ "rows": [
107
+ {
108
+ "value": 3,
109
+ "vout_v": 1.306499761701609,
110
+ "efficiency_with_gate": 0.9887530210509373,
111
+ "deck_sha256": "08ec5133e27b7ed80e2d79b1b09f77ee4961afe36f437b373d1938e15d34efe9"
112
+ },
113
+ {
114
+ "value": 9,
115
+ "vout_v": 1.303500213972039,
116
+ "efficiency_with_gate": 0.9864316428078417,
117
+ "deck_sha256": "35bd00fb0ab5d02dd9fa3e2aedf8d4222aa822d964b32629dcb5750ddc73e859"
118
+ }
119
+ ]
120
+ },
121
+ "rs": {
122
+ "run": "4ba3c4a5e4124d33a266ec2120a97a4a",
123
+ "rows": [
124
+ {
125
+ "value": 9,
126
+ "vout_v": 1.3089996928569771,
127
+ "efficiency_with_gate": 0.9906852181272401,
128
+ "deck_sha256": "c2cdd0016773c93ed135534372c5f7230b9aaaddbe3c04856d39e013a07b4f0d"
129
+ },
130
+ {
131
+ "value": 18,
132
+ "vout_v": 1.299999600156637,
133
+ "efficiency_with_gate": 0.9837290456000247,
134
+ "deck_sha256": "46cd52a75d9615a1f8760305014e17871ad8973b523fcf7334f10c273f5a061b"
135
+ }
136
+ ]
137
+ },
138
+ "rslow": {
139
+ "run": "132d00021ce94f1ea8dcd2d28959dfcb",
140
+ "rows": [
141
+ {
142
+ "value": 10,
143
+ "vout_v": 1.3071195396925013,
144
+ "efficiency_with_gate": 0.9892279973457124,
145
+ "deck_sha256": "dbf026225053f3d5e5a125a6b39b8b7f887b2e6007161e80d66fa82cffd3f632"
146
+ },
147
+ {
148
+ "value": 18,
149
+ "vout_v": 1.3026405281903994,
150
+ "efficiency_with_gate": 0.98578227721669,
151
+ "deck_sha256": "75dc94f7896b65adcef7db163a9c83708e047fbf66fa70d47885734858ae2b9f"
152
+ }
153
+ ]
154
+ },
155
+ "gatecap": {
156
+ "run": "2fbc3bd644a9428b8e1181db0a0c470c",
157
+ "rows": [
158
+ {
159
+ "value": 4,
160
+ "vout_v": 1.3059999247829628,
161
+ "efficiency_with_gate": 0.9889267859746088,
162
+ "deck_sha256": "24bf5d6e7a85817e626243c224048b2b0aacefeb6ce209aea93fd187e1cbfd93"
163
+ },
164
+ {
165
+ "value": 42,
166
+ "vout_v": 1.3059999485892015,
167
+ "efficiency_with_gate": 0.9879048313651215,
168
+ "deck_sha256": "5fa0051e1d0d71983addd732a4c5269bcb009395f0a1c9219c6d78a349a06231"
169
+ }
170
+ ]
171
+ },
172
+ "coss": {
173
+ "run": "11a75e63470a4a5489a5cd9c56ac83d7",
174
+ "rows": [
175
+ {
176
+ "value": 5,
177
+ "vout_v": 1.3060001053788908,
178
+ "efficiency_with_gate": 0.9884292247590286,
179
+ "deck_sha256": "a9a7f266b5feb8f123f51066c3ac4c6af75c455cd0524b7bbf5798d7e6c43a85"
180
+ },
181
+ {
182
+ "value": 22,
183
+ "vout_v": 1.3059994889944002,
184
+ "efficiency_with_gate": 0.9881974543078786,
185
+ "deck_sha256": "c93cbb17f08c9b7b07c099dab6937d3144b008feed8d95922121cbf785213833"
186
+ }
187
+ ]
188
+ },
189
+ "cout": {
190
+ "run": "804e48e5c84f48d4ad28389d69b3e962",
191
+ "rows": [
192
+ {
193
+ "value": 38,
194
+ "vout_v": 1.3059997831788217,
195
+ "efficiency_with_gate": 0.9883543798546242,
196
+ "deck_sha256": "9558c525997adcc5942b53e0a4379057acba8e34a6175dbfb2e9a232fe3f3978"
197
+ },
198
+ {
199
+ "value": 60,
200
+ "vout_v": 1.3059997846729678,
201
+ "efficiency_with_gate": 0.9883662902942699,
202
+ "deck_sha256": "8a46b4acc25de1f8bd55b09b66c09c4e18ac9f6eebd575d6fb9ec71113f3c49c"
203
+ }
204
+ ]
205
+ },
206
+ "esr": {
207
+ "run": "ad0ce13249244d72a8f4fd038f117e5e",
208
+ "rows": [
209
+ {
210
+ "value": 2.5,
211
+ "vout_v": 1.305999895214845,
212
+ "efficiency_with_gate": 0.9883675575795037,
213
+ "deck_sha256": "da9a3ccc200f66907c611aaf90b416d49a43627744b141779b368a3ab34c3869"
214
+ },
215
+ {
216
+ "value": 11,
217
+ "vout_v": 1.305999569128121,
218
+ "efficiency_with_gate": 0.9883475192669045,
219
+ "deck_sha256": "53bb8a193266be5eeecbf8dd02eb9a702f5ecd6e1629a8682c51b2bc0b1728de"
220
+ }
221
+ ]
222
+ },
223
+ "stop": {
224
+ "run": "941efe6ae8de47bd879d0ce310193cf6",
225
+ "rows": [
226
+ {
227
+ "value": 85,
228
+ "vout_v": 1.3060014352907352,
229
+ "efficiency_with_gate": 0.988343374822484,
230
+ "deck_sha256": "af05d8f54d0eea807e67eedef96f5c2602ed64d6a4ad8558fd2d9a7c62e1afd5"
231
+ },
232
+ {
233
+ "value": 110,
234
+ "vout_v": 1.3060002716958652,
235
+ "efficiency_with_gate": 0.9883605426260474,
236
+ "deck_sha256": "c97be21dbb6d8a5e6f10a42273568a6df8f2491d0c8086f4b901c70fd6a35a8d"
237
+ }
238
+ ]
239
+ },
240
+ "step": {
241
+ "run": "079483e832ba494ab4c2011a11a563a0",
242
+ "rows": [
243
+ {
244
+ "value": 750,
245
+ "vout_v": 1.3059995598338114,
246
+ "efficiency_with_gate": 0.9883581800358697,
247
+ "deck_sha256": "3134d4bfef17f191feffee9b11b25cf57cada68133f4154c0595d7b5370af341"
248
+ },
249
+ {
250
+ "value": 1000,
251
+ "vout_v": 1.3059996509530707,
252
+ "efficiency_with_gate": 0.9883587531665791,
253
+ "deck_sha256": "911dac7abd0d5e19046223499fa3d84fa1c9c001b59410367fa631dd20d3299d"
254
+ }
255
+ ]
256
+ },
257
+ "target": {
258
+ "run": "73c5ca5864a24ec1ae0b199d90d0ae47",
259
+ "rows": [
260
+ {
261
+ "value": 1.3,
262
+ "vout_v": 1.2999998950120346,
263
+ "efficiency_with_gate": 0.9883076785464995,
264
+ "deck_sha256": "1e9d7facea3a5796ee96cd12a4b573585a439610ce4b0d7a448df6ca79921261"
265
+ },
266
+ {
267
+ "value": 1.65,
268
+ "vout_v": 1.6499995596601131,
269
+ "efficiency_with_gate": 0.9907681581562554,
270
+ "deck_sha256": "6541e0646e229b7391306245a60d036be1d9df7d5873e9f1817c57dca467a566"
271
+ }
272
+ ]
273
+ }
274
+ }
docs/topology/2to1_buck_stacked/evidence/coss-workflow.json ADDED
@@ -0,0 +1,243 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "analysis": {
3
+ "controls": {
4
+ "utilization": ".5",
5
+ "die_mm2": "1.5",
6
+ "ron_area_mohm_mm2": "1.1",
7
+ "vout": "3.2",
8
+ "io": "1.25",
9
+ "fs_mhz": "2.4",
10
+ "cap_uf": "44",
11
+ "si_l_nh": "1180",
12
+ "si_coupling": ".56",
13
+ "si_duty": ".61",
14
+ "rc_mohm": "6",
15
+ "rl_mohm": "5"
16
+ },
17
+ "losses": {
18
+ "fet": 0.018274235898271443,
19
+ "cap": 0.000024274633725940832,
20
+ "ind": 0.003940303911711195,
21
+ "gate": 0.0019181212561983475,
22
+ "coss": 0.0006556765090909092
23
+ },
24
+ "efficiency": 0.9898425425204165,
25
+ "deviceCount": 8
26
+ },
27
+ "simulator": {
28
+ "edited": {
29
+ "run": "9573c4d8f76f42919696bfb60f9fcabd",
30
+ "settings": {
31
+ "vin": "3.12",
32
+ "load": "1.24",
33
+ "fs": "2.25",
34
+ "lt": "1150",
35
+ "coupling": ".57",
36
+ "dcr": "5.1",
37
+ "rs": "9",
38
+ "rslow": "15",
39
+ "gatecap": "29",
40
+ "coss": "12",
41
+ "cout": "44",
42
+ "esr": "5.5",
43
+ "stop": "110",
44
+ "step": "750"
45
+ },
46
+ "metrics": {
47
+ "value": null,
48
+ "status": "passed",
49
+ "message": "",
50
+ "deck": "physical_design.cir",
51
+ "waveform": "physical_design_waveform.csv",
52
+ "deck_sha256": "dad1e3d29c8156095d53a1178c168dfeef1316ebc4282f22809e7444fa2d0f35",
53
+ "nominal_vout_v": 1.548070447394674,
54
+ "ideal_vout_v": 1.548070447394674,
55
+ "ideal_gain": 0.4961764254470109,
56
+ "vin_v": 3.12,
57
+ "target_vout_v": 1.53,
58
+ "analytical_vout_v": 1.53,
59
+ "analytical_gain": 0.49038461538461536,
60
+ "simulated_gain": 0.49038525452589316,
61
+ "target_error_v": 0.0000019941207867191224,
62
+ "operating_point": {
63
+ "schema_version": 1,
64
+ "nominal_ratio": 2,
65
+ "inputs": {
66
+ "input_voltage_v": 3.12,
67
+ "load": {
68
+ "kind": "current",
69
+ "value": 1.24
70
+ },
71
+ "switching_frequency_hz": 2250000,
72
+ "mode": "output_voltage",
73
+ "target_output_v": 1.53
74
+ },
75
+ "derived": {
76
+ "applied_duty": 0.4961764254470109,
77
+ "ideal_output_voltage_v": 1.548070447394674,
78
+ "ideal_gain": 0.4961764254470109,
79
+ "ideal_operating_ratio": 2.015412157276696,
80
+ "analytical_output_voltage_v": 1.53,
81
+ "loaded_gain": 0.49038461538461536,
82
+ "operating_ratio": 2.03921568627451,
83
+ "conduction_mode": "positive_current_ccm"
84
+ },
85
+ "range": {
86
+ "duty": {
87
+ "min": 0.25,
88
+ "max": 0.75
89
+ },
90
+ "conduction_modes": [
91
+ "positive_current_ccm"
92
+ ],
93
+ "loaded_voltage_v": {
94
+ "min": 0.7600980000000002,
95
+ "max": 2.3238180000000006
96
+ }
97
+ },
98
+ "solver": {
99
+ "status": "resolved",
100
+ "valid": true,
101
+ "diagnostics": []
102
+ },
103
+ "measurement": {
104
+ "output_voltage_v": 1.5300019941207867,
105
+ "gain": 0.49038525452589316,
106
+ "operating_ratio": 2.039213028472491
107
+ }
108
+ },
109
+ "stop_us": 109.77777777777777,
110
+ "max_step_ps": 750,
111
+ "window_start_cycles": 241.826795,
112
+ "window_stop_cycles": 245.826795,
113
+ "vout_v": 1.5300019941207867,
114
+ "iout_a": 1.24,
115
+ "iin_a": 0.61531573502324,
116
+ "input_w": 1.9200478357384068,
117
+ "electrical_input_w": 1.9197850932725093,
118
+ "delivered_w": 1.8972024727097756,
119
+ "stage_w": 0.0228453630286312,
120
+ "supplemental_gate_w": 0.0012685368412732009,
121
+ "coss_w": 0.00026274246589745126,
122
+ "gate_drive_v": 1.56,
123
+ "stage_efficiency": 0.9881016698629046,
124
+ "efficiency_with_gate": 0.9874492820578386,
125
+ "efficiency_includes_coss": true,
126
+ "switch_w": [
127
+ 0.001731450427558176,
128
+ 0.0017314504275581825,
129
+ 0.0029273181100958195,
130
+ 0.0029273181100958195,
131
+ 0.0017310186699023215,
132
+ 0.0017310186699023198,
133
+ 0.0029265873948264034,
134
+ 0.0029265873948264034
135
+ ],
136
+ "esr_w": [
137
+ 5.218069939160327e-8
138
+ ],
139
+ "dcr_w": [
140
+ 0.0019764422891168656,
141
+ 0.001975949183255344
142
+ ],
143
+ "storage_w": 0.0000016856390779655915,
144
+ "balance_w": -0.000004257934181265196,
145
+ "resistance_power_ohm": 0.014857806340160769,
146
+ "resistance_droop_ohm": 0.014571333285392972,
147
+ "ripple_vpp": 0.00005868304306799743,
148
+ "duty": 0.4961764254470109,
149
+ "measured_duty": [
150
+ 0.49617642544702895,
151
+ 0.49617642544708307
152
+ ],
153
+ "winding_average_a": [
154
+ 0.6200394746357759,
155
+ 0.6199615093272572
156
+ ],
157
+ "winding_rms_a": [
158
+ 0.6225252635422963,
159
+ 0.6224476012682332
160
+ ],
161
+ "winding_voltage_peak_v": [
162
+ 1.577966157209343,
163
+ 1.577967969800907
164
+ ],
165
+ "winding_min_a": [
166
+ 0.5219193478375418,
167
+ 0.5218412433449993
168
+ ],
169
+ "winding_ripple_a": [
170
+ 0.1963158339917308,
171
+ 0.1963160229724885
172
+ ],
173
+ "winding_sum_ripple_a": 0.010663416221979638,
174
+ "winding_delta_ripple_a": 0.3819915004426704,
175
+ "winding_voltage_mean_v": [
176
+ -0.0000028058149682428655,
177
+ -5.333717839772386e-7
178
+ ],
179
+ "switch_peak_v": [
180
+ 1.570772495601687,
181
+ 1.570772495601687,
182
+ 1.55530259719545,
183
+ 1.55530259719545,
184
+ 1.570771326869518,
185
+ 1.570771326869517,
186
+ 1.555303300116892,
187
+ 1.555303300116891
188
+ ],
189
+ "output_cap_rms_a": 0.0030801623154279407,
190
+ "output_cap_average_a": 9.839629561883076e-7,
191
+ "gate_overlap_fraction": [
192
+ 0,
193
+ 0
194
+ ],
195
+ "window_drift_v": 2.921751951490137e-8,
196
+ "window_drift_w": 0.0000011835857863934374
197
+ }
198
+ },
199
+ "sweep": {
200
+ "run": "f14b3dba6f26465dad00979bf0cd484d",
201
+ "rows": [
202
+ {
203
+ "duty": 0.475,
204
+ "vout": 1.4639125507001383,
205
+ "status": "passed"
206
+ },
207
+ {
208
+ "duty": 0.4875,
209
+ "vout": 1.5029112624462917,
210
+ "status": "passed"
211
+ },
212
+ {
213
+ "duty": 0.5,
214
+ "vout": 1.5419081960398158,
215
+ "status": "passed"
216
+ },
217
+ {
218
+ "duty": 0.5125,
219
+ "vout": 1.5809086248649153,
220
+ "status": "passed"
221
+ },
222
+ {
223
+ "duty": 0.525,
224
+ "vout": 1.6199069273546736,
225
+ "status": "passed"
226
+ }
227
+ ]
228
+ }
229
+ },
230
+ "reload": {
231
+ "versioned": [
232
+ "/pe.js",
233
+ "/gallery.js",
234
+ "/compare/recommend.js",
235
+ "/compare/index.html",
236
+ "/compare/buck-stacked.js",
237
+ "/compare/technology.js",
238
+ "/compare/engine.js",
239
+ "/compare/scoreboard.js",
240
+ "/compare/app.js"
241
+ ]
242
+ }
243
+ }
docs/topology/2to1_buck_stacked/evidence/coss-workspace.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "files": [
3
+ "/pe.js",
4
+ "/gallery.js",
5
+ "/compare/app.js",
6
+ "/compare/engine.js",
7
+ "/compare/buck-stacked.js",
8
+ "/compare/technology.js",
9
+ "/compare/recommend.js",
10
+ "/compare/models-data.json",
11
+ "/compare/operating-conditions.json"
12
+ ],
13
+ "axes": [
14
+ "duty_cycle",
15
+ "output_voltage",
16
+ "input_voltage_v",
17
+ "output_current_a",
18
+ "switching_frequency_mhz"
19
+ ],
20
+ "comparison": "buck2 add/remove",
21
+ "coefficients": true
22
+ }
docs/topology/2to1_buck_stacked/evidence/duty-comparison.svg ADDED
docs/topology/2to1_buck_stacked/evidence/event-comparison.svg ADDED
docs/topology/2to1_buck_stacked/evidence/executed-decks.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49fc608ed4afff7deffa3ef1dcf1cd35cdd74f911b11fb922147b0276544eff0
3
+ size 933126
docs/topology/2to1_buck_stacked/evidence/matched-results.json ADDED
@@ -0,0 +1,1019 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "case": "d25",
4
+ "duty": 0.25,
5
+ "settings": {
6
+ "duty": 0.25
7
+ },
8
+ "analytical": {
9
+ "voltage": 0.736,
10
+ "phase_ripple": 0.35156249999999994,
11
+ "channel": 0.01232958984375,
12
+ "esr": 9.155273437499995e-05,
13
+ "dcr": 0.002054931640625,
14
+ "gate": 0.0009,
15
+ "coss": 0.00018,
16
+ "efficiency": 0.9793015122192702
17
+ },
18
+ "numerical": {
19
+ "voltage": 0.7359999999999683,
20
+ "phase_ripple": 0.3515920284398314,
21
+ "channel": 0.012329659598958497,
22
+ "esr": 9.15818865831373e-05,
23
+ "dcr": 0.002054943266493083,
24
+ "gate": 0.0009,
25
+ "coss": 0.00018,
26
+ "efficiency": 0.9793013681908986
27
+ },
28
+ "ngspice": {
29
+ "voltage": 0.7359958462138886,
30
+ "phase_ripple": 0.3516062428399312,
31
+ "channel": 0.012332827540154925,
32
+ "esr": 9.159593381356348e-05,
33
+ "dcr": 0.0020554697567145386,
34
+ "gate": 0.0008987211991537863,
35
+ "coss": 0.00017990516096501552,
36
+ "efficiency": 0.9792982114152936
37
+ },
38
+ "numerical_checks": {
39
+ "balance_w": 3.572655409359027e-12,
40
+ "charge_average_a": 8.07283545025371e-12,
41
+ "periodic_change": 3.3306690738754696e-14
42
+ },
43
+ "spice_checks": {
44
+ "balance_w": 2.9235042823126434e-06,
45
+ "window_drift_v": 4.15449192225914e-06,
46
+ "output_cap_average_a": 0.0001300472941650145,
47
+ "winding_voltage_mean_v": [
48
+ 4.62173291511062e-06,
49
+ 1.2317989095882686e-05
50
+ ],
51
+ "switch_peak_v": [
52
+ 1.508110759664893,
53
+ 1.508110759664893,
54
+ 1.496107121961005,
55
+ 1.496107121961005,
56
+ 1.508110528621556,
57
+ 1.508110528621556,
58
+ 1.496107412469407,
59
+ 1.496107412469407
60
+ ],
61
+ "winding_min_a": [
62
+ 0.324336779130373,
63
+ 0.3243125686948061
64
+ ],
65
+ "deck_sha256": "a59b7cd3fcf361c5a3d81bb980c07c3b6dae31e562f07ff2b16b8f7a7ce93046"
66
+ }
67
+ },
68
+ {
69
+ "case": "d35",
70
+ "duty": 0.35,
71
+ "settings": {
72
+ "duty": 0.35
73
+ },
74
+ "analytical": {
75
+ "voltage": 1.0359999999999998,
76
+ "phase_ripple": 0.3609374999999999,
77
+ "channel": 0.0123273046875,
78
+ "esr": 6.4599609375e-05,
79
+ "dcr": 0.00205455078125,
80
+ "gate": 0.0009,
81
+ "coss": 0.00018,
82
+ "efficiency": 0.9852343657136314
83
+ },
84
+ "numerical": {
85
+ "voltage": 1.0359999999999463,
86
+ "phase_ripple": 0.3609581739146339,
87
+ "channel": 0.012327351088595579,
88
+ "esr": 6.461908204881948e-05,
89
+ "dcr": 0.00205455851476593,
90
+ "gate": 0.0009,
91
+ "coss": 0.00018,
92
+ "efficiency": 0.985234296746824
93
+ },
94
+ "ngspice": {
95
+ "voltage": 1.0359968326358382,
96
+ "phase_ripple": 0.36094798122675376,
97
+ "channel": 0.01232716997747434,
98
+ "esr": 6.462995674787992e-05,
99
+ "dcr": 0.00205452682960005,
100
+ "gate": 0.0008987210707986543,
101
+ "coss": 0.0001797774218702631,
102
+ "efficiency": 0.9852358483156598
103
+ },
104
+ "numerical_checks": {
105
+ "balance_w": 3.058773286740424e-12,
106
+ "charge_average_a": 4.765671608427183e-12,
107
+ "periodic_change": 1.9484414082171497e-14
108
+ },
109
+ "spice_checks": {
110
+ "balance_w": -7.258395962956438e-06,
111
+ "window_drift_v": 3.6958010074528147e-07,
112
+ "output_cap_average_a": -9.198845269962882e-06,
113
+ "winding_voltage_mean_v": [
114
+ -4.208360245856767e-06,
115
+ -5.046449995134335e-06
116
+ ],
117
+ "switch_peak_v": [
118
+ 1.508163485770895,
119
+ 1.508163485770895,
120
+ 1.496166593130219,
121
+ 1.496166593130219,
122
+ 1.508163850988244,
123
+ 1.508163850988244,
124
+ 1.496166231320432,
125
+ 1.496166231320431
126
+ ],
127
+ "winding_min_a": [
128
+ 0.3194031444875688,
129
+ 0.3194332983056472
130
+ ],
131
+ "deck_sha256": "c375a309f499065072666adb008be16ebf4e134f89616e6ff5678a1d79d25928"
132
+ }
133
+ },
134
+ {
135
+ "case": "d45",
136
+ "duty": 0.45,
137
+ "settings": {
138
+ "duty": 0.45
139
+ },
140
+ "analytical": {
141
+ "voltage": 1.336,
142
+ "phase_ripple": 0.2953125,
143
+ "channel": 0.012242050781250003,
144
+ "esr": 1.1865234374999991e-05,
145
+ "dcr": 0.0020403417968750002,
146
+ "gate": 0.0009,
147
+ "coss": 0.00018,
148
+ "efficiency": 0.9886232420636851
149
+ },
150
+ "numerical": {
151
+ "voltage": 1.3360000000002137,
152
+ "phase_ripple": 0.29531598762619643,
153
+ "channel": 0.0122420575037948,
154
+ "esr": 1.1868206466705258e-05,
155
+ "dcr": 0.002040342917299133,
156
+ "gate": 0.0009,
157
+ "coss": 0.00018,
158
+ "efficiency": 0.988623234151726
159
+ },
160
+ "ngspice": {
161
+ "voltage": 1.3360006798871775,
162
+ "phase_ripple": 0.29531068290795615,
163
+ "channel": 0.012242424516772031,
164
+ "esr": 1.1872462587413124e-05,
165
+ "dcr": 0.002040402586148312,
166
+ "gate": 0.0008987210707984777,
167
+ "coss": 0.00017977742187041018,
168
+ "efficiency": 0.9886240230708394
169
+ },
170
+ "numerical_checks": {
171
+ "balance_w": -1.9554231497909136e-11,
172
+ "charge_average_a": -1.3292942389734642e-11,
173
+ "periodic_change": 2.531308496145357e-14
174
+ },
175
+ "spice_checks": {
176
+ "balance_w": -7.546971248456989e-06,
177
+ "window_drift_v": 6.860714178991145e-07,
178
+ "output_cap_average_a": 1.4213728265223589e-05,
179
+ "winding_voltage_mean_v": [
180
+ -6.225066074422151e-06,
181
+ -6.552915821840355e-06
182
+ ],
183
+ "switch_peak_v": [
184
+ 1.507769564341215,
185
+ 1.507769564341215,
186
+ 1.495772811461092,
187
+ 1.495772811461092,
188
+ 1.507769704740159,
189
+ 1.507769704740159,
190
+ 1.495772684303423,
191
+ 1.495772684303422
192
+ ],
193
+ "winding_min_a": [
194
+ 0.3522350384104974,
195
+ 0.3522456399981256
196
+ ],
197
+ "deck_sha256": "25e25b7fa07ade573ee3f4e002758d97898abb3d5e413e0fe1a894282f479671"
198
+ }
199
+ },
200
+ {
201
+ "case": "nominal",
202
+ "duty": 0.5,
203
+ "settings": {},
204
+ "analytical": {
205
+ "voltage": 1.486,
206
+ "phase_ripple": 0.234375,
207
+ "channel": 0.0122197265625,
208
+ "esr": 0.0,
209
+ "dcr": 0.00203662109375,
210
+ "gate": 0.0009,
211
+ "coss": 0.00018,
212
+ "efficiency": 0.9897848688735261
213
+ },
214
+ "numerical": {
215
+ "voltage": 1.4859999999998892,
216
+ "phase_ripple": 0.23437462616042998,
217
+ "channel": 0.012219726142322085,
218
+ "esr": 1.3314440510495465e-24,
219
+ "dcr": 0.0020366210237203475,
220
+ "gate": 0.0009,
221
+ "coss": 0.00018,
222
+ "efficiency": 0.9897848691967042
223
+ },
224
+ "ngspice": {
225
+ "voltage": 1.4860000000002356,
226
+ "phase_ripple": 0.2343731143693255,
227
+ "channel": 0.012219742396070108,
228
+ "esr": 3.882432009924975e-25,
229
+ "dcr": 0.002036622232697541,
230
+ "gate": 0.0008987210708019572,
231
+ "coss": 0.00017977742187026314,
232
+ "efficiency": 0.9897858475826276
233
+ },
234
+ "numerical_checks": {
235
+ "balance_w": 9.800977737728367e-12,
236
+ "charge_average_a": 1.6318317067979634e-11,
237
+ "periodic_change": 1.0302869668521453e-13
238
+ },
239
+ "spice_checks": {
240
+ "balance_w": -6.314532578050562e-08,
241
+ "window_drift_v": 6.8833827526759706e-15,
242
+ "output_cap_average_a": -8.81147874153936e-12,
243
+ "winding_voltage_mean_v": [
244
+ -2.374877125839877e-07,
245
+ 2.3748777207481734e-07
246
+ ],
247
+ "switch_peak_v": [
248
+ 1.507406052169711,
249
+ 1.507406052169711,
250
+ 1.495405864523097,
251
+ 1.495405864523097,
252
+ 1.507405864522849,
253
+ 1.507405864522849,
254
+ 1.495406052169959,
255
+ 1.495406052169959
256
+ ],
257
+ "winding_min_a": [
258
+ 0.382821263489706,
259
+ 0.3828056221322905
260
+ ],
261
+ "deck_sha256": "77bdc1dedd8eccf19dbab9df9920758ffce3ff7c4a6f75d13f3860cfcd57f143"
262
+ }
263
+ },
264
+ {
265
+ "case": "d55",
266
+ "duty": 0.55,
267
+ "settings": {
268
+ "duty": 0.55
269
+ },
270
+ "analytical": {
271
+ "voltage": 1.6360000000000001,
272
+ "phase_ripple": 0.29531250000000003,
273
+ "channel": 0.012242050781250001,
274
+ "esr": 1.1865234375000015e-05,
275
+ "dcr": 0.0020403417968750002,
276
+ "gate": 0.0009,
277
+ "coss": 0.00018,
278
+ "efficiency": 0.9906900221195978
279
+ },
280
+ "numerical": {
281
+ "voltage": 1.6360000000002577,
282
+ "phase_ripple": 0.2953159876261898,
283
+ "channel": 0.01224205750372313,
284
+ "esr": 1.1868206466708597e-05,
285
+ "dcr": 0.002040342917287188,
286
+ "gate": 0.0009,
287
+ "coss": 0.00018,
288
+ "efficiency": 0.9906900156314942
289
+ },
290
+ "ngspice": {
291
+ "voltage": 1.6360001344365622,
292
+ "phase_ripple": 0.29530533592264807,
293
+ "channel": 0.012242057836904859,
294
+ "esr": 1.1872557294515197e-05,
295
+ "dcr": 0.0020403414728362027,
296
+ "gate": 0.0008987210707988616,
297
+ "coss": 0.00017977742187041018,
298
+ "efficiency": 0.9906909152287433
299
+ },
300
+ "numerical_checks": {
301
+ "balance_w": -2.8973552723687845e-11,
302
+ "charge_average_a": -1.627971336635504e-11,
303
+ "periodic_change": 2.886579864025407e-14
304
+ },
305
+ "spice_checks": {
306
+ "balance_w": -7.554385348212826e-06,
307
+ "window_drift_v": 5.7104166950594504e-08,
308
+ "output_cap_average_a": -1.0648205672378264e-06,
309
+ "winding_voltage_mean_v": [
310
+ -5.938720643727032e-06,
311
+ -5.362391767980047e-06
312
+ ],
313
+ "switch_peak_v": [
314
+ 1.50777293244124,
315
+ 1.50777293244124,
316
+ 1.495769421685115,
317
+ 1.495769421685114,
318
+ 1.507772697426039,
319
+ 1.507772697426039,
320
+ 1.495769661897923,
321
+ 1.495769661897923
322
+ ],
323
+ "winding_min_a": [
324
+ 0.3524631790156436,
325
+ 0.3524431462175288
326
+ ],
327
+ "deck_sha256": "d65e4835b87e0c12e41ee97f4ee774e71452ec27bee1f03d7e2818a0d9275e56"
328
+ }
329
+ },
330
+ {
331
+ "case": "d65",
332
+ "duty": 0.65,
333
+ "settings": {
334
+ "duty": 0.65
335
+ },
336
+ "analytical": {
337
+ "voltage": 1.9360000000000002,
338
+ "phase_ripple": 0.3609374999999998,
339
+ "channel": 0.0123273046875,
340
+ "esr": 6.4599609375e-05,
341
+ "dcr": 0.00205455078125,
342
+ "gate": 0.0009,
343
+ "coss": 0.00018,
344
+ "efficiency": 0.9920439433256345
345
+ },
346
+ "numerical": {
347
+ "voltage": 1.93599999999988,
348
+ "phase_ripple": 0.360958173914613,
349
+ "channel": 0.012327351088695766,
350
+ "esr": 6.461908204881075e-05,
351
+ "dcr": 0.002054558514782627,
352
+ "gate": 0.0009,
353
+ "coss": 0.00018,
354
+ "efficiency": 0.9920439059078606
355
+ },
356
+ "ngspice": {
357
+ "voltage": 1.9359966653929472,
358
+ "phase_ripple": 0.3609463102957963,
359
+ "channel": 0.012327344853314352,
360
+ "esr": 6.462889935761336e-05,
361
+ "dcr": 0.0020545559755704218,
362
+ "gate": 0.0008987210707985463,
363
+ "coss": 0.00017977742187041018,
364
+ "efficiency": 0.9920446550649602
365
+ },
366
+ "numerical_checks": {
367
+ "balance_w": 1.2861482712178685e-11,
368
+ "charge_average_a": 8.941512704948099e-12,
369
+ "periodic_change": 2.4424906541753444e-14
370
+ },
371
+ "spice_checks": {
372
+ "balance_w": -7.259768192825726e-06,
373
+ "window_drift_v": 8.18122496415441e-08,
374
+ "output_cap_average_a": -1.8459820170789253e-06,
375
+ "winding_voltage_mean_v": [
376
+ -4.989180096263228e-06,
377
+ -4.1510461092010645e-06
378
+ ],
379
+ "switch_peak_v": [
380
+ 1.508166508977034,
381
+ 1.508166508977034,
382
+ 1.496163564149328,
383
+ 1.496163564149327,
384
+ 1.508166148561385,
385
+ 1.508166148561385,
386
+ 1.496163928207561,
387
+ 1.496163928207561
388
+ ],
389
+ "winding_min_a": [
390
+ 0.3196405975233885,
391
+ 0.3196102573851493
392
+ ],
393
+ "deck_sha256": "8736aa677e079c1246e4062ee7f3615c9a286b50b63821a14b31dfb5d7e37324"
394
+ }
395
+ },
396
+ {
397
+ "case": "d75",
398
+ "duty": 0.75,
399
+ "settings": {
400
+ "duty": 0.75
401
+ },
402
+ "analytical": {
403
+ "voltage": 2.236,
404
+ "phase_ripple": 0.3515625,
405
+ "channel": 0.01232958984375,
406
+ "esr": 9.155273437499995e-05,
407
+ "dcr": 0.002054931640625,
408
+ "gate": 0.0009,
409
+ "coss": 0.00018,
410
+ "efficiency": 0.9930909674438609
411
+ },
412
+ "numerical": {
413
+ "voltage": 2.2359999999997777,
414
+ "phase_ripple": 0.35159202843983983,
415
+ "channel": 0.012329659599353145,
416
+ "esr": 9.15818865831336e-05,
417
+ "dcr": 0.002054943266558858,
418
+ "gate": 0.0009,
419
+ "coss": 0.00018,
420
+ "efficiency": 0.9930909186908845
421
+ },
422
+ "ngspice": {
423
+ "voltage": 2.2359912481916466,
424
+ "phase_ripple": 0.35158779551665975,
425
+ "channel": 0.012330042251358262,
426
+ "esr": 9.159371983705094e-05,
427
+ "dcr": 0.002055005541909999,
428
+ "gate": 0.0008987212636494097,
429
+ "coss": 0.00017991933834196134,
430
+ "efficiency": 0.9930912899619367
431
+ },
432
+ "numerical_checks": {
433
+ "balance_w": 3.2023182716667264e-11,
434
+ "charge_average_a": 2.451656298764135e-11,
435
+ "periodic_change": 1.0835776720341528e-13
436
+ },
437
+ "spice_checks": {
438
+ "balance_w": 6.610203151180221e-06,
439
+ "window_drift_v": 7.654280795854618e-07,
440
+ "output_cap_average_a": 1.4148450626403982e-05,
441
+ "winding_voltage_mean_v": [
442
+ 4.138905951641456e-06,
443
+ 4.452893631362783e-06
444
+ ],
445
+ "switch_peak_v": [
446
+ 1.508108019731599,
447
+ 1.508108019731599,
448
+ 1.496109606214141,
449
+ 1.496109606214141,
450
+ 1.508107906537385,
451
+ 1.508107906537385,
452
+ 1.496109749445693,
453
+ 1.496109749445692
454
+ ],
455
+ "winding_min_a": [
456
+ 0.3241566547037419,
457
+ 0.3241447181931225
458
+ ],
459
+ "deck_sha256": "63c072f71496e13facf0a6465881419ecaa1cca522fbeb0ad81f3cfbf452623e"
460
+ }
461
+ },
462
+ {
463
+ "case": "unequal",
464
+ "duty": 0.64,
465
+ "settings": {
466
+ "duty": 0.64,
467
+ "switch_ron_mohm": 7.5,
468
+ "low_ron_mohm": 21,
469
+ "output_current_a": 1.35
470
+ },
471
+ "analytical": {
472
+ "voltage": 1.900614,
473
+ "phase_ripple": 0.3577500000000002,
474
+ "channel": 0.022933796895000007,
475
+ "esr": 5.9535e-05,
476
+ "dcr": 0.003698429625000001,
477
+ "gate": 0.0009,
478
+ "coss": 0.00018,
479
+ "efficiency": 0.9892921983202595
480
+ },
481
+ "numerical": {
482
+ "voltage": 1.9006163575935835,
483
+ "phase_ripple": 0.359941840046663,
484
+ "channel": 0.022932460587991147,
485
+ "esr": 6.027853953113371e-05,
486
+ "dcr": 0.0036990877981610878,
487
+ "gate": 0.0009,
488
+ "coss": 0.00018,
489
+ "efficiency": 0.9892921865123415
490
+ },
491
+ "ngspice": {
492
+ "voltage": 1.9006196705608525,
493
+ "phase_ripple": 0.3599304741887356,
494
+ "channel": 0.02293248691199308,
495
+ "esr": 6.0289042828115015e-05,
496
+ "dcr": 0.003699083923776916,
497
+ "gate": 0.0008987210977241761,
498
+ "coss": 0.00017977742184303646,
499
+ "efficiency": 0.9892927651249098
500
+ },
501
+ "numerical_checks": {
502
+ "balance_w": 7.648031513651787e-13,
503
+ "charge_average_a": -1.9822712942667645e-12,
504
+ "periodic_change": 3.93574062229618e-14
505
+ },
506
+ "spice_checks": {
507
+ "balance_w": -7.292705367450959e-06,
508
+ "window_drift_v": 1.3931857245630397e-07,
509
+ "output_cap_average_a": -1.6284256992604835e-06,
510
+ "winding_voltage_mean_v": [
511
+ -4.612682653453137e-06,
512
+ -1.995279078123196e-06
513
+ ],
514
+ "switch_peak_v": [
515
+ 1.51795894796199,
516
+ 1.51795894796199,
517
+ 1.496284757778306,
518
+ 1.496284757778306,
519
+ 1.517957008400397,
520
+ 1.517957008400397,
521
+ 1.49628543184311,
522
+ 1.49628543184311
523
+ ],
524
+ "winding_min_a": [
525
+ 0.4953002315933611,
526
+ 0.495210353048625
527
+ ],
528
+ "deck_sha256": "c6feef9477594abb6378d3583346a1d70c3fb55f278edd47e3c05c9e4fb97ff0"
529
+ }
530
+ },
531
+ {
532
+ "case": "combined",
533
+ "duty": 0.38,
534
+ "settings": {
535
+ "duty": 0.38,
536
+ "input_voltage_v": 3.8,
537
+ "output_current_a": 1.5,
538
+ "switching_frequency_mhz": 3.4,
539
+ "inductance_nh": 1500,
540
+ "coupling": 0.45,
541
+ "output_esr_mohm": 11,
542
+ "dcr_mohm": 18,
543
+ "output_cap_uf": 24,
544
+ "switch_coff_pf": 23,
545
+ "gate_cap_pf": 54
546
+ },
547
+ "analytical": {
548
+ "voltage": 1.4124999999999999,
549
+ "phase_ripple": 0.1594089372426085,
550
+ "channel": 0.027071696060432318,
551
+ "esr": 1.3992733983432939e-05,
552
+ "dcr": 0.02030377204532424,
553
+ "gate": 0.005302368,
554
+ "coss": 0.001129208,
555
+ "efficiency": 0.9752270301283088
556
+ },
557
+ "numerical": {
558
+ "voltage": 1.4125000000001842,
559
+ "phase_ripple": 0.15941079251186618,
560
+ "channel": 0.02707169748638179,
561
+ "esr": 1.3994083247136601e-05,
562
+ "dcr": 0.020303773114786344,
563
+ "gate": 0.005302368,
564
+ "coss": 0.001129208,
565
+ "efficiency": 0.9752270284025082
566
+ },
567
+ "ngspice": {
568
+ "voltage": 1.4125297417083853,
569
+ "phase_ripple": 0.15941883654573874,
570
+ "channel": 0.027071123689108474,
571
+ "esr": 1.39955727749387e-05,
572
+ "dcr": 0.020303331937065343,
573
+ "gate": 0.005294987444994335,
574
+ "coss": 0.0011286509622045354,
575
+ "efficiency": 0.9752315550014499
576
+ },
577
+ "numerical_checks": {
578
+ "balance_w": -1.4084653582324691e-14,
579
+ "charge_average_a": -1.8657156304916975e-13,
580
+ "periodic_change": 3.885780586188048e-14
581
+ },
582
+ "spice_checks": {
583
+ "balance_w": -2.708639081695835e-05,
584
+ "window_drift_v": 6.786506292488781e-07,
585
+ "output_cap_average_a": -1.7084520185152993e-05,
586
+ "winding_voltage_mean_v": [
587
+ -7.815854006675119e-07,
588
+ -4.2379733978705093e-05
589
+ ],
590
+ "switch_peak_v": [
591
+ 1.909947782225825,
592
+ 1.909947782225825,
593
+ 1.891964739402599,
594
+ 1.891964739402598,
595
+ 1.90996431875594,
596
+ 1.909964318755939,
597
+ 1.891948450714648,
598
+ 1.891948450714648
599
+ ],
600
+ "winding_min_a": [
601
+ 0.6695864968774807,
602
+ 0.6709438880049327
603
+ ],
604
+ "deck_sha256": "d5458f443e8838c2a14f49316599769271c415a9bd4bc3905d21c9c71c17a8b3"
605
+ }
606
+ },
607
+ {
608
+ "case": "no_coupling",
609
+ "duty": 0.55,
610
+ "settings": {
611
+ "duty": 0.55,
612
+ "coupling": 0,
613
+ "switching_frequency_mhz": 3.4
614
+ },
615
+ "analytical": {
616
+ "voltage": 1.6360000000000001,
617
+ "phase_ripple": 0.21838235294117653,
618
+ "channel": 0.012190763408304498,
619
+ "esr": 6.568987889273366e-07,
620
+ "dcr": 0.002031793901384083,
621
+ "gate": 0.00153,
622
+ "coss": 0.000306,
623
+ "efficiency": 0.9902792744531427
624
+ },
625
+ "numerical": {
626
+ "voltage": 1.6360000000003523,
627
+ "phase_ripple": 0.21838218237305074,
628
+ "channel": 0.012190763142526356,
629
+ "esr": 6.569221641438168e-07,
630
+ "dcr": 0.002031793857087726,
631
+ "gate": 0.00153,
632
+ "coss": 0.000306,
633
+ "efficiency": 0.9902792746249982
634
+ },
635
+ "ngspice": {
636
+ "voltage": 1.6360022545206707,
637
+ "phase_ripple": 0.21838154850100694,
638
+ "channel": 0.012190789698247339,
639
+ "esr": 6.57174810105045e-07,
640
+ "dcr": 0.0020317967830683365,
641
+ "gate": 0.001527831522881377,
642
+ "coss": 0.0003058370947274896,
643
+ "efficiency": 0.9902806675472218
644
+ },
645
+ "numerical_checks": {
646
+ "balance_w": -2.986922601616593e-11,
647
+ "charge_average_a": -1.8060777999629536e-12,
648
+ "periodic_change": 1.0191847366058937e-13
649
+ },
650
+ "spice_checks": {
651
+ "balance_w": -5.3169899617590775e-06,
652
+ "window_drift_v": 8.396012995959268e-09,
653
+ "output_cap_average_a": 3.2711265839886043e-07,
654
+ "winding_voltage_mean_v": [
655
+ 2.8901917152470084e-06,
656
+ -7.408399303329117e-06
657
+ ],
658
+ "switch_peak_v": [
659
+ 1.507307669256362,
660
+ 1.507307669256362,
661
+ 1.495312443769914,
662
+ 1.495312443769914,
663
+ 1.507312084331903,
664
+ 1.507312084331903,
665
+ 1.495308027201223,
666
+ 1.495308027201222
667
+ ],
668
+ "winding_min_a": [
669
+ 0.3906124893964677,
670
+ 0.390980536961544
671
+ ],
672
+ "deck_sha256": "91098f1c08e8e1b1c0a83bc2af4fa3c1fc30a5ee9280bb04d580cb59b976e3c3"
673
+ }
674
+ },
675
+ {
676
+ "case": "zero_events",
677
+ "duty": 0.5,
678
+ "settings": {
679
+ "switch_coff_pf": 0,
680
+ "gate_cap_pf": 0
681
+ },
682
+ "analytical": {
683
+ "voltage": 1.486,
684
+ "phase_ripple": 0.234375,
685
+ "channel": 0.0122197265625,
686
+ "esr": 0.0,
687
+ "dcr": 0.00203662109375,
688
+ "gate": 0.0,
689
+ "coss": 0.0,
690
+ "efficiency": 0.9904973922099901
691
+ },
692
+ "numerical": {
693
+ "voltage": 1.4859999999998892,
694
+ "phase_ripple": 0.23437462616042998,
695
+ "channel": 0.012219726142322085,
696
+ "esr": 1.3314440510495465e-24,
697
+ "dcr": 0.0020366210237203475,
698
+ "gate": 0.0,
699
+ "coss": 0.0,
700
+ "efficiency": 0.9904973925336337
701
+ },
702
+ "ngspice": {
703
+ "voltage": 1.4860000000001914,
704
+ "phase_ripple": 0.2343729868428185,
705
+ "channel": 0.012219742640573244,
706
+ "esr": 1.0379744393307624e-25,
707
+ "dcr": 0.002036622273447964,
708
+ "gate": 0.0,
709
+ "coss": 0.0,
710
+ "efficiency": 0.9904973808160871
711
+ },
712
+ "numerical_checks": {
713
+ "balance_w": 9.800977737728367e-12,
714
+ "charge_average_a": 1.6318317067979634e-11,
715
+ "periodic_change": 1.0302869668521453e-13
716
+ },
717
+ "spice_checks": {
718
+ "balance_w": -6.345828323646269e-08,
719
+ "window_drift_v": 9.547918011776346e-15,
720
+ "output_cap_average_a": -4.555574698634103e-12,
721
+ "winding_voltage_mean_v": [
722
+ -7.473169580975586e-08,
723
+ 7.473172615735818e-08
724
+ ],
725
+ "switch_peak_v": [
726
+ 1.507405987105269,
727
+ 1.507405987105269,
728
+ 1.495405928057631,
729
+ 1.495405928057631,
730
+ 1.507405928057434,
731
+ 1.507405928057434,
732
+ 1.495405987105467,
733
+ 1.495405987105467
734
+ ],
735
+ "winding_min_a": [
736
+ 0.3828159675508933,
737
+ 0.3828110456018166
738
+ ],
739
+ "deck_sha256": "ff233ff3dff6d3cfae63858435f9da993253f769c0624cb386e8f5a8d78cf221"
740
+ }
741
+ },
742
+ {
743
+ "case": "loaded_target",
744
+ "duty": 0.5046666666666667,
745
+ "settings": {
746
+ "voltage_mode": "output_voltage",
747
+ "target_output_v": 1.5
748
+ },
749
+ "analytical": {
750
+ "voltage": 1.5000000000000002,
751
+ "phase_ripple": 0.24085583333333327,
752
+ "channel": 0.012219970057927777,
753
+ "esr": 1.2523333796296513e-07,
754
+ "dcr": 0.002036661676321296,
755
+ "gate": 0.0009,
756
+ "coss": 0.00018,
757
+ "efficiency": 0.989878977793505
758
+ },
759
+ "numerical": {
760
+ "voltage": 1.500000000000046,
761
+ "phase_ripple": 0.24085550023614422,
762
+ "channel": 0.012219969702325667,
763
+ "esr": 1.2526041372353037e-07,
764
+ "dcr": 0.002036661617054278,
765
+ "gate": 0.0009,
766
+ "coss": 0.00018,
767
+ "efficiency": 0.9898789780468276
768
+ },
769
+ "ngspice": {
770
+ "voltage": 1.5000016328057486,
771
+ "phase_ripple": 0.24084673482964175,
772
+ "channel": 0.012219986971208498,
773
+ "esr": 1.2548983180112206e-07,
774
+ "dcr": 0.0020366629952205434,
775
+ "gate": 0.0008987210707988033,
776
+ "coss": 0.00017977742187041018,
777
+ "efficiency": 0.9898799574665064
778
+ },
779
+ "numerical_checks": {
780
+ "balance_w": -6.814584486980468e-12,
781
+ "charge_average_a": -4.414367898937892e-12,
782
+ "periodic_change": 3.3084646133829665e-14
783
+ },
784
+ "spice_checks": {
785
+ "balance_w": -7.235259074593785e-06,
786
+ "window_drift_v": 6.481172931671608e-09,
787
+ "output_cap_average_a": 2.590795328062127e-08,
788
+ "winding_voltage_mean_v": [
789
+ -6.225048645806054e-06,
790
+ -5.390029691592805e-06
791
+ ],
792
+ "switch_peak_v": [
793
+ 1.507445187259939,
794
+ 1.507445187259939,
795
+ 1.49544364512108,
796
+ 1.49544364512108,
797
+ 1.507444842501324,
798
+ 1.507444842501324,
799
+ 1.495443987203279,
800
+ 1.495443987203279
801
+ ],
802
+ "winding_min_a": [
803
+ 0.3796013542954187,
804
+ 0.3795728235846936
805
+ ],
806
+ "deck_sha256": "e2b03dc5b2e8acea259a0e6f82204b9f6a2d0b525d1f55f703b82f13604d49c9"
807
+ }
808
+ },
809
+ {
810
+ "case": "low_corner",
811
+ "duty": 0.5,
812
+ "settings": {
813
+ "stop_us": 35,
814
+ "input_voltage_v": 2.5,
815
+ "output_current_a": 0.6,
816
+ "switching_frequency_mhz": 4,
817
+ "dcr_mohm": 2,
818
+ "switch_ron_mohm": 5,
819
+ "inductance_nh": 2000,
820
+ "output_esr_mohm": 1,
821
+ "output_cap_uf": 60,
822
+ "coupling": 0.75
823
+ },
824
+ "analytical": {
825
+ "voltage": 1.2464,
826
+ "phase_ripple": 0.044642857142857116,
827
+ "channel": 0.0018033216411564624,
828
+ "esr": 0.0,
829
+ "dcr": 0.0003606643282312925,
830
+ "gate": 0.00125,
831
+ "coss": 0.00024999999999999995,
832
+ "efficiency": 0.9951244623610859
833
+ },
834
+ "numerical": {
835
+ "voltage": 1.2463999999999205,
836
+ "phase_ripple": 0.0446428564595569,
837
+ "channel": 0.001803321641096351,
838
+ "esr": 2.24176903153503e-29,
839
+ "dcr": 0.00036066432821927014,
840
+ "gate": 0.00125,
841
+ "coss": 0.00024999999999999995,
842
+ "efficiency": 0.9951244623611811
843
+ },
844
+ "ngspice": {
845
+ "voltage": 1.2464000000001427,
846
+ "phase_ripple": 0.04464179939395119,
847
+ "channel": 0.0018033280057712206,
848
+ "esr": 1.9789010757635955e-26,
849
+ "dcr": 0.00036066435115081146,
850
+ "gate": 0.0012482311879004357,
851
+ "coss": 0.00024973742883764995,
852
+ "efficiency": 0.9951271438215341
853
+ },
854
+ "numerical_checks": {
855
+ "balance_w": 1.1938908195396891e-11,
856
+ "charge_average_a": 1.494317304926193e-13,
857
+ "periodic_change": 3.907985046680551e-14
858
+ },
859
+ "spice_checks": {
860
+ "balance_w": -3.51848212774104e-07,
861
+ "window_drift_v": 4.440892098500626e-15,
862
+ "output_cap_average_a": -4.423393360966039e-12,
863
+ "winding_voltage_mean_v": [
864
+ 1.785082263300427e-07,
865
+ -1.7850842420488012e-07
866
+ ],
867
+ "switch_peak_v": [
868
+ 1.251611510200425,
869
+ 1.251611510200425,
870
+ 1.248611658966743,
871
+ 1.248611658966743,
872
+ 1.251611658966705,
873
+ 1.251611658966705,
874
+ 1.248611510200465,
875
+ 1.248611510200465
876
+ ],
877
+ "winding_min_a": [
878
+ 0.2776642235102239,
879
+ 0.2776939770909513
880
+ ],
881
+ "deck_sha256": "6f33686a751e42c91c856c013ba9adc27bc122e5397bcbf8b252125ec986c039"
882
+ }
883
+ },
884
+ {
885
+ "case": "cold_nominal",
886
+ "duty": 0.5,
887
+ "settings": {
888
+ "stop_us": 360
889
+ },
890
+ "analytical": {
891
+ "voltage": 1.486,
892
+ "phase_ripple": 0.234375,
893
+ "channel": 0.0122197265625,
894
+ "esr": 0.0,
895
+ "dcr": 0.00203662109375,
896
+ "gate": 0.0009,
897
+ "coss": 0.00018,
898
+ "efficiency": 0.9897848688735261
899
+ },
900
+ "numerical": {
901
+ "voltage": 1.4859999999998892,
902
+ "phase_ripple": 0.23437462616042998,
903
+ "channel": 0.012219726142322085,
904
+ "esr": 1.3314440510495465e-24,
905
+ "dcr": 0.0020366210237203475,
906
+ "gate": 0.0009,
907
+ "coss": 0.00018,
908
+ "efficiency": 0.9897848691967042
909
+ },
910
+ "ngspice": {
911
+ "voltage": 1.4860000455137308,
912
+ "phase_ripple": 0.23437674153784444,
913
+ "channel": 0.012219763726204232,
914
+ "esr": 1.5996427096392269e-15,
915
+ "dcr": 0.0020366257877197005,
916
+ "gate": 0.0008987210706685937,
917
+ "coss": 0.00017976258076860433,
918
+ "efficiency": 0.989785841270611
919
+ },
920
+ "numerical_checks": {
921
+ "balance_w": 9.800977737728367e-12,
922
+ "charge_average_a": 1.6318317067979634e-11,
923
+ "periodic_change": 1.0302869668521453e-13
924
+ },
925
+ "spice_checks": {
926
+ "balance_w": -6.339963970568979e-08,
927
+ "window_drift_v": 3.0967866271325306e-08,
928
+ "output_cap_average_a": 5.440632207261724e-07,
929
+ "winding_voltage_mean_v": [
930
+ -4.505789875240166e-06,
931
+ 4.399528927986223e-06
932
+ ],
933
+ "switch_peak_v": [
934
+ 1.507411467508707,
935
+ 1.507411467508707,
936
+ 1.495400508634943,
937
+ 1.495400508634942,
938
+ 1.507400513266957,
939
+ 1.507400513266957,
940
+ 1.495411458862788,
941
+ 1.495411458862788
942
+ ],
943
+ "winding_min_a": [
944
+ 0.383267703932151,
945
+ 0.3823562750412717
946
+ ],
947
+ "deck_sha256": "819e131f931260b1100e2c6a7081bc1e9455820c66d4bfe0f16c5e0319fa83a8"
948
+ }
949
+ },
950
+ {
951
+ "case": "cold_unequal",
952
+ "duty": 0.6,
953
+ "settings": {
954
+ "stop_us": 360,
955
+ "duty": 0.6,
956
+ "switch_ron_mohm": 9,
957
+ "low_ron_mohm": 20
958
+ },
959
+ "analytical": {
960
+ "voltage": 1.7845999999999997,
961
+ "phase_ripple": 0.3375,
962
+ "channel": 0.013782218750000002,
963
+ "esr": 3.749999999999997e-05,
964
+ "dcr": 0.0020478125,
965
+ "gate": 0.0009,
966
+ "coss": 0.00018,
967
+ "efficiency": 0.9905927926096731
968
+ },
969
+ "numerical": {
970
+ "voltage": 1.78460172076571,
971
+ "phase_ripple": 0.3387487500028043,
972
+ "channel": 0.013781625032392159,
973
+ "esr": 3.778607842235624e-05,
974
+ "dcr": 0.002048167851061284,
975
+ "gate": 0.0009,
976
+ "coss": 0.00018,
977
+ "efficiency": 0.9905927753603865
978
+ },
979
+ "ngspice": {
980
+ "voltage": 1.7845978882073588,
981
+ "phase_ripple": 0.3387386323759627,
982
+ "channel": 0.013781720825592113,
983
+ "esr": 3.779326059646643e-05,
984
+ "dcr": 0.0020481731170416996,
985
+ "gate": 0.0008987210706419416,
986
+ "coss": 0.0001797625807686043,
987
+ "efficiency": 0.9905935296062289
988
+ },
989
+ "numerical_checks": {
990
+ "balance_w": -7.495264825463366e-12,
991
+ "charge_average_a": -7.460548021379076e-13,
992
+ "periodic_change": 3.6415315207705135e-14
993
+ },
994
+ "spice_checks": {
995
+ "balance_w": -7.819256968275918e-06,
996
+ "window_drift_v": 2.1109053394141597e-08,
997
+ "output_cap_average_a": 3.6313797399615803e-07,
998
+ "winding_voltage_mean_v": [
999
+ -8.280434241491398e-06,
1000
+ -3.032454915985358e-06
1001
+ ],
1002
+ "switch_peak_v": [
1003
+ 1.513393170737725,
1004
+ 1.513393170737725,
1005
+ 1.497020760619197,
1006
+ 1.497020760619197,
1007
+ 1.513389794146723,
1008
+ 1.513389794146723,
1009
+ 1.497022270466196,
1010
+ 1.497022270466196
1011
+ ],
1012
+ "winding_min_a": [
1013
+ 0.3309538071125705,
1014
+ 0.3307860149519595
1015
+ ],
1016
+ "deck_sha256": "9324746c8f1279a682df85ada9e8e5e38bb20056fbef58eba7051de8ef77b331"
1017
+ }
1018
+ }
1019
+ ]
docs/topology/2to1_buck_stacked/evidence/sweeps.json ADDED
@@ -0,0 +1,274 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "vin": {
3
+ "run": "4b00556d209642c88b9d39214aeb99bf",
4
+ "rows": [
5
+ {
6
+ "value": 2.8,
7
+ "vout_v": 1.217996672339401,
8
+ "efficiency_with_gate": 0.9876699546318513,
9
+ "deck_sha256": "7bb047254de2a3c50c291bc35f2fdf16a75b30ddaf3b86214dc9b006fc5e1e5c"
10
+ },
11
+ {
12
+ "value": 3.3,
13
+ "vout_v": 1.437995671597078,
14
+ "efficiency_with_gate": 0.9892206149387989,
15
+ "deck_sha256": "14ee01a24833eb8e30f369bb87e2ddc8bb9dfe6da11bd878469392ac1f761194"
16
+ }
17
+ ]
18
+ },
19
+ "load": {
20
+ "run": "fe7c4dc5efe8447bbc565a63ee51b032",
21
+ "rows": [
22
+ {
23
+ "value": 0.8,
24
+ "vout_v": 1.308797285867849,
25
+ "efficiency_with_gate": 0.9902134506847732,
26
+ "deck_sha256": "bd9f5537cc948c0bb8334d9dc814e6f320809da916dd7dd7f2f1ea28d6690625"
27
+ },
28
+ {
29
+ "value": 1.25,
30
+ "vout_v": 1.3025043625572823,
31
+ "efficiency_with_gate": 0.9859222459636466,
32
+ "deck_sha256": "d049d5ad956672442e1c13cd2a8d52c9bbe665bca1791ccd1b231006fa38b1f7"
33
+ }
34
+ ]
35
+ },
36
+ "fs": {
37
+ "run": "55472548bd2c4ec18d3449b89fb65668",
38
+ "rows": [
39
+ {
40
+ "value": 1.8,
41
+ "vout_v": 1.305996451210651,
42
+ "efficiency_with_gate": 0.988389622394636,
43
+ "deck_sha256": "c958f6aaba27a0300a216cdc7728bd75115dd3fca4db85880dc4fcd1add5f7e1"
44
+ },
45
+ {
46
+ "value": 2.4,
47
+ "vout_v": 1.3060047168845959,
48
+ "efficiency_with_gate": 0.988273627872244,
49
+ "deck_sha256": "9943d1eb3d0d9151c7bad34f845e244169099b154d1e29e7b52f1d325887126c"
50
+ }
51
+ ]
52
+ },
53
+ "duty": {
54
+ "run": "2b11a02de8e645149507097873bf013a",
55
+ "rows": [
56
+ {
57
+ "value": 0.3,
58
+ "vout_v": 0.8860070892803505,
59
+ "efficiency_with_gate": 0.9827397914238437,
60
+ "deck_sha256": "290c55c36e13efb52afe6f2159a901de2139c87b2b7956e75ca171cf0ad59fd8"
61
+ },
62
+ {
63
+ "value": 0.7,
64
+ "vout_v": 2.086007242368526,
65
+ "efficiency_with_gate": 0.9925963342587494,
66
+ "deck_sha256": "bd936adfd014322a640ac78d561d22c7f1c8f478fa95679b04f9088dcc458d44"
67
+ }
68
+ ]
69
+ },
70
+ "lt": {
71
+ "run": "c68dd80a8c18461ebf990ff398d3ca02",
72
+ "rows": [
73
+ {
74
+ "value": 800,
75
+ "vout_v": 1.3059963288644987,
76
+ "efficiency_with_gate": 0.9882287424150187,
77
+ "deck_sha256": "bbdc6aa5f481bafd08596a49f47f451caf5c1faa28f46c545b612bb43aa1a953"
78
+ },
79
+ {
80
+ "value": 1450,
81
+ "vout_v": 1.3060026058153993,
82
+ "efficiency_with_gate": 0.9884805769283901,
83
+ "deck_sha256": "1ce9081a8ef643a61d40b0d504e1f79b28d8955c0212231de52cf77b8807ec1d"
84
+ }
85
+ ]
86
+ },
87
+ "coupling": {
88
+ "run": "89c8ac116ffe460fbefbf924dac69231",
89
+ "rows": [
90
+ {
91
+ "value": 0,
92
+ "vout_v": 1.305998024423819,
93
+ "efficiency_with_gate": 0.988104961469467,
94
+ "deck_sha256": "54760ca947c21fd752df8e800d15d54e3b1bdee33243e726ed547765d583d71a"
95
+ },
96
+ {
97
+ "value": 0.72,
98
+ "vout_v": 1.3060071186959756,
99
+ "efficiency_with_gate": 0.9883280610881346,
100
+ "deck_sha256": "e9122637dad7fcc10f03edd1265c93385c5139f24459d258257a44a4387bbc81"
101
+ }
102
+ ]
103
+ },
104
+ "dcr": {
105
+ "run": "bb0d2b9fc263420b93c9205f1b2f682b",
106
+ "rows": [
107
+ {
108
+ "value": 3,
109
+ "vout_v": 1.306499761701609,
110
+ "efficiency_with_gate": 0.9887530210509373,
111
+ "deck_sha256": "08ec5133e27b7ed80e2d79b1b09f77ee4961afe36f437b373d1938e15d34efe9"
112
+ },
113
+ {
114
+ "value": 9,
115
+ "vout_v": 1.303500213972039,
116
+ "efficiency_with_gate": 0.9864316428078417,
117
+ "deck_sha256": "35bd00fb0ab5d02dd9fa3e2aedf8d4222aa822d964b32629dcb5750ddc73e859"
118
+ }
119
+ ]
120
+ },
121
+ "rs": {
122
+ "run": "ccdde4009bd34e39909ab6feec9886b3",
123
+ "rows": [
124
+ {
125
+ "value": 9,
126
+ "vout_v": 1.3089996928569771,
127
+ "efficiency_with_gate": 0.9906852181272401,
128
+ "deck_sha256": "c2cdd0016773c93ed135534372c5f7230b9aaaddbe3c04856d39e013a07b4f0d"
129
+ },
130
+ {
131
+ "value": 18,
132
+ "vout_v": 1.299999600156637,
133
+ "efficiency_with_gate": 0.9837290456000247,
134
+ "deck_sha256": "46cd52a75d9615a1f8760305014e17871ad8973b523fcf7334f10c273f5a061b"
135
+ }
136
+ ]
137
+ },
138
+ "rslow": {
139
+ "run": "4da9d6afa64342c189993517570fcbbd",
140
+ "rows": [
141
+ {
142
+ "value": 10,
143
+ "vout_v": 1.3071195396925013,
144
+ "efficiency_with_gate": 0.9892279973457124,
145
+ "deck_sha256": "dbf026225053f3d5e5a125a6b39b8b7f887b2e6007161e80d66fa82cffd3f632"
146
+ },
147
+ {
148
+ "value": 18,
149
+ "vout_v": 1.3026405281903994,
150
+ "efficiency_with_gate": 0.98578227721669,
151
+ "deck_sha256": "75dc94f7896b65adcef7db163a9c83708e047fbf66fa70d47885734858ae2b9f"
152
+ }
153
+ ]
154
+ },
155
+ "gatecap": {
156
+ "run": "7570dfc3ffb24448ad6de43422954eda",
157
+ "rows": [
158
+ {
159
+ "value": 4,
160
+ "vout_v": 1.3059999247829628,
161
+ "efficiency_with_gate": 0.9889267859746088,
162
+ "deck_sha256": "24bf5d6e7a85817e626243c224048b2b0aacefeb6ce209aea93fd187e1cbfd93"
163
+ },
164
+ {
165
+ "value": 42,
166
+ "vout_v": 1.3059999485892015,
167
+ "efficiency_with_gate": 0.9879048313651215,
168
+ "deck_sha256": "5fa0051e1d0d71983addd732a4c5269bcb009395f0a1c9219c6d78a349a06231"
169
+ }
170
+ ]
171
+ },
172
+ "coss": {
173
+ "run": "c7e2d311cfc04f82aa79ae972a2f5f9d",
174
+ "rows": [
175
+ {
176
+ "value": 5,
177
+ "vout_v": 1.3060001053788908,
178
+ "efficiency_with_gate": 0.9884292247590286,
179
+ "deck_sha256": "a9a7f266b5feb8f123f51066c3ac4c6af75c455cd0524b7bbf5798d7e6c43a85"
180
+ },
181
+ {
182
+ "value": 22,
183
+ "vout_v": 1.3059994889944002,
184
+ "efficiency_with_gate": 0.9881974543078786,
185
+ "deck_sha256": "c93cbb17f08c9b7b07c099dab6937d3144b008feed8d95922121cbf785213833"
186
+ }
187
+ ]
188
+ },
189
+ "cout": {
190
+ "run": "ceb67d9edb1041e3b8a3365981e5190a",
191
+ "rows": [
192
+ {
193
+ "value": 38,
194
+ "vout_v": 1.3059997831788217,
195
+ "efficiency_with_gate": 0.9883543798546242,
196
+ "deck_sha256": "9558c525997adcc5942b53e0a4379057acba8e34a6175dbfb2e9a232fe3f3978"
197
+ },
198
+ {
199
+ "value": 60,
200
+ "vout_v": 1.3059997846729678,
201
+ "efficiency_with_gate": 0.9883662902942699,
202
+ "deck_sha256": "8a46b4acc25de1f8bd55b09b66c09c4e18ac9f6eebd575d6fb9ec71113f3c49c"
203
+ }
204
+ ]
205
+ },
206
+ "esr": {
207
+ "run": "34bd319f4cc84839997293ef2a708f67",
208
+ "rows": [
209
+ {
210
+ "value": 2.5,
211
+ "vout_v": 1.305999895214845,
212
+ "efficiency_with_gate": 0.9883675575795037,
213
+ "deck_sha256": "da9a3ccc200f66907c611aaf90b416d49a43627744b141779b368a3ab34c3869"
214
+ },
215
+ {
216
+ "value": 11,
217
+ "vout_v": 1.305999569128121,
218
+ "efficiency_with_gate": 0.9883475192669045,
219
+ "deck_sha256": "53bb8a193266be5eeecbf8dd02eb9a702f5ecd6e1629a8682c51b2bc0b1728de"
220
+ }
221
+ ]
222
+ },
223
+ "stop": {
224
+ "run": "4c88e2e48e724d5ba78516eedab3c436",
225
+ "rows": [
226
+ {
227
+ "value": 85,
228
+ "vout_v": 1.3060014352907352,
229
+ "efficiency_with_gate": 0.988343374822484,
230
+ "deck_sha256": "af05d8f54d0eea807e67eedef96f5c2602ed64d6a4ad8558fd2d9a7c62e1afd5"
231
+ },
232
+ {
233
+ "value": 110,
234
+ "vout_v": 1.3060002716958652,
235
+ "efficiency_with_gate": 0.9883605426260474,
236
+ "deck_sha256": "c97be21dbb6d8a5e6f10a42273568a6df8f2491d0c8086f4b901c70fd6a35a8d"
237
+ }
238
+ ]
239
+ },
240
+ "step": {
241
+ "run": "fdb9db120bfd4378b6a7ae534eedb31f",
242
+ "rows": [
243
+ {
244
+ "value": 750,
245
+ "vout_v": 1.3059995598338114,
246
+ "efficiency_with_gate": 0.9883581800358697,
247
+ "deck_sha256": "3134d4bfef17f191feffee9b11b25cf57cada68133f4154c0595d7b5370af341"
248
+ },
249
+ {
250
+ "value": 1000,
251
+ "vout_v": 1.3059996509530707,
252
+ "efficiency_with_gate": 0.9883587531665791,
253
+ "deck_sha256": "911dac7abd0d5e19046223499fa3d84fa1c9c001b59410367fa631dd20d3299d"
254
+ }
255
+ ]
256
+ },
257
+ "target": {
258
+ "run": "bcf779971e4f41179b47d2605679567a",
259
+ "rows": [
260
+ {
261
+ "value": 1.3,
262
+ "vout_v": 1.2999998950120346,
263
+ "efficiency_with_gate": 0.9883076785464995,
264
+ "deck_sha256": "1e9d7facea3a5796ee96cd12a4b573585a439610ce4b0d7a448df6ca79921261"
265
+ },
266
+ {
267
+ "value": 1.65,
268
+ "vout_v": 1.6499995596601131,
269
+ "efficiency_with_gate": 0.9907681581562554,
270
+ "deck_sha256": "6541e0646e229b7391306245a60d036be1d9df7d5873e9f1817c57dca467a566"
271
+ }
272
+ ]
273
+ }
274
+ }
docs/topology/2to1_buck_stacked/evidence/workspace.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "files": [
3
+ "/pe.js",
4
+ "/gallery.js",
5
+ "/compare/app.js",
6
+ "/compare/engine.js",
7
+ "/compare/buck-stacked.js",
8
+ "/compare/technology.js",
9
+ "/compare/recommend.js",
10
+ "/compare/models-data.json",
11
+ "/compare/operating-conditions.json"
12
+ ],
13
+ "axes": [
14
+ "duty_cycle",
15
+ "output_voltage",
16
+ "input_voltage_v",
17
+ "output_current_a",
18
+ "switching_frequency_mhz"
19
+ ],
20
+ "comparison": "buck2 add/remove",
21
+ "coefficients": true
22
+ }
docs/topology/2to1_buck_stacked/numerical.py ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Switched periodic validation with physical branch laws and no analytical loss imports."""
2
+ from pathlib import Path
3
+ import sys
4
+
5
+ import numpy as np
6
+
7
+ sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "2to1_cross_validation"))
8
+ from circuit import integrate
9
+
10
+
11
+ def commands(p):
12
+ duty = p["duty"]
13
+ transitions = sorted({0., duty, .5, (duty + .5) % 1., 1.})
14
+ for start, stop in zip(transitions, transitions[1:]):
15
+ if stop - start > 1e-12:
16
+ midpoint = (start + stop) / 2
17
+ yield start, stop, (midpoint < duty, (midpoint - .5) % 1 < duty)
18
+
19
+
20
+ def state_circuit(p, selected, stiff, ideal):
21
+ if stiff or ideal:
22
+ raise ValueError("This comparison uses finite Cout and dissipative channels")
23
+ matrix = p["lt"] * np.array([[1, -p["k"]], [-p["k"], 1]])
24
+ inverse = np.linalg.inv(matrix)
25
+ high = np.array(selected)
26
+ # Ordering follows the approved gate table: upper outer/inner, lower outer/inner.
27
+ path_members = np.array([[0, 1] if high[0] else [2, 3],
28
+ [4, 5] if high[1] else [6, 7]])
29
+ device_ron = np.array([p["high"]]*2 + [p["low"]]*2)*np.ones((2, 4))
30
+ device_ron = device_ron.ravel()
31
+ path_r = device_ron[path_members].sum(axis=1)
32
+
33
+ def evaluate(x):
34
+ current = x[:2]
35
+ vc = x[2]
36
+ cap_current = current.sum(axis=0) - p["io"]
37
+ out = vc + p["rc"] * cap_current
38
+ channel = np.zeros((8, current.shape[1]))
39
+ channel[path_members] = ((2*high-1)[:, None]*current)[:, None, :]
40
+ switch_nodes = p["vin"] * high[:, None] - current * path_r[:, None]
41
+ winding_voltage = switch_nodes - out - p["rl"] * current
42
+ derivative = np.vstack((inverse @ winding_voltage, cap_current/p["cf"]))
43
+ loss = np.stack((device_ron @ channel**2, p["rc"] * cap_current**2,
44
+ p["rl"] * np.sum(current**2, axis=0)))
45
+ pin = p["vin"] * high @ current
46
+ energy = (np.sum(current*(matrix @ current),axis=0) + p["cf"]*vc**2)/2
47
+ return derivative / p["fs"], out, channel, current, cap_current, pin, loss, energy
48
+
49
+ return evaluate, p["duty"]
50
+
51
+
52
+ def solve(p, steps=768):
53
+ result = integrate(p, steps=steps, switching_states=commands, state_circuit=state_circuit,
54
+ winding_only=True)
55
+ # Evaluate V dQ along each linear capacitor charge/discharge trajectory.
56
+ # Gate charging draws energy from the fixed half-input drive rail. Coss
57
+ # hard-turn-on loss integrates the released energy as its terminal voltage falls.
58
+ samples = np.linspace(0, p["vin"]/2, 65)
59
+ gate_charge = samples * p["gate_cap"]
60
+ output_charge = samples * p["coss"]
61
+ gate_energy = np.sum(samples[-1] * np.diff(gate_charge))
62
+ coss_energy = np.trapezoid(samples, output_charge)
63
+ result["gate_w"] = 8 * p["fs"] * gate_energy
64
+ result["coss_w"] = 8 * p["fs"] * coss_energy
65
+ return result
docs/topology/2to1_buck_stacked/package_source.py ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Keep the checked-in runtime and corresponding-source archive in sync."""
2
+ import json
3
+ from pathlib import Path
4
+ from zipfile import ZIP_DEFLATED, ZipFile
5
+
6
+ ROOT = Path(__file__).resolve().parents[3]
7
+ STATIC = ROOT/'static'
8
+ ARCHIVE = STATIC/'openpels-source.zip'
9
+ NEXT = ROOT/'.openpels-runtime'/'buck-stacked-source.zip'
10
+ SCRIPTS = 'openpels/scripts/openpels/'
11
+ ANALYSIS = 'openpels-analysis/static/'
12
+ updates = {}
13
+
14
+
15
+ def save(name, content):
16
+ updates[name] = content.encode() if isinstance(content,str) else content
17
+
18
+
19
+ def copy(name, path):
20
+ save(name,path.read_bytes())
21
+
22
+
23
+ with ZipFile(ARCHIVE) as source:
24
+ runtime, bridge = (STATIC/'compare/app.js').read_text().split(
25
+ "// Appended inside the preserved analytical UI's scope.",1)
26
+ save(ANALYSIS+'app.js',runtime.replace('picker();await update();announceAnalysisReady()}catch',
27
+ 'picker();await update()}catch').rstrip()+'\n')
28
+ save(SCRIPTS+'analysis_bridge.js',"// Appended inside the preserved analytical UI's scope."+bridge)
29
+ for name in ('engine.js','models-data.json','recommend.js','scoreboard.js','technology.js',
30
+ 'buck-stacked.js','operating-conditions.json','assets/buck-stacked.svg',
31
+ 'assets/buck-stacked-candidate.svg'):
32
+ copy(ANALYSIS+name,STATIC/'compare'/name)
33
+ original_header=source.read(ANALYSIS+'index.html').decode().split('<header>',1)[1].split('</header>',1)[0]
34
+ head, rest = (STATIC/'compare/index.html').read_text().split('<header>',1)
35
+ save(ANALYSIS+'index.html',head+'<header>'+original_header+'</header>'+rest.split('</header>',1)[1])
36
+ for name in ('index.html','pe.js','gallery.js'):
37
+ copy(SCRIPTS+name,STATIC/name)
38
+ for name in ('Dockerfile','simulator_frame.py','simulator_bridge.js','simulator_service.py',
39
+ 'sp2/sp2_preset.py','buck_stacked/__init__.py','buck_stacked/preset.py','buck_stacked/preset_contract.json',
40
+ 'buck_stacked/stacked-buck.cir','buck_stacked/NOTICE.md'):
41
+ copy(SCRIPTS+name,ROOT/name)
42
+ for extension in ('icproj.json','sp'):
43
+ name='buck_stacked.'+extension
44
+ copy(SCRIPTS+'buck_stacked/'+name,STATIC/'starters'/name)
45
+ site=source.read(SCRIPTS+'package-site.py').decode()
46
+ save(SCRIPTS+'package-site.py',site.replace("('sp2','rsc2','si2')","('sp2','rsc2','si2','buck_stacked')"))
47
+ generator=source.read(SCRIPTS+'generate-starters.mjs').decode()
48
+ marker='await writeFile(new URL("index.json", out), JSON.stringify(manifest, null, 2));'
49
+ if 'const buckStacked = ' not in generator:
50
+ starter=next(x for x in json.loads((STATIC/'starters/index.json').read_text()) if x['id']=='buck_stacked')
51
+ generator=generator.replace(marker,'''
52
+ const buckStacked = new URL("./buck_stacked/", import.meta.url);
53
+ for (const file of ["buck_stacked.icproj.json","buck_stacked.sp"])
54
+ await copyFile(new URL(file,buckStacked),new URL(file,out));
55
+ manifest.push('''+json.dumps(starter,indent=2,ensure_ascii=False)+''');
56
+ '''+marker)
57
+ save(SCRIPTS+'generate-starters.mjs',generator)
58
+ checker=source.read(SCRIPTS+'check-starters.mjs').decode()
59
+ if 'const stackedBuck = ' not in checker:
60
+ checker+='''
61
+ const stackedBuck = parseProject(await readFile(
62
+ new URL("../../apps/editor/dist-pe/starters/buck_stacked.icproj.json",import.meta.url),"utf8",
63
+ ));
64
+ assert.equal(stackedBuck.documents.length,1);
65
+ assert.equal(stackedBuck.documents[0].instances.filter(x=>x.symbolId==="nmos").length,8);
66
+ const stackedBuckNetlist = createDesignNetlistExport(stackedBuck);
67
+ assert.equal(stackedBuckNetlist.status,"ready");
68
+ assert.equal(stackedBuckNetlist.file.text,await readFile(
69
+ new URL("../../apps/editor/dist-pe/starters/buck_stacked.sp",import.meta.url),"utf8"));
70
+ console.log("buck_stacked: eight devices, inverse coupling and native netlist verified");
71
+ '''
72
+ save(SCRIPTS+'check-starters.mjs',checker)
73
+ gallery=source.read(SCRIPTS+'gallery.browser.mjs').decode()
74
+ gallery=gallery.replace('.count(), 9)', '.count(), 10)').replace('[2, 6]', '[2, 7]').replace('.count(), 6)', '.count(), 7)')
75
+ save(SCRIPTS+'gallery.browser.mjs',gallery)
76
+ tests=source.read(SCRIPTS+'test_simulator.py').decode()
77
+ save(SCRIPTS+'test_simulator.py',tests.replace("('sp2','rsc2','si2')","('sp2','rsc2','si2','buck_stacked')"))
78
+ with ZipFile(NEXT,'w',ZIP_DEFLATED) as target:
79
+ for entry in source.infolist():
80
+ target.writestr(entry,updates.pop(entry.filename,source.read(entry)))
81
+ for name,data in updates.items():
82
+ target.writestr(name,data)
83
+ NEXT.replace(ARCHIVE)
docs/topology/2to1_buck_stacked/parity.md ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 2:1 Buck_Stacked feature parity
2
+
3
+ The functional reference is XFLY6S at `local-baseline-v1.0` (`4cbae77`). The model, starter and Simulator ID is `buck_stacked`, at nominal 2:1. This record follows the [feature parity checklist](../feature_parity_checklist.md), [Analysis matrix](../analysis_feature_parity_matrix.md) and [Simulator matrix](../simulator_feature_parity_matrix.md). Design, Simulator and artifact checks use Chrome on `http://127.0.0.1:8765`. The [development report](README.md) gives the model scope and bounds.
4
+
5
+ **Disposition:** PASS for the declared ideal local scope after the `b7e5560` audit follow-up. The [closure checklist](#closure-checklist-for-stages-9-through-11) records the remaining checks and their receipts.
6
+
7
+ ## Entry point and schematic checklist
8
+
9
+ - [x] The 2:1 filter displays the eight-switch card and its Analysis and Simulator capability. The card is absent in the 4:1 filter. The original stacked buck reference retains its separate card and ID.
10
+ - [x] The starter opens in editable Canvas, reports eight devices and two windings, and supports insertion, undo, save, reload, SVG, and structural SPICE export. The checker verifies inverse coupling and round-trip netlisting. [Chrome workflow](verify_browser.mjs) · [Starter generation](build_starter.mjs)
11
+ - [x] Guarded source exports and the editable integration copy have separate hashes. [Source manifest](source/SHA256SUMS) · [Integration evidence](evidence/SHA256SUMS)
12
+
13
+ ## Analysis matrix
14
+
15
+ [Chrome verification](verify_browser.mjs) · [Sizing witness](verify_sizing.cjs) · [Three-method evidence](evidence/matched-results.json) · [Tagged comparison](../2to1_switching_capacitors/integration/verify_analysis_parity.mjs)
16
+
17
+ | Original feature or control | Stacked buck disposition |
18
+ | --- | --- |
19
+ | Gallery handoff | Pass. Focused 2:1 route receives Vin 3 V, Iout 1 A, D=0.5. |
20
+ | Family intro and scope | Pass. The focused view identifies duty-based operation, positive CCM and the eight-device budget. |
21
+ | Output voltage and current | Pass. Two modes, direct duty and loaded target, share the independent Vin and load fields. |
22
+ | Derived input voltage | N/A at fixed ratio. Vin is directly entered because duty can vary. Ideal Vout is derived from duty times Vin. |
23
+ | Load resistance and requested power | Pass. The candidate and export derive both from the requested or ideal voltage and the entered load. |
24
+ | Switching frequency | Pass. Initial 2 MHz and edited 2.4 MHz reach the ripple and energy models. |
25
+ | Silicon budget selector | Pass. Width and die-area modes use shared sizing. |
26
+ | Die area | Pass. Edited 1.5 mm² in area mode. |
27
+ | Usable transistor fraction | Pass. 1.12 is rejected and 0.5 restores sizing. |
28
+ | Ron × area | Pass. Edited 1.1 mΩ·mm² reaches the width limit. |
29
+ | Flying or clamp capacitance | N/A. The reviewed right-hand circuit has a single output cap; 44 µF reaches the edited design. |
30
+ | Main capacitor ESR | Pass for output-cap ESR. The 6 mΩ edit reaches the RMS model. |
31
+ | Maximum capacitor count | Pass. Zero excludes the design's one output capacitor. |
32
+ | Maximum estimated droop | Pass. The screen rejects zero allowed droop. The constraint uses average winding voltage balance. |
33
+ | Priority and objective | Pass. Three shared priorities select the same loss minimizer for this circuit's fixed component counts. |
34
+ | Power winding count and DCR | Pass. Count one excludes the pair. A 5 mΩ edited DCR contributes to winding loss. |
35
+ | Leakage and magnetizing input | N/A as independent duplicate controls. Equivalent modal inductances follow from separate editable self-L and k; both are tested. |
36
+ | Maximum phase ripple and cancellation | Pass. A 5% limit excludes a design; a low-current test fails the CCM valley screen. Finite phase ripple remains at 50% while ideal common-mode ripple cancels. |
37
+ | Update, validation and exclusions | Pass. Feasibility, invalid-input export gating, manual weights, reset and recovery were exercised. |
38
+ | Scoreboard and Circuit cards | Pass. Both views render the focused design and use the source drawing. |
39
+ | Candidate design and preview | Pass. Rank, resistance, loss, width, preview decode, and inspect open the advanced workbench. |
40
+ | Width sizing | Pass. The 8-device width sum matches the chosen width. The interior and bounded optima are checked against independent area/allocation samples. |
41
+ | Equivalent resistance and droop | Pass. Output power resistance and mean-channel/DCR voltage resistance have separate roles and are validated against switched results. |
42
+ | Switch and capacitor ESR | Pass. Separate per-component terms reconcile with numerical and NGSpice results. |
43
+ | Winding DCR | Pass. Separate RMS result in Analysis and NGSpice. |
44
+ | Separate charging increment | N/A. There is no flying capacitor. Hard Coss discharge appears separately and only once. |
45
+ | Gate-driving loss | Pass. Uses half-input effective swing and one equivalent event per device. Changes in Vin, fs and sized width reach the exported loss. Arbitrary gate swing/count is excluded by the approved model. |
46
+ | Coss, core and ripple corrections | Pass for editable effective Coss density and modeled finite winding/output-cap current ripple. Core and device commutation are outside the declared ideal model. |
47
+ | Total, mix and relative score | Pass. Reported component powers add to the modeled total. A singleton has no relative grade. |
48
+ | Efficiency | Pass. Derived from delivered power and the sum of modeled loss terms. |
49
+ | Inspect circuit | Pass. Opens the advanced cards and weights for the sized candidate. |
50
+ | Status, schematic and workbench | Pass. Reviewed image, eight-device area map, coefficient information and operating domain. |
51
+ | Topology toggles | Pass. Chrome adds and removes BUCK2 while retaining the stacked physical design. See [workspace checks](verify_workspace.mjs). |
52
+ | Equivalent circuit, coefficients and formulas | Pass. RMS terms, gain, and separate gate and Coss accounting. Generic flying-cap charge term is inapplicable. |
53
+ | Die allocation map | Pass. Eight labeled blocks and checked width fractions in the downloaded report. |
54
+ | Normalized weights, Apply and Reset | Pass for ESR, DCR, coupling and current scale. The legacy flying-cap weight applies to additional SC comparison curves. |
55
+ | Resistance plot, legend and cursor | Pass. Duty-dependent CCM curve, legend and hover; the second plot shows loaded output. |
56
+ | Model disclosures and finite-RC demo | Shared standalone tool preserved. Generic flying-cap RC demonstrator is outside this circuit model. |
57
+ | 180 nm frequency, width, capacitor settings | Pass. Focused model uses the Design Constraint fields once and reports corresponding technology data. |
58
+ | 180 nm winding resistance | Pass. Design DCR reaches physical result. |
59
+ | VGS and gate events | Pass. Read-only Vin/2 and one effective event. An independent fixed-voltage or event-count edit is inapplicable. |
60
+ | Effective Coss | Pass. Explicit zero and 0.52 pF/mm remain numerical values. A blank stays unknown in The Loss Lineup, Design JSON, Technology JSON and the Simulator handoff. [Receipt](evidence/coss-browser.json) |
61
+ | Technology constants | Pass. Illustrative reference reported; effective linear gate capacitance scales by physical width. |
62
+ | Design JSON | Pass. Widths, feasibility, modes, losses and efficiency checked. |
63
+ | Technology JSON | Pass. Device count, capacitances and power verified. |
64
+ | Per-unit CSV | Pass. Edited weights, coupling, ripple scale and duty verified. |
65
+ | Equivalent circuit SVG | Pass. Download verified. |
66
+ | Local image review and notes | The tagged browser regression verifies the shared local review form. External inference is outside this development. |
67
+
68
+ ## Simulator matrix
69
+
70
+ [Chrome core workflow](verify_browser.mjs) · [All-axis sweep replays](verify_sweeps.mjs) · [Tagged 4:1 and SP2 regression](../2to1_switching_capacitors/integration/verify_simulator_parity.mjs) · [Preset contract](../../../buck_stacked/preset_contract.json)
71
+
72
+ | Original feature or control | Stacked buck disposition |
73
+ | --- | --- |
74
+ | Layout and selector | Shared controls, status, topology preview, plot, summary, results and downloads. Gallery loads the correct preset. |
75
+ | Input voltage | Continuous field and two-point rail sweep. Nominal 3 V; edited 3.12 V. |
76
+ | Output target or duty | Both modes exercised. Output target solves for duty and the output remains free-running. Inactive command field is hidden. |
77
+ | Load current | Continuous true constant-current load. The equivalent load resistor serves Analysis reporting only. |
78
+ | Frequency | Continuous, measured in MHz; executed deck and sweep verify the command rate. |
79
+ | Flying capacitor and ESR | N/A. Output capacitor and its ESR are applicable and independently bound and swept. |
80
+ | Switch Ron and area | Independent per-MOSFET Ron in high and low stacks. Area sizing remains in Analysis. |
81
+ | Gate swing and gate capacitance | Half-input swing, derived and reported. Fixed swing has no separate sweep axis. Editable effective gate capacitance is measured via its rail-energy fixture. |
82
+ | Coss and Cout | Pass. Separate capacitive event and output dynamic controls. The 10 pF default, blank, zero and positive Coss are verified in real Chrome jobs. The event fixture uses half-input nominal blocking and is omitted for unknown Coss. |
83
+ | Coupling, self-L and winding DCR | Independent continuous inputs and separate sweep axes. Actual winding polarity and names are preserved. |
84
+ | Stop and max step | Automatic or entered and swept separately. The executed window uses whole periods; step request is a ceiling. |
85
+ | Gallery/Analysis/Simulator handoff | Pass. Chrome verifies command and physical-parameter transfer. Analysis forwards sized Ron and effective capacitances, including null, zero and positive Coss. Simulator returns the operating point and shared passive inputs. An Analysis sizing pass recalculates device settings, as for SI2. |
86
+ | Run, progress and job locks | Async ticket, busy status and disabled Run while executing. Success restores controls. |
87
+ | Sweep control, endpoints, count | User-facing opt-in mode, configurable endpoints and 2–15 points on one active numerical axis. The legacy fixed load percentages do not encode this model's two command modes. |
88
+ | Efficiency curves | Rendered stage and gate-inclusive curves, point rows, and download. |
89
+ | Waveforms | Switch commands, eight voltage stress traces, winding voltage and current, output and measured gate/Coss fixture traces. CSV also includes the port, channel and output-cap currents. |
90
+ | Winding sum and difference | Measured and shown in details and in downloadable data; the waveform includes both phases and summed current. |
91
+ | Summary and metrics | Ideal voltage, load, delivered output, timing, RMS and ripple data, energy balance, explicit separate gate and Coss loss. |
92
+ | Power boundaries | Electrical input, delivered power, conduction/storage closure and separately measured gate/discharge fixtures are recorded. |
93
+ | Artifacts | Executed and coarse decks/logs, waveform CSV, measurements, plot, result JSON and sweep artifacts. Deck hashes and bindings are checked by the browser scripts. |
94
+ | Input, output and recovery checks | Invalid loaded target is rejected and a corrected job completes. Standalone execution also checks CCM, numerical bounds, window drift, energy residual and step sensitivity. |
95
+ | Cache reload | Cache-enabled normal reload and a fresh context are checked in Chrome. The [previous-build transition](evidence/cache.json) confirms a same-tab normal reload from 8d4868c and checks 11 asset bodies. The changed Gallery recommendation module uses the new versioned URL. |
96
+
97
+ All 16 applicable Simulator axes returned two passed points in Chrome. The [sweep receipts](evidence/sweeps.json) give run IDs, results and executed-deck hashes. The [advanced workspace receipt](evidence/workspace.json) records five Analysis operating sweep axes, the selectable comparison and asset checks.
98
+
99
+ ## Reproduction and open scope
100
+
101
+ The SC fixture's flying-capacitor, resonant-mode and nonlinear device behavior does not apply to this stacked branch model. Hardware balancing, dynamic stress mismatch, diode commutation, gate driver circuits, and closed-loop bandwidth are outside the approved ideal scope. The [qualification record](qualification.md) records any outstanding applicable verification.
102
+
103
+ ## Closure checklist for Stages 9 through 11
104
+
105
+ | Requirement | Status | Evidence |
106
+ | --- | --- | --- |
107
+ | Exact default through the Simulator selector | PASS | [Chrome receipt](evidence/coss-browser.json). No numerical control was changed, and the submitted fields matched the preset contract. |
108
+ | Blank, explicit zero and positive Coss | PASS | The same receipt records Analysis exports, submitted payloads, executed deck hashes, waveform columns and result fields. Blank displays Unknown, omits the Coss fixture/trace and has `coss_w: null`. Explicit zero retains `0` and a zero-power trace. |
109
+ | Loss and efficiency subtotal scope | PASS | Chrome checks the scope label, energy ledger and exported flag. The blank-Coss duty sweep records empty loss cells and `efficiency_includes_coss=False`. |
110
+ | Gallery, editable starter, sizing and advanced Analysis | PASS | [Chrome workflow](evidence/coss-workflow.json) and [workspace replay](evidence/coss-workspace.json). |
111
+ | All applicable simulator sweeps and recovery | PASS | [16 axes, 32 points](evidence/coss-sweeps.json) and the edited target, invalid-target rejection and corrected run in the workflow receipt. |
112
+ | Same-tab cache transition and fresh context | PASS | [Cache replay](evidence/coss-cache.json) from the audited checkout, including blank Coss after a normal reload. |
113
+ | Existing 2:1 and 4:1 regressions | PASS | [Regression receipts](evidence/coss-regressions.json). |
114
+ | Flying and clamp controls, independent drive amplitude/count and hardware balancing | NOT APPLICABLE | The model has one output capacitor, fixed half-input swing and one ideal event per device. Hardware balancing and dynamic mismatch are outside the approved scope. |
docs/topology/2to1_buck_stacked/qualification.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 2:1 Buck_Stacked qualification record
2
+
3
+ **Status:** Locally qualified through all 11 stages for the approved ideal equal-sharing, positive-current CCM scope. The Stage 9–11 follow-up closes the audit items at `b7e5560`. Stages 1–8 retain their original evidence.
4
+
5
+ | Stage | Status and evidence |
6
+ | --- | --- |
7
+ | 1. Acquire schematic | **PASS.** Source acquired via MCP. The [Circuit Definition](circuit_definition.md) pins the reviewed revision. The [release record](source/README.md) documents authorship, public rights, and the right-hand artifacts. |
8
+ | 2. Establish states and timing | **PASS.** Reviewed. [Right-hand paths, signed currents, state table and timeline](circuit_definition.md#right-hand-circuit-and-signed-paths) are traced to the same snapshot. The [visual review packet](review/README.md) contains the manually confirmed timing and switching states. |
9
+ | 3. Approve Circuit Definition | **PASS.** Confirmed by [explicit user approval](approval.md). Reviewed input is cloud r21, `dut` r266, structure r59, with equal off-state sharing and half-input gate swing. |
10
+ | 4. Derive analytical model | **PASS.** [Derivation and loss ledger](analytical_model.md), [executable loss model](../../../static/compare/buck-stacked.js), and [sizing verification](verify_sizing.cjs). |
11
+ | 5. Verify physics and math | **PASS** in the declared ideal CCM envelope. State KCL/KVL and charge/volt-second conditions are documented in the derivation. Limits, periodic closure and units are checked by the independent fixture. |
12
+ | 6. Solve independently | **PASS.** [Periodic switched circuit](numerical.py) uses reviewed branch incidence, inverse-coupled winding laws, finite Cout and primitive charge laws. The [matched report](evidence/matched-results.json) records residuals. |
13
+ | 7. Execute independent NGSpice | **PASS** for the ideal switch and event scope. [Executed decks, logs, coarse/refined measurements and nominal waveform](evidence/executed-decks.zip) include two independent zero-state starts. Practical commutation and sharing mismatch are excluded by approval. |
14
+ | 8. Compare and qualify | **PASS** for 15 matched cases. [Validation report](README.md#results-and-ranges) records common plots, error limits, ranges, and the jointly constrained domain. |
15
+ | 9. Integrate | **PASS.** The [Chrome Coss receipt](evidence/coss-browser.json) verifies positive, blank and zero Coss across Analysis, handoff, NGSpice and exports. Corresponding source and served artifacts match. |
16
+ | 10. Verify feature parity and regressions | **PASS.** The [parity matrices](parity.md) link the untouched default run, edited workflow, all 16 sweep axes, previous-build cache transition and tagged [baseline regressions](evidence/coss-regressions.json). |
17
+ | 11. Archive and publish the local decision | **PASS.** The [development report](README.md), [regression registry](../regression_test_registry.md), [Minjie issue](../architecture_discussion.md) and [hash manifest](evidence/SHA256SUMS) document this local milestone. |
18
+
19
+ ## PR #1 publication checks
20
+
21
+ The authored right-hand circuit is released under AGPL-3.0-only. The publication SVG removes 96 out-of-scope drawing object IDs and the associated wire segments. The Gallery and state review assets contain eight transistors per circuit view. The editable starter, structural design netlist, analytical model, numerical solver, and executable NGSpice bench retain the qualified implementation. See the [release record](source/README.md).
22
+
23
+ Targeted Chrome checks passed on the PR candidate for Gallery and editable schematic entry points, sizing and Loss Lineup exports, editor edit and undo, both voltage modes, edited NGSpice execution, a duty sweep, downloads, invalid-input recovery, and warm and fresh reload. The exact default and positive, blank, and zero Coss cases passed on macOS and on the local Linux amd64 image. Original XFLY6S, XFLY8S, and C3L measurements matched the tagged Simulator, and the SP2 handoff and error recovery passed. The candidate ran on port 8768 because the existing workbench occupied port 8765.
24
+
25
+ The 45 packaged Analysis tests, baseline inventory, model contracts, sizing check, and [release archive hashes](evidence/SHA256SUMS) passed. The source ZIP served by the local Linux image matched the candidate. The frozen 15-case three-method comparison, 16-axis Simulator evidence, and earlier parity checks still apply. Hosted Hugging Face execution remains pending.
26
+
27
+ ## Checklist disposition
28
+
29
+ See the [topology validation checklist](../topology_validation_checklist.md), [technical validation report template](../technical_validation_report_template.md), [feature parity checklist](../feature_parity_checklist.md) and [regression registry](../regression_test_registry.md).
30
+
31
+ - Source revision, editable/layout evidence, provisional identity, gate mapping, path order, phase timing, overlap, windings and signed current conventions are recorded in the [Circuit Definition](circuit_definition.md). The drawn device sizes are provenance. Width allocation, periodic balance, loaded range and the executable bench are evidenced in stages 4–8. Practical balancing and mismatched dynamic sharing are excluded by the [approved scope](approval.md).
32
+ - Pre-review checks passed for the four archive hashes, SVG XML, portable project identity and revision, and the 32-device structural transcription's missing-gate placeholders. Sampling the command intervals at duties 0.01, 0.35, 0.50, 0.65 and 0.99 reproduced the documented state order and on-time for both phases. A final read confirmed the same clean Canvas revision.
33
+ - The [review figures](review/README.md) were rendered and inspected in Chrome. Structural checks covered all eight visible MOSFET labels, two signed current overlays in each state, the three timing regions, and all 32 ideal drain-to-source stress entries against the source pin order. These checks exercise the review artifacts.
34
+ - Analytical, independent, transient and integration evidence is linked above. The immutable baseline inventory check passed. The baseline analytical, numerical/NGSpice and browser regressions were rerun after the handoff fix. All 30 previously qualified Buck_Stacked decks were regenerated in memory and matched the archived bytes. Its independent solver and validated event equations were retained.
35
+ - The [Minjie review log](../minjie_confirmation_list.md) records the circuit and the legacy reference boundary. The [architecture discussion](../architecture_discussion.md) records any implications for shared contracts.
36
+
37
+ ## Limits
38
+
39
+ - Equal blocking and half-input effective drive are approved ideal assumptions. Practical voltage balancing and dynamic sharing mismatch are outside the qualification scope.
40
+ - The electrical model covers matched windings and positive CCM. The event fixtures separately count effective gate energy and hard Coss discharge. Device-level switching, diode commutation, thermal/core effects, and closed-loop behavior require a different model.
41
+ - Publication covers the authorized right-hand circuit and its derivatives under AGPL-3.0-only. Hosted execution remains pending.
42
+
43
+ ## Applicability
44
+
45
+ - **NOT APPLICABLE:** flying/clamp capacitor controls, a fixed-ratio-only workflow, independently editable gate swing or event count, and duplicate leakage/magnetizing coordinates. See the [Analysis and Simulator matrices](parity.md) for the corresponding output-capacitor, loaded-duty and winding controls.
46
+ - **NOT APPLICABLE:** practical dynamic sharing, device-level dead-time and closed-loop behavior. See the [approved scope](approval.md).
47
+ - **Open qualification items:** none within the declared local ideal scope.
docs/topology/2to1_buck_stacked/review/README.md ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 2:1 Buck_Stacked · Circuit Definition Review figures
2
+
3
+ **Reviewed and approved.** These figures refer to the right-hand circuit in Analog Canvas cloud revision 21, `dut` revision 266, structure revision 59. The [approval record](../approval.md) adds the nominal equal-sharing and half-input drive assumptions to this review packet.
4
+
5
+ ## 1. Original right-hand schematic
6
+
7
+ **From Analog Canvas.** This SVG contains the authorized right-hand drawing geometry. The eight visible schematic labels are `Q1a`, `Q1b`, `Q2a`, `Q2b`, `Q3a`, `Q3b`, `Q4a`, and `Q4b`. The gate table maps these labels to the device references. See the [release and authorship record](../source/README.md).
8
+
9
+ ![Original right-hand Analog Canvas schematic with eight MOSFET labels](original-right.svg)
10
+
11
+ ## 2. Gate assignment and expected VGS
12
+
13
+ Use ground as 0 V. `SWA` and `SWB` are the phase switch nodes. `HA` and `HB` are the upper-stack internal nodes (`hi_a`, `hi_b` in the structural deck). `LA` and `LB` are the lower-stack internal nodes (`lo_a`, `lo_b`). In this table these names stand for node voltages. `U1` and `U2` are the floating voltages of the drawn sources V1 and V2, positive at the gate. `VB` is the externally supplied shared gate bias, referenced to ground.
14
+
15
+ **From Analog Canvas.** V1 and V2 have saved DC values of 1 V and display annotations of `VIN/2`. The two gates tied to the shared port are physically connected to `Vin/2`. The labels `A`, `Ā`, `B`, and `B̄` are drawing annotations at four unwired gate pins. All eight bulk pins resolve to ground.
16
+
17
+ **Proposed for review.** Set `U1 = U2 = VB = VIN/2` according to the drawing annotations. Drive the four annotated PWM gates externally, using the reference nodes below. PWM logic high requests a positive, source-referenced `VDRV,on` sufficient to enhance the device at its actual body bias and current. Logic low requests `VDRV,off` below effective threshold, provisionally 0 V relative to its source. No on-drive amplitude or device safe operating limit is assigned at this stage.
18
+
19
+ | Canvas label / reference | Gate connection or proposed command | Gate voltage reference | Expected VGS and path condition |
20
+ | --- | --- | --- | --- |
21
+ | Q1a / M13 | V1 positive, proposed bias U1 = VIN/2 | V1 negative at SWA | `SWA + U1 − HA`. With A high, adequate positive overdrive is required to carry phase A current. With A low, HA can move and reduce VGS as the upper midpoint charges. |
22
+ | Q1b / M15 | A, proposed external high-side PWM | SWA, device source | `VDRV,on` in A-high and `VDRV,off` otherwise. Enables or interrupts the upper phase A path. |
23
+ | Q2a / M11 | Shared Vin/2 port, proposed VB = VIN/2 | Ground for the bias source, LA for VGS | `VB − LA`. With Ā high, adequate positive overdrive is required at the actual LA. With Ā low, LA can move and reduce VGS. |
24
+ | Q2b / M9 | Ā, proposed external complementary PWM | Ground, device source | `VDRV,on` in Ā-high and `VDRV,off` otherwise. Enables or interrupts the lower phase A path. |
25
+ | Q3a / M14 | V2 positive, proposed bias U2 = VIN/2 | V2 negative at SWB | `SWB + U2 − HB`. With B high, adequate positive overdrive is required to carry phase B current. With B low, HB can move and reduce VGS as the upper midpoint charges. |
26
+ | Q3b / M16 | B, proposed external high-side PWM | SWB, device source | `VDRV,on` in B-high and `VDRV,off` otherwise. Enables or interrupts the upper phase B path. |
27
+ | Q4a / M12 | Shared Vin/2 port, proposed VB = VIN/2 | Ground for the bias source, LB for VGS | `VB − LB`. With B̄ high, adequate positive overdrive is required at the actual LB. With B̄ low, LB can move and reduce VGS. |
28
+ | Q4b / M10 | B̄, proposed external complementary PWM | Ground, device source | `VDRV,on` in B̄-high and `VDRV,off` otherwise. Enables or interrupts the lower phase B path. |
29
+
30
+ In the ideal conducting plateau, the two active devices have zero channel drop, so the active biased partner's VGS is its bias voltage. In the blocked stack, the series PWM device is commanded off. The biased partner's actual VGS depends on the floating internal node. It may conduct during midpoint charging.
31
+
32
+ ## 3. Visual switching states
33
+
34
+ **Proposed for review, over the original Canvas geometry.** Dark stacks carry positive winding current in the ideal plateau. Muted stacks are outside that current path. Blue traces phase A through L3 and R1. Orange traces phase B through L4 and R2. Colors are added review overlays. The winding and resistor branches meet at VOUT, where the currents split between COUT and the load. The freewheel current passes source-to-drain through both lower channels.
35
+
36
+ ![Four annotated switching states on the right-hand schematic](switching-states.svg)
37
+
38
+ | AB | Conducting devices | Winding input levels |
39
+ | --- | --- | --- |
40
+ | 10 | M13/M15 and M10/M12 | SWA = VIN, SWB = 0 |
41
+ | 01 | M9/M11 and M14/M16 | SWA = 0, SWB = VIN |
42
+ | 00 | M9/M11 and M10/M12 | SWA = 0, SWB = 0 |
43
+ | 11 | M13/M15 and M14/M16 | SWA = VIN, SWB = VIN |
44
+
45
+ These four diagrams use positive continuous current and ideal commutation. During dead time, winding current flows through available capacitances and diode or channel paths as the node voltage evolves. The available path depends on the grounded bulks and instantaneous device voltages.
46
+
47
+ ## 4. Proposed timing diagrams
48
+
49
+ **Proposed for review.** Phase B is shifted by half the period. The figure shows the ideal logic states for each duty region. At a physical transition, turn off the outgoing PWM device before turning on the incoming device in that phase. Both commands in the phase are low during the blanking interval. State 11 powers both phases through separate stacks. Simultaneous upper and lower conduction within one phase is forbidden.
50
+
51
+ ![PWM timing for duty below, equal to, and above one half](timing.svg)
52
+
53
+ | Region | State order from t/T = 0 | Interval lengths in units of T |
54
+ | --- | --- | --- |
55
+ | 0 < D < 0.5 | 10 → 00 → 01 → 00 | D, 0.5−D, D, 0.5−D |
56
+ | D = 0.5 | 10 → 01 | 0.5, 0.5 |
57
+ | 0.5 < D < 1 | 11 → 10 → 11 → 01 | D−0.5, 1−D, D−0.5, 1−D |
58
+
59
+ The above-50% sequence is an ideal timing proposal. The minimum pulse width, dead time, device bias and CCM limits determine which duty range can be qualified.
60
+
61
+ ## 5. Winding polarity and reference directions
62
+
63
+ **From Analog Canvas.** L3 is dotted at pin 1 on the SWA side. L4 is dotted at pin 1 on the R2 side. The dots are drafting objects and the project has no electrical coupling element or coefficient.
64
+
65
+ ```text
66
+ iA →
67
+ SWA ── ● 1 [ L3 ] 2 ── R1 ── VOUT
68
+
69
+ iB →
70
+ SWB ──── 2 [ L4 ] 1 ● ── R2 ── VOUT
71
+ ```
72
+
73
+ **Proposed for review.** Use both positive phase currents toward VOUT. The phase voltage references are positive at the switch nodes and negative at the resistor-side winding terminals. Positive iA enters its dot. Positive iB leaves its dot. If the pair is coupled as drawn, it has negative mutual terms in those phase voltage and current coordinates. The magnitude of coupling remains open.
74
+
75
+ ## 6. Assumed per-device voltage stress
76
+
77
+ **Review assumptions, inferred from the Canvas connectivity.** Report signed off-state blocking voltage as `VDS = VD − VS`. Each active stack is idealized to zero channel drop. In a low plateau, define `hA = HA` and `hB = HB` for the upper midpoints. In a high plateau, define `lA = LA` and `lB = LB` for the lower midpoints. These four off-stack midpoint voltages are unspecified. The entries below use rail-clamped SWA and SWB and apply only to the four ideal plateaus. Small ON-state voltage drops and any transitions are outside this table.
78
+
79
+ | Device | 10 | 01 | 00 | 11 |
80
+ | --- | --- | --- | --- | --- |
81
+ | Q1a / M13 | 0 | VIN − hA | VIN − hA | 0 |
82
+ | Q1b / M15 | 0 | hA | hA | 0 |
83
+ | Q2a / M11 | VIN − lA | 0 | 0 | VIN − lA |
84
+ | Q2b / M9 | lA | 0 | 0 | lA |
85
+ | Q3a / M14 | VIN − hB | 0 | VIN − hB | 0 |
86
+ | Q3b / M16 | hB | 0 | hB | 0 |
87
+ | Q4a / M12 | 0 | VIN − lB | 0 | VIN − lB |
88
+ | Q4b / M10 | 0 | lB | 0 | lB |
89
+
90
+ Each blocked pair sums to VIN. If its midpoint is exactly VIN/2, each device in that pair has VIN/2 across drain to source. That is an equal-sharing illustration only. Within the ideal assumption that the midpoint stays between the rails, one device can approach the full VIN. Threshold and body effect, leakage, capacitances, drive, startup, and commutation determine actual sharing and peak stress. In particular, `VDB = VD` for the grounded bulks, so a drain tied to VIN sees VIN relative to bulk even in the illustrative equal-VDS split. The upper floating gate can also rise above VIN. The VGS expressions in the gate table are insufficient to establish oxide, junction, or transient voltage limits.
91
+
92
+ ## Provenance
93
+
94
+ The original right-hand SVG was exported directly through Analog Canvas MCP with a revision guard. The state and timing SVGs were built locally by [the figure script](build_review_figures.py). [Artifact checksums](SHA256SUMS) cover the original crop and the two review figures. The underlying circuit, layout, and labels were preserved in Canvas. The [qualification record](../qualification.md) remains at the Circuit Definition Review.
docs/topology/2to1_buck_stacked/review/SHA256SUMS ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ 0b059a6f09d8fbb4d2bed195b8a3a4b394b33df5b03ce74e6674c8fe176a979e original-right.svg
2
+ 5c43ae5da9054c794ac4a3b9fa4122eb7824761d4f6f43f31764388f9e17d7ad switching-states.svg
3
+ 516ed71c2e9db9ab0256765e910b00d9ad4d0389efcc85439469d46b825b736c timing.svg
docs/topology/2to1_buck_stacked/review/build_review_figures.py ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Create the review overlays from the released right-hand Analog Canvas geometry."""
2
+ from copy import deepcopy
3
+ from fractions import Fraction
4
+ from pathlib import Path
5
+ import xml.etree.ElementTree as ET
6
+
7
+ HERE = Path(__file__).resolve().parent
8
+ NS = "http://www.w3.org/2000/svg"
9
+ ET.register_namespace("", NS)
10
+ BLUE = "#236eaa"
11
+ ORANGE = "#ad521a"
12
+ INK = "#202835"
13
+
14
+ # These are Canvas object IDs and the visible power-wire segments from dut r266.
15
+ STACKS = {
16
+ ("A", "1"): ("M2_14", "M2_17"),
17
+ ("A", "0"): ("M2_13", "M2_15"),
18
+ ("B", "1"): ("M2_16", "M2_18"),
19
+ ("B", "0"): ("M6_13", "M6_14"),
20
+ }
21
+ STACK_LABELS = {
22
+ ("A", "1"): ("q-reference-M2_14", "q-reference-M2_16", "instance-label-M1_19"),
23
+ ("A", "0"): ("q-reference-M2_13", "q-reference-M2_15", "instance-label-M1_21"),
24
+ ("B", "1"): ("q-reference-M1_13", "q-reference-M2_18", "instance-label-M1_20"),
25
+ ("B", "0"): ("q-reference-M6_13", "q-reference-M6_14", "instance-label-M1_22"),
26
+ }
27
+ POWER_ROUTES = {
28
+ ("A", "1"): "M980 80 H900 V120 M900 160 V180 M900 220 V300",
29
+ ("A", "0"): "M980 470 H900 V450 M900 410 V380 M900 340 V300",
30
+ ("B", "1"): "M980 80 H1060 V120 M1060 160 V180 M1060 220 V250",
31
+ ("B", "0"): "M980 470 H1060 V450 M1060 410 V380 M1060 340 V250",
32
+ }
33
+ OUTPUT_ROUTES = (
34
+ "M900 300 H1100 M1140 300 H1150 M1190 300 H1200 V270 "
35
+ "M1060 250 H1100 M1140 250 H1150 M1190 250 H1200 V270 "
36
+ "M1200 270 H1300 V290 M1260 270 V290 M1260 330 V350 H1300 V330 "
37
+ "M1280 350 V360"
38
+ )
39
+ ARROWS = {
40
+ ("A", "1"): "M936 99 V316 H1193",
41
+ ("A", "0"): "M947 451 V316 H1193",
42
+ ("B", "1"): "M1096 99 V263 H1193",
43
+ ("B", "0"): "M1096 451 V263 H1193",
44
+ }
45
+
46
+
47
+ def element(parent, tag, content=None, **attrs):
48
+ node = ET.SubElement(parent, f"{{{NS}}}{tag}", {k.replace("_", "-"): str(v) for k, v in attrs.items()})
49
+ node.text = content
50
+ return node
51
+
52
+
53
+ def new_figure(width, height, title, description):
54
+ root = ET.Element(f"{{{NS}}}svg", {
55
+ "viewBox": f"0 0 {width} {height}", "width": str(width), "height": str(height),
56
+ "role": "img", "aria-labelledby": "figure-title figure-desc",
57
+ })
58
+ element(root, "title", title, id="figure-title")
59
+ element(root, "desc", description, id="figure-desc")
60
+ element(root, "rect", width=width, height=height, fill="#fff")
61
+ return root
62
+
63
+
64
+ def label(parent, x, y, content, *, size=17, color=INK, weight=400, anchor="start"):
65
+ return element(parent, "text", content, x=x, y=y, fill=color, font_size=size,
66
+ font_family="Arial, sans-serif", font_weight=weight, text_anchor=anchor)
67
+
68
+
69
+ def write_figure(root, filename):
70
+ # Canvas text uses adjacent positioned spans. Indentation adds visible whitespace.
71
+ ET.ElementTree(root).write(HERE / filename, encoding="utf-8", xml_declaration=True)
72
+
73
+
74
+ def draw_state_card(root, formal, x, y, state, caption):
75
+ card = element(root, "g", transform=f"translate({x} {y})", data_state=state)
76
+ element(card, "rect", width=604, height=504, rx=8, fill="#fff", stroke="#d9dfe8")
77
+ label(card, 16, 26, f"{state} {caption}", size=20, weight=700)
78
+ artwork = element(card, "svg", x=7, y=34, width=590, height=457, viewBox="760 43 590 457")
79
+ schematic = deepcopy(formal)
80
+ selected = tuple(zip(("A", "B"), state))
81
+ off = tuple((phase, str(1 - int(bit))) for phase, bit in selected)
82
+ muted_objects = {item for key in off for item in (*STACKS[key], *STACK_LABELS[key])}
83
+ if state == "00":
84
+ muted_objects.update({"VDD1_13", "power-label-vdd1_13", "contact-d6cc57b7521cdf67"})
85
+ if state == "11":
86
+ muted_objects.update({"g3_14", "contact-452d5f2d2e336227"})
87
+ for layer in schematic:
88
+ name = layer.get("data-layer")
89
+ if name == "routes":
90
+ layer.set("opacity", "0.34")
91
+ for d in (OUTPUT_ROUTES, *(POWER_ROUTES[key] for key in selected)):
92
+ element(artwork, "path", d=d, fill="none", stroke="#222", stroke_width=1.4)
93
+ for obj in layer:
94
+ object_id = obj.get("data-object-id")
95
+ if object_id in muted_objects:
96
+ obj.set("opacity", "0.35")
97
+ artwork.insert(0, schematic)
98
+ for phase, bit in selected:
99
+ color, x_label, y_label, text_label = (
100
+ (BLUE, 1174, 332, "iA") if phase == "A" else (ORANGE, 1195, 237, "iB")
101
+ )
102
+ d = ARROWS[phase, bit]
103
+ element(artwork, "path", d=d, fill="none", stroke="#fff", stroke_width=4.8,
104
+ stroke_linejoin="round", opacity=0.92)
105
+ element(artwork, "path", d=d, fill="none", stroke=color, stroke_width=2.15,
106
+ stroke_linejoin="round", marker_end=f"url(#arrow-{phase})")
107
+ label(artwork, x_label, y_label, text_label, size=13, color=color, weight=700)
108
+
109
+
110
+ def switching_states():
111
+ source = ET.parse(HERE / "original-right.svg").getroot()
112
+ formal = next(group for group in source if group.get("data-layer") == "formal")
113
+ root = new_figure(1260, 1166, "2:1 Buck_Stacked switching states",
114
+ "Four ideal positive-current switching states on the original Canvas geometry. "
115
+ "Blue arrows follow phase A and orange arrows follow phase B toward the output.")
116
+ defs = element(root, "defs")
117
+ for child in source:
118
+ if child.tag.endswith("}style"):
119
+ defs.append(deepcopy(child))
120
+ for phase, color in (("A", BLUE), ("B", ORANGE)):
121
+ marker = element(defs, "marker", id=f"arrow-{phase}", viewBox="0 0 10 10",
122
+ refX=9, refY=5, markerWidth=5, markerHeight=5, orient="auto-start-reverse")
123
+ element(marker, "path", d="M0 0 L10 5 L0 10 z", fill=color)
124
+ label(root, 18, 37, "2:1 Buck_Stacked — proposed switching states", size=29, weight=700)
125
+ label(root, 18, 66, "Ideal intervals, positive continuous winding current. Each arrow ends at its output branch.", size=17)
126
+ label(root, 18, 91, "Blue iA through L3", color=BLUE, weight=700)
127
+ label(root, 219, 91, "Orange iB through L4", color=ORANGE, weight=700)
128
+ label(root, 441, 91, "Dark stack carries winding current · Gray stack is outside that path", size=16)
129
+ for i, (state, caption) in enumerate((
130
+ ("10", "A powered · B freewheels"), ("01", "A freewheels · B powered"),
131
+ ("00", "Both phases freewheel"), ("11", "Both phases powered"),
132
+ )):
133
+ draw_state_card(root, formal, 18 + (i % 2) * 620, 107 + (i // 2) * 516, state, caption)
134
+ label(root, 18, 1153, "Dead time, diode commutation, and midpoint charging are outside these four plateaus.", size=15)
135
+ write_figure(root, "switching-states.svg")
136
+
137
+
138
+ def intervals(duty):
139
+ edges = sorted({0, duty, Fraction(1, 2), (Fraction(1, 2) + duty) % 1, 1})
140
+ for left, right in zip(edges, edges[1:]):
141
+ midpoint = (left + right) / 2
142
+ a = midpoint < duty
143
+ b = (midpoint - Fraction(1, 2)) % 1 < duty
144
+ yield left, right, (a, b)
145
+
146
+
147
+ def plot_timing(root, top, region, duty, edge_labels):
148
+ width = 785
149
+ x0 = 142
150
+ chunks = list(intervals(duty))
151
+ heading = region if duty == Fraction(1, 2) else f"{region} · drawn at D = {float(duty):.2f}"
152
+ label(root, 23, top + 25, heading, size=19, weight=700)
153
+ row_top = top + 69
154
+ fills = {"00": "#edf0f4", "10": "#e7f3fa", "01": "#fbede2", "11": "#ece7f7"}
155
+ for (left, right, ab), tick in zip(chunks, edge_labels):
156
+ x, end = x0 + width * float(left), x0 + width * float(right)
157
+ state = "".join(str(int(value)) for value in ab)
158
+ element(root, "rect", x=x, y=row_top, width=end - x, height=138, fill=fills[state])
159
+ element(root, "line", x1=x, x2=x, y1=row_top - 5, y2=row_top + 139,
160
+ stroke="#a2aebc", stroke_dasharray="3 3")
161
+ label(root, x, row_top - 13, tick, size=14, anchor="middle")
162
+ label(root, (x + end) / 2, row_top + 127, state, size=17, weight=700, anchor="middle")
163
+ element(root, "line", x1=x0 + width, x2=x0 + width, y1=row_top - 5, y2=row_top + 139, stroke="#a2aebc")
164
+ label(root, x0 + width, row_top - 13, "1", size=14, anchor="middle")
165
+ label(root, 74, row_top - 13, "t/T", size=14)
166
+ label(root, 74, row_top + 127, "AB", size=16, weight=700)
167
+ for i, (name, color) in enumerate((("A", BLUE), ("Ā", BLUE), ("B", ORANGE), ("B̄", ORANGE))):
168
+ high = row_top + 8 + i * 27
169
+ low = high + 13
170
+ label(root, 74, high + 13, name, color=color, weight=700)
171
+ trace = []
172
+ for j, (left, right, ab) in enumerate(chunks):
173
+ on = ab[i // 2] if i % 2 == 0 else not ab[i // 2]
174
+ y = high if on else low
175
+ left_x, right_x = x0 + width * float(left), x0 + width * float(right)
176
+ trace.append(f"{'M' if j == 0 else 'L'}{left_x} {y} H{right_x}")
177
+ element(root, "path", d=" ".join(trace), fill="none", stroke=color,
178
+ stroke_width=2.4, stroke_linejoin="round")
179
+
180
+
181
+ def timing_diagram():
182
+ root = new_figure(1000, 918, "2:1 Buck_Stacked proposed gate timing",
183
+ "Normalized phase A and B PWM commands and complements for duty below, at, and above one half.")
184
+ label(root, 23, 40, "2:1 Buck_Stacked — proposed PWM timing", size=28, weight=700)
185
+ label(root, 23, 68, "One phase period T. B starts T/2 after A. The four traces are logic commands.", size=16)
186
+ plot_timing(root, 90, "0 < D < 0.5", Fraction(7, 20), ["0", "D", "½", "½ + D"])
187
+ plot_timing(root, 321, "D = 0.5", Fraction(1, 2), ["0", "½"])
188
+ plot_timing(root, 552, "0.5 < D < 1", Fraction(13, 20), ["0", "D − ½", "½", "D"])
189
+ label(root, 24, 798, "Dead time at each phase edge", size=17, weight=700)
190
+ label(root, 24, 824, "Both commands are low during blanking.", size=15)
191
+ label(root, 24, 848, "The three panels use zero dead time.", size=15)
192
+ label(root, 24, 872, "At D = 0.5, both phases change state together.", size=15)
193
+ element(root, "rect", x=656, y=804, width=91, height=68, fill="#edf0f4")
194
+ label(root, 702, 796, "Blanking interval", size=14, anchor="middle")
195
+ label(root, 470, 827, "Outgoing", size=15)
196
+ label(root, 470, 863, "Incoming", size=15)
197
+ element(root, "path", d="M566 814 H656 V829 H925 M566 865 H747 V850 H925",
198
+ fill="none", stroke=INK, stroke_width=2.2)
199
+ write_figure(root, "timing.svg")
200
+
201
+
202
+ if __name__ == "__main__":
203
+ switching_states()
204
+ timing_diagram()
docs/topology/2to1_buck_stacked/review/original-right.svg ADDED
docs/topology/2to1_buck_stacked/review/switching-states.svg ADDED
docs/topology/2to1_buck_stacked/review/timing.svg ADDED
docs/topology/2to1_buck_stacked/source/README.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Buck_Stacked source and release scope
2
+
3
+ Fangyu Mao confirmed authorship and authority to publish and adapt the right-hand drawing in Analog Canvas cloud revision 21, `dut` revision 266, structure revision 59. The authorization covers public redistribution in OpenPELS, Hugging Face PR #1, and the downloadable corresponding-source ZIP under [AGPL-3.0-only](../../../../LICENSE.md). It applies to the right-hand circuit and its derivatives.
4
+
5
+ The [right-hand SVG](../review/original-right.svg) retains the authorized geometry. The SVG excludes the left-hand drawing objects and wire segments from the export data. The [structural transcription](buck-stacked-right.structural.sp) records only the approved connectivity, including four open PWM gates. The [editable release starter](../../../../static/starters/buck_stacked.icproj.json) adds the documented ports and coupling, and its [design netlist](../../../../static/starters/buck_stacked.sp) retains external SKY130 interface references. The executable qualification deck uses ideal channels.
6
+
7
+ The complete source snapshot remains in the local qualification milestone. Its two full exports are identified here by hash for provenance.
8
+
9
+ | Original local artifact | SHA-256 |
10
+ | --- | --- |
11
+ | Native project JSON | `d4e67c2621e0088a26c4ab7354dcb936265bed0854021509c908255bbce1cbe3` |
12
+ | Full native SVG | `f0b56b2708f7f797c592fd0316d0ae8fef1bed60d11f722b5098e8b7986cec18` |
13
+
14
+ See the [technical approval](../approval.md) and the [published source manifest](SHA256SUMS).
docs/topology/2to1_buck_stacked/source/SHA256SUMS ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ 55d8fbd82655f45ef221fecaf195b66563ea895dfea976f62086d1881189b076 buck-stacked-right.structural.sp
2
+ 0b059a6f09d8fbb4d2bed195b8a3a4b394b33df5b03ce74e6674c8fe176a979e ../review/original-right.svg
3
+ f7f5881fc34344c96c0069bfe55dc1b32643dfba8fa8a65aa3a7d83fe40bda67 ../../../../static/starters/buck_stacked.icproj.json
4
+ 0831135f2de8dc63696e502eeee848854d29d02123181c9dd6188a7c364edd14 ../../../../static/starters/buck_stacked.sp
docs/topology/2to1_buck_stacked/source/buck-stacked-right.structural.sp ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ * 2:1 Buck_Stacked / right-hand circuit / dut r266 / structure r59
2
+ * Structural transcription of the reviewed right-hand Canvas connectivity.
3
+ * The four unwired PWM gate pins are represented by distinct open nodes.
4
+ * VIN, Vin/2 and ground map to vin, vbias and 0. Supply and drivers are external.
5
+ * Windings retain the drawn pin order. The source has no electrical coupling element.
6
+ * Connectivity evidence. External SKY130 model bodies and transient controls are absent.
7
+
8
+ C1 vout 0 1p
9
+ ILOAD vout 0 DC 1m
10
+ L3 sw_a l3_r1 1n
11
+ L4 l4_r2 sw_b 1n
12
+ XM9 lo_a open_m9_g 0 0 sky130_fd_pr__nfet_g5v0d16v0 w=5 l=0.7 nf=1 m=1
13
+ XM10 lo_b open_m10_g 0 0 sky130_fd_pr__nfet_g5v0d16v0 w=5 l=0.7 nf=1 m=1
14
+ XM11 sw_a vbias lo_a 0 sky130_fd_pr__nfet_g5v0d16v0 w=5 l=0.7 nf=1 m=1
15
+ XM12 sw_b vbias lo_b 0 sky130_fd_pr__nfet_g5v0d16v0 w=5 l=0.7 nf=1 m=1
16
+ XM13 vin g_m13 hi_a 0 sky130_fd_pr__nfet_g5v0d16v0 w=5 l=0.7 nf=1 m=1
17
+ XM14 vin g_m14 hi_b 0 sky130_fd_pr__nfet_g5v0d16v0 w=5 l=0.7 nf=1 m=1
18
+ XM15 hi_a open_m15_g sw_a 0 sky130_fd_pr__nfet_g5v0d16v0 w=5 l=0.7 nf=1 m=1
19
+ XM16 hi_b open_m16_g sw_b 0 sky130_fd_pr__nfet_g5v0d16v0 w=5 l=0.7 nf=1 m=1
20
+ R1 l3_r1 vout 1k
21
+ R2 l4_r2 vout 1k
22
+ V1 g_m13 sw_a DC 1
23
+ V2 g_m14 sw_b DC 1
24
+
25
+ .end
docs/topology/2to1_buck_stacked/validate.py ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Replay the matched analytic, independent periodic, and NGSpice comparisons."""
2
+ import argparse
3
+ from dataclasses import replace
4
+ import json
5
+ from pathlib import Path
6
+ import subprocess
7
+ import sys
8
+
9
+ import numpy as np
10
+
11
+ ROOT = Path(__file__).resolve().parents[3]
12
+ sys.path.insert(0,str(ROOT))
13
+ from buck_stacked.preset import run_case, validate
14
+ from numerical import solve
15
+
16
+ CASES = {
17
+ 'd25': {'duty':.25},
18
+ 'd35': {'duty':.35},
19
+ 'd45': {'duty':.45},
20
+ 'nominal': {},
21
+ 'd55': {'duty':.55},
22
+ 'd65': {'duty':.65},
23
+ 'd75': {'duty':.75},
24
+ 'unequal': {'duty':.64,'switch_ron_mohm':7.5,'low_ron_mohm':21,'output_current_a':1.35},
25
+ 'combined': {'duty':.38,'input_voltage_v':3.8,'output_current_a':1.5,
26
+ 'switching_frequency_mhz':3.4,'inductance_nh':1500,'coupling':.45,'output_esr_mohm':11,
27
+ 'dcr_mohm':18,'output_cap_uf':24,'switch_coff_pf':23,'gate_cap_pf':54},
28
+ 'no_coupling': {'duty':.55,'coupling':0,'switching_frequency_mhz':3.4},
29
+ 'zero_events': {'switch_coff_pf':0,'gate_cap_pf':0},
30
+ 'loaded_target': {'voltage_mode':'output_voltage','target_output_v':1.5},
31
+ 'low_corner': {'stop_us':35,'input_voltage_v':2.5,'output_current_a':.6,'switching_frequency_mhz':4,
32
+ 'dcr_mohm':2,'switch_ron_mohm':5,'inductance_nh':2000,'output_esr_mohm':1,'output_cap_uf':60,'coupling':.75},
33
+ 'cold_nominal': {'stop_us':360},
34
+ 'cold_unequal': {'stop_us':360,'duty':.6,'switch_ron_mohm':9,'low_ron_mohm':20},
35
+ }
36
+ METRICS = ('voltage','phase_ripple','channel','esr','dcr','gate','coss','efficiency')
37
+ COLORS = ('#384a63','#147a6c','#b55c28')
38
+
39
+
40
+ def make_point(c):
41
+ return dict(id='buck_stacked',vin=c.vin,io=c.load,fs=c.fs,duty=c.duty,lt=c.winding,k=c.coupling,
42
+ rl=c.dcr,rc=c.esr,cf=c.cout,high=c.high/2,low=c.low/2,gate_cap=c.gate_cap,coss=c.coss)
43
+
44
+
45
+ def analytical(c):
46
+ params = dict(rs=.018,rl=c.dcr,rc=c.esr,vin=c.vin,load=c.load,fs=c.fs,coupling=c.coupling,
47
+ rippleScale=c.vin/(c.fs*c.winding*c.load),highRon=c.high/2,lowRon=c.low/2,
48
+ gateCap=c.gate_cap,coss=c.coss)
49
+ program = '''
50
+ const m = require('./static/compare/buck-stacked.js');
51
+ const [d,p] = JSON.parse(process.argv[1]);
52
+ console.log(JSON.stringify(m.evaluate(d,p)));
53
+ '''
54
+ r = json.loads(subprocess.check_output(['node','-e',program,json.dumps([c.duty,params])],cwd=ROOT))
55
+ return tuple([c.ideal-c.load*r['droop_resistance'],c.load*r['phase_ripple_per_amp'],
56
+ *[c.load**2*r[k] for k in ('fet','cap','ind')],r['gate_w'],r['coss_w']])
57
+
58
+
59
+ def with_efficiency(row,load):
60
+ power = row[0]*load
61
+ return dict(zip(METRICS,(*map(float,row),float(power/(power+sum(row[2:]))))))
62
+
63
+
64
+ def compare(name,path):
65
+ _,c,*_ = validate({'topologies':['buck_stacked'],**CASES[name]})
66
+ c = replace(c,name=name)
67
+ p = make_point(c)
68
+ n = solve(p)
69
+ fine = solve(p,1536)
70
+ assert abs(n['vo']-fine['vo'])<1e-7 and np.max(abs(n['loss']-fine['loss']))<1e-7
71
+ assert np.max(abs(fine['end']-fine['initial']))<1e-8 and abs(fine['balance'])<1e-7
72
+ assert abs(fine['output_cap_a'])<1e-8 and fine['valley']>0
73
+ s = run_case(c,path,cold=name.startswith('cold_'))
74
+ result = [with_efficiency(v,c.load) for v in [
75
+ analytical(c),(fine['vo'],fine['phase_ripple'][0],*fine['loss'],fine['gate_w'],fine['coss_w']),
76
+ (s['vout_v'],s['winding_ripple_a'][0],sum(s['switch_w']),sum(s['esr_w']),sum(s['dcr_w']),
77
+ s['supplemental_gate_w'],s['coss_w'])]]
78
+ a,n,z = result
79
+ for metric in METRICS[:-1]:
80
+ for left,right,switches in [(a,n,False),(a,z,False),(n,z,True)]:
81
+ if metric=='voltage':
82
+ max_error = .0005 if switches else .002
83
+ elif metric=='phase_ripple':
84
+ max_error = max(.005,.05*abs(right[metric]))
85
+ elif metric in ('gate','coss'):
86
+ max_error = max(.000001,.01*abs(right[metric]))
87
+ else:
88
+ max_error = max(.00001 if switches else .00003,(.01 if switches else .05)*abs(right[metric]))
89
+ if abs(left[metric]-right[metric])>max_error:
90
+ raise AssertionError((name,metric,left[metric],right[metric],max_error))
91
+ return dict(case=name,duty=c.duty,settings=CASES[name],analytical=a,numerical=n,ngspice=z,
92
+ numerical_checks=dict(balance_w=float(fine['balance']),charge_average_a=float(fine['output_cap_a']),
93
+ periodic_change=float(np.max(abs(fine['end']-fine['initial'])))),
94
+ spice_checks={k:s[k] for k in ('balance_w','window_drift_v','output_cap_average_a',
95
+ 'winding_voltage_mean_v','switch_peak_v','winding_min_a','deck_sha256')})
96
+
97
+
98
+ def plot(rows,path):
99
+ import matplotlib
100
+ matplotlib.use('Agg')
101
+ import matplotlib.pyplot as plt
102
+
103
+ sweeps = [r for r in rows if r['case'].startswith('d') or r['case']=='nominal']
104
+ panel = sorted(sweeps,key=lambda r:r['duty'])
105
+ fig,axes = plt.subplots(2,2,figsize=(7.3,4.5),layout='constrained')
106
+ for ax,(metric,unit,scale) in zip(axes.ravel(),[
107
+ ('voltage','Mean output (V)',1),('phase_ripple','Phase ripple (A pp)',1),
108
+ ('channel','Channel loss (mW)',1000),('esr','Output ESR loss (mW)',1000)]):
109
+ for name,color,mark,style in zip(('analytical','numerical','ngspice'),COLORS,('o','s','x'),('-','--',':')):
110
+ ax.plot([r['duty'] for r in panel],[scale*r[name][metric] for r in panel],
111
+ color=color,marker=mark,ms=3,ls=style,label={'ngspice':'NGSpice'}.get(name,name.title()))
112
+ ax.set(xlabel='High-side duty',ylabel=unit)
113
+ ax.grid(alpha=.22)
114
+ axes[0,0].legend(frameon=False,fontsize=8)
115
+ fig.savefig(path/'duty-comparison.svg')
116
+ plt.close(fig)
117
+ fig,axes = plt.subplots(2,1,figsize=(7.3,4.1),sharex=True,layout='constrained')
118
+ for ax,metric in zip(axes,('gate','coss')):
119
+ for name,color,mark,style in zip(('analytical','numerical','ngspice'),COLORS,('o','s','x'),('-','--',':')):
120
+ ax.plot(range(len(rows)),[1000*r[name][metric] for r in rows],
121
+ color=color,marker=mark,ms=3,ls=style,label={'ngspice':'NGSpice'}.get(name,name.title()))
122
+ ax.set_ylabel(f'{metric.capitalize()} loss (mW)')
123
+ ax.grid(alpha=.22)
124
+ axes[-1].set_xticks(range(len(rows)),[r['case'] for r in rows],rotation=35,ha='right',fontsize=8)
125
+ axes[0].legend(frameon=False,fontsize=8)
126
+ fig.savefig(path/'event-comparison.svg')
127
+ plt.close(fig)
128
+ for name in ('duty-comparison.svg','event-comparison.svg'):
129
+ figure_path=path/name
130
+ figure_path.write_text('\n'.join(line.rstrip() for line in figure_path.read_text().splitlines())+'\n')
131
+
132
+
133
+ if __name__=='__main__':
134
+ parser = argparse.ArgumentParser()
135
+ parser.add_argument('directory',type=Path)
136
+ parser.add_argument('--case',choices=CASES,action='append')
137
+ parser.add_argument('--resume',action='store_true',help='Retain unchanged matched cases from the same source build')
138
+ args = parser.parse_args()
139
+ output = args.directory.resolve()
140
+ output.mkdir(parents=True,exist_ok=True)
141
+ selected = args.case or CASES
142
+ receipt=output/'matched-results.json'
143
+ cached=json.loads(receipt.read_text()) if args.resume and receipt.exists() else []
144
+ records={row['case']:row for row in cached if row['settings']==CASES[row['case']]}
145
+ for name in selected:
146
+ records[name]=compare(name,output)
147
+ print(f'{name}: passed',flush=True)
148
+ data=[records[key] for key in CASES if key in records]
149
+ receipt.write_text(json.dumps(data,indent=2)+'\n')
150
+ plot(data,output)
docs/topology/2to1_buck_stacked/verify_browser.mjs ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import assert from 'node:assert/strict';
2
+ import {readFile,writeFile} from 'node:fs/promises';
3
+ import {createRequire} from 'node:module';
4
+ import {resolve} from 'node:path';
5
+
6
+ const {chromium,expect:baseExpect}=createRequire(resolve('local-source/openpels/package.json'))('@playwright/test');
7
+ const expect=baseExpect.configure({timeout:15000});
8
+ const base=process.env.OPENPELS_URL??'http://127.0.0.1:8765';
9
+ const browser=await chromium.launch({channel:'chrome',headless:true,args:[
10
+ '--host-resolver-rules=MAP fonts.googleapis.com ~NOTFOUND, MAP fonts.gstatic.com ~NOTFOUND']});
11
+ const page=await browser.newPage({viewport:{width:1600,height:1200}});
12
+ const analysis=page.frameLocator('#comparison'), sim=page.frameLocator('#simulator'), editor=page.frameLocator('#editor');
13
+ const field=name=>analysis.locator('#design-'+name), setting=name=>sim.locator('#sp2-'+name);
14
+ const close=(a,b,tol=1e-8)=>assert(Math.abs(a-b)<=tol,`${a} differs from ${b}`);
15
+ const errors=[],evidence={analysis:{},simulator:{},reload:{}};
16
+ page.on('pageerror',e=>errors.push(e.message));
17
+ async function details(frame,id) {
18
+ const node=frame.locator(id);
19
+ if (!(await node.evaluate(el=>el.open))) await node.locator('summary').first().click();
20
+ }
21
+ async function download(button) {
22
+ const [file]=await Promise.all([page.waitForEvent('download'),button.click()]);
23
+ return (await readFile(await file.path())).toString();
24
+ }
25
+ async function job() {
26
+ const pending=page.waitForResponse(r=>r.request().method()==='POST'&&r.url().endsWith('/api/simulation/jobs'));
27
+ await sim.locator('#runButton').click();
28
+ const r=await pending;
29
+ assert.equal(r.status(),202,await r.text());
30
+ const {id}=await r.json();
31
+ await expect(sim.locator('#status')).toHaveText(/^Run /,{timeout:180000});
32
+ await sim.locator('#plotWrap img').evaluate(img=>img.decode());
33
+ const {state,result}=await (await page.request.get(base+'/api/simulation/jobs/'+id)).json();
34
+ assert.equal(state,'succeeded');
35
+ assert.equal(result.run_id,id);
36
+ return result;
37
+ }
38
+
39
+ try {
40
+ assert((await (await page.request.get(base+'/healthz')).json()).topologies.includes('buck_stacked'));
41
+ await page.goto(base);
42
+ await expect(page.locator('.topology-tile')).toHaveCount(10);
43
+ await page.locator('[data-family="4"]').click();
44
+ await expect(page.locator('[data-topology-id="buck_stacked"]')).toHaveCount(0);
45
+ await page.locator('[data-family="2"]').click();
46
+ await expect(page.locator('.topology-tile')).toHaveCount(7);
47
+ const tile=page.locator('[data-topology-id="buck_stacked"]');
48
+ await expect(tile).toContainText('Analysis + simulation');
49
+ await tile.locator('img').evaluate(x=>x.decode());
50
+ await tile.click();
51
+ const card=analysis.locator('#circuits [data-topology="buck_stacked"]');
52
+ await expect(card).toBeVisible();
53
+ await expect(card.locator('.die-allocation [data-device]')).toHaveCount(8);
54
+ await expect(analysis.getByText('THE LOSS LINEUP',{exact:true})).toBeVisible();
55
+ await expect(analysis.locator('[data-loss-mechanism="coss"] strong')).not.toHaveText('Unknown');
56
+ for(const k of ['lk_nh','lm_uh','tank_nh']) await expect(field(k)).toBeHidden();
57
+ for(const [id,value,reason] of [['max_caps','0','Requires one output capacitor'],
58
+ ['max_windings','1','Requires two inverse-coupled windings'],['max_drop_percent','0','droop exceeds'],
59
+ ['max_phase_ripple_percent','5','phase ripple exceeds'],['io','.1','crosses zero']]) {
60
+ const old=await field(id).inputValue();
61
+ await field(id).fill(value);
62
+ await details(analysis,'.excluded-list');
63
+ await expect(analysis.locator('[data-candidate="buck_stacked"]')).toContainText(reason);
64
+ await field(id).fill(old);
65
+ await expect(analysis.locator('[data-candidate-status="eligible"]')).toBeAttached();
66
+ }
67
+ await field('budget_mode').selectOption('area');
68
+ await field('utilization').fill('1.12');
69
+ await expect(analysis.locator('#export-recommendation')).toBeDisabled();
70
+ const values={utilization:'.5',die_mm2:'1.5',ron_area_mohm_mm2:'1.1',vout:'3.2',io:'1.25',
71
+ fs_mhz:'2.4',cap_uf:'44',si_l_nh:'1180',si_coupling:'.56',si_duty:'.61',rc_mohm:'6',rl_mohm:'5'};
72
+ for(const [k,v] of Object.entries(values)) await field(k).fill(v);
73
+ for(const objective of ['capacitors','magnetics','loss']) {
74
+ await field('objective').selectOption(objective);
75
+ await expect(analysis.locator('[data-candidate-status="eligible"]')).toBeAttached();
76
+ }
77
+ await details(analysis,'#analysis-workbench');
78
+ await details(analysis,'#technology-panel');
79
+ await expect(analysis.locator('#tech-vgs')).toHaveValue('1.6');
80
+ await expect(analysis.locator('#tech-vgs')).not.toBeEditable();
81
+ await expect(analysis.locator('#tech-events')).not.toBeEditable();
82
+ await analysis.locator('#tech-eoss_pj').fill('.52');
83
+ await analysis.locator('#apply-technology').click();
84
+ const report=JSON.parse(await download(analysis.locator('#export-recommendation')));
85
+ const tech=JSON.parse(await download(analysis.locator('#export-technology')));
86
+ const row=report.winner;
87
+ assert.equal(row.id,'buck_stacked');
88
+ assert.equal(row.device.length,8);
89
+ close(row.device.reduce((s,x)=>s+x.width_mm,0),row.width_mm);
90
+ close(row.gate_power,(2.51e-12/3.3)*row.width_mm*1.6**2*2.4e6);
91
+ close(row.coss_power,.5*.52e-12*row.width_mm*1.6**2*2.4e6);
92
+ close(tech.rows[0].coss_pf,.52*row.width_mm/8);
93
+ close(row.efficiency,row.delivered_w/(row.delivered_w+row.loss));
94
+ close(Object.values(report.loss_scoreboard.rows[0].powers).reduce((a,b)=>a+b),row.loss);
95
+ await analysis.locator('[data-comparison-view="circuits"]').click();
96
+ const candidateImage=analysis.locator('[data-candidate="buck_stacked"] img');
97
+ await candidateImage.scrollIntoViewIfNeeded();
98
+ await expect.poll(()=>candidateImage.evaluate(x=>x.naturalWidth)).toBeGreaterThan(0);
99
+ await analysis.locator('[data-candidate="buck_stacked"] [data-inspect-design]').click();
100
+ await details(analysis,'#sweep-section');
101
+ await analysis.locator('#rout-chart rect.hit').hover();
102
+ await expect(analysis.locator('#rout-chart .chart-tooltip')).toContainText('STACK');
103
+ await expect(analysis.locator('#si-voltage-chart svg')).toBeVisible();
104
+ assert.match(await download(analysis.locator('#si-export-sweep')),/analytical_v/);
105
+ await analysis.getByText('Per-unit loss weights',{exact:true}).click();
106
+ for(const [k,v] of Object.entries({rho_c:'.41',rho_l:'.31',rho_q:'12.2',si_coupling:'.47',si_ripple:'.82'}))
107
+ await analysis.locator('#'+k).fill(v);
108
+ await analysis.locator('#apply-weights').click();
109
+ await expect(analysis.locator('#inspection-context')).toContainText('Manual comparison weights');
110
+ const pu=await download(analysis.locator('#export-csv'));
111
+ for(const value of ['0.61','0.41','0.31','0.47','0.82']) assert(pu.includes('"'+value+'"'));
112
+ assert.match(await download(analysis.locator('[data-svg="buck_stacked"]')),/No separate charging term/);
113
+ await analysis.locator('#reset').click();
114
+ evidence.analysis={controls:values,losses:report.loss_scoreboard.rows[0].powers,efficiency:row.efficiency,deviceCount:row.device.length};
115
+ console.log('Analysis controls, sizing, Loss Lineup and exports passed');
116
+
117
+ await page.locator('#selected-edit').click();
118
+ await expect(page.locator('#context-name')).toContainText('2:1 Buck_Stacked');
119
+ await expect(page.locator('#device-count')).toHaveText('8');
120
+ await expect(page.locator('#winding-count')).toHaveText('2');
121
+ await expect(editor.locator('.schematic-canvas')).toBeVisible();
122
+ const before=JSON.parse(await download(page.locator('#save-project')));
123
+ await editor.getByRole('button',{name:'Place Resistor',exact:true}).click();
124
+ await editor.locator('.schematic-canvas').click({position:{x:605,y:95}});
125
+ await page.keyboard.press('Escape');
126
+ const edited=JSON.parse(await download(page.locator('#save-project')));
127
+ assert.equal(edited.documents[0].instances.length,before.documents[0].instances.length+1);
128
+ await editor.locator('.schematic-canvas').focus();
129
+ await page.keyboard.press(process.platform==='darwin'?'Meta+z':'Control+z');
130
+ assert.equal(JSON.parse(await download(page.locator('#save-project'))).documents[0].instances.length,before.documents[0].instances.length);
131
+ const seen=[];
132
+ page.on('response',r=>{if(r.url().includes('v=buck-stacked'))seen.push(new URL(r.url()).pathname);});
133
+ await page.reload();
134
+ await page.getByRole('button',{name:'Schematic',exact:true}).click();
135
+ await expect(page.locator('#context-name')).toContainText('2:1 Buck_Stacked');
136
+ const menu=editor.getByTestId('project-menu-toggle');
137
+ for(const [name,pattern] of [['Export SVG',/<svg/],['Export Netlist',/K34 L3 L4 \.6/i]]) {
138
+ const btn=editor.getByRole('button',{name,exact:true}),sub=editor.locator('[aria-controls="file-export-options"]');
139
+ if(!(await sub.isVisible())) await menu.click();
140
+ if(!(await btn.isVisible())) await sub.click();
141
+ assert.match(await download(btn),pattern);
142
+ }
143
+ await page.locator('#compare-reference').click();
144
+ await expect(card).toBeVisible();
145
+ assert(seen.includes('/pe.js')&&seen.includes('/compare/app.js'), seen);
146
+ evidence.reload.versioned=[...new Set(seen)];
147
+ const fresh=await browser.newPage();
148
+ await fresh.goto(base);
149
+ await expect(fresh.locator('[data-topology-id="buck_stacked"]')).toBeVisible();
150
+ await fresh.close();
151
+ console.log('Editor edits, undo, save, exports, and warm/fresh reload passed');
152
+
153
+ await field('si_mode').selectOption('output_voltage');
154
+ await field('si_target_v').fill('1.53');
155
+ await expect(page.locator('#selected-simulate')).toBeEnabled();
156
+ await page.locator('#selected-simulate').click();
157
+ await expect(sim.locator('#topologySelect')).toHaveValue('buck_stacked');
158
+ await expect(setting('target')).toHaveValue('1.53');
159
+ await expect(setting('duty')).toBeHidden();
160
+ for(const name of ['vin','load','fs','lt','coupling','dcr','rs','rslow','gatecap','coss','cout','esr','stop','step'])
161
+ await expect(setting(name)).toBeVisible();
162
+ const edit={vin:'3.12',load:'1.24',fs:'2.25',lt:'1150',coupling:'.57',dcr:'5.1',rs:'9',rslow:'15',
163
+ gatecap:'29',coss:'12',cout:'44',esr:'5.5',stop:'110',step:'750'};
164
+ for(const [k,v] of Object.entries(edit)) await setting(k).fill(v);
165
+ const result=await job();
166
+ const m=result.metrics[0];
167
+ close(m.vout_v,1.53,5e-4);
168
+ close(m.gate_drive_v,1.56);
169
+ assert.equal(m.switch_w.length,8);
170
+ close(m.supplemental_gate_w,8*29e-12*1.56**2*2.25e6,7e-6);
171
+ close(m.coss_w,4*12e-12*1.56**2*2.25e6,2e-6);
172
+ const artifact=async name=>{
173
+ const item=result.artifacts.find(a=>a.name===name);
174
+ assert(item,name);
175
+ return download(sim.locator(`[download="${name}"]`));
176
+ };
177
+ assert.match(await artifact(m.deck),/S_M13/);
178
+ assert.match(await artifact(m.waveform),/vds_m13_v.*coss_discharge_fixture_power_w/);
179
+ assert.match(await artifact('physical_design.log'),/ngspice/i);
180
+ assert.equal(JSON.parse(await artifact('result.json')).metrics[0].vout_v,m.vout_v);
181
+ assert.match(await artifact('physical_design-measurements.json'),/deck_sha256/);
182
+ evidence.simulator.edited={run:result.run_id,settings:edit,metrics:m};
183
+ await setting('target').fill('2.99');
184
+ await expect(sim.locator('#sp2-settings')).toContainText('outside the loaded voltage range');
185
+ await sim.locator('#runButton').click();
186
+ await expect(sim.locator('#status')).toContainText('requires duty outside');
187
+ await setting('target').fill('1.53');
188
+ await page.locator('#selected-analysis').click();
189
+ await expect(field('vout')).toHaveValue('3.12');
190
+ await expect(field('si_target_v')).toHaveValue('1.53');
191
+ await page.locator('#selected-simulate').click();
192
+ await expect(setting('target')).toHaveValue('1.53');
193
+ await expect(setting('rs')).not.toHaveValue('9');
194
+ const mode=sim.locator('#sp2-voltage-mode');
195
+ await mode.selectOption('duty_cycle');
196
+ await expect(setting('duty')).toBeVisible();
197
+ await setting('duty').fill('.5');
198
+ await sim.locator('#sp2-include-sweep').check();
199
+ await sim.locator('#sp2-parameter').selectOption('duty');
200
+ const s=await job();
201
+ assert(s.sweep.length>=2&&s.sweep.every(r=>r.status==='passed'));
202
+ evidence.simulator.sweep={run:s.run_id,rows:s.sweep.map(r=>({duty:r.duty,vout:r.vout_v,status:r.status}))};
203
+ assert.deepEqual(errors,[]);
204
+ if(process.env.OPENPELS_BROWSER_EVIDENCE)
205
+ await writeFile(process.env.OPENPELS_BROWSER_EVIDENCE,JSON.stringify(evidence,null,2)+'\n');
206
+ console.log('Simulator target/duty, edited NGSpice run, return handoff, rejection and duty sweep passed');
207
+ } finally {
208
+ await browser.close();
209
+ }
docs/topology/2to1_buck_stacked/verify_coss_browser.mjs ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import assert from 'node:assert/strict';
2
+ import {createHash} from 'node:crypto';
3
+ import {readFile,writeFile} from 'node:fs/promises';
4
+ import {createRequire} from 'node:module';
5
+ import {resolve} from 'node:path';
6
+
7
+ const {chromium,expect}=createRequire(resolve('local-source/openpels/package.json'))('@playwright/test');
8
+ const preset=JSON.parse(await readFile('buck_stacked/preset_contract.json','utf8'));
9
+ const origin=process.env.OPENPELS_URL??'http://127.0.0.1:8765';
10
+ const browser=await chromium.launch({channel:'chrome',headless:true,args:[
11
+ '--host-resolver-rules=MAP fonts.googleapis.com ~NOTFOUND, MAP fonts.gstatic.com ~NOTFOUND']});
12
+ const page=await browser.newPage({viewport:{width:1600,height:1200}});
13
+ const errors=[];
14
+ page.on('pageerror',error=>errors.push(error.message));
15
+ const near=(actual,expected,tolerance=1e-10)=>assert(Math.abs(actual-expected)<=tolerance,`${actual} vs ${expected}`);
16
+ let sim=page;
17
+
18
+ async function download(button) {
19
+ const [file]=await Promise.all([page.waitForEvent('download'),button.click()]);
20
+ return (await readFile(await file.path())).toString();
21
+ }
22
+
23
+ async function run(coss) {
24
+ const pending=page.waitForResponse(r=>r.request().method()==='POST'&&r.url().endsWith('/api/simulation/jobs'));
25
+ await sim.locator('#runButton').click();
26
+ const response=await pending;
27
+ assert.equal(response.status(),202,await response.text());
28
+ const payload=response.request().postDataJSON().payload;
29
+ assert.equal(payload.switch_coff_pf,coss);
30
+ await expect(sim.locator('#status')).toHaveText(/^Run /,{timeout:120000});
31
+ await sim.locator('#plotWrap img').evaluate(img=>img.decode());
32
+ const artifact=name=>download(sim.locator(`[download="${name}"]`));
33
+ const result=JSON.parse(await artifact('result.json'));
34
+ assert.equal(result.validation,'passed',result.validation_message);
35
+ assert.equal(result.settings.switch_coff_pf,coss);
36
+ const m=result.metrics[0];
37
+ const measurements=JSON.parse(await artifact('physical_design-measurements.json'));
38
+ assert.equal(measurements.refined.coss_w,m.coss_w);
39
+ assert.equal(measurements.settings.coss,coss===null?null:coss*1e-12);
40
+ const deck=await artifact(m.deck);
41
+ assert.equal(createHash('sha256').update(deck).digest('hex'),m.deck_sha256);
42
+ const wave=await artifact(m.waveform);
43
+ const columns=wave.split('\n')[0].split(',');
44
+ const lossField='coss_discharge_fixture_power_w';
45
+ const details=sim.locator('#sp2-result');
46
+ const displayedCoss = details.locator('dt').filter({hasText:'Measured Coss event loss'})
47
+ .locator('xpath=following-sibling::dd[1]');
48
+ assert.equal(m.efficiency_includes_coss,coss!==null);
49
+ if (coss===null) {
50
+ assert.equal(m.coss_w,null);
51
+ assert(!columns.includes(lossField));
52
+ assert(!/\bCX=|^Voss_supply /m.test(deck));
53
+ await expect(displayedCoss).toHaveText('Unknown · excluded');
54
+ await expect(sim.locator('#summaryMetrics')).toContainText('excl. unknown Coss');
55
+ } else {
56
+ assert(columns.includes(lossField));
57
+ assert.match(deck,/^Voss_supply /m);
58
+ if(coss===0) {
59
+ assert.equal(m.coss_w,0);
60
+ const col=columns.indexOf(lossField);
61
+ assert(wave.trim().split('\n').slice(1).every(line=>Number(line.split(',')[col])===0));
62
+ } else {
63
+ assert(m.coss_w>0);
64
+ const expected=4*coss*1e-12*m.gate_drive_v**2*payload.switching_frequency_mhz*1e6;
65
+ near(m.coss_w,expected,Math.max(1e-6,.01*expected));
66
+ }
67
+ await expect(displayedCoss).toHaveText(`${(1e3*m.coss_w).toFixed(3)} mW`);
68
+ await expect(sim.locator('#summaryMetrics')).not.toContainText('unknown Coss');
69
+ }
70
+ near(m.input_w,m.electrical_input_w+(m.coss_w??0));
71
+ near(m.efficiency_with_gate,m.delivered_w/(m.input_w+m.supplemental_gate_w));
72
+ return {payload,result:{run_id:result.run_id,settings:result.settings,metrics:m},waveform_columns:columns};
73
+ }
74
+
75
+ try {
76
+ // Use the actual Simulator selector with untouched defaults and without an Analysis point.
77
+ await page.goto(origin+'/simulator/');
78
+ await sim.locator('#topologySelect').selectOption('buck_stacked');
79
+ const expected={topologies:['buck_stacked'],voltage_mode:'duty_cycle'};
80
+ for (const [id,entry] of Object.entries(preset.parameters)) {
81
+ if(id==='target') continue;
82
+ await expect(sim.locator('#sp2-'+id)).toHaveValue(String(entry.default??''));
83
+ expected[entry.field]=entry.default;
84
+ }
85
+ const nominal=await run(10);
86
+ assert.deepEqual(nominal.payload,expected);
87
+ near(nominal.result.metrics.vout_v,1.486,2e-6);
88
+ near(nominal.result.metrics.gate_drive_v,1.5);
89
+ console.log('Exact default Simulator preset passed via Chrome.');
90
+
91
+ await page.goto(origin);
92
+ await page.locator('[data-topology-id="buck_stacked"]').click();
93
+ sim=page.frameLocator('#simulator');
94
+ const analysis=page.frameLocator('#comparison');
95
+ const evidence={nominal};
96
+ for(const [label,value] of [['positive','.52'],['blank',''],['zero','0']]) {
97
+ const expectedNull=value==='';
98
+ for(const id of ['#analysis-workbench','#technology-panel']) {
99
+ const detail=analysis.locator(id);
100
+ if(!(await detail.evaluate(el=>el.open))) await detail.locator('summary').first().click();
101
+ }
102
+ await analysis.locator('#tech-eoss_pj').fill(value);
103
+ await analysis.locator('#apply-technology').click();
104
+ const lineup=analysis.locator('[data-loss-mechanism="coss"] strong');
105
+ if(expectedNull) await expect(lineup).toHaveText('Unknown');
106
+ else if(value==='0') await expect(lineup).toHaveText(/^0\.00\s*mW$/);
107
+ else await expect(lineup).toHaveText(/mW/);
108
+ const design=JSON.parse(await download(analysis.locator('#export-recommendation')));
109
+ const tech=JSON.parse(await download(analysis.locator('#export-technology'))).rows[0];
110
+ assert.equal(design.winner.efficiency_includes_coss,!expectedNull);
111
+ assert.equal(design.winner.coss_power,tech.poss);
112
+ if(expectedNull) assert.equal(tech.coss_pf,null);
113
+ else near(tech.coss_pf,Number(value)*design.winner.width_mm/8);
114
+ await expect(page.locator('#selected-simulate')).toBeEnabled();
115
+ await page.locator('#selected-simulate').click();
116
+ await expect(sim.locator('#topologySelect')).toHaveValue('buck_stacked');
117
+ const coss=sim.locator('#sp2-coss');
118
+ await expect.poll(async()=>{const v=await coss.inputValue();return v===''?null:Number(v)}).toBe(tech.coss_pf);
119
+ if(expectedNull) {
120
+ await sim.locator('#sp2-include-sweep').check();
121
+ await sim.locator('#sp2-parameter').selectOption('duty');
122
+ await sim.locator('#sp2-sweep-count').fill('2');
123
+ }
124
+ const job=await run(tech.coss_pf);
125
+ const m=job.result.metrics;
126
+ near(job.payload.switch_ron_mohm,1e3*tech.device[0].ron);
127
+ near(job.payload.gate_cap_pf,tech.gate_cap_pf);
128
+ if(tech.poss!==null) near(m.coss_w,tech.poss,Math.max(1e-6,.01*tech.poss));
129
+ evidence[label]={analysis:{coss_pf:tech.coss_pf,coss_w:tech.poss,efficiency:design.winner.efficiency,
130
+ coss_included:design.winner.efficiency_includes_coss},...job};
131
+ if(expectedNull) {
132
+ const csv=await download(sim.locator('[download="buck_stacked-sweep.csv"]'));
133
+ assert.match(csv,/coss_w,efficiency_includes_coss/);
134
+ assert(csv.trim().split('\n').slice(1).every(row=>row.trimEnd().endsWith(',,False')));
135
+ await expect(sim.locator('#sp2-sweep-results')).toContainText('Unknown');
136
+ evidence[label].sweep_csv=csv;
137
+ await sim.locator('#sp2-include-sweep').uncheck();
138
+ }
139
+ await page.locator('#selected-analysis').click();
140
+ console.log(`Analysis → Simulator ${label} Coss passed.`);
141
+ }
142
+ assert.deepEqual(errors,[]);
143
+ if(process.env.OPENPELS_COSS_EVIDENCE)
144
+ await writeFile(process.env.OPENPELS_COSS_EVIDENCE,JSON.stringify(evidence,null,2)+'\n');
145
+ } finally {
146
+ await browser.close();
147
+ }
docs/topology/2to1_buck_stacked/verify_sizing.cjs ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const assert = require('node:assert/strict');
2
+ const model = require('../../../static/compare/buck-stacked.js');
3
+ const technology = require('../../../static/compare/technology.js');
4
+ const engine = require('../../../static/compare/engine.js');
5
+ const catalog = require('../../../static/compare/models-data.json');
6
+
7
+ const p = {areaMinimum:0,areaBudget:1,ronArea:.002,gateCapPerArea:2e-8,cossPerArea:8e-9,
8
+ vin:3,fs:2e6,load:1,rc:.005,rl:.004,coupling:.6,rippleScale:1.5};
9
+ const duty = .61;
10
+ const optimum = model.optimizeArea(duty,p);
11
+ assert(optimum.area>0&&optimum.area<1);
12
+ const loss = ({conduction,gate_w,coss_w}) => conduction+gate_w+coss_w;
13
+ const moments = model.evaluate(duty,{rs:1,...p});
14
+ function physical(area, highFraction) {
15
+ const perHigh = highFraction*area/4, perLow = (1-highFraction)*area/4;
16
+ const fet = 4*p.ronArea*(moments.high_weight/perHigh+moments.low_weight/perLow);
17
+ const gate = p.gateCapPerArea*area*p.fs*(p.vin/2)**2;
18
+ const coss = p.cossPerArea*area*p.fs*(p.vin/2)**2/2;
19
+ return fet+moments.cap+moments.ind+gate+coss;
20
+ }
21
+ for (let i=1;i<=1000;i++) {
22
+ for(let j=1;j<40;j++) assert(loss(optimum.losses)<=physical(i/1000,j/40)+1e-12);
23
+ }
24
+ assert(Math.abs(optimum.device_areas.reduce((a,b)=>a+b,0)-optimum.area)<1e-12);
25
+ assert.equal(model.optimizeArea(duty,{...p,gateCapPerArea:0,cossPerArea:0}).area,1);
26
+ const abs=engine.analyze({ratio:2,topologies:['buck_stacked'],vin:3,iout:1,fs_mhz:2,lt_nh:1000,gate_cap_pf:25,coss_pf:10},catalog).rows[0];
27
+ assert.equal(abs.vdrive,1.5);
28
+ assert(Math.abs(abs.gate_w-.0009)<1e-12);
29
+ assert(Math.abs(abs.coss_w-.00018)<1e-12);
30
+ assert(abs.efficiency_with_events<abs.conduction_efficiency);
31
+ const stackedAbsolute = coss_pf => engine.analyze({ratio:2,topologies:['buck_stacked'],vin:3,iout:1,
32
+ fs_mhz:2,lt_nh:1000,coss_pf},catalog).rows[0];
33
+ for(const value of [null,'']) {
34
+ const unknown=stackedAbsolute(value);
35
+ assert.equal(unknown.coss_w,null);
36
+ assert.equal(unknown.efficiency_includes_coss,false);
37
+ }
38
+ assert.equal(stackedAbsolute(0).coss_w,0);
39
+ assert.equal(stackedAbsolute(0).efficiency_includes_coss,true);
40
+ assert.equal(stackedAbsolute(undefined).coss_w,abs.coss_w);
41
+
42
+ const base = engine.analyzePU({ratio:2,topologies:['buck_stacked']},catalog).rows[0];
43
+ const device = technology.example([base],{vin:3.2,io:1,fs_mhz:2,width_mm:400,
44
+ si_duty:duty,stack_coss_pf_per_mm:.4}).rows[0];
45
+ assert.equal(device.device.length,8);
46
+ assert.equal(device.gate_swing_v,1.6);
47
+ assert(Math.abs(device.poss-.5*.4e-12*400*2e6*1.6**2)<1e-12);
48
+ console.log('Stacked buck allocation, interior and bounded optima, and absolute gate/Coss accounting passed.');
docs/topology/2to1_buck_stacked/verify_sweeps.mjs ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import assert from 'node:assert/strict';
2
+ import {createHash} from 'node:crypto';
3
+ import {createRequire} from 'node:module';
4
+ import {writeFile} from 'node:fs/promises';
5
+ import {resolve} from 'node:path';
6
+ const require=createRequire(resolve(process.env.OPENPELS_SOURCE??'local-source/openpels','package.json'));
7
+ const {chromium,expect}=require('@playwright/test');
8
+ const base=process.env.OPENPELS_URL??'http://127.0.0.1:8765';
9
+ const browser=await chromium.launch({channel:'chrome',headless:true,args:[
10
+ '--host-resolver-rules=MAP fonts.googleapis.com ~NOTFOUND, MAP fonts.gstatic.com ~NOTFOUND']});
11
+ const axes={
12
+ vin:[2.8,3.3,'VIN',1],load:[.8,1.25,'ILOAD',1],fs:[1.8,2.4,'FS',1e6],
13
+ duty:[.30,.70,'DUTY',1],lt:[800,1450,'LW',1e-9],coupling:[0,.72,'KCOUP',1],
14
+ dcr:[3,9,'RDCR',.001],rs:[9,18,'RH',.001],rslow:[10,18,'RL',.001],
15
+ gatecap:[4,42,'CG',1e-12],coss:[5,22,'CX',1e-12],
16
+ cout:[38,60,'CO',1e-6],esr:[2.5,11,'CESR',.001],
17
+ stop:[85,110,null,1],step:[750,1000,null,1],
18
+ target:[1.3,1.65,null,1],
19
+ };
20
+ try {
21
+ const page=await browser.newPage();
22
+ await page.goto(base);
23
+ await page.locator('[data-topology-id="buck_stacked"]').click();
24
+ await page.locator('#selected-simulate').click();
25
+ const sim=page.frameLocator('#simulator'), field=id=>sim.locator('#sp2-'+id);
26
+ await expect(sim.locator('#topologySelect')).toHaveValue('buck_stacked');
27
+ await field('duty').fill('.44');
28
+ await field('include-sweep').check();
29
+ await expect(field('parameter').locator('option')).toHaveCount(Object.keys(axes).length-1);
30
+ const evidence={};
31
+ for (const [id,[start,stop,param,scale]] of Object.entries(axes)) {
32
+ if(id==='target') await field('voltage-mode').selectOption('output_voltage');
33
+ await field('parameter').selectOption(id);
34
+ for(const [key,value] of Object.entries({start,stop,count:2}))
35
+ await field('sweep-'+key).fill(String(value));
36
+ const pending=page.waitForResponse(r=>r.request().method()==='POST'&&r.url().endsWith('/api/simulation/jobs'));
37
+ await sim.locator('#runButton').click();
38
+ const response=await pending;
39
+ assert.equal(response.status(),202,await response.text());
40
+ const {id:jobId}=await response.json();
41
+ await expect(sim.locator('#runButton')).toBeDisabled();
42
+ await expect(sim.locator('#status')).toHaveText(/^Run /,{timeout:120000});
43
+ const job=await (await page.request.get(base+'/api/simulation/jobs/'+jobId)).json();
44
+ assert.equal(job.state,'succeeded');
45
+ assert.equal(job.result.validation,'passed',job.result.validation_message);
46
+ await expect(sim.locator('#sp2-sweep-results tbody tr')).toHaveCount(2);
47
+ await sim.locator('#sp2-sweep-results img').evaluate(img=>img.decode());
48
+ const {sweep,artifacts}=job.result;
49
+ assert.deepEqual(sweep.map(row=>row.value),[start,stop]);
50
+ for (const row of sweep) {
51
+ assert.equal(row.status,'passed',id+': '+row.message);
52
+ const artifact=artifacts.find(file=>file.name===row.deck);
53
+ const deck=await (await page.request.get(base+artifact.url)).text();
54
+ assert.equal(createHash('sha256').update(deck).digest('hex'),row.deck_sha256);
55
+ if (param) {
56
+ const observed=Number(deck.match(new RegExp('(?: |^)'+param+'=(\\S+)'))[1]);
57
+ assert(Math.abs(observed-row.value*scale)<Math.max(1e-20,Math.abs(observed)*1e-12));
58
+ }
59
+ if (id==='target') assert(Math.abs(row.vout_v-row.value)<.0005);
60
+ if (id==='stop') assert(row.stop_us<=row.value && row.value-row.stop_us<.501);
61
+ if (id==='step') assert(row.max_step_ps<=row.value*(1+1e-12));
62
+ }
63
+ const csv=artifacts.find(file=>file.name==='buck_stacked-sweep.csv');
64
+ assert.equal((await (await page.request.get(base+csv.url)).text()).trim().split('\n').length,3);
65
+ evidence[id]={run:jobId,rows:sweep.map(({value,vout_v,efficiency_with_gate,deck_sha256})=>({value,vout_v,efficiency_with_gate,deck_sha256}))};
66
+ console.log(id,JSON.stringify(evidence[id]));
67
+ }
68
+ if(process.env.OPENPELS_SWEEP_EVIDENCE) await writeFile(process.env.OPENPELS_SWEEP_EVIDENCE,JSON.stringify(evidence,null,2)+'\n');
69
+ console.log('All stacked buck axes exercised in both supported mode contexts, with deck hashes and CSVs verified.');
70
+ } finally {
71
+ await browser.close();
72
+ }
docs/topology/2to1_buck_stacked/verify_workspace.mjs ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import assert from 'node:assert/strict';
2
+ import {createRequire} from 'node:module';
3
+ import {resolve} from 'node:path';
4
+ import {readFile,writeFile} from 'node:fs/promises';
5
+
6
+ const {chromium,expect}=createRequire(resolve('local-source/openpels/package.json'))('@playwright/test');
7
+ const origin=process.env.OPENPELS_URL??'http://127.0.0.1:8765';
8
+ const browser=await chromium.launch({channel:'chrome',headless:true,args:[
9
+ '--host-resolver-rules=MAP fonts.googleapis.com ~NOTFOUND, MAP fonts.gstatic.com ~NOTFOUND']});
10
+ try {
11
+ const page=await browser.newPage({viewport:{width:1600,height:1200}});
12
+ const response=new Map();
13
+ page.on('response',r=>response.set(new URL(r.url()).pathname,r));
14
+ await page.goto(origin);
15
+ await page.locator('[data-topology-id="buck_stacked"]').click();
16
+ const a=page.frameLocator('#comparison');
17
+ const card=a.locator('#circuits [data-topology="buck_stacked"]');
18
+ await expect(card).toBeVisible();
19
+ if (!(await a.locator('#analysis-workbench').evaluate(x=>x.open))) await a.locator('#analysis-workbench summary').first().click();
20
+ const alternate=a.locator('[data-topology-choice="buck2"]');
21
+ await alternate.click();
22
+ await expect(a.locator('#circuits [data-topology="buck2"]')).toBeVisible();
23
+ await expect(card).toBeVisible();
24
+ await alternate.click();
25
+ await expect(a.locator('#circuits [data-topology="buck2"]')).toHaveCount(0);
26
+ if (!(await a.locator('#model-details').evaluate(x=>x.open))) await a.locator('#model-details summary').first().click();
27
+ await expect(a.locator('#coefficients')).toContainText('4 (Ron,H J_H + Ron,L J_L)');
28
+ if (!(await a.locator('#sweep-section').evaluate(x=>x.open))) await a.locator('#sweep-section summary').first().click();
29
+ for (const axis of ['duty_cycle','input_voltage_v','output_current_a','switching_frequency_mhz']) {
30
+ await a.locator('#si-sweep-axis').selectOption(axis);
31
+ await expect(a.locator('#si-voltage-chart svg')).toBeVisible();
32
+ }
33
+ await a.locator('#design-si_mode').selectOption('output_voltage');
34
+ await a.locator('#design-si_target_v').fill('1.53');
35
+ await a.locator('#si-sweep-axis').selectOption('output_voltage');
36
+ await expect(a.locator('#si-voltage-chart svg')).toBeVisible();
37
+ const files=['/pe.js','/gallery.js','/compare/app.js','/compare/engine.js','/compare/buck-stacked.js','/compare/technology.js',
38
+ '/compare/recommend.js','/compare/models-data.json','/compare/operating-conditions.json'];
39
+ for(const path of files) {
40
+ const served=response.get(path);
41
+ assert(served,path);
42
+ assert.equal(served.headers()['cache-control'],'no-store');
43
+ assert.deepEqual(await served.body(),await readFile(resolve('static','.'+path)));
44
+ }
45
+ if(process.env.OPENPELS_WORKSPACE_EVIDENCE)
46
+ await writeFile(process.env.OPENPELS_WORKSPACE_EVIDENCE,JSON.stringify({files,axes:['duty_cycle','output_voltage','input_voltage_v',
47
+ 'output_current_a','switching_frequency_mhz'],comparison:'buck2 add/remove',coefficients:true},null,2)+'\n');
48
+ console.log('Workspace comparison toggles, model disclosure, all five Analysis sweep axes and served asset bytes passed.');
49
+ } finally {
50
+ await browser.close();
51
+ }
docs/topology/2to1_cross_validation/circuit.py CHANGED
@@ -76,14 +76,16 @@ def rk4(matrix, dt):
76
  return np.eye(len(z))+z+z2/2+z2@z/6+z2@z2/24
77
 
78
 
79
- def integrate(p, steps=768, stiff=False, ideal=False):
 
80
  """Build finite-step discrete maps, shoot for the periodic state, then sample."""
81
- slots = states(p)
 
82
  dimension = 5 if p["id"] == "rsc2" else 3
83
  maps = []
84
  cycle = np.eye(dimension+1)
85
  for lo, hi, state in slots:
86
- evaluate, gain = circuit(p,state,stiff,ideal)
87
  offset = evaluate(np.zeros((dimension,1)))[0][:,0]
88
  linear = evaluate(np.eye(dimension))[0] - offset[:, None]
89
  augmented = np.zeros_like(cycle)
@@ -151,10 +153,10 @@ def integrate(p, steps=768, stiff=False, ideal=False):
151
  output_kcl=p["io"]+ico)
152
  for name, series in quantities.items():
153
  means[name] = means.get(name,0) + series @ weights
154
- if p["id"] != "si2":
155
  charge += current @ weights/p["fs"]
156
  if p["id"] != "sp2":
157
- winding = derivative[:2] if p["id"] == "si2" else derivative[2:4]
158
  volt_seconds += winding @ weights
159
  ripple.extend(vo)
160
  currents.extend(current.T)
@@ -163,7 +165,7 @@ def integrate(p, steps=768, stiff=False, ideal=False):
163
  maps[0][-1](initial[:dimension,None])[-1][0])
164
  means.update(initial=initial[:-1], end=x[:-1], req=means["loss"].sum()/p["io"]**2,
165
  droop=(gain*p["vin"]-means["vo"])/p["io"], vpp=np.ptp(ripple),
166
- valley=np.min(currents), edge=max(edges), storage=storage_w,
167
  balance=means["iin"]*p["vin"]-means["vo"]*p["io"]-means["loss"].sum()-storage_w,
168
  charge=charge, winding_current_closure=volt_seconds)
169
  return means
 
76
  return np.eye(len(z))+z+z2/2+z2@z/6+z2@z2/24
77
 
78
 
79
+ def integrate(p, steps=768, stiff=False, ideal=False, *, switching_states=states,
80
+ state_circuit=circuit, winding_only=False):
81
  """Build finite-step discrete maps, shoot for the periodic state, then sample."""
82
+ slots = tuple(switching_states(p))
83
+ winding_only = winding_only or p["id"] == "si2"
84
  dimension = 5 if p["id"] == "rsc2" else 3
85
  maps = []
86
  cycle = np.eye(dimension+1)
87
  for lo, hi, state in slots:
88
+ evaluate, gain = state_circuit(p,state,stiff,ideal)
89
  offset = evaluate(np.zeros((dimension,1)))[0][:,0]
90
  linear = evaluate(np.eye(dimension))[0] - offset[:, None]
91
  augmented = np.zeros_like(cycle)
 
153
  output_kcl=p["io"]+ico)
154
  for name, series in quantities.items():
155
  means[name] = means.get(name,0) + series @ weights
156
+ if not winding_only:
157
  charge += current @ weights/p["fs"]
158
  if p["id"] != "sp2":
159
+ winding = derivative[:2] if winding_only else derivative[2:4]
160
  volt_seconds += winding @ weights
161
  ripple.extend(vo)
162
  currents.extend(current.T)
 
165
  maps[0][-1](initial[:dimension,None])[-1][0])
166
  means.update(initial=initial[:-1], end=x[:-1], req=means["loss"].sum()/p["io"]**2,
167
  droop=(gain*p["vin"]-means["vo"])/p["io"], vpp=np.ptp(ripple),
168
+ valley=np.min(currents), phase_ripple=np.ptp(currents, axis=0), edge=max(edges), storage=storage_w,
169
  balance=means["iin"]*p["vin"]-means["vo"]*p["io"]-means["loss"].sum()-storage_w,
170
  charge=charge, winding_current_closure=volt_seconds)
171
  return means
docs/topology/2to1_resonant/verify_browser.mjs CHANGED
@@ -19,7 +19,7 @@ page.on("pageerror", e => errors.push(e.message));
19
 
20
  async function selectRsc() {
21
  await page.locator('[data-family="2"]').click();
22
- await expect(page.locator(".topology-tile")).toHaveCount(6);
23
  await page.locator('[data-topology-id="rsc2"]').click();
24
  await expect(analysis.locator('#circuits [data-topology="rsc2"]')).toBeVisible();
25
  }
@@ -52,7 +52,7 @@ const artifact = name => download(sim.locator(`[download="${name}"]`));
52
  const near = (a,b,tolerance=1e-10) => assert(Math.abs(a-b)<tolerance,`${a} vs ${b}`);
53
  try {
54
  await page.goto(base);
55
- await expect(page.locator(".topology-tile")).toHaveCount(9,{timeout:20000});
56
  await page.locator('[data-family="4"]').click();
57
  await expect(page.locator('[data-topology-id="rsc2"]')).toHaveCount(0);
58
  await selectRsc();
@@ -163,8 +163,10 @@ try {
163
  console.log("Chrome editor verified "+name);
164
  }
165
  await page.locator("#compare-reference").click();
 
166
  await design("vout").fill("1.61");
167
  await design("io").fill("1.13");
 
168
  await page.locator("#selected-simulate").click();
169
  await expect(sim.locator("#topologySelect")).toHaveValue("rsc2");
170
  await expect(setting("vin")).toHaveValue("3.22");
 
19
 
20
  async function selectRsc() {
21
  await page.locator('[data-family="2"]').click();
22
+ await expect(page.locator(".topology-tile")).toHaveCount(7);
23
  await page.locator('[data-topology-id="rsc2"]').click();
24
  await expect(analysis.locator('#circuits [data-topology="rsc2"]')).toBeVisible();
25
  }
 
52
  const near = (a,b,tolerance=1e-10) => assert(Math.abs(a-b)<tolerance,`${a} vs ${b}`);
53
  try {
54
  await page.goto(base);
55
+ await expect(page.locator(".topology-tile")).toHaveCount(10,{timeout:20000});
56
  await page.locator('[data-family="4"]').click();
57
  await expect(page.locator('[data-topology-id="rsc2"]')).toHaveCount(0);
58
  await selectRsc();
 
163
  console.log("Chrome editor verified "+name);
164
  }
165
  await page.locator("#compare-reference").click();
166
+ await expect(analysis.locator('#circuits [data-topology="rsc2"]')).toBeVisible();
167
  await design("vout").fill("1.61");
168
  await design("io").fill("1.13");
169
+ await expect(page.locator("#selected-ratio")).toContainText("Vout 1.61 V · Iout 1.13 A");
170
  await page.locator("#selected-simulate").click();
171
  await expect(sim.locator("#topologySelect")).toHaveValue("rsc2");
172
  await expect(setting("vin")).toHaveValue("3.22");
docs/topology/2to1_switched_inductor/verify_browser.mjs CHANGED
@@ -63,11 +63,11 @@ async function run(expected=202) {
63
 
64
  try {
65
  await page.goto(base);
66
- await expect(page.locator('.topology-tile')).toHaveCount(9);
67
  await page.locator('[data-family="4"]').click();
68
  await expect(page.locator('[data-topology-id="si2"]')).toHaveCount(0);
69
  await page.locator('[data-family="2"]').click();
70
- await expect(page.locator('.topology-tile')).toHaveCount(6);
71
  const tile=page.locator('[data-topology-id="si2"]');
72
  await expect(tile).toContainText('Analysis + simulation');
73
  await tile.locator('img').evaluate(img=>img.decode());
 
63
 
64
  try {
65
  await page.goto(base);
66
+ await expect(page.locator('.topology-tile')).toHaveCount(10);
67
  await page.locator('[data-family="4"]').click();
68
  await expect(page.locator('[data-topology-id="si2"]')).toHaveCount(0);
69
  await page.locator('[data-family="2"]').click();
70
+ await expect(page.locator('.topology-tile')).toHaveCount(7);
71
  const tile=page.locator('[data-topology-id="si2"]');
72
  await expect(tile).toContainText('Analysis + simulation');
73
  await tile.locator('img').evaluate(img=>img.decode());