diff --git a/Dockerfile b/Dockerfile index 1e75a1afe724ae3d4c03b4503f459b45560d2e70..b6777ea53d83aa3590e642b2846b4208c29aeec3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,7 @@ COPY --chown=appuser simulator ./simulator COPY --chown=appuser sp2 ./sp2 COPY --chown=appuser rsc2 ./rsc2 COPY --chown=appuser si2 ./si2 +COPY --chown=appuser buck_stacked ./buck_stacked COPY --chown=appuser operating_conditions.py server.py simulator_service.py simulator_frame.py simulator_bridge.js simulator-source.json ./ USER appuser EXPOSE 7860 diff --git a/README.md b/README.md index f6a0d034b8d8bfd169dfca1c277a94cd03b776f2..89d8354723038b8bd1a4f8c64fb1d52a288ad940 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,11 @@ includes eight switching drawings. The NGSpice preset exposes continuous voltage and duty modes, inverse coupling, parasitics, waveforms and custom sweeps. [Derivation and local validation](docs/topology/2to1_switched_inductor/README.md) · [Operating Conditions Interface](docs/topology/operating_conditions.md) +For **2:1 Buck_Stacked**, the Gallery opens the eight-switch design, editable +right-hand starter, and ideal positive-current CCM Simulator. Analysis and +Simulator support duty and loaded-output commands. A blank Coss value reports +a subtotal with the unknown loss excluded. [Qualification and release scope](docs/topology/2to1_buck_stacked/qualification.md) + ## Rebuild the frontend The release contains the built UI in `static/`. The source archive includes the diff --git a/buck_stacked/NOTICE.md b/buck_stacked/NOTICE.md new file mode 100644 index 0000000000000000000000000000000000000000..f25aaa22cdae9e0ccf8fc995e79a1b6c6c2bda3a --- /dev/null +++ b/buck_stacked/NOTICE.md @@ -0,0 +1,5 @@ +# Buck_Stacked schematic notice + +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. + +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. diff --git a/buck_stacked/__init__.py b/buck_stacked/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/buck_stacked/preset.py b/buck_stacked/preset.py new file mode 100644 index 0000000000000000000000000000000000000000..e32498dd2efe741f48022851ab98aa5190d068d9 --- /dev/null +++ b/buck_stacked/preset.py @@ -0,0 +1,278 @@ +"""NGSpice preset for the approved equal-sharing eight-channel stacked buck.""" +from dataclasses import asdict, dataclass +import json +from pathlib import Path +import subprocess +import time + +import numpy as np + +from operating_conditions import add_measurement, request_contract, resolve +from rsc2.preset import execute_deck, interval +from si2.preset import current_profile, estimate, timing +from sp2.sp2_preset import SweepRejection, validate_preset, write_sweep + +HERE = Path(__file__).resolve().parent +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,' + 'il_a_a,il_b_a,vl_a_v,vl_b_v,iq1_a,iq2_a,iq3_a,iq4_a,vcap_v,' + 'vds_m13_v,vds_m15_v,vds_m11_v,vds_m9_v,vds_m14_v,vds_m16_v,vds_m12_v,vds_m10_v,' + 'gate_fixture_power_w,coss_discharge_fixture_power_w') +EXTRA = 'icap_a,output_current_a,input_power_w,delivered_power_w,winding_sum_a,winding_delta_a' + + +def contract(): + return json.loads((HERE/'preset_contract.json').read_text()) + + +@dataclass(frozen=True) +class Case: + name: str + vin: float + load: float + fs: float + duty: float + winding: float + coupling: float + dcr: float + high: float # stack sum, for common LC timing estimate + low: float + esr: float + cout: float + coss: float | None + gate_cap: float + stop: float | None + step: float | None + operating_point: dict + + @property + def period(self): + return 1/self.fs + + @property + def ideal(self): + return self.duty*self.vin + + @property + def loaded(self): + return self.operating_point['derived']['analytical_output_voltage_v'] + + +def build_case(name, s): + vin, load, fs = s['input_voltage_v'], s['output_current_a'], s['switching_frequency_mhz']*1e6 + winding, coupling = s['inductance_nh']*1e-9, s['coupling'] + high = s['switch_ron_mohm']*2e-3 + low = high if s['low_ron_mohm'] is None else s['low_ron_mohm']*2e-3 + dcr = s['dcr_mohm']*1e-3 + inputs = dict(input_voltage_v=vin,load=dict(kind='current',value=load),switching_frequency_hz=fs) + if 'target_output_v' in s: + inputs.update(mode='output_voltage',target_output_v=s['target_output_v']) + else: + inputs.update(mode='duty_cycle',duty=s['duty']) + + def screen(duty): + _, _, valley = current_profile(duty,vin,load,fs,winding,coupling) + return ('positive_current_ccm', []) if valley > 0 else ( + 'outside_positive_current_ccm', ['Predicted winding current crosses zero. Increase load, L or frequency.']) + + point = resolve('buck_stacked',inputs,balance=dict(input_voltage_v=vin,winding_drop_v=load*dcr/2, + high_drop_v=load*high/2,low_drop_v=load*low/2),screen=screen) + if not point['solver']['valid']: + raise ValueError(' '.join(point['solver']['diagnostics'])) + coss = None if s['switch_coff_pf'] is None else s['switch_coff_pf']*1e-12 + return Case(name,vin,load,fs,point['derived']['applied_duty'],winding,coupling,dcr,high,low, + s['output_esr_mohm']*1e-3,s['output_cap_uf']*1e-6,coss, + s['gate_cap_pf']*1e-12,s['stop_us'],s['max_step_ps'],point) + + +def validate(payload): + mode, numeric, spec = request_contract('buck_stacked',payload,contract()) + settings, main, axis, cases = validate_preset(numeric,spec,build_case,estimate, + 'stacked buck',retain_infeasible=True) + return {**settings,'voltage_mode':mode},main,axis,cases + + +def deck_source(c, cycles, step, *, cold=False): + ia, ib, _ = current_profile(c.duty,c.vin,c.load,c.fs,c.winding,c.coupling) + values = dict(VIN=c.vin, ILOAD=c.load, FS=c.fs, DUTY=c.duty, LW=c.winding, KCOUP=c.coupling, + RDCR=c.dcr, RH=c.high/2, RL=c.low/2, CESR=c.esr, CO=c.cout, + IA0=0 if cold else ia, IB0=0 if cold else ib, VC0=0 if cold else c.loaded, + CG=max(c.gate_cap, 1e-24)) + if c.coss is not None: + values['CX'] = max(c.coss, 1e-24) + lines = (HERE/'stacked-buck.cir').read_text().splitlines() + lines[1] = '.param '+' '.join(f'{key}={value:.15g}' for key,value in values.items()) + tran = next(i for i,line in enumerate(lines) if line.startswith('.tran')) + lines[tran] = f'.tran {step:.15g} {cycles*c.period:.15g} {(cycles-11)*c.period:.15g} {step:.15g} uic' + if c.coss is None: + first = next(i for i,line in enumerate(lines) if line.startswith('Voss_supply ')) + lines[first:tran] = ['* Coss unspecified. Coss fixture and event loss excluded.'] + lines = [line.removesuffix(' coss_w') for line in lines if not line.startswith('let coss_w=')] + return '\n'.join(lines)+'\n' + + +def measure(data, c): + t, vin, vout, iin, swa, swb, ga, ga_bar, gb, gb_bar, ia, ib, va, vb = data[:,:14].T + branches = data[:,14:18] + vc, stress, gate_power = data[:,18], data[:,19:27], data[:,27] + duration = t[-1]-t[0] + + def average(x): + return np.trapezoid(x,t,axis=0)/duration + + ic = (vout-vc)/c.esr + input_w, delivered = average(vin*iin), c.load*average(vout) + switch_w = average(np.repeat(branches,2,axis=1)*stress) + dcr_w = c.dcr*average(np.stack((ia**2,ib**2),axis=1)) + esr_w = c.esr*average(ic**2) + stored = (c.winding*(ia**2+ib**2-2*c.coupling*ia*ib)+c.cout*vc**2)/2 + storage_w = (stored[-1]-stored[0])/duration + electrical_loss = input_w-delivered + gate_w = float(average(gate_power)) if c.gate_cap else 0. + coss_w = None if c.coss is None else float(average(data[:,28])) if c.coss else 0. + known_coss = coss_w if coss_w is not None else 0. + modeled_input = input_w + known_coss + stage = electrical_loss + known_coss + vdrive = c.vin/2 + # Use plateau probes while timing voltages are at their full logic levels. + plateau = (np.minimum(ga,ga_bar)vdrive/2)&(other>vdrive/2))) + for g,other in ((ga,ga_bar),(gb,gb_bar))]) + + +def single_trace(case,directory,name,cycles,step,cold=False): + trace, checksum = execute_deck(directory,deck_source(case,cycles,step,cold=cold),name, + columns=28 if case.coss is None else 29) + if trace[-1,0] < cycles*case.period*(1-1e-7): + raise ValueError('NGSpice stopped before the measurement window.') + stop = (cycles-1.173205)*case.period + data = interval(trace,stop-4*case.period,stop) + measured = measure(data,case) + previous = measure(interval(trace,stop-8*case.period,stop-4*case.period),case) + measured['window_drift_v'] = abs(measured['vout_v']-previous['vout_v']) + measured['window_drift_w'] = abs(measured['stage_w']-previous['stage_w']) + return measured,data,checksum + + +def run_case(case,directory,*,cold=False): + cycles, step = timing(case) + coarse,_,_ = single_trace(case,directory,case.name+'-coarse',cycles,step,cold) + fine,data,checksum = single_trace(case,directory,case.name,cycles,step/2,cold) + if min(fine['winding_min_a']) <= 0 or not 0 < fine['vout_v'] < case.ideal: + raise ValueError('Measured operation is outside positive-output, positive-current CCM.') + if (fine['window_drift_v']>.0003 or fine['window_drift_w']>max(.00003,.01*fine['stage_w']) + or abs(fine['output_cap_average_a'])>.0003 or max(map(abs,fine['winding_voltage_mean_v']))>.001): + raise ValueError('No periodic steady state in the measurement window. Increase duration.') + if abs(fine['balance_w'])>max(.00003,.01*fine['stage_w']): + raise ValueError('Measured electrical stage failed energy closure.') + if abs(fine['vout_v']-coarse['vout_v'])>.0004 or abs(fine['stage_w']-coarse['stage_w'])>max(.00003,.02*fine['stage_w']): + raise ValueError('Time-step refinement failed. Use a smaller maximum step.') + if max(abs(d-case.duty) for d in fine['measured_duty'])>.0002 or max(fine['gate_overlap_fraction'])>1e-8: + raise ValueError('The complementary commands failed the duty or overlap check.') + if max(abs(v-case.vin/2) for v in fine['switch_peak_v'])>max(.004,.03*case.vin/2): + raise ValueError('The measured blocking plateaus exceed the ideal equal-sharing tolerance.') + _, vin, out, iin = data[:,:4].T + ia,ib = data[:,10:12].T + extras = ((out-data[:,18])/case.esr,np.full(len(data),case.load),vin*iin,case.load*out,ia+ib,ia-ib) + wave = directory/f'{case.name}_waveform.csv' + trace_header = TRACE.rsplit(',',1)[0] if case.coss is None else TRACE + if case.coss == 0: + data[:,28] = 0 + np.savetxt(wave,np.column_stack((data,*extras)),delimiter=',',comments='',header=trace_header+','+EXTRA) + target = case.operating_point['inputs'].get('target_output_v') + row = dict(status='passed',message='',deck=f'{case.name}.cir',waveform=wave.name,deck_sha256=checksum, + nominal_vout_v=case.ideal,ideal_vout_v=case.ideal,ideal_gain=case.duty,vin_v=case.vin, + target_vout_v=target,analytical_vout_v=case.loaded,analytical_gain=case.loaded/case.vin, + simulated_gain=fine['vout_v']/case.vin,target_error_v=None if target is None else fine['vout_v']-target, + operating_point=add_measurement(case.operating_point,fine['vout_v']), + stop_us=cycles*case.period*1e6,max_step_ps=step/2*1e12, + window_start_cycles=cycles-5.173205,window_stop_cycles=cycles-1.173205,**fine) + (directory/f'{case.name}-measurements.json').write_text( + json.dumps(dict(settings=asdict(case),refined=row,coarse=coarse,cold=cold),allow_nan=False,indent=2)+'\n') + return row + + +def plot_waveform(directory,wave): + import matplotlib + matplotlib.use('Agg') + import matplotlib.pyplot as plt + + values = np.genfromtxt(directory/wave,delimiter=',',names=True) + t = 1e6*(values['time_s']-values['time_s'][0]) + event_keys = [key for key in ('gate_fixture_power_w','coss_discharge_fixture_power_w') if key in values.dtype.names] + plots = ( + ('VGS command (V)', ['vgs_q1_v','vgs_q2_v','vgs_q3_v','vgs_q4_v']), + ('Switch node (V)', ['sw_a_v','sw_b_v']), + ('VDS (V)', [f'vds_m{i}_v' for i in (13,15,11,9,14,16,12,10)]), + ('Winding voltage (V)', ['vl_a_v','vl_b_v']), + ('Winding current (A)', ['il_a_a','il_b_a','winding_sum_a']), + ('Output voltage (V)', ['vout_v']), + ('Event fixtures (W)', event_keys), + ) + figure,axes = plt.subplots(len(plots),1,sharex=True,figsize=(9,11),layout='constrained') + if len(event_keys) == 1: + axes[-1].set_title('Coss unknown · event loss excluded') + for ax,(label,keys) in zip(axes,plots): + for i,key in enumerate(keys): + ax.plot(t,values[key],('-','--',':','-.')[i%4],label=key.replace('_',' ')) + ax.set_ylabel(label) + if len(keys)>1: + ax.legend(loc='upper right',ncol=min(4,len(keys)),fontsize=7) + axes[-1].set_xlabel('Time within measurement window (µs)') + figure.savefig(directory/'buck_stacked-waveforms.png',dpi=150) + plt.close(figure) + + +def run(payload,directory,progress=lambda complete,total: None): + settings,main,axis,entries = validate(payload) + started = time.perf_counter() + rows = [] + total = 1+len(entries) + progress(0,total) + for index,(value,case) in enumerate([(None,main),*entries],1): + if isinstance(case,SweepRejection): + row = dict(status='failed',phase='operating_point',message=case.reason) + else: + try: + row = run_case(case,directory) + except (ValueError,subprocess.TimeoutExpired) as error: + row = dict(status='failed',phase='transient',message=str(error),operating_point=case.operating_point) + rows.append(dict(value=value,**row)) + progress(index,total) + operating,*sweep = rows + success = operating['status']=='passed' + if not success and not sweep: + raise ValueError(operating['message']) + if success: + plot_waveform(directory,operating['waveform']) + if axis: + write_sweep(directory,axis,sweep,topology='buck_stacked') + return dict(run_id=directory.name,settings={**settings,'topologies':['buck_stacked'],'sweep':payload.get('sweep')}, + operating_point=operating.get('operating_point'),elapsed_s=time.perf_counter()-started, + metrics=[operating] if success else [],validation=operating['status'],validation_message=operating['message'], + model_provenance=dict(id='buck_stacked',model='ideal equal-sharing stacked buck', + deck_sha256=operating.get('deck_sha256')), + sweep=sweep,parameter={k:axis[k] for k in ('label','unit')} if axis else None, + sweep_plot_url=f'/simulator/runs/{directory.name}/buck_stacked-sweep.png' if axis else None, + **({'plot_url':f'/runs/{directory.name}/buck_stacked-waveforms.png'} if success else {})) diff --git a/buck_stacked/preset_contract.json b/buck_stacked/preset_contract.json new file mode 100644 index 0000000000000000000000000000000000000000..0728eb594ac0146c4859234445b25d8e84f1ca59 --- /dev/null +++ b/buck_stacked/preset_contract.json @@ -0,0 +1,163 @@ +{ + "id": "buck_stacked", + "ratio": 2, + "status": "local-generic-model", + "run_kind": "run", + "parameters": { + "vin": { + "field": "input_voltage_v", + "label": "Input voltage", + "unit": "V", + "minimum": 2.5, + "maximum": 3.8, + "default": 3, + "optional": false + }, + "load": { + "field": "output_current_a", + "label": "Output current", + "unit": "A", + "minimum": 0.6, + "maximum": 2, + "default": 1, + "optional": false + }, + "fs": { + "field": "switching_frequency_mhz", + "label": "Switching frequency", + "unit": "MHz", + "minimum": 1, + "maximum": 4, + "default": 2, + "optional": false + }, + "duty": { + "field": "duty", + "label": "High-side duty", + "unit": "fraction", + "minimum": 0.25, + "maximum": 0.75, + "default": 0.5, + "optional": false + }, + "target": { + "field": "target_output_v", + "label": "Target output voltage", + "unit": "V", + "minimum": 0.1, + "maximum": 3, + "default": 1.5, + "optional": false + }, + "lt": { + "field": "inductance_nh", + "label": "Self-inductance per winding", + "unit": "nH", + "minimum": 750, + "maximum": 2000, + "default": 1000, + "optional": false + }, + "coupling": { + "field": "coupling", + "label": "Inverse coupling magnitude", + "unit": "", + "minimum": 0, + "maximum": 0.75, + "default": 0.6, + "optional": false + }, + "dcr": { + "field": "dcr_mohm", + "label": "DCR per winding", + "unit": "m\u03a9", + "minimum": 2, + "maximum": 25, + "default": 4, + "optional": false + }, + "rs": { + "field": "switch_ron_mohm", + "label": "High-stack Ron per MOSFET", + "unit": "m\u03a9", + "minimum": 5, + "maximum": 25, + "default": 12, + "optional": false + }, + "rslow": { + "field": "low_ron_mohm", + "label": "Low-stack Ron per MOSFET (blank uses high)", + "unit": "m\u03a9", + "minimum": 5, + "maximum": 25, + "default": null, + "optional": true + }, + "gatecap": { + "field": "gate_cap_pf", + "label": "Effective gate capacitance per MOSFET", + "unit": "pF", + "minimum": 0, + "maximum": 100, + "default": 25, + "optional": false + }, + "coss": { + "field": "switch_coff_pf", + "label": "Effective linear Coss per MOSFET", + "unit": "pF", + "minimum": 0, + "maximum": 30, + "default": 10, + "optional": true, + "placeholder": "Unknown" + }, + "cout": { + "field": "output_cap_uf", + "label": "Output capacitance", + "unit": "\u00b5F", + "minimum": 20, + "maximum": 60, + "default": 47, + "optional": false + }, + "esr": { + "field": "output_esr_mohm", + "label": "Output capacitor ESR", + "unit": "m\u03a9", + "minimum": 1, + "maximum": 12, + "default": 5, + "optional": false + }, + "stop": { + "field": "stop_us", + "label": "Simulation duration", + "unit": "\u00b5s", + "minimum": 20, + "maximum": 1000, + "default": null, + "optional": true + }, + "step": { + "field": "max_step_ps", + "label": "Refined maximum step ceiling", + "unit": "ps", + "minimum": 100, + "maximum": 3000, + "default": null, + "optional": true + } + }, + "sweep_points": { + "minimum": 2, + "maximum": 15, + "default": 5 + }, + "name": "2:1 Buck_Stacked", + "short": "STACK", + "model_note": "Eight ideal channels in two inverse-coupled phases. Each blocked pair shares voltage equally. Positive-current CCM, zero dead time.", + "gate_note": "Effective gate swing is always half the input voltage. One equivalent gate cycle per device per period.", + "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." +} diff --git a/buck_stacked/stacked-buck.cir b/buck_stacked/stacked-buck.cir new file mode 100644 index 0000000000000000000000000000000000000000..4bc07f61003d9cb6bb570a26b7cec2ce060d757b --- /dev/null +++ b/buck_stacked/stacked-buck.cir @@ -0,0 +1,78 @@ +OpenPELS 2:1 Buck_Stacked, Analog Canvas dut r266, right-hand circuit +.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 +.param VG={VIN/2} PERIOD={1/FS} EDGE={PERIOD/10000} PW={DUTY*PERIOD-EDGE} +.options method=gear reltol=1e-6 abstol=1e-11 vntol=1e-9 +Vinput vin 0 {VIN} +* The logic voltages represent effective VGS, with zero dead time. +Vga ga 0 PULSE({VG} 0 {DUTY*PERIOD-EDGE/2} {EDGE} {EDGE} {(1-DUTY)*PERIOD-EDGE} {PERIOD}) +Vgb gb 0 PULSE(0 {VG} {PERIOD/2-EDGE/2} {EDGE} {EDGE} {PW} {PERIOD}) +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) +Babar ga_bar 0 V={VG}-v(ga) +Bbbar gb_bar 0 V={VG}-v(b) +.model high SW(Ron={RH} Roff=1G Vt={VG/2} Vh=0) +.model low SW(Ron={RL} Roff=1G Vt={VG/2} Vh=0) +* Both series channels are enabled by the branch command in the reduced model. +* Equal off resistances realize ideal static VDS sharing. +Vha vin dha 0 +S_M13 dha hi_a ga 0 high +S_M15 hi_a swa ga 0 high +Vla swa dla 0 +S_M11 dla lo_a ga_bar 0 low +S_M9 lo_a 0 ga_bar 0 low +Vhb vin dhb 0 +S_M14 dhb hi_b b 0 high +S_M16 hi_b swb b 0 high +Vlb swb dlb 0 +S_M12 dlb lo_b gb_bar 0 low +S_M10 lo_b 0 gb_bar 0 low +* First terminals are dotted. Phase B current toward the load is -i(L4). +L3 swa ra {LW} ic={IA0} +L4 rb swb {LW} ic={-IB0} +K34 L3 L4 {KCOUP} +R1 ra out {RDCR} +R2 rb out {RDCR} +RCO out co {CESR} +CO co 0 {CO} ic={VC0} +Iload out 0 {ILOAD} +* Independent event fixtures for the aggregate of eight identical capacitors. +* Use the power stage for conduction, and measure only the declared RC event +* boundaries here. Event circuits do not perturb the stage or duplicate loss. +Vevent event 0 PULSE(0 1 {PERIOD/4} {EDGE} {EDGE} {PERIOD/2-EDGE} {PERIOD}) +Bnevent nevent 0 V=1-v(event) +.model ev SW(Ron=1m Roff=1T Vt=0.5 Vh=0) +Vgate_supply aux_gate 0 {VG} +Sg_charge aux_gate g_charge event 0 ev +Rg_charge g_charge cg 2 +Cg cg 0 {8*CG} +Sg_release cg g_release nevent 0 ev +Rg_release g_release 0 2 +Voss_supply aux_coss 0 {VG} +Sx_charge aux_coss x_charge event 0 ev +Rx_charge x_charge cx 2 +Cx cx 0 {8*CX} +Sx_release cx x_release nevent 0 ev +Rx_release x_release 0 2 +.tran 1n 100u 0 1n uic +.control +set wr_singlescale +set wr_vecnames +set numdgt=15 +run +let input_a=-i(Vinput) +let ib=-i(L4) +let va=v(swa)-v(ra) +let vb=v(swb)-v(rb) +let gate_w=-v(aux_gate)*i(Vgate_supply) +let coss_w=v(x_release)*v(x_release)/2 +let d13=v(dha)-v(hi_a) +let d15=v(hi_a)-v(swa) +let d11=v(dla)-v(lo_a) +let d9=v(lo_a) +let d14=v(dhb)-v(hi_b) +let d16=v(hi_b)-v(swb) +let d12=v(dlb)-v(lo_b) +let d10=v(lo_b) +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 +quit +.endc +.end diff --git a/docs/topology/2to1_buck_stacked/README.md b/docs/topology/2to1_buck_stacked/README.md new file mode 100644 index 0000000000000000000000000000000000000000..37b319212120de8a0554980f34cda8546f9af066 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/README.md @@ -0,0 +1,63 @@ +# 2:1 Buck_Stacked development and validation report + +| Record item | Value | +| --- | --- | +| Scope | Right-hand eight-MOSFET circuit, Analog Canvas `dut` r266, cloud r21, structure r59 | +| Review | [User-approved Circuit Definition](approval.md), with equal device blocking and half-input effective gate swing | +| Local model, starter, Simulator IDs | `buck_stacked`, nominal 2:1 | +| 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 | +| Claim | Ideal equal-sharing, symmetric two-phase, positive-current CCM, constant-current output load, independent average and transient validation | +| Validation tools | NGSpice 47, Python/NumPy periodic RK4 on the independently assembled switched circuit, JavaScript first-order calculation | + +## Circuit, equations and implementation + +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. + +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. + +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. + +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. + +## Results and ranges + +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. + +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. + +| Largest difference | Analytic vs. numerical | Analytic vs. NGSpice | Numerical vs. NGSpice | +| --- | ---: | ---: | ---: | +| Mean output | 2.36 µV | 29.75 µV | 29.75 µV | +| Phase current peak-to-peak | 2.20 mA | 2.19 mA | 0.02 mA | +| Channel loss | 1.34 µW | 3.24 µW | 3.17 µW | +| Gate energy per second | 0 µW | 7.39 µW | 7.39 µW | +| Coss energy per second | 0 µW | 0.56 µW | 0.56 µW | + +[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) + +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. + +## Integration and regression + +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. + +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. + +## Stage 9–11 audit closure + +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) + +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. + +## Replay + +From the repository root, generate the candidate data under the ignored runtime directory and run the analytical sizing check. + +```sh +.venv/bin/python docs/topology/2to1_buck_stacked/validate.py .openpels-runtime/buck-stacked-validation +node docs/topology/2to1_buck_stacked/verify_sizing.cjs +``` + +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. + +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. diff --git a/docs/topology/2to1_buck_stacked/analytical_model.md b/docs/topology/2to1_buck_stacked/analytical_model.md new file mode 100644 index 0000000000000000000000000000000000000000..cd75ae86a9db36fb3341141c42ac54a288a87ef3 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/analytical_model.md @@ -0,0 +1,34 @@ +# Analytical model and matched test scope + +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. + +## State equations and first-order solution + +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. + +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. +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. +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. +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. +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. + +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. + +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. + +## Loss, drive and area + +| Term | Model and boundary | +| --- | --- | +| Channel | 2(R_H J_H+R_L J_L), from two identical phases. Each MOSFET contributes its own resistance times its stack moment. | +| Winding DCR | 2 R_DCR (J_H+J_L). | +| Output ESR | R_ESR times mean square capacitor current from output KCL. | +| 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. | +| 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. | +| 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. | + +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. + +## Qualification criteria set before comparisons + +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. diff --git a/docs/topology/2to1_buck_stacked/approval.md b/docs/topology/2to1_buck_stacked/approval.md new file mode 100644 index 0000000000000000000000000000000000000000..da06c6a813f78f3256b205b47ce514d040de9831 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/approval.md @@ -0,0 +1,9 @@ +# Circuit Definition approval + +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. + +> 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. + +- The two MOSFETs in each blocked stack are assumed to share equally. Each has nominal blocking voltage Vin/2. +- The effective gate-to-source swing is Vdrive = Vin/2. Apply both assumptions in the analytical and periodic numerical models, NGSpice, and transistor sizing. +- 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. diff --git a/docs/topology/2to1_buck_stacked/build_starter.mjs b/docs/topology/2to1_buck_stacked/build_starter.mjs new file mode 100644 index 0000000000000000000000000000000000000000..a8f7a40882cba6191fc048dec8d3750c3f671238 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/build_starter.mjs @@ -0,0 +1,78 @@ +import assert from 'node:assert/strict'; +import {readFileSync, writeFileSync} from 'node:fs'; +import {resolve} from 'node:path'; +import {pathToFileURL} from 'node:url'; + +const packageFile = name => pathToFileURL(resolve('local-source/openpels/packages',name,'dist/index.js')).href; +const {parseProject,serializeCompactProject} = await import(packageFile('project-protocol')); +const {createDesignNetlistExport} = await import(packageFile('netlist')); +const raw = JSON.parse(readFileSync(process.argv[2],'utf8')); +assert.equal(raw.schemaVersion,87); +assert.equal(raw.documents[0].revision,266); +// The bundled editor uses schema 86. This source has no schema-87-only +// object in the right-hand cell; assert the compiled graph after migration. +raw.schemaVersion=86; +const project=parseProject(JSON.stringify(raw)); +const [top]=project.documents; +assert.equal(project.documents.length,1); +top.instances=top.instances.filter(i=>i.placement.position.x>760); +const ids=new Set(top.instances.map(i=>i.id)); +top.netlist.terminals=top.netlist.terminals.filter(t=>t.interfaceInstanceIds.some(id=>ids.has(id))); +top.junctions=top.junctions.filter(j=>j.position.x>760); +const junctions=new Set(top.junctions.map(j=>j.id)); +const right=e=>e.kind==='terminal'?ids.has(e.instanceId):e.kind==='junction'?junctions.has(e.junctionId):(e.position??e.point)?.x>760; +for(const net of top.nets) net.terminals=net.terminals.filter(t=>ids.has(t.instanceId)); +top.nets=top.nets.filter(n=>n.terminals.length); +const nets=new Set(top.nets.map(n=>n.id)); +top.routes=top.routes.filter(r=>nets.has(r.netId)&&right(r.start)); +top.connectivityEvidence=top.connectivityEvidence.filter(e=>nets.has(e.netId)&& + (!e.owner?.objectId||ids.has(e.owner.objectId))); +top.annotations=top.annotations.filter(o=>o.anchor.kind==='object'?ids.has(o.anchor.objectId):o.anchor.position.x>760); +top.drafting.objects=top.drafting.objects.filter(o=>o.anchor.position.x>760); +const device=ref=>top.instances.find(i=>i.reference===ref); +const netAt=(instance,pinName)=>top.nets.find(n=>n.terminals.some(t=>t.instanceId===instance.id&&t.pinName===pinName)); +top.mosBulkDefaults={nmosNetId:netAt(device('M13'),'B').id, + pmosNetId:top.netlist.terminals.find(t=>t.name==='VIN').netId}; +const connect=(name,destination,position,rotation,net,direction)=>{ + const id='stack-port-'+name, pin={instanceId:id,pinName:'P'}; + top.instances.push({id,symbolId:'port',placement:{position,rotation,mirror:'none'}}); + top.netlist.terminals.push({id:'stack-terminal-'+name,netId:net.id,name,direction,interfaceInstanceIds:[id]}); + net.terminals.push(pin); + top.routes.push({id:'stack-route-'+name,netId:net.id,start:{kind:'terminal',...pin}, + legs:[{id:'stack-end-'+name,mode:'manual',to:{kind:'endpoint',endpoint:destination}}]}); +}; +for(const [reference,name,x,y] of [['M15','A',840,200],['M16','B',1010,200], + ['M9','ABAR',810,430],['M10','BBAR',970,430]]) { + const mos=device(reference); + const gate={kind:'terminal',instanceId:mos.id,pinName:'G'}; + assert.equal(netAt(mos,'G'),undefined); + const net={id:'stack-gate-'+name,terminals:[{instanceId:mos.id,pinName:'G'}]}; + top.nets.push(net); + connect(name,gate,{x,y},0,net,'input'); +} +const bias=top.netlist.terminals.find(t=>t.id==='terminal-p1_13'); +bias.name='VBIAS'; +delete bias.signal; +const out=netAt(device('C1'),'1'); +const junction=top.junctions.find(j=>j.position.x===1300&&j.position.y===270) + ??top.junctions.find(j=>j.position.x===1260&&j.position.y===270); +assert.ok(junction); +connect('VOUT',{kind:'junction',junctionId:junction.id},{x:1360,y:270},180,out,'output'); +top.inductorCouplings=[{id:'stack-coupling',name:'K34',k:'.6', + members:['L3','L4'].map(ref=>({instanceId:device(ref).id,dotPin:'1'}))}]; +// The native electrical object supplies dots and coupling lines on the copy. +top.drafting.objects=top.drafting.objects.filter(o=>!/^(circle-[78]|construction-9)/.test(o.id)); +for(const [ref,value] of Object.entries({L3:'1u',L4:'1u',R1:'4m',R2:'4m',C1:'47u'})) + device(ref).netlist.parameters.value=value; +for(const ref of ['V1','V2']) device(ref).netlist.parameters.dc='1.5'; +device('ILOAD').netlist.parameters.dc='1'; +const saved=serializeCompactProject(project); +const reloaded=parseProject(saved); +const exported=createDesignNetlistExport(reloaded); +assert.equal(exported.status,'ready',JSON.stringify(exported.diagnostics.filter(x=>x.severity==='error'))); +assert.equal(reloaded.documents[0].instances.filter(x=>x.symbolId==='nmos').length,8); +assert.match(exported.file.text,/K34 L3 L4 \.6/i); +assert.deepEqual(exported,createDesignNetlistExport(parseProject(serializeCompactProject(reloaded)))); +writeFileSync('static/starters/buck_stacked.icproj.json',saved); +writeFileSync('static/starters/buck_stacked.sp',exported.file.text); +console.log('Eight-switch starter and native SPICE roundtrip verified.'); diff --git a/docs/topology/2to1_buck_stacked/circuit_definition.md b/docs/topology/2to1_buck_stacked/circuit_definition.md new file mode 100644 index 0000000000000000000000000000000000000000..d95bec52d8db1354cbed5667f0e30b5f48d76cf7 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/circuit_definition.md @@ -0,0 +1,83 @@ +# Circuit Definition Review — 2:1 Buck_Stacked + +**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. + +[Visual review packet](review/README.md) · Original right-hand crop, eight-device gate and stress tables, switching-state overlays, PWM timing and winding polarity. + +## Source and review scope + +| Record | Value | +| --- | --- | +| Analog Canvas | [Project 2:1 Buck_Stacked](https://analog-canvas.tokenzhang.com), cloud ID `4727dbf5-ce00-4d5f-a0d0-720ae7fc9cbd`, cloud revision 21 | +| Reviewed cell | `dut`, document `document-89c0d0f5-5984-4afc-89fb-10f008c79a68`, cell revision 266, structure revision 59, schema 87 | +| 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. | +| 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). | +| 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. | +| 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. | + +[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) + +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. + +## Right-hand circuit and signed paths + +| Phase | Upper series stack from `VIN` to switch node | Lower series stack from switch node to ground | Output branch, positive current toward `VOUT` | +| --- | --- | --- | --- | +| 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` | +| 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` | + +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. + +| Gate | Drawn drive or proposed external command | +| --- | --- | +| `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. | +| `M11.G`, `M12.G` | Shared externally supplied `Vin/2` port, referenced to ground. | +| `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. | +| `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. | + +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. + +## Proposed switching states and timing + +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. + +| State `AB` | Active commands | Phase A path | Phase B path | Ideal `sw_a, sw_b` | +| --- | --- | --- | --- | --- | +| `10` | `A, B̄` | `VIN → M13 → M15 → sw_a → L3 → R1 → VOUT` | `0 → M10 → M12 → sw_b → L4 → R2 → VOUT` | `VIN, 0` | +| `01` | `Ā, B` | `0 → M9 → M11 → sw_a → L3 → R1 → VOUT` | `VIN → M14 → M16 → sw_b → L4 → R2 → VOUT` | `0, VIN` | +| `00` | `Ā, B̄` | `0 → M9 → M11 → sw_a → L3 → R1 → VOUT` | `0 → M10 → M12 → sw_b → L4 → R2 → VOUT` | `0, 0` | +| `11` | `A, B` | `VIN → M13 → M15 → sw_a → L3 → R1 → VOUT` | `VIN → M14 → M16 → sw_b → L4 → R2 → VOUT` | `VIN, VIN` | + +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`. + +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. + +```text +0 < D < 1/2 0 D 1/2 1/2+D 1 +AB | 10 | 00 | 01 | 00 | + +D = 1/2 0 1/2 1 +AB | 10 | 01 | + +1/2 < D < 1 0 D−1/2 1/2 D 1 +AB | 11 | 10 | 11 | 01 | +``` + +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. + +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. + +## Nominal conversion and regulation + +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. + +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. + +## Consistency checks and review decision + +- 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. +- 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. +- 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. +- 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. + +The user confirmed this source revision and timing in the [approval record](approval.md). The [qualification record](qualification.md) tracks dependent stages. diff --git a/docs/topology/2to1_buck_stacked/evidence/SHA256SUMS b/docs/topology/2to1_buck_stacked/evidence/SHA256SUMS new file mode 100644 index 0000000000000000000000000000000000000000..18518b1f3b8aaca3016328b2d81dbede05f0d056 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/evidence/SHA256SUMS @@ -0,0 +1,19 @@ +943c68f3a21e9ba67dcf98fd7165e2a86504d3144eaa25b7a6d4722165829a46 baseline-2to1-quality.json +ac92f6a999c5e2ab9cf93fe2cc18fb9fa44d69eb67254a69e2a67789252d1994 browser.json +462e04e2fc0bd843db9180856d07fb87a72b23412ec36bd493f6948fdc9ef8e9 cache.json +eab0f303fc2f97a6a5fc6b1a38aa1a2e2d8107ecef86c70f9b67516996d4c0b3 coss-browser.json +ebf4d90cb7ef442fd006eb0d09bd2335348524b9445cee004c7b9ca5cfb48523 coss-cache.json +daae2b25b9841cae1e0d31de04fcd5159a802adacd491b257fdd2543a83c30db coss-regressions.json +81c930ceba92f859f22702d73e69001f808000c383bc257a6d7066b065882f0c coss-sweeps.json +bbdcbb9409396ae091aa0cc97605289f06390124cecdc65f593cc2e123517e5f coss-workflow.json +c0ff0da00e568823ffbfca91de279ada01e86898b3d7ec8a9008810a422caeee coss-workspace.json +755d7b9684dc9a57055f515e57a12803df8991396a7a5ea8c55df9668275a5a4 duty-comparison.svg +be07a80e3bc679e3743a9f73b8bcd0394c5d8a3c69c0dbd6c16fc9298968ec1a event-comparison.svg +49fc608ed4afff7deffa3ef1dcf1cd35cdd74f911b11fb922147b0276544eff0 executed-decks.zip +20f18bb607e3396b9af24a6260ee8f4237b87b1dfb64fcad28de64253b4337fd matched-results.json +284fd680c76b2e46068c2a3694185a61ae1ea54900fcb3dc1c9bd070b7d39ed4 sweeps.json +c0ff0da00e568823ffbfca91de279ada01e86898b3d7ec8a9008810a422caeee workspace.json +7d60ccbdd1b559e8f2132de95b828073383f37d099b73dfd6498aad444622e3d ../../../../static/openpels-source.zip +f7f5881fc34344c96c0069bfe55dc1b32643dfba8fa8a65aa3a7d83fe40bda67 ../../../../static/starters/buck_stacked.icproj.json +0831135f2de8dc63696e502eeee848854d29d02123181c9dd6188a7c364edd14 ../../../../static/starters/buck_stacked.sp +c13511e72d73238deb24f53beb3c024b29159f1e00fb5b90e9df13f4751b3a81 ../../../../buck_stacked/stacked-buck.cir diff --git a/docs/topology/2to1_buck_stacked/evidence/baseline-2to1-quality.json b/docs/topology/2to1_buck_stacked/evidence/baseline-2to1-quality.json new file mode 100644 index 0000000000000000000000000000000000000000..973e70e5fe152193f11a6b8b922add3096bb3bec --- /dev/null +++ b/docs/topology/2to1_buck_stacked/evidence/baseline-2to1-quality.json @@ -0,0 +1,111 @@ +{ + "si2": { + "cases": 33, + "bench_relative_req_error": { + "value": 0.0001262280412663852, + "case": "duty_4" + }, + "bench_absolute_vo_error": { + "value": 9.940919230566614e-06, + "case": "duty_1" + }, + "bench_convergence_ohm": { + "value": 9.703032875924e-07, + "case": "ccm_reject" + }, + "bench_energy_residual_w": { + "value": 2.0323409635715165e-06, + "case": "unequal_switches" + }, + "numeric_energy_residual_w": { + "value": 5.506762927598441e-11, + "case": "cf_2" + }, + "analysis_relative_req_difference": { + "value": 3.772370049359708e-05, + "case": "unequal_symmetric_duty" + }, + "analysis_output_difference_v": { + "value": 3.385607068295826e-05, + "case": "unequal_symmetric_duty" + } + }, + "sp2": { + "cases": 20, + "bench_relative_req_error": { + "value": 4.761822107179903e-05, + "case": "io_1" + }, + "bench_absolute_vo_error": { + "value": 3.458280290802307e-06, + "case": "fs_1" + }, + "bench_convergence_ohm": { + "value": 2.689999308760904e-06, + "case": "co_1" + }, + "bench_energy_residual_w": { + "value": 0.0004411606570880663, + "case": "fs_1" + }, + "numeric_energy_residual_w": { + "value": 4.447195533362376e-07, + "case": "fs_1" + }, + "analysis_relative_req_difference": { + "value": 0.15266292141261317, + "case": "fs_1" + }, + "analysis_output_difference_v": { + "value": 0.09440669609019381, + "case": "fs_1" + }, + "clamped_relative_req_error": { + "value": 0.00019448670000654644, + "case": "fs_1" + }, + "stiff_analysis_relative_req_error": { + "value": 1.0491368788168032e-06, + "case": "ssl_limit" + } + }, + "rsc2": { + "cases": 27, + "bench_relative_req_error": { + "value": 0.00044707001744093144, + "case": "weak_tuned" + }, + "bench_absolute_vo_error": { + "value": 6.7699519501474015e-06, + "case": "cf_1" + }, + "bench_convergence_ohm": { + "value": 2.2274308092401496e-05, + "case": "cf_1" + }, + "bench_energy_residual_w": { + "value": 2.7397526158477866e-05, + "case": "io_2" + }, + "numeric_energy_residual_w": { + "value": 8.59941517300511e-09, + "case": "overdamped_math" + }, + "analysis_relative_req_difference": { + "value": 0.06154319455331281, + "case": "co_1" + }, + "analysis_output_difference_v": { + "value": 0.001725527723591025, + "case": "cf_1" + }, + "clamped_relative_req_error": { + "value": 3.43617421874054e-05, + "case": "width_split_equal" + }, + "stiff_analysis_relative_req_error": { + "value": 1.0447304132910062e-09, + "case": "fs_1" + } + } +} \ No newline at end of file diff --git a/docs/topology/2to1_buck_stacked/evidence/browser.json b/docs/topology/2to1_buck_stacked/evidence/browser.json new file mode 100644 index 0000000000000000000000000000000000000000..f21fe8b08fb8f0768a408e89116374388664c95e --- /dev/null +++ b/docs/topology/2to1_buck_stacked/evidence/browser.json @@ -0,0 +1,242 @@ +{ + "analysis": { + "controls": { + "utilization": ".5", + "die_mm2": "1.5", + "ron_area_mohm_mm2": "1.1", + "vout": "3.2", + "io": "1.25", + "fs_mhz": "2.4", + "cap_uf": "44", + "si_l_nh": "1180", + "si_coupling": ".56", + "si_duty": ".61", + "rc_mohm": "6", + "rl_mohm": "5" + }, + "losses": { + "fet": 0.018274235898271443, + "cap": 0.000024274633725940832, + "ind": 0.003940303911711195, + "gate": 0.0019181212561983475, + "coss": 0.0006556765090909092 + }, + "efficiency": 0.9898425425204165, + "deviceCount": 8 + }, + "simulator": { + "edited": { + "run": "ea153c8017214ebca997f4bbf25a4c1a", + "settings": { + "vin": "3.12", + "load": "1.24", + "fs": "2.25", + "lt": "1150", + "coupling": ".57", + "dcr": "5.1", + "rs": "9", + "rslow": "15", + "gatecap": "29", + "coss": "12", + "cout": "44", + "esr": "5.5", + "stop": "110", + "step": "750" + }, + "metrics": { + "value": null, + "status": "passed", + "message": "", + "deck": "physical_design.cir", + "waveform": "physical_design_waveform.csv", + "deck_sha256": "dad1e3d29c8156095d53a1178c168dfeef1316ebc4282f22809e7444fa2d0f35", + "nominal_vout_v": 1.548070447394674, + "ideal_vout_v": 1.548070447394674, + "ideal_gain": 0.4961764254470109, + "vin_v": 3.12, + "target_vout_v": 1.53, + "analytical_vout_v": 1.53, + "analytical_gain": 0.49038461538461536, + "simulated_gain": 0.49038525452589316, + "target_error_v": 0.0000019941207867191224, + "operating_point": { + "schema_version": 1, + "nominal_ratio": 2, + "inputs": { + "input_voltage_v": 3.12, + "load": { + "kind": "current", + "value": 1.24 + }, + "switching_frequency_hz": 2250000, + "mode": "output_voltage", + "target_output_v": 1.53 + }, + "derived": { + "applied_duty": 0.4961764254470109, + "ideal_output_voltage_v": 1.548070447394674, + "ideal_gain": 0.4961764254470109, + "ideal_operating_ratio": 2.015412157276696, + "analytical_output_voltage_v": 1.53, + "loaded_gain": 0.49038461538461536, + "operating_ratio": 2.03921568627451, + "conduction_mode": "positive_current_ccm" + }, + "range": { + "duty": { + "min": 0.25, + "max": 0.75 + }, + "conduction_modes": [ + "positive_current_ccm" + ], + "loaded_voltage_v": { + "min": 0.7600980000000002, + "max": 2.3238180000000006 + } + }, + "solver": { + "status": "resolved", + "valid": true, + "diagnostics": [] + }, + "measurement": { + "output_voltage_v": 1.5300019941207867, + "gain": 0.49038525452589316, + "operating_ratio": 2.039213028472491 + } + }, + "stop_us": 109.77777777777777, + "max_step_ps": 750, + "window_start_cycles": 241.826795, + "window_stop_cycles": 245.826795, + "vout_v": 1.5300019941207867, + "iout_a": 1.24, + "iin_a": 0.61531573502324, + "input_w": 1.9200478357384068, + "electrical_input_w": 1.9197850932725093, + "delivered_w": 1.8972024727097756, + "stage_w": 0.0228453630286312, + "supplemental_gate_w": 0.0012685368412732009, + "coss_w": 0.00026274246589745126, + "gate_drive_v": 1.56, + "stage_efficiency": 0.9881016698629046, + "efficiency_with_gate": 0.9874492820578386, + "switch_w": [ + 0.001731450427558176, + 0.0017314504275581825, + 0.0029273181100958195, + 0.0029273181100958195, + 0.0017310186699023215, + 0.0017310186699023198, + 0.0029265873948264034, + 0.0029265873948264034 + ], + "esr_w": [ + 5.218069939160327e-8 + ], + "dcr_w": [ + 0.0019764422891168656, + 0.001975949183255344 + ], + "storage_w": 0.0000016856390779655915, + "balance_w": -0.000004257934181265196, + "resistance_power_ohm": 0.014857806340160769, + "resistance_droop_ohm": 0.014571333285392972, + "ripple_vpp": 0.00005868304306799743, + "duty": 0.4961764254470109, + "measured_duty": [ + 0.49617642544702895, + 0.49617642544708307 + ], + "winding_average_a": [ + 0.6200394746357759, + 0.6199615093272572 + ], + "winding_rms_a": [ + 0.6225252635422963, + 0.6224476012682332 + ], + "winding_voltage_peak_v": [ + 1.577966157209343, + 1.577967969800907 + ], + "winding_min_a": [ + 0.5219193478375418, + 0.5218412433449993 + ], + "winding_ripple_a": [ + 0.1963158339917308, + 0.1963160229724885 + ], + "winding_sum_ripple_a": 0.010663416221979638, + "winding_delta_ripple_a": 0.3819915004426704, + "winding_voltage_mean_v": [ + -0.0000028058149682428655, + -5.333717839772386e-7 + ], + "switch_peak_v": [ + 1.570772495601687, + 1.570772495601687, + 1.55530259719545, + 1.55530259719545, + 1.570771326869518, + 1.570771326869517, + 1.555303300116892, + 1.555303300116891 + ], + "output_cap_rms_a": 0.0030801623154279407, + "output_cap_average_a": 9.839629561883076e-7, + "gate_overlap_fraction": [ + 0, + 0 + ], + "window_drift_v": 2.921751951490137e-8, + "window_drift_w": 0.0000011835857863934374 + } + }, + "sweep": { + "run": "e0658cce48c24b05a8982343376ac9f1", + "rows": [ + { + "duty": 0.475, + "vout": 1.4639125507001383, + "status": "passed" + }, + { + "duty": 0.4875, + "vout": 1.5029112624462917, + "status": "passed" + }, + { + "duty": 0.5, + "vout": 1.5419081960398158, + "status": "passed" + }, + { + "duty": 0.5125, + "vout": 1.5809086248649153, + "status": "passed" + }, + { + "duty": 0.525, + "vout": 1.6199069273546736, + "status": "passed" + } + ] + } + }, + "reload": { + "versioned": [ + "/pe.js", + "/gallery.js", + "/compare/index.html", + "/compare/buck-stacked.js", + "/compare/engine.js", + "/compare/technology.js", + "/compare/recommend.js", + "/compare/scoreboard.js", + "/compare/app.js" + ] + } +} diff --git a/docs/topology/2to1_buck_stacked/evidence/cache.json b/docs/topology/2to1_buck_stacked/evidence/cache.json new file mode 100644 index 0000000000000000000000000000000000000000..ebc3e3838d1b782402d38ec39b3223eae42401fb --- /dev/null +++ b/docs/topology/2to1_buck_stacked/evidence/cache.json @@ -0,0 +1,61 @@ +{ + "currentId": "buck_stacked", + "previousBuildCards": 9, + "currentCards": 10, + "assets": [ + { + "path": "/pe.js", + "url": "http://127.0.0.1:8765/pe.js?v=buck-stacked", + "cacheControl": "no-store" + }, + { + "path": "/gallery.js", + "url": "http://127.0.0.1:8765/gallery.js?v=buck-stacked", + "cacheControl": "no-store" + }, + { + "path": "/compare/app.js", + "url": "http://127.0.0.1:8765/compare/app.js?v=buck-stacked", + "cacheControl": "no-store" + }, + { + "path": "/compare/style.css", + "url": "http://127.0.0.1:8765/compare/style.css?v=operating-conditions" + }, + { + "path": "/compare/models-data.json", + "url": "http://127.0.0.1:8765/compare/models-data.json", + "cacheControl": "no-store" + }, + { + "path": "/compare/switched-inductor.js", + "url": "http://127.0.0.1:8765/compare/switched-inductor.js?v=operating-conditions" + }, + { + "path": "/compare/operating-point.js", + "url": "http://127.0.0.1:8765/compare/operating-point.js?v=operating-conditions" + }, + { + "path": "/compare/operating-conditions.json", + "url": "http://127.0.0.1:8765/compare/operating-conditions.json", + "cacheControl": "no-store" + }, + { + "path": "/compare/buck-stacked.js", + "url": "http://127.0.0.1:8765/compare/buck-stacked.js?v=buck-stacked", + "cacheControl": "no-store" + }, + { + "path": "/compare/engine.js", + "url": "http://127.0.0.1:8765/compare/engine.js?v=buck-stacked", + "cacheControl": "no-store" + }, + { + "path": "/compare/technology.js", + "url": "http://127.0.0.1:8765/compare/technology.js?v=buck-stacked", + "cacheControl": "no-store" + } + ], + "normalReload": true, + "freshContext": true +} diff --git a/docs/topology/2to1_buck_stacked/evidence/coss-browser.json b/docs/topology/2to1_buck_stacked/evidence/coss-browser.json new file mode 100644 index 0000000000000000000000000000000000000000..2ae0427a1d92aaac5de84dc4c459edcd6de13b2f --- /dev/null +++ b/docs/topology/2to1_buck_stacked/evidence/coss-browser.json @@ -0,0 +1,979 @@ +{ + "nominal": { + "payload": { + "topologies": [ + "buck_stacked" + ], + "voltage_mode": "duty_cycle", + "input_voltage_v": 3, + "output_current_a": 1, + "switching_frequency_mhz": 2, + "duty": 0.5, + "inductance_nh": 1000, + "coupling": 0.6, + "dcr_mohm": 4, + "switch_ron_mohm": 12, + "low_ron_mohm": null, + "gate_cap_pf": 25, + "switch_coff_pf": 10, + "output_cap_uf": 47, + "output_esr_mohm": 5, + "stop_us": null, + "max_step_ps": null + }, + "result": { + "run_id": "7b7b2ff4322d4dc1a18c59c14350f5aa", + "settings": { + "input_voltage_v": 3, + "output_current_a": 1, + "switching_frequency_mhz": 2, + "duty": 0.5, + "inductance_nh": 1000, + "coupling": 0.6, + "dcr_mohm": 4, + "switch_ron_mohm": 12, + "low_ron_mohm": null, + "gate_cap_pf": 25, + "switch_coff_pf": 10, + "output_cap_uf": 47, + "output_esr_mohm": 5, + "stop_us": null, + "max_step_ps": null, + "voltage_mode": "duty_cycle", + "topologies": [ + "buck_stacked" + ], + "sweep": null + }, + "metrics": { + "value": null, + "status": "passed", + "message": "", + "deck": "physical_design.cir", + "waveform": "physical_design_waveform.csv", + "deck_sha256": "77bdc1dedd8eccf19dbab9df9920758ffce3ff7c4a6f75d13f3860cfcd57f143", + "nominal_vout_v": 1.5, + "ideal_vout_v": 1.5, + "ideal_gain": 0.5, + "vin_v": 3, + "target_vout_v": null, + "analytical_vout_v": 1.486, + "analytical_gain": 0.49533333333333335, + "simulated_gain": 0.49533333333341184, + "target_error_v": null, + "operating_point": { + "schema_version": 1, + "nominal_ratio": 2, + "inputs": { + "input_voltage_v": 3, + "load": { + "kind": "current", + "value": 1 + }, + "switching_frequency_hz": 2000000, + "mode": "duty_cycle", + "duty": 0.5 + }, + "derived": { + "applied_duty": 0.5, + "ideal_output_voltage_v": 1.5, + "ideal_gain": 0.5, + "ideal_operating_ratio": 2, + "analytical_output_voltage_v": 1.486, + "loaded_gain": 0.49533333333333335, + "operating_ratio": 2.018842530282638, + "conduction_mode": "positive_current_ccm" + }, + "range": { + "duty": { + "min": 0.25, + "max": 0.75 + }, + "conduction_modes": [ + "positive_current_ccm" + ], + "loaded_voltage_v": { + "min": 0.736, + "max": 2.236 + } + }, + "solver": { + "status": "resolved", + "valid": true, + "diagnostics": [] + }, + "measurement": { + "output_voltage_v": 1.4860000000002356, + "gain": 0.49533333333341184, + "operating_ratio": 2.018842530282318 + } + }, + "stop_us": 126.49999999999999, + "max_step_ps": 1041.6666666666667, + "window_start_cycles": 247.826795, + "window_stop_cycles": 251.826795, + "vout_v": 1.4860000000002356, + "iout_a": 1, + "iin_a": 0.5000854395572357, + "input_w": 1.5004360960935776, + "electrical_input_w": 1.5002563186717073, + "delivered_w": 1.4860000000002356, + "stage_w": 0.014436096093341965, + "supplemental_gate_w": 0.0008987210708019572, + "coss_w": 0.00017977742187026314, + "gate_drive_v": 1.5, + "stage_efficiency": 0.9903787331357018, + "efficiency_with_gate": 0.9897858778809197, + "efficiency_includes_coss": true, + "switch_w": [ + 0.0015280273225401928, + 0.0015280273225401896, + 0.001527002048296278, + 0.001527002048296278, + 0.0015279335512081813, + 0.0015279335512081815, + 0.001526908275990403, + 0.001526908275990403 + ], + "esr_w": [ + 3.882432009924975e-25 + ], + "dcr_w": [ + 0.0010183423736213496, + 0.0010182798590761914 + ], + "storage_w": 1.718802983513399e-8, + "balance_w": -6.314532578050562e-8, + "resistance_power_ohm": 0.014436096093341965, + "resistance_droop_ohm": 0.013999999999764423, + "ripple_vpp": 2.5979218776228663e-14, + "duty": 0.5, + "measured_duty": [ + 0.49999999999988076, + 0.5000000000001192 + ], + "winding_average_a": [ + 0.5000078143138162, + 0.4999921856775274 + ], + "winding_rms_a": [ + 0.5045647564043072, + 0.5045492689213293 + ], + "winding_voltage_peak_v": [ + 1.503281425519005, + 1.503281425519058 + ], + "winding_min_a": [ + 0.382821263489706, + 0.3828056221322905 + ], + "winding_ripple_a": [ + 0.2343731143693255, + 0.23437311436936847 + ], + "winding_sum_ripple_a": 1.270095140171179e-13, + "winding_delta_ripple_a": 0.468746228738694, + "winding_voltage_mean_v": [ + -2.374877125839877e-7, + 2.3748777207481734e-7 + ], + "switch_peak_v": [ + 1.507406052169711, + 1.507406052169711, + 1.495405864523097, + 1.495405864523097, + 1.507405864522849, + 1.507405864522849, + 1.495406052169959, + 1.495406052169959 + ], + "output_cap_rms_a": 8.81184658278272e-12, + "output_cap_average_a": -8.81147874153936e-12, + "gate_overlap_fraction": [ + 0, + 0 + ], + "window_drift_v": 6.8833827526759706e-15, + "window_drift_w": 6.62651282803961e-10 + } + }, + "waveform_columns": [ + "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", + "il_a_a", + "il_b_a", + "vl_a_v", + "vl_b_v", + "iq1_a", + "iq2_a", + "iq3_a", + "iq4_a", + "vcap_v", + "vds_m13_v", + "vds_m15_v", + "vds_m11_v", + "vds_m9_v", + "vds_m14_v", + "vds_m16_v", + "vds_m12_v", + "vds_m10_v", + "gate_fixture_power_w", + "coss_discharge_fixture_power_w", + "icap_a", + "output_current_a", + "input_power_w", + "delivered_power_w", + "winding_sum_a", + "winding_delta_a" + ] + }, + "positive": { + "analysis": { + "coss_pf": 26, + "coss_w": 0.000468, + "efficiency": 0.9892588818338787, + "coss_included": true + }, + "payload": { + "topologies": [ + "buck_stacked" + ], + "voltage_mode": "duty_cycle", + "input_voltage_v": 3, + "output_current_a": 1, + "switching_frequency_mhz": 2, + "duty": 0.5, + "inductance_nh": 1000, + "coupling": 0.6, + "dcr_mohm": 4, + "switch_ron_mohm": 12.040000000000001, + "low_ron_mohm": 12.040000000000001, + "gate_cap_pf": 38.03030303030303, + "switch_coff_pf": 26, + "output_cap_uf": 47, + "output_esr_mohm": 5, + "stop_us": null, + "max_step_ps": null + }, + "result": { + "run_id": "29af8867e3a84a3fb1555c5e0d96559e", + "settings": { + "input_voltage_v": 3, + "output_current_a": 1, + "switching_frequency_mhz": 2, + "duty": 0.5, + "inductance_nh": 1000, + "coupling": 0.6, + "dcr_mohm": 4, + "switch_ron_mohm": 12.040000000000001, + "low_ron_mohm": 12.040000000000001, + "gate_cap_pf": 38.03030303030303, + "switch_coff_pf": 26, + "output_cap_uf": 47, + "output_esr_mohm": 5, + "stop_us": null, + "max_step_ps": null, + "voltage_mode": "duty_cycle", + "topologies": [ + "buck_stacked" + ], + "sweep": null + }, + "metrics": { + "value": null, + "status": "passed", + "message": "", + "deck": "physical_design.cir", + "waveform": "physical_design_waveform.csv", + "deck_sha256": "37887d3d08acae94bc9e56feda72c1a484674e540ce8bb5e525a65f641b931af", + "nominal_vout_v": 1.5, + "ideal_vout_v": 1.5, + "ideal_gain": 0.5, + "vin_v": 3, + "target_vout_v": null, + "analytical_vout_v": 1.48596, + "analytical_gain": 0.49532, + "simulated_gain": 0.49532000000009324, + "target_error_v": null, + "operating_point": { + "schema_version": 1, + "nominal_ratio": 2, + "inputs": { + "input_voltage_v": 3, + "load": { + "kind": "current", + "value": 1 + }, + "switching_frequency_hz": 2000000, + "mode": "duty_cycle", + "duty": 0.5 + }, + "derived": { + "applied_duty": 0.5, + "ideal_output_voltage_v": 1.5, + "ideal_gain": 0.5, + "ideal_operating_ratio": 2, + "analytical_output_voltage_v": 1.48596, + "loaded_gain": 0.49532, + "operating_ratio": 2.018896874747638, + "conduction_mode": "positive_current_ccm" + }, + "range": { + "duty": { + "min": 0.25, + "max": 0.75 + }, + "conduction_modes": [ + "positive_current_ccm" + ], + "loaded_voltage_v": { + "min": 0.73596, + "max": 2.23596 + } + }, + "solver": { + "status": "resolved", + "valid": true, + "diagnostics": [] + }, + "measurement": { + "output_voltage_v": 1.4859600000002797, + "gain": 0.49532000000009324, + "operating_ratio": 2.018896874747258 + } + }, + "stop_us": 126.49999999999999, + "max_step_ps": 1041.6666666666667, + "window_start_cycles": 247.826795, + "window_stop_cycles": 251.826795, + "vout_v": 1.4859600000002797, + "iout_a": 1, + "iin_a": 0.50008568334754, + "input_w": 1.5007248643415778, + "electrical_input_w": 1.50025705004262, + "delivered_w": 1.4859600000002797, + "stage_w": 0.01476486434129816, + "supplemental_gate_w": 0.0013670390423962055, + "coss_w": 0.00046781429895788535, + "gate_drive_v": 1.5, + "stage_efficiency": 0.9901615114854674, + "efficiency_with_gate": 0.9892603752491099, + "efficiency_includes_coss": true, + "switch_w": [ + 0.0015331191309726957, + 0.001533119130972695, + 0.0015320874904126787, + 0.0015320874904126787, + 0.0015330311892458313, + 0.0015330311892458271, + 0.0015319995746884184, + 0.0015319995746884184 + ], + "esr_w": [ + 4.694586506110313e-25 + ], + "dcr_w": [ + 0.0010183403227301863, + 0.0010182818983286344 + ], + "storage_w": 1.6105487847225102e-8, + "balance_w": -6.305484563586162e-8, + "resistance_power_ohm": 0.01476486434129816, + "resistance_droop_ohm": 0.014039999999720276, + "ripple_vpp": 4.39648317751562e-14, + "duty": 0.5, + "measured_duty": [ + 0.4999999999998195, + 0.5000000000001805 + ], + "winding_average_a": [ + 0.5000073030454115, + 0.4999926969450232 + ], + "winding_rms_a": [ + 0.5045642483198212, + 0.5045497741374566 + ], + "winding_voltage_peak_v": [ + 1.503290786457803, + 1.503290786457772 + ], + "winding_min_a": [ + 0.3828207587535012, + 0.3828061407146479 + ], + "winding_ripple_a": [ + 0.2343731005222961, + 0.23437310052227722 + ], + "winding_sum_ripple_a": 5.4067861299245124e-14, + "winding_delta_ripple_a": 0.4687462010445733, + "winding_voltage_mean_v": [ + -2.2253366647571375e-7, + 2.2253366625072062e-7 + ], + "switch_peak_v": [ + 1.507430732766297, + 1.507430732766297, + 1.495390556811717, + 1.495390556811716, + 1.507430556811456, + 1.507430556811456, + 1.495390732766557, + 1.495390732766557 + ], + "output_cap_rms_a": 9.689774513486177e-12, + "output_cap_average_a": -9.689071599288718e-12, + "gate_overlap_fraction": [ + 0, + 0 + ], + "window_drift_v": 7.105427357601002e-15, + "window_drift_w": 6.227716311396625e-10 + } + }, + "waveform_columns": [ + "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", + "il_a_a", + "il_b_a", + "vl_a_v", + "vl_b_v", + "iq1_a", + "iq2_a", + "iq3_a", + "iq4_a", + "vcap_v", + "vds_m13_v", + "vds_m15_v", + "vds_m11_v", + "vds_m9_v", + "vds_m14_v", + "vds_m16_v", + "vds_m12_v", + "vds_m10_v", + "gate_fixture_power_w", + "coss_discharge_fixture_power_w", + "icap_a", + "output_current_a", + "input_power_w", + "delivered_power_w", + "winding_sum_a", + "winding_delta_a" + ] + }, + "blank": { + "analysis": { + "coss_pf": null, + "coss_w": null, + "efficiency": 0.9895671963569225, + "coss_included": false + }, + "payload": { + "topologies": [ + "buck_stacked" + ], + "voltage_mode": "duty_cycle", + "input_voltage_v": 3, + "output_current_a": 1, + "switching_frequency_mhz": 2, + "duty": 0.5, + "inductance_nh": 1000, + "coupling": 0.6, + "dcr_mohm": 4, + "switch_ron_mohm": 12.040000000000001, + "low_ron_mohm": 12.040000000000001, + "gate_cap_pf": 38.03030303030303, + "switch_coff_pf": null, + "output_cap_uf": 47, + "output_esr_mohm": 5, + "stop_us": null, + "max_step_ps": null, + "sweep": { + "axis": "duty", + "start": 0.475, + "stop": 0.525, + "points": 2 + } + }, + "result": { + "run_id": "660c459177594b698e4d25f3fe1139a4", + "settings": { + "input_voltage_v": 3, + "output_current_a": 1, + "switching_frequency_mhz": 2, + "duty": 0.5, + "inductance_nh": 1000, + "coupling": 0.6, + "dcr_mohm": 4, + "switch_ron_mohm": 12.040000000000001, + "low_ron_mohm": 12.040000000000001, + "gate_cap_pf": 38.03030303030303, + "switch_coff_pf": null, + "output_cap_uf": 47, + "output_esr_mohm": 5, + "stop_us": null, + "max_step_ps": null, + "voltage_mode": "duty_cycle", + "topologies": [ + "buck_stacked" + ], + "sweep": { + "axis": "duty", + "start": 0.475, + "stop": 0.525, + "points": 2 + } + }, + "metrics": { + "value": null, + "status": "passed", + "message": "", + "deck": "physical_design.cir", + "waveform": "physical_design_waveform.csv", + "deck_sha256": "848000094a580f753a632f6d4bfa68e786ba9513f8ade887ef1a5a21ebbaf488", + "nominal_vout_v": 1.5, + "ideal_vout_v": 1.5, + "ideal_gain": 0.5, + "vin_v": 3, + "target_vout_v": null, + "analytical_vout_v": 1.48596, + "analytical_gain": 0.49532, + "simulated_gain": 0.49532000000007587, + "target_error_v": null, + "operating_point": { + "schema_version": 1, + "nominal_ratio": 2, + "inputs": { + "input_voltage_v": 3, + "load": { + "kind": "current", + "value": 1 + }, + "switching_frequency_hz": 2000000, + "mode": "duty_cycle", + "duty": 0.5 + }, + "derived": { + "applied_duty": 0.5, + "ideal_output_voltage_v": 1.5, + "ideal_gain": 0.5, + "ideal_operating_ratio": 2, + "analytical_output_voltage_v": 1.48596, + "loaded_gain": 0.49532, + "operating_ratio": 2.018896874747638, + "conduction_mode": "positive_current_ccm" + }, + "range": { + "duty": { + "min": 0.25, + "max": 0.75 + }, + "conduction_modes": [ + "positive_current_ccm" + ], + "loaded_voltage_v": { + "min": 0.73596, + "max": 2.23596 + } + }, + "solver": { + "status": "resolved", + "valid": true, + "diagnostics": [] + }, + "measurement": { + "output_voltage_v": 1.4859600000002275, + "gain": 0.49532000000007587, + "operating_ratio": 2.0188968747473286 + } + }, + "stop_us": 126.49999999999999, + "max_step_ps": 1041.6666666666667, + "window_start_cycles": 247.826795, + "window_stop_cycles": 251.826795, + "vout_v": 1.4859600000002275, + "iout_a": 1, + "iin_a": 0.5000856827065264, + "input_w": 1.5002570481195794, + "electrical_input_w": 1.5002570481195794, + "delivered_w": 1.4859600000002275, + "stage_w": 0.01429704811935184, + "supplemental_gate_w": 0.0013667666552488868, + "coss_w": null, + "gate_drive_v": 1.5, + "stage_efficiency": 0.9904702676536186, + "efficiency_with_gate": 0.989568749096491, + "efficiency_includes_coss": false, + "switch_w": [ + 0.001533113827910972, + 0.0015331138279109698, + 0.0015320821941401147, + 0.0015320821941401147, + 0.00153303648620024, + 0.001533036486200241, + 0.0015320048803153464, + 0.0015320048803153464 + ], + "esr_w": [ + 2.8945267752046217e-25 + ], + "dcr_w": [ + 0.0010183368013564733, + 0.0010182854207808343 + ], + "storage_w": 1.4164677867049528e-8, + "balance_w": -6.304459668009768e-8, + "resistance_power_ohm": 0.01429704811935184, + "resistance_droop_ohm": 0.014039999999772457, + "ripple_vpp": 2.398081733190338e-14, + "duty": 0.5, + "measured_duty": [ + 0.4999999999998086, + 0.5000000000001914 + ], + "winding_average_a": [ + 0.5000064225682216, + 0.4999935774243123 + ], + "winding_rms_a": [ + 0.5045633759391563, + 0.5045506468088297 + ], + "winding_voltage_peak_v": [ + 1.50329076141758, + 1.50329076141763 + ], + "winding_min_a": [ + 0.3828198880701205, + 0.382807032422545 + ], + "winding_ripple_a": [ + 0.234373079499899, + 0.23437307949984554 + ], + "winding_sum_ripple_a": 7.771561172376096e-14, + "winding_delta_ripple_a": 0.46874615899974453, + "winding_voltage_mean_v": [ + -1.9570438230810508e-7, + 1.9570442741260953e-7 + ], + "switch_peak_v": [ + 1.507430722032988, + 1.507430722032988, + 1.495390567291985, + 1.495390567291985, + 1.50743056729175, + 1.50743056729175, + 1.495390722033223, + 1.495390722033222 + ], + "output_cap_rms_a": 7.60858301552217e-12, + "output_cap_average_a": -7.60816829210874e-12, + "gate_overlap_fraction": [ + 0, + 0 + ], + "window_drift_v": 1.4210854715202004e-14, + "window_drift_w": 5.476170628071486e-10 + } + }, + "waveform_columns": [ + "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", + "il_a_a", + "il_b_a", + "vl_a_v", + "vl_b_v", + "iq1_a", + "iq2_a", + "iq3_a", + "iq4_a", + "vcap_v", + "vds_m13_v", + "vds_m15_v", + "vds_m11_v", + "vds_m9_v", + "vds_m14_v", + "vds_m16_v", + "vds_m12_v", + "vds_m10_v", + "gate_fixture_power_w", + "icap_a", + "output_current_a", + "input_power_w", + "delivered_power_w", + "winding_sum_a", + "winding_delta_a" + ], + "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" + }, + "zero": { + "analysis": { + "coss_pf": 0, + "coss_w": 0, + "efficiency": 0.9895671963569225, + "coss_included": true + }, + "payload": { + "topologies": [ + "buck_stacked" + ], + "voltage_mode": "duty_cycle", + "input_voltage_v": 3, + "output_current_a": 1, + "switching_frequency_mhz": 2, + "duty": 0.5, + "inductance_nh": 1000, + "coupling": 0.6, + "dcr_mohm": 4, + "switch_ron_mohm": 12.040000000000001, + "low_ron_mohm": 12.040000000000001, + "gate_cap_pf": 38.03030303030303, + "switch_coff_pf": 0, + "output_cap_uf": 47, + "output_esr_mohm": 5, + "stop_us": null, + "max_step_ps": null + }, + "result": { + "run_id": "b095cfd5c7804fef8cf1a3b965931bc9", + "settings": { + "input_voltage_v": 3, + "output_current_a": 1, + "switching_frequency_mhz": 2, + "duty": 0.5, + "inductance_nh": 1000, + "coupling": 0.6, + "dcr_mohm": 4, + "switch_ron_mohm": 12.040000000000001, + "low_ron_mohm": 12.040000000000001, + "gate_cap_pf": 38.03030303030303, + "switch_coff_pf": 0, + "output_cap_uf": 47, + "output_esr_mohm": 5, + "stop_us": null, + "max_step_ps": null, + "voltage_mode": "duty_cycle", + "topologies": [ + "buck_stacked" + ], + "sweep": null + }, + "metrics": { + "value": null, + "status": "passed", + "message": "", + "deck": "physical_design.cir", + "waveform": "physical_design_waveform.csv", + "deck_sha256": "9b77576c154fcb41c19d8ff767b85aff78c2ddb3e1b2fabd23b535f10c84004f", + "nominal_vout_v": 1.5, + "ideal_vout_v": 1.5, + "ideal_gain": 0.5, + "vin_v": 3, + "target_vout_v": null, + "analytical_vout_v": 1.48596, + "analytical_gain": 0.49532, + "simulated_gain": 0.49532000000008214, + "target_error_v": null, + "operating_point": { + "schema_version": 1, + "nominal_ratio": 2, + "inputs": { + "input_voltage_v": 3, + "load": { + "kind": "current", + "value": 1 + }, + "switching_frequency_hz": 2000000, + "mode": "duty_cycle", + "duty": 0.5 + }, + "derived": { + "applied_duty": 0.5, + "ideal_output_voltage_v": 1.5, + "ideal_gain": 0.5, + "ideal_operating_ratio": 2, + "analytical_output_voltage_v": 1.48596, + "loaded_gain": 0.49532, + "operating_ratio": 2.018896874747638, + "conduction_mode": "positive_current_ccm" + }, + "range": { + "duty": { + "min": 0.25, + "max": 0.75 + }, + "conduction_modes": [ + "positive_current_ccm" + ], + "loaded_voltage_v": { + "min": 0.73596, + "max": 2.23596 + } + }, + "solver": { + "status": "resolved", + "valid": true, + "diagnostics": [] + }, + "measurement": { + "output_voltage_v": 1.4859600000002464, + "gain": 0.49532000000008214, + "operating_ratio": 2.0188968747473033 + } + }, + "stop_us": 126.49999999999999, + "max_step_ps": 1041.6666666666667, + "window_start_cycles": 247.826795, + "window_stop_cycles": 251.826795, + "vout_v": 1.4859600000002464, + "iout_a": 1, + "iin_a": 0.5000856827044818, + "input_w": 1.5002570481134456, + "electrical_input_w": 1.5002570481134456, + "delivered_w": 1.4859600000002464, + "stage_w": 0.014297048113199207, + "supplemental_gate_w": 0.0013667666552562015, + "coss_w": 0, + "gate_drive_v": 1.5, + "stage_efficiency": 0.9904702676576806, + "efficiency_with_gate": 0.9895687491005408, + "efficiency_includes_coss": true, + "switch_w": [ + 0.0015331138278973336, + 0.001533113827897334, + 0.00153208219412607, + 0.00153208219412607, + 0.0015330364861892538, + 0.0015330364861892562, + 0.0015320048803041909, + 0.0015320048803041909 + ], + "esr_w": [ + 6.830919726691321e-25 + ], + "dcr_w": [ + 0.0010183368013474297, + 0.001018285420773509 + ], + "storage_w": 1.4163868103551953e-8, + "balance_w": -6.304982353398662e-8, + "resistance_power_ohm": 0.014297048113199207, + "resistance_droop_ohm": 0.014039999999753583, + "ripple_vpp": 2.3092638912203256e-14, + "duty": 0.5, + "measured_duty": [ + 0.4999999999998086, + 0.5000000000001914 + ], + "winding_average_a": [ + 0.5000064225659601, + 0.49999357742248246 + ], + "winding_rms_a": [ + 0.5045633759369159, + 0.5045506468070153 + ], + "winding_voltage_peak_v": [ + 1.50329076141754, + 1.503290761417656 + ], + "winding_min_a": [ + 0.3828198880678799, + 0.3828070324207022 + ], + "winding_ripple_a": [ + 0.2343730794998009, + 0.2343730794999333 + ], + "winding_sum_ripple_a": 2.731148640577885e-13, + "winding_delta_ripple_a": 0.4687461589997342, + "winding_voltage_mean_v": [ + -1.9570433761388223e-7, + 1.95704460023378e-7 + ], + "switch_peak_v": [ + 1.50743072203296, + 1.50743072203296, + 1.495390567292012, + 1.495390567292012, + 1.507430567291729, + 1.507430567291729, + 1.495390722033245, + 1.495390722033244 + ], + "output_cap_rms_a": 1.1688387165636943e-11, + "output_cap_average_a": -1.1687825260698341e-11, + "gate_overlap_fraction": [ + 0, + 0 + ], + "window_drift_v": 2.353672812205332e-14, + "window_drift_w": 5.473068664940683e-10 + } + }, + "waveform_columns": [ + "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", + "il_a_a", + "il_b_a", + "vl_a_v", + "vl_b_v", + "iq1_a", + "iq2_a", + "iq3_a", + "iq4_a", + "vcap_v", + "vds_m13_v", + "vds_m15_v", + "vds_m11_v", + "vds_m9_v", + "vds_m14_v", + "vds_m16_v", + "vds_m12_v", + "vds_m10_v", + "gate_fixture_power_w", + "coss_discharge_fixture_power_w", + "icap_a", + "output_current_a", + "input_power_w", + "delivered_power_w", + "winding_sum_a", + "winding_delta_a" + ] + } +} diff --git a/docs/topology/2to1_buck_stacked/evidence/coss-cache.json b/docs/topology/2to1_buck_stacked/evidence/coss-cache.json new file mode 100644 index 0000000000000000000000000000000000000000..eef50c7d3e9eb02568a14bf67246601e0b70394b --- /dev/null +++ b/docs/topology/2to1_buck_stacked/evidence/coss-cache.json @@ -0,0 +1,62 @@ +{ + "currentId": "buck_stacked", + "previousBuildCards": 10, + "currentCards": 10, + "assets": [ + { + "path": "/pe.js", + "url": "http://127.0.0.1:8765/pe.js?v=buck-stacked-coss", + "cacheControl": "no-store" + }, + { + "path": "/gallery.js", + "url": "http://127.0.0.1:8765/gallery.js?v=buck-stacked-coss", + "cacheControl": "no-store" + }, + { + "path": "/compare/app.js", + "url": "http://127.0.0.1:8765/compare/app.js?v=buck-stacked-coss", + "cacheControl": "no-store" + }, + { + "path": "/compare/style.css", + "url": "http://127.0.0.1:8765/compare/style.css?v=operating-conditions" + }, + { + "path": "/compare/models-data.json", + "url": "http://127.0.0.1:8765/compare/models-data.json", + "cacheControl": "no-store" + }, + { + "path": "/compare/switched-inductor.js", + "url": "http://127.0.0.1:8765/compare/switched-inductor.js?v=operating-conditions" + }, + { + "path": "/compare/operating-point.js", + "url": "http://127.0.0.1:8765/compare/operating-point.js?v=operating-conditions" + }, + { + "path": "/compare/operating-conditions.json", + "url": "http://127.0.0.1:8765/compare/operating-conditions.json", + "cacheControl": "no-store" + }, + { + "path": "/compare/buck-stacked.js", + "url": "http://127.0.0.1:8765/compare/buck-stacked.js?v=buck-stacked-coss", + "cacheControl": "no-store" + }, + { + "path": "/compare/engine.js", + "url": "http://127.0.0.1:8765/compare/engine.js?v=buck-stacked-coss", + "cacheControl": "no-store" + }, + { + "path": "/compare/technology.js", + "url": "http://127.0.0.1:8765/compare/technology.js?v=buck-stacked-coss", + "cacheControl": "no-store" + } + ], + "normalReload": true, + "freshContext": true, + "blankCossHandoff": true +} diff --git a/docs/topology/2to1_buck_stacked/evidence/coss-regressions.json b/docs/topology/2to1_buck_stacked/evidence/coss-regressions.json new file mode 100644 index 0000000000000000000000000000000000000000..9ec521ec15a82d82b5286db86d69860662541527 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/evidence/coss-regressions.json @@ -0,0 +1,290 @@ +{ + "date": "2026-11-30", + "audited_commit": "b7e5560", + "baselines": { + "validated-2to1-v1.0": "659f8088111bf639bdfe2e4236cc48a66af50f28", + "local-baseline-v1.0": "4cbae7715292e963c65e12e90d13699234ab26fe" + }, + "known_stacked_decks_identical": 30, + "packaged_analysis_tests_passed": 45, + "baseline_2to1": { + "matched": { + "si2": { + "cases": 33, + "bench_relative_req_error": { + "value": 0.0001262280412663852, + "case": "duty_4" + }, + "bench_absolute_vo_error": { + "value": 9.940919230566614e-06, + "case": "duty_1" + }, + "bench_convergence_ohm": { + "value": 9.703032875924e-07, + "case": "ccm_reject" + }, + "bench_energy_residual_w": { + "value": 2.0323409635715165e-06, + "case": "unequal_switches" + }, + "numeric_energy_residual_w": { + "value": 5.506762927598441e-11, + "case": "cf_2" + }, + "analysis_relative_req_difference": { + "value": 3.772370049359708e-05, + "case": "unequal_symmetric_duty" + }, + "analysis_output_difference_v": { + "value": 3.385607068295826e-05, + "case": "unequal_symmetric_duty" + } + }, + "sp2": { + "cases": 20, + "bench_relative_req_error": { + "value": 4.761822107179903e-05, + "case": "io_1" + }, + "bench_absolute_vo_error": { + "value": 3.458280290802307e-06, + "case": "fs_1" + }, + "bench_convergence_ohm": { + "value": 2.689999308760904e-06, + "case": "co_1" + }, + "bench_energy_residual_w": { + "value": 0.0004411606570880663, + "case": "fs_1" + }, + "numeric_energy_residual_w": { + "value": 4.447195533362376e-07, + "case": "fs_1" + }, + "analysis_relative_req_difference": { + "value": 0.15266292141261317, + "case": "fs_1" + }, + "analysis_output_difference_v": { + "value": 0.09440669609019381, + "case": "fs_1" + }, + "clamped_relative_req_error": { + "value": 0.00019448670000654644, + "case": "fs_1" + }, + "stiff_analysis_relative_req_error": { + "value": 1.0491368788168032e-06, + "case": "ssl_limit" + } + }, + "rsc2": { + "cases": 27, + "bench_relative_req_error": { + "value": 0.00044707001744093144, + "case": "weak_tuned" + }, + "bench_absolute_vo_error": { + "value": 6.7699519501474015e-06, + "case": "cf_1" + }, + "bench_convergence_ohm": { + "value": 2.2274308092401496e-05, + "case": "cf_1" + }, + "bench_energy_residual_w": { + "value": 2.7397526158477866e-05, + "case": "io_2" + }, + "numeric_energy_residual_w": { + "value": 8.59941517300511e-09, + "case": "overdamped_math" + }, + "analysis_relative_req_difference": { + "value": 0.06154319455331281, + "case": "co_1" + }, + "analysis_output_difference_v": { + "value": 0.001725527723591025, + "case": "cf_1" + }, + "clamped_relative_req_error": { + "value": 3.43617421874054e-05, + "case": "width_split_equal" + }, + "stiff_analysis_relative_req_error": { + "value": 1.0447304132910062e-09, + "case": "fs_1" + } + } + }, + "cold_starts": [ + { + "id": "si2", + "case": "nominal", + "errors": { + "baseline_voltage_v": 4.611609316640397e-09, + "baseline_resistance_ohm": 1.2890324189995805e-09, + "refinement_voltage_v": 4.027889133340068e-13, + "refinement_resistance_ohm": 3.605557406458071e-09 + } + }, + { + "id": "si2", + "case": "unequal_switches", + "errors": { + "baseline_voltage_v": 2.421202495161978e-06, + "baseline_resistance_ohm": 1.3946700029576764e-07, + "refinement_voltage_v": 4.966363553737807e-07, + "refinement_resistance_ohm": 1.3527678470112714e-07 + } + }, + { + "id": "sp2", + "case": "nominal", + "errors": { + "baseline_voltage_v": 1.9666076545021838e-08, + "baseline_resistance_ohm": 2.6735799091015533e-06, + "refinement_voltage_v": 8.432834288640834e-07, + "refinement_resistance_ohm": 1.320453879280481e-06 + } + }, + { + "id": "sp2", + "case": "fs_1", + "errors": { + "baseline_voltage_v": 2.6489895721404366e-08, + "baseline_resistance_ohm": 8.261655695118719e-07, + "refinement_voltage_v": 1.0837374647687525e-06, + "refinement_resistance_ohm": 1.7644583839571126e-06 + } + }, + { + "id": "rsc2", + "case": "nominal", + "errors": { + "baseline_voltage_v": 4.1622922886119795e-09, + "baseline_resistance_ohm": 5.441106242648486e-09, + "refinement_voltage_v": 3.1415094570164115e-06, + "refinement_resistance_ohm": 2.7725770391714977e-07 + } + }, + { + "id": "rsc2", + "case": "damped_tune", + "errors": { + "baseline_voltage_v": 5.544986692029852e-11, + "baseline_resistance_ohm": 1.9827707184449928e-10, + "refinement_voltage_v": 1.6516888017292786e-06, + "refinement_resistance_ohm": 8.188446290018081e-07 + } + } + ], + "analysis_chrome": { + "warm": false, + "conduction_efficiency_pct": [ + 93.33333333336213, + 0.6666666666666673, + null + ], + "comparison_csv": { + "Topology": "SP-SC 2:1", + "Target_ratio": "2", + "kFET_Rs": "0.6666666666666666", + "kCAP_Rc": "0.5", + "kIND_Rl": "0", + "kSSL_over_Cf_fs": "0.125", + "RFET_pu": "0.6666666666666666", + "RCAP_pu": "0.1111111111575", + "RIND_pu": "0", + "RSSL_pu": "0.6944444447325", + "Req_pu": "0.9742458406221695", + "RFSL_pu": "0.7777777778241666", + "RSSL_add_pu": "0.19646806279800288", + "Switching_loss_scope": "RFET_pu and RCAP_pu are FSL baselines. Physical finite-RC terms sum independently to Req. Separate gate and optional Coss.", + "rho_C": "0.222222222315", + "rho_L": "0.422222222398", + "rho_Q": "5.55555555786", + "Model_domain": "M = 0.5 only; finite output droop", + "SP2_RFET_fsl_pu": "0.6666666666666666", + "SP2_RCAP_fsl_pu": "0.1111111111575", + "SP2_R_finite_rc_increment_pu": "0.19646806279800288", + "SP2_RFET_finite_rc_pu": "0.8350678633406252", + "SP2_RCAP_finite_rc_pu": "0.13917797728154435" + }, + "design_csv": { + "Output_current_A": "1.1404833", + "FSL_MOSFET_W": "0.07804212942232389", + "FSL_capacitor_ESR_W": "0.013007021575788901", + "Finite_RC_increment_W": "0.022999178976380208", + "Physical_MOSFET_W": "0.09775571140090882", + "Physical_capacitor_ESR_W": "0.016292618573584175", + "Series_loss_W": "0.11404832997449299" + }, + "fresh_context": true + }, + "si2_chrome": "Chrome SI: gallery, design controls and exports, editable starter and exports, nominal and swept jobs, recovery, and handoff passed.", + "rsc2_chrome": [ + "Chrome editor verified Export SVG", + "Chrome editor verified Export Netlist", + "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" + ], + "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." + }, + "baseline_4to1": { + "simulator_chrome": [ + "Tag and live 4:1 measurements match for xfly6s", + "Tag and live 4:1 measurements match for xfly8s", + "Tag and live 4:1 measurements match for c3l", + "Tag and live XFLY6S 15-point sweep charts match", + "Chrome simultaneous timing and operating controls verified", + "Chrome verified fixed gain, input/load handoff, unavailable combinations, and error recovery" + ], + "analysis_chrome": [ + "XFLY6S baseline and live Chrome UI, controls, scoreboard values and all four exports match", + "SP-SC controls, loss accounting, optimum and droop-bound width, charts, comparison, exports, disclosure and local image-review checks passed", + "All other original 4:1 Analysis design exports match the tag in Chrome", + "Regular cache-enabled Chrome reload serves the rebuilt Analysis assets" + ], + "matching_xfly6s_sweep_points": 15, + "tagged_sweep_runs": [ + "20261130-120714-5296d732", + "20261130-120715-0c697247", + "20261130-120715-a247f927", + "20261130-120715-a93972c8", + "20261130-120716-36e81612", + "20261130-120716-bf044a08", + "20261130-120717-25ac6038", + "20261130-120717-328273b6", + "20261130-120717-e27e4c7c", + "20261130-120718-5ba981ce", + "20261130-120718-d9653e1b", + "20261130-120719-38045764", + "20261130-120719-502abfa8", + "20261130-120719-5b4f360f", + "20261130-120720-6884b6a5" + ], + "live_sweep_runs": [ + "20261130-120722-022ce702", + "20261130-120722-6feb110e", + "20261130-120723-9b9aab1f", + "20261130-120723-ce2bff86", + "20261130-120724-358f1128", + "20261130-120724-90cbac06", + "20261130-120725-39454f8d", + "20261130-120725-77c1a7a0", + "20261130-120725-cab58dea", + "20261130-120726-34c3467b", + "20261130-120726-eb7e653a", + "20261130-120727-18b9b440", + "20261130-120727-3a681ddb", + "20261130-120727-747692c8", + "20261130-120728-a06dded5" + ] + }, + "candidate": { + "simulator_axes": 16, + "simulator_sweep_points": 32 + } +} diff --git a/docs/topology/2to1_buck_stacked/evidence/coss-sweeps.json b/docs/topology/2to1_buck_stacked/evidence/coss-sweeps.json new file mode 100644 index 0000000000000000000000000000000000000000..400e75c7c0edae5052afc9db1dc8b07efbc4f87a --- /dev/null +++ b/docs/topology/2to1_buck_stacked/evidence/coss-sweeps.json @@ -0,0 +1,274 @@ +{ + "vin": { + "run": "1a20138d89384ed2a89d0770702573d9", + "rows": [ + { + "value": 2.8, + "vout_v": 1.217996672339401, + "efficiency_with_gate": 0.9876699546318513, + "deck_sha256": "7bb047254de2a3c50c291bc35f2fdf16a75b30ddaf3b86214dc9b006fc5e1e5c" + }, + { + "value": 3.3, + "vout_v": 1.437995671597078, + "efficiency_with_gate": 0.9892206149387989, + "deck_sha256": "14ee01a24833eb8e30f369bb87e2ddc8bb9dfe6da11bd878469392ac1f761194" + } + ] + }, + "load": { + "run": "b0428210260f428196c3dc9452bc1cf4", + "rows": [ + { + "value": 0.8, + "vout_v": 1.308797285867849, + "efficiency_with_gate": 0.9902134506847732, + "deck_sha256": "bd9f5537cc948c0bb8334d9dc814e6f320809da916dd7dd7f2f1ea28d6690625" + }, + { + "value": 1.25, + "vout_v": 1.3025043625572823, + "efficiency_with_gate": 0.9859222459636466, + "deck_sha256": "d049d5ad956672442e1c13cd2a8d52c9bbe665bca1791ccd1b231006fa38b1f7" + } + ] + }, + "fs": { + "run": "2dfadd4f8fcc4d0eb6e49c86f80acbe7", + "rows": [ + { + "value": 1.8, + "vout_v": 1.305996451210651, + "efficiency_with_gate": 0.988389622394636, + "deck_sha256": "c958f6aaba27a0300a216cdc7728bd75115dd3fca4db85880dc4fcd1add5f7e1" + }, + { + "value": 2.4, + "vout_v": 1.3060047168845959, + "efficiency_with_gate": 0.988273627872244, + "deck_sha256": "9943d1eb3d0d9151c7bad34f845e244169099b154d1e29e7b52f1d325887126c" + } + ] + }, + "duty": { + "run": "390377c0cd6e4f529689e1cbe528d0fb", + "rows": [ + { + "value": 0.3, + "vout_v": 0.8860070892803505, + "efficiency_with_gate": 0.9827397914238437, + "deck_sha256": "290c55c36e13efb52afe6f2159a901de2139c87b2b7956e75ca171cf0ad59fd8" + }, + { + "value": 0.7, + "vout_v": 2.086007242368526, + "efficiency_with_gate": 0.9925963342587494, + "deck_sha256": "bd936adfd014322a640ac78d561d22c7f1c8f478fa95679b04f9088dcc458d44" + } + ] + }, + "lt": { + "run": "479b551594914122963684d8fdf08857", + "rows": [ + { + "value": 800, + "vout_v": 1.3059963288644987, + "efficiency_with_gate": 0.9882287424150187, + "deck_sha256": "bbdc6aa5f481bafd08596a49f47f451caf5c1faa28f46c545b612bb43aa1a953" + }, + { + "value": 1450, + "vout_v": 1.3060026058153993, + "efficiency_with_gate": 0.9884805769283901, + "deck_sha256": "1ce9081a8ef643a61d40b0d504e1f79b28d8955c0212231de52cf77b8807ec1d" + } + ] + }, + "coupling": { + "run": "f319a570aa51484d92b451443e18de77", + "rows": [ + { + "value": 0, + "vout_v": 1.305998024423819, + "efficiency_with_gate": 0.988104961469467, + "deck_sha256": "54760ca947c21fd752df8e800d15d54e3b1bdee33243e726ed547765d583d71a" + }, + { + "value": 0.72, + "vout_v": 1.3060071186959756, + "efficiency_with_gate": 0.9883280610881346, + "deck_sha256": "e9122637dad7fcc10f03edd1265c93385c5139f24459d258257a44a4387bbc81" + } + ] + }, + "dcr": { + "run": "3aef9d161d964857bf25fca002150323", + "rows": [ + { + "value": 3, + "vout_v": 1.306499761701609, + "efficiency_with_gate": 0.9887530210509373, + "deck_sha256": "08ec5133e27b7ed80e2d79b1b09f77ee4961afe36f437b373d1938e15d34efe9" + }, + { + "value": 9, + "vout_v": 1.303500213972039, + "efficiency_with_gate": 0.9864316428078417, + "deck_sha256": "35bd00fb0ab5d02dd9fa3e2aedf8d4222aa822d964b32629dcb5750ddc73e859" + } + ] + }, + "rs": { + "run": "4ba3c4a5e4124d33a266ec2120a97a4a", + "rows": [ + { + "value": 9, + "vout_v": 1.3089996928569771, + "efficiency_with_gate": 0.9906852181272401, + "deck_sha256": "c2cdd0016773c93ed135534372c5f7230b9aaaddbe3c04856d39e013a07b4f0d" + }, + { + "value": 18, + "vout_v": 1.299999600156637, + "efficiency_with_gate": 0.9837290456000247, + "deck_sha256": "46cd52a75d9615a1f8760305014e17871ad8973b523fcf7334f10c273f5a061b" + } + ] + }, + "rslow": { + "run": "132d00021ce94f1ea8dcd2d28959dfcb", + "rows": [ + { + "value": 10, + "vout_v": 1.3071195396925013, + "efficiency_with_gate": 0.9892279973457124, + "deck_sha256": "dbf026225053f3d5e5a125a6b39b8b7f887b2e6007161e80d66fa82cffd3f632" + }, + { + "value": 18, + "vout_v": 1.3026405281903994, + "efficiency_with_gate": 0.98578227721669, + "deck_sha256": "75dc94f7896b65adcef7db163a9c83708e047fbf66fa70d47885734858ae2b9f" + } + ] + }, + "gatecap": { + "run": "2fbc3bd644a9428b8e1181db0a0c470c", + "rows": [ + { + "value": 4, + "vout_v": 1.3059999247829628, + "efficiency_with_gate": 0.9889267859746088, + "deck_sha256": "24bf5d6e7a85817e626243c224048b2b0aacefeb6ce209aea93fd187e1cbfd93" + }, + { + "value": 42, + "vout_v": 1.3059999485892015, + "efficiency_with_gate": 0.9879048313651215, + "deck_sha256": "5fa0051e1d0d71983addd732a4c5269bcb009395f0a1c9219c6d78a349a06231" + } + ] + }, + "coss": { + "run": "11a75e63470a4a5489a5cd9c56ac83d7", + "rows": [ + { + "value": 5, + "vout_v": 1.3060001053788908, + "efficiency_with_gate": 0.9884292247590286, + "deck_sha256": "a9a7f266b5feb8f123f51066c3ac4c6af75c455cd0524b7bbf5798d7e6c43a85" + }, + { + "value": 22, + "vout_v": 1.3059994889944002, + "efficiency_with_gate": 0.9881974543078786, + "deck_sha256": "c93cbb17f08c9b7b07c099dab6937d3144b008feed8d95922121cbf785213833" + } + ] + }, + "cout": { + "run": "804e48e5c84f48d4ad28389d69b3e962", + "rows": [ + { + "value": 38, + "vout_v": 1.3059997831788217, + "efficiency_with_gate": 0.9883543798546242, + "deck_sha256": "9558c525997adcc5942b53e0a4379057acba8e34a6175dbfb2e9a232fe3f3978" + }, + { + "value": 60, + "vout_v": 1.3059997846729678, + "efficiency_with_gate": 0.9883662902942699, + "deck_sha256": "8a46b4acc25de1f8bd55b09b66c09c4e18ac9f6eebd575d6fb9ec71113f3c49c" + } + ] + }, + "esr": { + "run": "ad0ce13249244d72a8f4fd038f117e5e", + "rows": [ + { + "value": 2.5, + "vout_v": 1.305999895214845, + "efficiency_with_gate": 0.9883675575795037, + "deck_sha256": "da9a3ccc200f66907c611aaf90b416d49a43627744b141779b368a3ab34c3869" + }, + { + "value": 11, + "vout_v": 1.305999569128121, + "efficiency_with_gate": 0.9883475192669045, + "deck_sha256": "53bb8a193266be5eeecbf8dd02eb9a702f5ecd6e1629a8682c51b2bc0b1728de" + } + ] + }, + "stop": { + "run": "941efe6ae8de47bd879d0ce310193cf6", + "rows": [ + { + "value": 85, + "vout_v": 1.3060014352907352, + "efficiency_with_gate": 0.988343374822484, + "deck_sha256": "af05d8f54d0eea807e67eedef96f5c2602ed64d6a4ad8558fd2d9a7c62e1afd5" + }, + { + "value": 110, + "vout_v": 1.3060002716958652, + "efficiency_with_gate": 0.9883605426260474, + "deck_sha256": "c97be21dbb6d8a5e6f10a42273568a6df8f2491d0c8086f4b901c70fd6a35a8d" + } + ] + }, + "step": { + "run": "079483e832ba494ab4c2011a11a563a0", + "rows": [ + { + "value": 750, + "vout_v": 1.3059995598338114, + "efficiency_with_gate": 0.9883581800358697, + "deck_sha256": "3134d4bfef17f191feffee9b11b25cf57cada68133f4154c0595d7b5370af341" + }, + { + "value": 1000, + "vout_v": 1.3059996509530707, + "efficiency_with_gate": 0.9883587531665791, + "deck_sha256": "911dac7abd0d5e19046223499fa3d84fa1c9c001b59410367fa631dd20d3299d" + } + ] + }, + "target": { + "run": "73c5ca5864a24ec1ae0b199d90d0ae47", + "rows": [ + { + "value": 1.3, + "vout_v": 1.2999998950120346, + "efficiency_with_gate": 0.9883076785464995, + "deck_sha256": "1e9d7facea3a5796ee96cd12a4b573585a439610ce4b0d7a448df6ca79921261" + }, + { + "value": 1.65, + "vout_v": 1.6499995596601131, + "efficiency_with_gate": 0.9907681581562554, + "deck_sha256": "6541e0646e229b7391306245a60d036be1d9df7d5873e9f1817c57dca467a566" + } + ] + } +} diff --git a/docs/topology/2to1_buck_stacked/evidence/coss-workflow.json b/docs/topology/2to1_buck_stacked/evidence/coss-workflow.json new file mode 100644 index 0000000000000000000000000000000000000000..90bf25549c9dcaa86b2ef96ba6d9d831dbaf1927 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/evidence/coss-workflow.json @@ -0,0 +1,243 @@ +{ + "analysis": { + "controls": { + "utilization": ".5", + "die_mm2": "1.5", + "ron_area_mohm_mm2": "1.1", + "vout": "3.2", + "io": "1.25", + "fs_mhz": "2.4", + "cap_uf": "44", + "si_l_nh": "1180", + "si_coupling": ".56", + "si_duty": ".61", + "rc_mohm": "6", + "rl_mohm": "5" + }, + "losses": { + "fet": 0.018274235898271443, + "cap": 0.000024274633725940832, + "ind": 0.003940303911711195, + "gate": 0.0019181212561983475, + "coss": 0.0006556765090909092 + }, + "efficiency": 0.9898425425204165, + "deviceCount": 8 + }, + "simulator": { + "edited": { + "run": "9573c4d8f76f42919696bfb60f9fcabd", + "settings": { + "vin": "3.12", + "load": "1.24", + "fs": "2.25", + "lt": "1150", + "coupling": ".57", + "dcr": "5.1", + "rs": "9", + "rslow": "15", + "gatecap": "29", + "coss": "12", + "cout": "44", + "esr": "5.5", + "stop": "110", + "step": "750" + }, + "metrics": { + "value": null, + "status": "passed", + "message": "", + "deck": "physical_design.cir", + "waveform": "physical_design_waveform.csv", + "deck_sha256": "dad1e3d29c8156095d53a1178c168dfeef1316ebc4282f22809e7444fa2d0f35", + "nominal_vout_v": 1.548070447394674, + "ideal_vout_v": 1.548070447394674, + "ideal_gain": 0.4961764254470109, + "vin_v": 3.12, + "target_vout_v": 1.53, + "analytical_vout_v": 1.53, + "analytical_gain": 0.49038461538461536, + "simulated_gain": 0.49038525452589316, + "target_error_v": 0.0000019941207867191224, + "operating_point": { + "schema_version": 1, + "nominal_ratio": 2, + "inputs": { + "input_voltage_v": 3.12, + "load": { + "kind": "current", + "value": 1.24 + }, + "switching_frequency_hz": 2250000, + "mode": "output_voltage", + "target_output_v": 1.53 + }, + "derived": { + "applied_duty": 0.4961764254470109, + "ideal_output_voltage_v": 1.548070447394674, + "ideal_gain": 0.4961764254470109, + "ideal_operating_ratio": 2.015412157276696, + "analytical_output_voltage_v": 1.53, + "loaded_gain": 0.49038461538461536, + "operating_ratio": 2.03921568627451, + "conduction_mode": "positive_current_ccm" + }, + "range": { + "duty": { + "min": 0.25, + "max": 0.75 + }, + "conduction_modes": [ + "positive_current_ccm" + ], + "loaded_voltage_v": { + "min": 0.7600980000000002, + "max": 2.3238180000000006 + } + }, + "solver": { + "status": "resolved", + "valid": true, + "diagnostics": [] + }, + "measurement": { + "output_voltage_v": 1.5300019941207867, + "gain": 0.49038525452589316, + "operating_ratio": 2.039213028472491 + } + }, + "stop_us": 109.77777777777777, + "max_step_ps": 750, + "window_start_cycles": 241.826795, + "window_stop_cycles": 245.826795, + "vout_v": 1.5300019941207867, + "iout_a": 1.24, + "iin_a": 0.61531573502324, + "input_w": 1.9200478357384068, + "electrical_input_w": 1.9197850932725093, + "delivered_w": 1.8972024727097756, + "stage_w": 0.0228453630286312, + "supplemental_gate_w": 0.0012685368412732009, + "coss_w": 0.00026274246589745126, + "gate_drive_v": 1.56, + "stage_efficiency": 0.9881016698629046, + "efficiency_with_gate": 0.9874492820578386, + "efficiency_includes_coss": true, + "switch_w": [ + 0.001731450427558176, + 0.0017314504275581825, + 0.0029273181100958195, + 0.0029273181100958195, + 0.0017310186699023215, + 0.0017310186699023198, + 0.0029265873948264034, + 0.0029265873948264034 + ], + "esr_w": [ + 5.218069939160327e-8 + ], + "dcr_w": [ + 0.0019764422891168656, + 0.001975949183255344 + ], + "storage_w": 0.0000016856390779655915, + "balance_w": -0.000004257934181265196, + "resistance_power_ohm": 0.014857806340160769, + "resistance_droop_ohm": 0.014571333285392972, + "ripple_vpp": 0.00005868304306799743, + "duty": 0.4961764254470109, + "measured_duty": [ + 0.49617642544702895, + 0.49617642544708307 + ], + "winding_average_a": [ + 0.6200394746357759, + 0.6199615093272572 + ], + "winding_rms_a": [ + 0.6225252635422963, + 0.6224476012682332 + ], + "winding_voltage_peak_v": [ + 1.577966157209343, + 1.577967969800907 + ], + "winding_min_a": [ + 0.5219193478375418, + 0.5218412433449993 + ], + "winding_ripple_a": [ + 0.1963158339917308, + 0.1963160229724885 + ], + "winding_sum_ripple_a": 0.010663416221979638, + "winding_delta_ripple_a": 0.3819915004426704, + "winding_voltage_mean_v": [ + -0.0000028058149682428655, + -5.333717839772386e-7 + ], + "switch_peak_v": [ + 1.570772495601687, + 1.570772495601687, + 1.55530259719545, + 1.55530259719545, + 1.570771326869518, + 1.570771326869517, + 1.555303300116892, + 1.555303300116891 + ], + "output_cap_rms_a": 0.0030801623154279407, + "output_cap_average_a": 9.839629561883076e-7, + "gate_overlap_fraction": [ + 0, + 0 + ], + "window_drift_v": 2.921751951490137e-8, + "window_drift_w": 0.0000011835857863934374 + } + }, + "sweep": { + "run": "f14b3dba6f26465dad00979bf0cd484d", + "rows": [ + { + "duty": 0.475, + "vout": 1.4639125507001383, + "status": "passed" + }, + { + "duty": 0.4875, + "vout": 1.5029112624462917, + "status": "passed" + }, + { + "duty": 0.5, + "vout": 1.5419081960398158, + "status": "passed" + }, + { + "duty": 0.5125, + "vout": 1.5809086248649153, + "status": "passed" + }, + { + "duty": 0.525, + "vout": 1.6199069273546736, + "status": "passed" + } + ] + } + }, + "reload": { + "versioned": [ + "/pe.js", + "/gallery.js", + "/compare/recommend.js", + "/compare/index.html", + "/compare/buck-stacked.js", + "/compare/technology.js", + "/compare/engine.js", + "/compare/scoreboard.js", + "/compare/app.js" + ] + } +} diff --git a/docs/topology/2to1_buck_stacked/evidence/coss-workspace.json b/docs/topology/2to1_buck_stacked/evidence/coss-workspace.json new file mode 100644 index 0000000000000000000000000000000000000000..75fbab873785db5c4ad5c71e010b717c4726cb99 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/evidence/coss-workspace.json @@ -0,0 +1,22 @@ +{ + "files": [ + "/pe.js", + "/gallery.js", + "/compare/app.js", + "/compare/engine.js", + "/compare/buck-stacked.js", + "/compare/technology.js", + "/compare/recommend.js", + "/compare/models-data.json", + "/compare/operating-conditions.json" + ], + "axes": [ + "duty_cycle", + "output_voltage", + "input_voltage_v", + "output_current_a", + "switching_frequency_mhz" + ], + "comparison": "buck2 add/remove", + "coefficients": true +} diff --git a/docs/topology/2to1_buck_stacked/evidence/duty-comparison.svg b/docs/topology/2to1_buck_stacked/evidence/duty-comparison.svg new file mode 100644 index 0000000000000000000000000000000000000000..7b47f5234a9c4bc0dfed7caea967d1cd5655afc2 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/evidence/duty-comparison.svg @@ -0,0 +1,2392 @@ + + + + + + + + 2026-11-29T23:07:23.838828 + image/svg+xml + + + Matplotlib v3.11.2, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/topology/2to1_buck_stacked/evidence/event-comparison.svg b/docs/topology/2to1_buck_stacked/evidence/event-comparison.svg new file mode 100644 index 0000000000000000000000000000000000000000..43115dec5a14412260e66a7283d9b4bc994a80b5 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/evidence/event-comparison.svg @@ -0,0 +1,1997 @@ + + + + + + + + 2026-11-29T23:07:23.907501 + image/svg+xml + + + Matplotlib v3.11.2, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/topology/2to1_buck_stacked/evidence/executed-decks.zip b/docs/topology/2to1_buck_stacked/evidence/executed-decks.zip new file mode 100644 index 0000000000000000000000000000000000000000..05825be78d96ba7202d5fd0d9fd097d5cb0bf91d --- /dev/null +++ b/docs/topology/2to1_buck_stacked/evidence/executed-decks.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49fc608ed4afff7deffa3ef1dcf1cd35cdd74f911b11fb922147b0276544eff0 +size 933126 diff --git a/docs/topology/2to1_buck_stacked/evidence/matched-results.json b/docs/topology/2to1_buck_stacked/evidence/matched-results.json new file mode 100644 index 0000000000000000000000000000000000000000..818dedde6e06ae5d4119337220fba2976ab3f282 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/evidence/matched-results.json @@ -0,0 +1,1019 @@ +[ + { + "case": "d25", + "duty": 0.25, + "settings": { + "duty": 0.25 + }, + "analytical": { + "voltage": 0.736, + "phase_ripple": 0.35156249999999994, + "channel": 0.01232958984375, + "esr": 9.155273437499995e-05, + "dcr": 0.002054931640625, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.9793015122192702 + }, + "numerical": { + "voltage": 0.7359999999999683, + "phase_ripple": 0.3515920284398314, + "channel": 0.012329659598958497, + "esr": 9.15818865831373e-05, + "dcr": 0.002054943266493083, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.9793013681908986 + }, + "ngspice": { + "voltage": 0.7359958462138886, + "phase_ripple": 0.3516062428399312, + "channel": 0.012332827540154925, + "esr": 9.159593381356348e-05, + "dcr": 0.0020554697567145386, + "gate": 0.0008987211991537863, + "coss": 0.00017990516096501552, + "efficiency": 0.9792982114152936 + }, + "numerical_checks": { + "balance_w": 3.572655409359027e-12, + "charge_average_a": 8.07283545025371e-12, + "periodic_change": 3.3306690738754696e-14 + }, + "spice_checks": { + "balance_w": 2.9235042823126434e-06, + "window_drift_v": 4.15449192225914e-06, + "output_cap_average_a": 0.0001300472941650145, + "winding_voltage_mean_v": [ + 4.62173291511062e-06, + 1.2317989095882686e-05 + ], + "switch_peak_v": [ + 1.508110759664893, + 1.508110759664893, + 1.496107121961005, + 1.496107121961005, + 1.508110528621556, + 1.508110528621556, + 1.496107412469407, + 1.496107412469407 + ], + "winding_min_a": [ + 0.324336779130373, + 0.3243125686948061 + ], + "deck_sha256": "a59b7cd3fcf361c5a3d81bb980c07c3b6dae31e562f07ff2b16b8f7a7ce93046" + } + }, + { + "case": "d35", + "duty": 0.35, + "settings": { + "duty": 0.35 + }, + "analytical": { + "voltage": 1.0359999999999998, + "phase_ripple": 0.3609374999999999, + "channel": 0.0123273046875, + "esr": 6.4599609375e-05, + "dcr": 0.00205455078125, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.9852343657136314 + }, + "numerical": { + "voltage": 1.0359999999999463, + "phase_ripple": 0.3609581739146339, + "channel": 0.012327351088595579, + "esr": 6.461908204881948e-05, + "dcr": 0.00205455851476593, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.985234296746824 + }, + "ngspice": { + "voltage": 1.0359968326358382, + "phase_ripple": 0.36094798122675376, + "channel": 0.01232716997747434, + "esr": 6.462995674787992e-05, + "dcr": 0.00205452682960005, + "gate": 0.0008987210707986543, + "coss": 0.0001797774218702631, + "efficiency": 0.9852358483156598 + }, + "numerical_checks": { + "balance_w": 3.058773286740424e-12, + "charge_average_a": 4.765671608427183e-12, + "periodic_change": 1.9484414082171497e-14 + }, + "spice_checks": { + "balance_w": -7.258395962956438e-06, + "window_drift_v": 3.6958010074528147e-07, + "output_cap_average_a": -9.198845269962882e-06, + "winding_voltage_mean_v": [ + -4.208360245856767e-06, + -5.046449995134335e-06 + ], + "switch_peak_v": [ + 1.508163485770895, + 1.508163485770895, + 1.496166593130219, + 1.496166593130219, + 1.508163850988244, + 1.508163850988244, + 1.496166231320432, + 1.496166231320431 + ], + "winding_min_a": [ + 0.3194031444875688, + 0.3194332983056472 + ], + "deck_sha256": "c375a309f499065072666adb008be16ebf4e134f89616e6ff5678a1d79d25928" + } + }, + { + "case": "d45", + "duty": 0.45, + "settings": { + "duty": 0.45 + }, + "analytical": { + "voltage": 1.336, + "phase_ripple": 0.2953125, + "channel": 0.012242050781250003, + "esr": 1.1865234374999991e-05, + "dcr": 0.0020403417968750002, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.9886232420636851 + }, + "numerical": { + "voltage": 1.3360000000002137, + "phase_ripple": 0.29531598762619643, + "channel": 0.0122420575037948, + "esr": 1.1868206466705258e-05, + "dcr": 0.002040342917299133, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.988623234151726 + }, + "ngspice": { + "voltage": 1.3360006798871775, + "phase_ripple": 0.29531068290795615, + "channel": 0.012242424516772031, + "esr": 1.1872462587413124e-05, + "dcr": 0.002040402586148312, + "gate": 0.0008987210707984777, + "coss": 0.00017977742187041018, + "efficiency": 0.9886240230708394 + }, + "numerical_checks": { + "balance_w": -1.9554231497909136e-11, + "charge_average_a": -1.3292942389734642e-11, + "periodic_change": 2.531308496145357e-14 + }, + "spice_checks": { + "balance_w": -7.546971248456989e-06, + "window_drift_v": 6.860714178991145e-07, + "output_cap_average_a": 1.4213728265223589e-05, + "winding_voltage_mean_v": [ + -6.225066074422151e-06, + -6.552915821840355e-06 + ], + "switch_peak_v": [ + 1.507769564341215, + 1.507769564341215, + 1.495772811461092, + 1.495772811461092, + 1.507769704740159, + 1.507769704740159, + 1.495772684303423, + 1.495772684303422 + ], + "winding_min_a": [ + 0.3522350384104974, + 0.3522456399981256 + ], + "deck_sha256": "25e25b7fa07ade573ee3f4e002758d97898abb3d5e413e0fe1a894282f479671" + } + }, + { + "case": "nominal", + "duty": 0.5, + "settings": {}, + "analytical": { + "voltage": 1.486, + "phase_ripple": 0.234375, + "channel": 0.0122197265625, + "esr": 0.0, + "dcr": 0.00203662109375, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.9897848688735261 + }, + "numerical": { + "voltage": 1.4859999999998892, + "phase_ripple": 0.23437462616042998, + "channel": 0.012219726142322085, + "esr": 1.3314440510495465e-24, + "dcr": 0.0020366210237203475, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.9897848691967042 + }, + "ngspice": { + "voltage": 1.4860000000002356, + "phase_ripple": 0.2343731143693255, + "channel": 0.012219742396070108, + "esr": 3.882432009924975e-25, + "dcr": 0.002036622232697541, + "gate": 0.0008987210708019572, + "coss": 0.00017977742187026314, + "efficiency": 0.9897858475826276 + }, + "numerical_checks": { + "balance_w": 9.800977737728367e-12, + "charge_average_a": 1.6318317067979634e-11, + "periodic_change": 1.0302869668521453e-13 + }, + "spice_checks": { + "balance_w": -6.314532578050562e-08, + "window_drift_v": 6.8833827526759706e-15, + "output_cap_average_a": -8.81147874153936e-12, + "winding_voltage_mean_v": [ + -2.374877125839877e-07, + 2.3748777207481734e-07 + ], + "switch_peak_v": [ + 1.507406052169711, + 1.507406052169711, + 1.495405864523097, + 1.495405864523097, + 1.507405864522849, + 1.507405864522849, + 1.495406052169959, + 1.495406052169959 + ], + "winding_min_a": [ + 0.382821263489706, + 0.3828056221322905 + ], + "deck_sha256": "77bdc1dedd8eccf19dbab9df9920758ffce3ff7c4a6f75d13f3860cfcd57f143" + } + }, + { + "case": "d55", + "duty": 0.55, + "settings": { + "duty": 0.55 + }, + "analytical": { + "voltage": 1.6360000000000001, + "phase_ripple": 0.29531250000000003, + "channel": 0.012242050781250001, + "esr": 1.1865234375000015e-05, + "dcr": 0.0020403417968750002, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.9906900221195978 + }, + "numerical": { + "voltage": 1.6360000000002577, + "phase_ripple": 0.2953159876261898, + "channel": 0.01224205750372313, + "esr": 1.1868206466708597e-05, + "dcr": 0.002040342917287188, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.9906900156314942 + }, + "ngspice": { + "voltage": 1.6360001344365622, + "phase_ripple": 0.29530533592264807, + "channel": 0.012242057836904859, + "esr": 1.1872557294515197e-05, + "dcr": 0.0020403414728362027, + "gate": 0.0008987210707988616, + "coss": 0.00017977742187041018, + "efficiency": 0.9906909152287433 + }, + "numerical_checks": { + "balance_w": -2.8973552723687845e-11, + "charge_average_a": -1.627971336635504e-11, + "periodic_change": 2.886579864025407e-14 + }, + "spice_checks": { + "balance_w": -7.554385348212826e-06, + "window_drift_v": 5.7104166950594504e-08, + "output_cap_average_a": -1.0648205672378264e-06, + "winding_voltage_mean_v": [ + -5.938720643727032e-06, + -5.362391767980047e-06 + ], + "switch_peak_v": [ + 1.50777293244124, + 1.50777293244124, + 1.495769421685115, + 1.495769421685114, + 1.507772697426039, + 1.507772697426039, + 1.495769661897923, + 1.495769661897923 + ], + "winding_min_a": [ + 0.3524631790156436, + 0.3524431462175288 + ], + "deck_sha256": "d65e4835b87e0c12e41ee97f4ee774e71452ec27bee1f03d7e2818a0d9275e56" + } + }, + { + "case": "d65", + "duty": 0.65, + "settings": { + "duty": 0.65 + }, + "analytical": { + "voltage": 1.9360000000000002, + "phase_ripple": 0.3609374999999998, + "channel": 0.0123273046875, + "esr": 6.4599609375e-05, + "dcr": 0.00205455078125, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.9920439433256345 + }, + "numerical": { + "voltage": 1.93599999999988, + "phase_ripple": 0.360958173914613, + "channel": 0.012327351088695766, + "esr": 6.461908204881075e-05, + "dcr": 0.002054558514782627, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.9920439059078606 + }, + "ngspice": { + "voltage": 1.9359966653929472, + "phase_ripple": 0.3609463102957963, + "channel": 0.012327344853314352, + "esr": 6.462889935761336e-05, + "dcr": 0.0020545559755704218, + "gate": 0.0008987210707985463, + "coss": 0.00017977742187041018, + "efficiency": 0.9920446550649602 + }, + "numerical_checks": { + "balance_w": 1.2861482712178685e-11, + "charge_average_a": 8.941512704948099e-12, + "periodic_change": 2.4424906541753444e-14 + }, + "spice_checks": { + "balance_w": -7.259768192825726e-06, + "window_drift_v": 8.18122496415441e-08, + "output_cap_average_a": -1.8459820170789253e-06, + "winding_voltage_mean_v": [ + -4.989180096263228e-06, + -4.1510461092010645e-06 + ], + "switch_peak_v": [ + 1.508166508977034, + 1.508166508977034, + 1.496163564149328, + 1.496163564149327, + 1.508166148561385, + 1.508166148561385, + 1.496163928207561, + 1.496163928207561 + ], + "winding_min_a": [ + 0.3196405975233885, + 0.3196102573851493 + ], + "deck_sha256": "8736aa677e079c1246e4062ee7f3615c9a286b50b63821a14b31dfb5d7e37324" + } + }, + { + "case": "d75", + "duty": 0.75, + "settings": { + "duty": 0.75 + }, + "analytical": { + "voltage": 2.236, + "phase_ripple": 0.3515625, + "channel": 0.01232958984375, + "esr": 9.155273437499995e-05, + "dcr": 0.002054931640625, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.9930909674438609 + }, + "numerical": { + "voltage": 2.2359999999997777, + "phase_ripple": 0.35159202843983983, + "channel": 0.012329659599353145, + "esr": 9.15818865831336e-05, + "dcr": 0.002054943266558858, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.9930909186908845 + }, + "ngspice": { + "voltage": 2.2359912481916466, + "phase_ripple": 0.35158779551665975, + "channel": 0.012330042251358262, + "esr": 9.159371983705094e-05, + "dcr": 0.002055005541909999, + "gate": 0.0008987212636494097, + "coss": 0.00017991933834196134, + "efficiency": 0.9930912899619367 + }, + "numerical_checks": { + "balance_w": 3.2023182716667264e-11, + "charge_average_a": 2.451656298764135e-11, + "periodic_change": 1.0835776720341528e-13 + }, + "spice_checks": { + "balance_w": 6.610203151180221e-06, + "window_drift_v": 7.654280795854618e-07, + "output_cap_average_a": 1.4148450626403982e-05, + "winding_voltage_mean_v": [ + 4.138905951641456e-06, + 4.452893631362783e-06 + ], + "switch_peak_v": [ + 1.508108019731599, + 1.508108019731599, + 1.496109606214141, + 1.496109606214141, + 1.508107906537385, + 1.508107906537385, + 1.496109749445693, + 1.496109749445692 + ], + "winding_min_a": [ + 0.3241566547037419, + 0.3241447181931225 + ], + "deck_sha256": "63c072f71496e13facf0a6465881419ecaa1cca522fbeb0ad81f3cfbf452623e" + } + }, + { + "case": "unequal", + "duty": 0.64, + "settings": { + "duty": 0.64, + "switch_ron_mohm": 7.5, + "low_ron_mohm": 21, + "output_current_a": 1.35 + }, + "analytical": { + "voltage": 1.900614, + "phase_ripple": 0.3577500000000002, + "channel": 0.022933796895000007, + "esr": 5.9535e-05, + "dcr": 0.003698429625000001, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.9892921983202595 + }, + "numerical": { + "voltage": 1.9006163575935835, + "phase_ripple": 0.359941840046663, + "channel": 0.022932460587991147, + "esr": 6.027853953113371e-05, + "dcr": 0.0036990877981610878, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.9892921865123415 + }, + "ngspice": { + "voltage": 1.9006196705608525, + "phase_ripple": 0.3599304741887356, + "channel": 0.02293248691199308, + "esr": 6.0289042828115015e-05, + "dcr": 0.003699083923776916, + "gate": 0.0008987210977241761, + "coss": 0.00017977742184303646, + "efficiency": 0.9892927651249098 + }, + "numerical_checks": { + "balance_w": 7.648031513651787e-13, + "charge_average_a": -1.9822712942667645e-12, + "periodic_change": 3.93574062229618e-14 + }, + "spice_checks": { + "balance_w": -7.292705367450959e-06, + "window_drift_v": 1.3931857245630397e-07, + "output_cap_average_a": -1.6284256992604835e-06, + "winding_voltage_mean_v": [ + -4.612682653453137e-06, + -1.995279078123196e-06 + ], + "switch_peak_v": [ + 1.51795894796199, + 1.51795894796199, + 1.496284757778306, + 1.496284757778306, + 1.517957008400397, + 1.517957008400397, + 1.49628543184311, + 1.49628543184311 + ], + "winding_min_a": [ + 0.4953002315933611, + 0.495210353048625 + ], + "deck_sha256": "c6feef9477594abb6378d3583346a1d70c3fb55f278edd47e3c05c9e4fb97ff0" + } + }, + { + "case": "combined", + "duty": 0.38, + "settings": { + "duty": 0.38, + "input_voltage_v": 3.8, + "output_current_a": 1.5, + "switching_frequency_mhz": 3.4, + "inductance_nh": 1500, + "coupling": 0.45, + "output_esr_mohm": 11, + "dcr_mohm": 18, + "output_cap_uf": 24, + "switch_coff_pf": 23, + "gate_cap_pf": 54 + }, + "analytical": { + "voltage": 1.4124999999999999, + "phase_ripple": 0.1594089372426085, + "channel": 0.027071696060432318, + "esr": 1.3992733983432939e-05, + "dcr": 0.02030377204532424, + "gate": 0.005302368, + "coss": 0.001129208, + "efficiency": 0.9752270301283088 + }, + "numerical": { + "voltage": 1.4125000000001842, + "phase_ripple": 0.15941079251186618, + "channel": 0.02707169748638179, + "esr": 1.3994083247136601e-05, + "dcr": 0.020303773114786344, + "gate": 0.005302368, + "coss": 0.001129208, + "efficiency": 0.9752270284025082 + }, + "ngspice": { + "voltage": 1.4125297417083853, + "phase_ripple": 0.15941883654573874, + "channel": 0.027071123689108474, + "esr": 1.39955727749387e-05, + "dcr": 0.020303331937065343, + "gate": 0.005294987444994335, + "coss": 0.0011286509622045354, + "efficiency": 0.9752315550014499 + }, + "numerical_checks": { + "balance_w": -1.4084653582324691e-14, + "charge_average_a": -1.8657156304916975e-13, + "periodic_change": 3.885780586188048e-14 + }, + "spice_checks": { + "balance_w": -2.708639081695835e-05, + "window_drift_v": 6.786506292488781e-07, + "output_cap_average_a": -1.7084520185152993e-05, + "winding_voltage_mean_v": [ + -7.815854006675119e-07, + -4.2379733978705093e-05 + ], + "switch_peak_v": [ + 1.909947782225825, + 1.909947782225825, + 1.891964739402599, + 1.891964739402598, + 1.90996431875594, + 1.909964318755939, + 1.891948450714648, + 1.891948450714648 + ], + "winding_min_a": [ + 0.6695864968774807, + 0.6709438880049327 + ], + "deck_sha256": "d5458f443e8838c2a14f49316599769271c415a9bd4bc3905d21c9c71c17a8b3" + } + }, + { + "case": "no_coupling", + "duty": 0.55, + "settings": { + "duty": 0.55, + "coupling": 0, + "switching_frequency_mhz": 3.4 + }, + "analytical": { + "voltage": 1.6360000000000001, + "phase_ripple": 0.21838235294117653, + "channel": 0.012190763408304498, + "esr": 6.568987889273366e-07, + "dcr": 0.002031793901384083, + "gate": 0.00153, + "coss": 0.000306, + "efficiency": 0.9902792744531427 + }, + "numerical": { + "voltage": 1.6360000000003523, + "phase_ripple": 0.21838218237305074, + "channel": 0.012190763142526356, + "esr": 6.569221641438168e-07, + "dcr": 0.002031793857087726, + "gate": 0.00153, + "coss": 0.000306, + "efficiency": 0.9902792746249982 + }, + "ngspice": { + "voltage": 1.6360022545206707, + "phase_ripple": 0.21838154850100694, + "channel": 0.012190789698247339, + "esr": 6.57174810105045e-07, + "dcr": 0.0020317967830683365, + "gate": 0.001527831522881377, + "coss": 0.0003058370947274896, + "efficiency": 0.9902806675472218 + }, + "numerical_checks": { + "balance_w": -2.986922601616593e-11, + "charge_average_a": -1.8060777999629536e-12, + "periodic_change": 1.0191847366058937e-13 + }, + "spice_checks": { + "balance_w": -5.3169899617590775e-06, + "window_drift_v": 8.396012995959268e-09, + "output_cap_average_a": 3.2711265839886043e-07, + "winding_voltage_mean_v": [ + 2.8901917152470084e-06, + -7.408399303329117e-06 + ], + "switch_peak_v": [ + 1.507307669256362, + 1.507307669256362, + 1.495312443769914, + 1.495312443769914, + 1.507312084331903, + 1.507312084331903, + 1.495308027201223, + 1.495308027201222 + ], + "winding_min_a": [ + 0.3906124893964677, + 0.390980536961544 + ], + "deck_sha256": "91098f1c08e8e1b1c0a83bc2af4fa3c1fc30a5ee9280bb04d580cb59b976e3c3" + } + }, + { + "case": "zero_events", + "duty": 0.5, + "settings": { + "switch_coff_pf": 0, + "gate_cap_pf": 0 + }, + "analytical": { + "voltage": 1.486, + "phase_ripple": 0.234375, + "channel": 0.0122197265625, + "esr": 0.0, + "dcr": 0.00203662109375, + "gate": 0.0, + "coss": 0.0, + "efficiency": 0.9904973922099901 + }, + "numerical": { + "voltage": 1.4859999999998892, + "phase_ripple": 0.23437462616042998, + "channel": 0.012219726142322085, + "esr": 1.3314440510495465e-24, + "dcr": 0.0020366210237203475, + "gate": 0.0, + "coss": 0.0, + "efficiency": 0.9904973925336337 + }, + "ngspice": { + "voltage": 1.4860000000001914, + "phase_ripple": 0.2343729868428185, + "channel": 0.012219742640573244, + "esr": 1.0379744393307624e-25, + "dcr": 0.002036622273447964, + "gate": 0.0, + "coss": 0.0, + "efficiency": 0.9904973808160871 + }, + "numerical_checks": { + "balance_w": 9.800977737728367e-12, + "charge_average_a": 1.6318317067979634e-11, + "periodic_change": 1.0302869668521453e-13 + }, + "spice_checks": { + "balance_w": -6.345828323646269e-08, + "window_drift_v": 9.547918011776346e-15, + "output_cap_average_a": -4.555574698634103e-12, + "winding_voltage_mean_v": [ + -7.473169580975586e-08, + 7.473172615735818e-08 + ], + "switch_peak_v": [ + 1.507405987105269, + 1.507405987105269, + 1.495405928057631, + 1.495405928057631, + 1.507405928057434, + 1.507405928057434, + 1.495405987105467, + 1.495405987105467 + ], + "winding_min_a": [ + 0.3828159675508933, + 0.3828110456018166 + ], + "deck_sha256": "ff233ff3dff6d3cfae63858435f9da993253f769c0624cb386e8f5a8d78cf221" + } + }, + { + "case": "loaded_target", + "duty": 0.5046666666666667, + "settings": { + "voltage_mode": "output_voltage", + "target_output_v": 1.5 + }, + "analytical": { + "voltage": 1.5000000000000002, + "phase_ripple": 0.24085583333333327, + "channel": 0.012219970057927777, + "esr": 1.2523333796296513e-07, + "dcr": 0.002036661676321296, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.989878977793505 + }, + "numerical": { + "voltage": 1.500000000000046, + "phase_ripple": 0.24085550023614422, + "channel": 0.012219969702325667, + "esr": 1.2526041372353037e-07, + "dcr": 0.002036661617054278, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.9898789780468276 + }, + "ngspice": { + "voltage": 1.5000016328057486, + "phase_ripple": 0.24084673482964175, + "channel": 0.012219986971208498, + "esr": 1.2548983180112206e-07, + "dcr": 0.0020366629952205434, + "gate": 0.0008987210707988033, + "coss": 0.00017977742187041018, + "efficiency": 0.9898799574665064 + }, + "numerical_checks": { + "balance_w": -6.814584486980468e-12, + "charge_average_a": -4.414367898937892e-12, + "periodic_change": 3.3084646133829665e-14 + }, + "spice_checks": { + "balance_w": -7.235259074593785e-06, + "window_drift_v": 6.481172931671608e-09, + "output_cap_average_a": 2.590795328062127e-08, + "winding_voltage_mean_v": [ + -6.225048645806054e-06, + -5.390029691592805e-06 + ], + "switch_peak_v": [ + 1.507445187259939, + 1.507445187259939, + 1.49544364512108, + 1.49544364512108, + 1.507444842501324, + 1.507444842501324, + 1.495443987203279, + 1.495443987203279 + ], + "winding_min_a": [ + 0.3796013542954187, + 0.3795728235846936 + ], + "deck_sha256": "e2b03dc5b2e8acea259a0e6f82204b9f6a2d0b525d1f55f703b82f13604d49c9" + } + }, + { + "case": "low_corner", + "duty": 0.5, + "settings": { + "stop_us": 35, + "input_voltage_v": 2.5, + "output_current_a": 0.6, + "switching_frequency_mhz": 4, + "dcr_mohm": 2, + "switch_ron_mohm": 5, + "inductance_nh": 2000, + "output_esr_mohm": 1, + "output_cap_uf": 60, + "coupling": 0.75 + }, + "analytical": { + "voltage": 1.2464, + "phase_ripple": 0.044642857142857116, + "channel": 0.0018033216411564624, + "esr": 0.0, + "dcr": 0.0003606643282312925, + "gate": 0.00125, + "coss": 0.00024999999999999995, + "efficiency": 0.9951244623610859 + }, + "numerical": { + "voltage": 1.2463999999999205, + "phase_ripple": 0.0446428564595569, + "channel": 0.001803321641096351, + "esr": 2.24176903153503e-29, + "dcr": 0.00036066432821927014, + "gate": 0.00125, + "coss": 0.00024999999999999995, + "efficiency": 0.9951244623611811 + }, + "ngspice": { + "voltage": 1.2464000000001427, + "phase_ripple": 0.04464179939395119, + "channel": 0.0018033280057712206, + "esr": 1.9789010757635955e-26, + "dcr": 0.00036066435115081146, + "gate": 0.0012482311879004357, + "coss": 0.00024973742883764995, + "efficiency": 0.9951271438215341 + }, + "numerical_checks": { + "balance_w": 1.1938908195396891e-11, + "charge_average_a": 1.494317304926193e-13, + "periodic_change": 3.907985046680551e-14 + }, + "spice_checks": { + "balance_w": -3.51848212774104e-07, + "window_drift_v": 4.440892098500626e-15, + "output_cap_average_a": -4.423393360966039e-12, + "winding_voltage_mean_v": [ + 1.785082263300427e-07, + -1.7850842420488012e-07 + ], + "switch_peak_v": [ + 1.251611510200425, + 1.251611510200425, + 1.248611658966743, + 1.248611658966743, + 1.251611658966705, + 1.251611658966705, + 1.248611510200465, + 1.248611510200465 + ], + "winding_min_a": [ + 0.2776642235102239, + 0.2776939770909513 + ], + "deck_sha256": "6f33686a751e42c91c856c013ba9adc27bc122e5397bcbf8b252125ec986c039" + } + }, + { + "case": "cold_nominal", + "duty": 0.5, + "settings": { + "stop_us": 360 + }, + "analytical": { + "voltage": 1.486, + "phase_ripple": 0.234375, + "channel": 0.0122197265625, + "esr": 0.0, + "dcr": 0.00203662109375, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.9897848688735261 + }, + "numerical": { + "voltage": 1.4859999999998892, + "phase_ripple": 0.23437462616042998, + "channel": 0.012219726142322085, + "esr": 1.3314440510495465e-24, + "dcr": 0.0020366210237203475, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.9897848691967042 + }, + "ngspice": { + "voltage": 1.4860000455137308, + "phase_ripple": 0.23437674153784444, + "channel": 0.012219763726204232, + "esr": 1.5996427096392269e-15, + "dcr": 0.0020366257877197005, + "gate": 0.0008987210706685937, + "coss": 0.00017976258076860433, + "efficiency": 0.989785841270611 + }, + "numerical_checks": { + "balance_w": 9.800977737728367e-12, + "charge_average_a": 1.6318317067979634e-11, + "periodic_change": 1.0302869668521453e-13 + }, + "spice_checks": { + "balance_w": -6.339963970568979e-08, + "window_drift_v": 3.0967866271325306e-08, + "output_cap_average_a": 5.440632207261724e-07, + "winding_voltage_mean_v": [ + -4.505789875240166e-06, + 4.399528927986223e-06 + ], + "switch_peak_v": [ + 1.507411467508707, + 1.507411467508707, + 1.495400508634943, + 1.495400508634942, + 1.507400513266957, + 1.507400513266957, + 1.495411458862788, + 1.495411458862788 + ], + "winding_min_a": [ + 0.383267703932151, + 0.3823562750412717 + ], + "deck_sha256": "819e131f931260b1100e2c6a7081bc1e9455820c66d4bfe0f16c5e0319fa83a8" + } + }, + { + "case": "cold_unequal", + "duty": 0.6, + "settings": { + "stop_us": 360, + "duty": 0.6, + "switch_ron_mohm": 9, + "low_ron_mohm": 20 + }, + "analytical": { + "voltage": 1.7845999999999997, + "phase_ripple": 0.3375, + "channel": 0.013782218750000002, + "esr": 3.749999999999997e-05, + "dcr": 0.0020478125, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.9905927926096731 + }, + "numerical": { + "voltage": 1.78460172076571, + "phase_ripple": 0.3387487500028043, + "channel": 0.013781625032392159, + "esr": 3.778607842235624e-05, + "dcr": 0.002048167851061284, + "gate": 0.0009, + "coss": 0.00018, + "efficiency": 0.9905927753603865 + }, + "ngspice": { + "voltage": 1.7845978882073588, + "phase_ripple": 0.3387386323759627, + "channel": 0.013781720825592113, + "esr": 3.779326059646643e-05, + "dcr": 0.0020481731170416996, + "gate": 0.0008987210706419416, + "coss": 0.0001797625807686043, + "efficiency": 0.9905935296062289 + }, + "numerical_checks": { + "balance_w": -7.495264825463366e-12, + "charge_average_a": -7.460548021379076e-13, + "periodic_change": 3.6415315207705135e-14 + }, + "spice_checks": { + "balance_w": -7.819256968275918e-06, + "window_drift_v": 2.1109053394141597e-08, + "output_cap_average_a": 3.6313797399615803e-07, + "winding_voltage_mean_v": [ + -8.280434241491398e-06, + -3.032454915985358e-06 + ], + "switch_peak_v": [ + 1.513393170737725, + 1.513393170737725, + 1.497020760619197, + 1.497020760619197, + 1.513389794146723, + 1.513389794146723, + 1.497022270466196, + 1.497022270466196 + ], + "winding_min_a": [ + 0.3309538071125705, + 0.3307860149519595 + ], + "deck_sha256": "9324746c8f1279a682df85ada9e8e5e38bb20056fbef58eba7051de8ef77b331" + } + } +] diff --git a/docs/topology/2to1_buck_stacked/evidence/sweeps.json b/docs/topology/2to1_buck_stacked/evidence/sweeps.json new file mode 100644 index 0000000000000000000000000000000000000000..b723c0765c75b3b7422ac1c51e25fd9184e74267 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/evidence/sweeps.json @@ -0,0 +1,274 @@ +{ + "vin": { + "run": "4b00556d209642c88b9d39214aeb99bf", + "rows": [ + { + "value": 2.8, + "vout_v": 1.217996672339401, + "efficiency_with_gate": 0.9876699546318513, + "deck_sha256": "7bb047254de2a3c50c291bc35f2fdf16a75b30ddaf3b86214dc9b006fc5e1e5c" + }, + { + "value": 3.3, + "vout_v": 1.437995671597078, + "efficiency_with_gate": 0.9892206149387989, + "deck_sha256": "14ee01a24833eb8e30f369bb87e2ddc8bb9dfe6da11bd878469392ac1f761194" + } + ] + }, + "load": { + "run": "fe7c4dc5efe8447bbc565a63ee51b032", + "rows": [ + { + "value": 0.8, + "vout_v": 1.308797285867849, + "efficiency_with_gate": 0.9902134506847732, + "deck_sha256": "bd9f5537cc948c0bb8334d9dc814e6f320809da916dd7dd7f2f1ea28d6690625" + }, + { + "value": 1.25, + "vout_v": 1.3025043625572823, + "efficiency_with_gate": 0.9859222459636466, + "deck_sha256": "d049d5ad956672442e1c13cd2a8d52c9bbe665bca1791ccd1b231006fa38b1f7" + } + ] + }, + "fs": { + "run": "55472548bd2c4ec18d3449b89fb65668", + "rows": [ + { + "value": 1.8, + "vout_v": 1.305996451210651, + "efficiency_with_gate": 0.988389622394636, + "deck_sha256": "c958f6aaba27a0300a216cdc7728bd75115dd3fca4db85880dc4fcd1add5f7e1" + }, + { + "value": 2.4, + "vout_v": 1.3060047168845959, + "efficiency_with_gate": 0.988273627872244, + "deck_sha256": "9943d1eb3d0d9151c7bad34f845e244169099b154d1e29e7b52f1d325887126c" + } + ] + }, + "duty": { + "run": "2b11a02de8e645149507097873bf013a", + "rows": [ + { + "value": 0.3, + "vout_v": 0.8860070892803505, + "efficiency_with_gate": 0.9827397914238437, + "deck_sha256": "290c55c36e13efb52afe6f2159a901de2139c87b2b7956e75ca171cf0ad59fd8" + }, + { + "value": 0.7, + "vout_v": 2.086007242368526, + "efficiency_with_gate": 0.9925963342587494, + "deck_sha256": "bd936adfd014322a640ac78d561d22c7f1c8f478fa95679b04f9088dcc458d44" + } + ] + }, + "lt": { + "run": "c68dd80a8c18461ebf990ff398d3ca02", + "rows": [ + { + "value": 800, + "vout_v": 1.3059963288644987, + "efficiency_with_gate": 0.9882287424150187, + "deck_sha256": "bbdc6aa5f481bafd08596a49f47f451caf5c1faa28f46c545b612bb43aa1a953" + }, + { + "value": 1450, + "vout_v": 1.3060026058153993, + "efficiency_with_gate": 0.9884805769283901, + "deck_sha256": "1ce9081a8ef643a61d40b0d504e1f79b28d8955c0212231de52cf77b8807ec1d" + } + ] + }, + "coupling": { + "run": "89c8ac116ffe460fbefbf924dac69231", + "rows": [ + { + "value": 0, + "vout_v": 1.305998024423819, + "efficiency_with_gate": 0.988104961469467, + "deck_sha256": "54760ca947c21fd752df8e800d15d54e3b1bdee33243e726ed547765d583d71a" + }, + { + "value": 0.72, + "vout_v": 1.3060071186959756, + "efficiency_with_gate": 0.9883280610881346, + "deck_sha256": "e9122637dad7fcc10f03edd1265c93385c5139f24459d258257a44a4387bbc81" + } + ] + }, + "dcr": { + "run": "bb0d2b9fc263420b93c9205f1b2f682b", + "rows": [ + { + "value": 3, + "vout_v": 1.306499761701609, + "efficiency_with_gate": 0.9887530210509373, + "deck_sha256": "08ec5133e27b7ed80e2d79b1b09f77ee4961afe36f437b373d1938e15d34efe9" + }, + { + "value": 9, + "vout_v": 1.303500213972039, + "efficiency_with_gate": 0.9864316428078417, + "deck_sha256": "35bd00fb0ab5d02dd9fa3e2aedf8d4222aa822d964b32629dcb5750ddc73e859" + } + ] + }, + "rs": { + "run": "ccdde4009bd34e39909ab6feec9886b3", + "rows": [ + { + "value": 9, + "vout_v": 1.3089996928569771, + "efficiency_with_gate": 0.9906852181272401, + "deck_sha256": "c2cdd0016773c93ed135534372c5f7230b9aaaddbe3c04856d39e013a07b4f0d" + }, + { + "value": 18, + "vout_v": 1.299999600156637, + "efficiency_with_gate": 0.9837290456000247, + "deck_sha256": "46cd52a75d9615a1f8760305014e17871ad8973b523fcf7334f10c273f5a061b" + } + ] + }, + "rslow": { + "run": "4da9d6afa64342c189993517570fcbbd", + "rows": [ + { + "value": 10, + "vout_v": 1.3071195396925013, + "efficiency_with_gate": 0.9892279973457124, + "deck_sha256": "dbf026225053f3d5e5a125a6b39b8b7f887b2e6007161e80d66fa82cffd3f632" + }, + { + "value": 18, + "vout_v": 1.3026405281903994, + "efficiency_with_gate": 0.98578227721669, + "deck_sha256": "75dc94f7896b65adcef7db163a9c83708e047fbf66fa70d47885734858ae2b9f" + } + ] + }, + "gatecap": { + "run": "7570dfc3ffb24448ad6de43422954eda", + "rows": [ + { + "value": 4, + "vout_v": 1.3059999247829628, + "efficiency_with_gate": 0.9889267859746088, + "deck_sha256": "24bf5d6e7a85817e626243c224048b2b0aacefeb6ce209aea93fd187e1cbfd93" + }, + { + "value": 42, + "vout_v": 1.3059999485892015, + "efficiency_with_gate": 0.9879048313651215, + "deck_sha256": "5fa0051e1d0d71983addd732a4c5269bcb009395f0a1c9219c6d78a349a06231" + } + ] + }, + "coss": { + "run": "c7e2d311cfc04f82aa79ae972a2f5f9d", + "rows": [ + { + "value": 5, + "vout_v": 1.3060001053788908, + "efficiency_with_gate": 0.9884292247590286, + "deck_sha256": "a9a7f266b5feb8f123f51066c3ac4c6af75c455cd0524b7bbf5798d7e6c43a85" + }, + { + "value": 22, + "vout_v": 1.3059994889944002, + "efficiency_with_gate": 0.9881974543078786, + "deck_sha256": "c93cbb17f08c9b7b07c099dab6937d3144b008feed8d95922121cbf785213833" + } + ] + }, + "cout": { + "run": "ceb67d9edb1041e3b8a3365981e5190a", + "rows": [ + { + "value": 38, + "vout_v": 1.3059997831788217, + "efficiency_with_gate": 0.9883543798546242, + "deck_sha256": "9558c525997adcc5942b53e0a4379057acba8e34a6175dbfb2e9a232fe3f3978" + }, + { + "value": 60, + "vout_v": 1.3059997846729678, + "efficiency_with_gate": 0.9883662902942699, + "deck_sha256": "8a46b4acc25de1f8bd55b09b66c09c4e18ac9f6eebd575d6fb9ec71113f3c49c" + } + ] + }, + "esr": { + "run": "34bd319f4cc84839997293ef2a708f67", + "rows": [ + { + "value": 2.5, + "vout_v": 1.305999895214845, + "efficiency_with_gate": 0.9883675575795037, + "deck_sha256": "da9a3ccc200f66907c611aaf90b416d49a43627744b141779b368a3ab34c3869" + }, + { + "value": 11, + "vout_v": 1.305999569128121, + "efficiency_with_gate": 0.9883475192669045, + "deck_sha256": "53bb8a193266be5eeecbf8dd02eb9a702f5ecd6e1629a8682c51b2bc0b1728de" + } + ] + }, + "stop": { + "run": "4c88e2e48e724d5ba78516eedab3c436", + "rows": [ + { + "value": 85, + "vout_v": 1.3060014352907352, + "efficiency_with_gate": 0.988343374822484, + "deck_sha256": "af05d8f54d0eea807e67eedef96f5c2602ed64d6a4ad8558fd2d9a7c62e1afd5" + }, + { + "value": 110, + "vout_v": 1.3060002716958652, + "efficiency_with_gate": 0.9883605426260474, + "deck_sha256": "c97be21dbb6d8a5e6f10a42273568a6df8f2491d0c8086f4b901c70fd6a35a8d" + } + ] + }, + "step": { + "run": "fdb9db120bfd4378b6a7ae534eedb31f", + "rows": [ + { + "value": 750, + "vout_v": 1.3059995598338114, + "efficiency_with_gate": 0.9883581800358697, + "deck_sha256": "3134d4bfef17f191feffee9b11b25cf57cada68133f4154c0595d7b5370af341" + }, + { + "value": 1000, + "vout_v": 1.3059996509530707, + "efficiency_with_gate": 0.9883587531665791, + "deck_sha256": "911dac7abd0d5e19046223499fa3d84fa1c9c001b59410367fa631dd20d3299d" + } + ] + }, + "target": { + "run": "bcf779971e4f41179b47d2605679567a", + "rows": [ + { + "value": 1.3, + "vout_v": 1.2999998950120346, + "efficiency_with_gate": 0.9883076785464995, + "deck_sha256": "1e9d7facea3a5796ee96cd12a4b573585a439610ce4b0d7a448df6ca79921261" + }, + { + "value": 1.65, + "vout_v": 1.6499995596601131, + "efficiency_with_gate": 0.9907681581562554, + "deck_sha256": "6541e0646e229b7391306245a60d036be1d9df7d5873e9f1817c57dca467a566" + } + ] + } +} diff --git a/docs/topology/2to1_buck_stacked/evidence/workspace.json b/docs/topology/2to1_buck_stacked/evidence/workspace.json new file mode 100644 index 0000000000000000000000000000000000000000..75fbab873785db5c4ad5c71e010b717c4726cb99 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/evidence/workspace.json @@ -0,0 +1,22 @@ +{ + "files": [ + "/pe.js", + "/gallery.js", + "/compare/app.js", + "/compare/engine.js", + "/compare/buck-stacked.js", + "/compare/technology.js", + "/compare/recommend.js", + "/compare/models-data.json", + "/compare/operating-conditions.json" + ], + "axes": [ + "duty_cycle", + "output_voltage", + "input_voltage_v", + "output_current_a", + "switching_frequency_mhz" + ], + "comparison": "buck2 add/remove", + "coefficients": true +} diff --git a/docs/topology/2to1_buck_stacked/numerical.py b/docs/topology/2to1_buck_stacked/numerical.py new file mode 100644 index 0000000000000000000000000000000000000000..80abde8dc1a29bc5fd8374fe0f3b63e904791e39 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/numerical.py @@ -0,0 +1,65 @@ +"""Switched periodic validation with physical branch laws and no analytical loss imports.""" +from pathlib import Path +import sys + +import numpy as np + +sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "2to1_cross_validation")) +from circuit import integrate + + +def commands(p): + duty = p["duty"] + transitions = sorted({0., duty, .5, (duty + .5) % 1., 1.}) + for start, stop in zip(transitions, transitions[1:]): + if stop - start > 1e-12: + midpoint = (start + stop) / 2 + yield start, stop, (midpoint < duty, (midpoint - .5) % 1 < duty) + + +def state_circuit(p, selected, stiff, ideal): + if stiff or ideal: + raise ValueError("This comparison uses finite Cout and dissipative channels") + matrix = p["lt"] * np.array([[1, -p["k"]], [-p["k"], 1]]) + inverse = np.linalg.inv(matrix) + high = np.array(selected) + # Ordering follows the approved gate table: upper outer/inner, lower outer/inner. + path_members = np.array([[0, 1] if high[0] else [2, 3], + [4, 5] if high[1] else [6, 7]]) + device_ron = np.array([p["high"]]*2 + [p["low"]]*2)*np.ones((2, 4)) + device_ron = device_ron.ravel() + path_r = device_ron[path_members].sum(axis=1) + + def evaluate(x): + current = x[:2] + vc = x[2] + cap_current = current.sum(axis=0) - p["io"] + out = vc + p["rc"] * cap_current + channel = np.zeros((8, current.shape[1])) + channel[path_members] = ((2*high-1)[:, None]*current)[:, None, :] + switch_nodes = p["vin"] * high[:, None] - current * path_r[:, None] + winding_voltage = switch_nodes - out - p["rl"] * current + derivative = np.vstack((inverse @ winding_voltage, cap_current/p["cf"])) + loss = np.stack((device_ron @ channel**2, p["rc"] * cap_current**2, + p["rl"] * np.sum(current**2, axis=0))) + pin = p["vin"] * high @ current + energy = (np.sum(current*(matrix @ current),axis=0) + p["cf"]*vc**2)/2 + return derivative / p["fs"], out, channel, current, cap_current, pin, loss, energy + + return evaluate, p["duty"] + + +def solve(p, steps=768): + result = integrate(p, steps=steps, switching_states=commands, state_circuit=state_circuit, + winding_only=True) + # Evaluate V dQ along each linear capacitor charge/discharge trajectory. + # Gate charging draws energy from the fixed half-input drive rail. Coss + # hard-turn-on loss integrates the released energy as its terminal voltage falls. + samples = np.linspace(0, p["vin"]/2, 65) + gate_charge = samples * p["gate_cap"] + output_charge = samples * p["coss"] + gate_energy = np.sum(samples[-1] * np.diff(gate_charge)) + coss_energy = np.trapezoid(samples, output_charge) + result["gate_w"] = 8 * p["fs"] * gate_energy + result["coss_w"] = 8 * p["fs"] * coss_energy + return result diff --git a/docs/topology/2to1_buck_stacked/package_source.py b/docs/topology/2to1_buck_stacked/package_source.py new file mode 100644 index 0000000000000000000000000000000000000000..adf629945df6fb484e9f83b9cfb1a8578a78694e --- /dev/null +++ b/docs/topology/2to1_buck_stacked/package_source.py @@ -0,0 +1,83 @@ +"""Keep the checked-in runtime and corresponding-source archive in sync.""" +import json +from pathlib import Path +from zipfile import ZIP_DEFLATED, ZipFile + +ROOT = Path(__file__).resolve().parents[3] +STATIC = ROOT/'static' +ARCHIVE = STATIC/'openpels-source.zip' +NEXT = ROOT/'.openpels-runtime'/'buck-stacked-source.zip' +SCRIPTS = 'openpels/scripts/openpels/' +ANALYSIS = 'openpels-analysis/static/' +updates = {} + + +def save(name, content): + updates[name] = content.encode() if isinstance(content,str) else content + + +def copy(name, path): + save(name,path.read_bytes()) + + +with ZipFile(ARCHIVE) as source: + runtime, bridge = (STATIC/'compare/app.js').read_text().split( + "// Appended inside the preserved analytical UI's scope.",1) + save(ANALYSIS+'app.js',runtime.replace('picker();await update();announceAnalysisReady()}catch', + 'picker();await update()}catch').rstrip()+'\n') + save(SCRIPTS+'analysis_bridge.js',"// Appended inside the preserved analytical UI's scope."+bridge) + for name in ('engine.js','models-data.json','recommend.js','scoreboard.js','technology.js', + 'buck-stacked.js','operating-conditions.json','assets/buck-stacked.svg', + 'assets/buck-stacked-candidate.svg'): + copy(ANALYSIS+name,STATIC/'compare'/name) + original_header=source.read(ANALYSIS+'index.html').decode().split('
',1)[1].split('
',1)[0] + head, rest = (STATIC/'compare/index.html').read_text().split('
',1) + save(ANALYSIS+'index.html',head+'
'+original_header+'
'+rest.split('
',1)[1]) + for name in ('index.html','pe.js','gallery.js'): + copy(SCRIPTS+name,STATIC/name) + for name in ('Dockerfile','simulator_frame.py','simulator_bridge.js','simulator_service.py', + 'sp2/sp2_preset.py','buck_stacked/__init__.py','buck_stacked/preset.py','buck_stacked/preset_contract.json', + 'buck_stacked/stacked-buck.cir','buck_stacked/NOTICE.md'): + copy(SCRIPTS+name,ROOT/name) + for extension in ('icproj.json','sp'): + name='buck_stacked.'+extension + copy(SCRIPTS+'buck_stacked/'+name,STATIC/'starters'/name) + site=source.read(SCRIPTS+'package-site.py').decode() + save(SCRIPTS+'package-site.py',site.replace("('sp2','rsc2','si2')","('sp2','rsc2','si2','buck_stacked')")) + generator=source.read(SCRIPTS+'generate-starters.mjs').decode() + marker='await writeFile(new URL("index.json", out), JSON.stringify(manifest, null, 2));' + if 'const buckStacked = ' not in generator: + starter=next(x for x in json.loads((STATIC/'starters/index.json').read_text()) if x['id']=='buck_stacked') + generator=generator.replace(marker,''' +const buckStacked = new URL("./buck_stacked/", import.meta.url); +for (const file of ["buck_stacked.icproj.json","buck_stacked.sp"]) + await copyFile(new URL(file,buckStacked),new URL(file,out)); +manifest.push('''+json.dumps(starter,indent=2,ensure_ascii=False)+'''); +'''+marker) + save(SCRIPTS+'generate-starters.mjs',generator) + checker=source.read(SCRIPTS+'check-starters.mjs').decode() + if 'const stackedBuck = ' not in checker: + checker+=''' +const stackedBuck = parseProject(await readFile( + new URL("../../apps/editor/dist-pe/starters/buck_stacked.icproj.json",import.meta.url),"utf8", +)); +assert.equal(stackedBuck.documents.length,1); +assert.equal(stackedBuck.documents[0].instances.filter(x=>x.symbolId==="nmos").length,8); +const stackedBuckNetlist = createDesignNetlistExport(stackedBuck); +assert.equal(stackedBuckNetlist.status,"ready"); +assert.equal(stackedBuckNetlist.file.text,await readFile( + new URL("../../apps/editor/dist-pe/starters/buck_stacked.sp",import.meta.url),"utf8")); +console.log("buck_stacked: eight devices, inverse coupling and native netlist verified"); +''' + save(SCRIPTS+'check-starters.mjs',checker) + gallery=source.read(SCRIPTS+'gallery.browser.mjs').decode() + gallery=gallery.replace('.count(), 9)', '.count(), 10)').replace('[2, 6]', '[2, 7]').replace('.count(), 6)', '.count(), 7)') + save(SCRIPTS+'gallery.browser.mjs',gallery) + tests=source.read(SCRIPTS+'test_simulator.py').decode() + save(SCRIPTS+'test_simulator.py',tests.replace("('sp2','rsc2','si2')","('sp2','rsc2','si2','buck_stacked')")) + with ZipFile(NEXT,'w',ZIP_DEFLATED) as target: + for entry in source.infolist(): + target.writestr(entry,updates.pop(entry.filename,source.read(entry))) + for name,data in updates.items(): + target.writestr(name,data) +NEXT.replace(ARCHIVE) diff --git a/docs/topology/2to1_buck_stacked/parity.md b/docs/topology/2to1_buck_stacked/parity.md new file mode 100644 index 0000000000000000000000000000000000000000..c66ed31b606ed07dcfb9557036ed641197d92eec --- /dev/null +++ b/docs/topology/2to1_buck_stacked/parity.md @@ -0,0 +1,114 @@ +# 2:1 Buck_Stacked feature parity + +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. + +**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. + +## Entry point and schematic checklist + +- [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. +- [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) +- [x] Guarded source exports and the editable integration copy have separate hashes. [Source manifest](source/SHA256SUMS) · [Integration evidence](evidence/SHA256SUMS) + +## Analysis matrix + +[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) + +| Original feature or control | Stacked buck disposition | +| --- | --- | +| Gallery handoff | Pass. Focused 2:1 route receives Vin 3 V, Iout 1 A, D=0.5. | +| Family intro and scope | Pass. The focused view identifies duty-based operation, positive CCM and the eight-device budget. | +| Output voltage and current | Pass. Two modes, direct duty and loaded target, share the independent Vin and load fields. | +| Derived input voltage | N/A at fixed ratio. Vin is directly entered because duty can vary. Ideal Vout is derived from duty times Vin. | +| Load resistance and requested power | Pass. The candidate and export derive both from the requested or ideal voltage and the entered load. | +| Switching frequency | Pass. Initial 2 MHz and edited 2.4 MHz reach the ripple and energy models. | +| Silicon budget selector | Pass. Width and die-area modes use shared sizing. | +| Die area | Pass. Edited 1.5 mm² in area mode. | +| Usable transistor fraction | Pass. 1.12 is rejected and 0.5 restores sizing. | +| Ron × area | Pass. Edited 1.1 mΩ·mm² reaches the width limit. | +| Flying or clamp capacitance | N/A. The reviewed right-hand circuit has a single output cap; 44 µF reaches the edited design. | +| Main capacitor ESR | Pass for output-cap ESR. The 6 mΩ edit reaches the RMS model. | +| Maximum capacitor count | Pass. Zero excludes the design's one output capacitor. | +| Maximum estimated droop | Pass. The screen rejects zero allowed droop. The constraint uses average winding voltage balance. | +| Priority and objective | Pass. Three shared priorities select the same loss minimizer for this circuit's fixed component counts. | +| Power winding count and DCR | Pass. Count one excludes the pair. A 5 mΩ edited DCR contributes to winding loss. | +| Leakage and magnetizing input | N/A as independent duplicate controls. Equivalent modal inductances follow from separate editable self-L and k; both are tested. | +| 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. | +| Update, validation and exclusions | Pass. Feasibility, invalid-input export gating, manual weights, reset and recovery were exercised. | +| Scoreboard and Circuit cards | Pass. Both views render the focused design and use the source drawing. | +| Candidate design and preview | Pass. Rank, resistance, loss, width, preview decode, and inspect open the advanced workbench. | +| Width sizing | Pass. The 8-device width sum matches the chosen width. The interior and bounded optima are checked against independent area/allocation samples. | +| Equivalent resistance and droop | Pass. Output power resistance and mean-channel/DCR voltage resistance have separate roles and are validated against switched results. | +| Switch and capacitor ESR | Pass. Separate per-component terms reconcile with numerical and NGSpice results. | +| Winding DCR | Pass. Separate RMS result in Analysis and NGSpice. | +| Separate charging increment | N/A. There is no flying capacitor. Hard Coss discharge appears separately and only once. | +| 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. | +| 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. | +| Total, mix and relative score | Pass. Reported component powers add to the modeled total. A singleton has no relative grade. | +| Efficiency | Pass. Derived from delivered power and the sum of modeled loss terms. | +| Inspect circuit | Pass. Opens the advanced cards and weights for the sized candidate. | +| Status, schematic and workbench | Pass. Reviewed image, eight-device area map, coefficient information and operating domain. | +| Topology toggles | Pass. Chrome adds and removes BUCK2 while retaining the stacked physical design. See [workspace checks](verify_workspace.mjs). | +| Equivalent circuit, coefficients and formulas | Pass. RMS terms, gain, and separate gate and Coss accounting. Generic flying-cap charge term is inapplicable. | +| Die allocation map | Pass. Eight labeled blocks and checked width fractions in the downloaded report. | +| Normalized weights, Apply and Reset | Pass for ESR, DCR, coupling and current scale. The legacy flying-cap weight applies to additional SC comparison curves. | +| Resistance plot, legend and cursor | Pass. Duty-dependent CCM curve, legend and hover; the second plot shows loaded output. | +| Model disclosures and finite-RC demo | Shared standalone tool preserved. Generic flying-cap RC demonstrator is outside this circuit model. | +| 180 nm frequency, width, capacitor settings | Pass. Focused model uses the Design Constraint fields once and reports corresponding technology data. | +| 180 nm winding resistance | Pass. Design DCR reaches physical result. | +| VGS and gate events | Pass. Read-only Vin/2 and one effective event. An independent fixed-voltage or event-count edit is inapplicable. | +| 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) | +| Technology constants | Pass. Illustrative reference reported; effective linear gate capacitance scales by physical width. | +| Design JSON | Pass. Widths, feasibility, modes, losses and efficiency checked. | +| Technology JSON | Pass. Device count, capacitances and power verified. | +| Per-unit CSV | Pass. Edited weights, coupling, ripple scale and duty verified. | +| Equivalent circuit SVG | Pass. Download verified. | +| Local image review and notes | The tagged browser regression verifies the shared local review form. External inference is outside this development. | + +## Simulator matrix + +[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) + +| Original feature or control | Stacked buck disposition | +| --- | --- | +| Layout and selector | Shared controls, status, topology preview, plot, summary, results and downloads. Gallery loads the correct preset. | +| Input voltage | Continuous field and two-point rail sweep. Nominal 3 V; edited 3.12 V. | +| Output target or duty | Both modes exercised. Output target solves for duty and the output remains free-running. Inactive command field is hidden. | +| Load current | Continuous true constant-current load. The equivalent load resistor serves Analysis reporting only. | +| Frequency | Continuous, measured in MHz; executed deck and sweep verify the command rate. | +| Flying capacitor and ESR | N/A. Output capacitor and its ESR are applicable and independently bound and swept. | +| Switch Ron and area | Independent per-MOSFET Ron in high and low stacks. Area sizing remains in Analysis. | +| 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. | +| 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. | +| Coupling, self-L and winding DCR | Independent continuous inputs and separate sweep axes. Actual winding polarity and names are preserved. | +| Stop and max step | Automatic or entered and swept separately. The executed window uses whole periods; step request is a ceiling. | +| 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. | +| Run, progress and job locks | Async ticket, busy status and disabled Run while executing. Success restores controls. | +| 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. | +| Efficiency curves | Rendered stage and gate-inclusive curves, point rows, and download. | +| 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. | +| Winding sum and difference | Measured and shown in details and in downloadable data; the waveform includes both phases and summed current. | +| Summary and metrics | Ideal voltage, load, delivered output, timing, RMS and ripple data, energy balance, explicit separate gate and Coss loss. | +| Power boundaries | Electrical input, delivered power, conduction/storage closure and separately measured gate/discharge fixtures are recorded. | +| 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. | +| 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. | +| 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. | + +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. + +## Reproduction and open scope + +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. + +## Closure checklist for Stages 9 through 11 + +| Requirement | Status | Evidence | +| --- | --- | --- | +| 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. | +| 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. | +| 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`. | +| Gallery, editable starter, sizing and advanced Analysis | PASS | [Chrome workflow](evidence/coss-workflow.json) and [workspace replay](evidence/coss-workspace.json). | +| 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. | +| 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. | +| Existing 2:1 and 4:1 regressions | PASS | [Regression receipts](evidence/coss-regressions.json). | +| 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. | diff --git a/docs/topology/2to1_buck_stacked/qualification.md b/docs/topology/2to1_buck_stacked/qualification.md new file mode 100644 index 0000000000000000000000000000000000000000..b6a6b2cb692acbed76dd7f7c3f77359843cca37f --- /dev/null +++ b/docs/topology/2to1_buck_stacked/qualification.md @@ -0,0 +1,47 @@ +# 2:1 Buck_Stacked qualification record + +**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. + +| Stage | Status and evidence | +| --- | --- | +| 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. | +| 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. | +| 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. | +| 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). | +| 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. | +| 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. | +| 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. | +| 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. | +| 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. | +| 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). | +| 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. | + +## PR #1 publication checks + +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). + +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. + +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. + +## Checklist disposition + +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). + +- 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). +- 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. +- 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. +- 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. +- 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. + +## Limits + +- Equal blocking and half-input effective drive are approved ideal assumptions. Practical voltage balancing and dynamic sharing mismatch are outside the qualification scope. +- 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. +- Publication covers the authorized right-hand circuit and its derivatives under AGPL-3.0-only. Hosted execution remains pending. + +## Applicability + +- **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. +- **NOT APPLICABLE:** practical dynamic sharing, device-level dead-time and closed-loop behavior. See the [approved scope](approval.md). +- **Open qualification items:** none within the declared local ideal scope. diff --git a/docs/topology/2to1_buck_stacked/review/README.md b/docs/topology/2to1_buck_stacked/review/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6717f9c4caf621d6f437b5e6563c6ecf1e230a9d --- /dev/null +++ b/docs/topology/2to1_buck_stacked/review/README.md @@ -0,0 +1,94 @@ +# 2:1 Buck_Stacked · Circuit Definition Review figures + +**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. + +## 1. Original right-hand schematic + +**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). + +![Original right-hand Analog Canvas schematic with eight MOSFET labels](original-right.svg) + +## 2. Gate assignment and expected VGS + +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. + +**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. + +**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. + +| Canvas label / reference | Gate connection or proposed command | Gate voltage reference | Expected VGS and path condition | +| --- | --- | --- | --- | +| 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. | +| 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. | +| 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. | +| 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. | +| 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. | +| 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. | +| 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. | +| 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. | + +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. + +## 3. Visual switching states + +**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. + +![Four annotated switching states on the right-hand schematic](switching-states.svg) + +| AB | Conducting devices | Winding input levels | +| --- | --- | --- | +| 10 | M13/M15 and M10/M12 | SWA = VIN, SWB = 0 | +| 01 | M9/M11 and M14/M16 | SWA = 0, SWB = VIN | +| 00 | M9/M11 and M10/M12 | SWA = 0, SWB = 0 | +| 11 | M13/M15 and M14/M16 | SWA = VIN, SWB = VIN | + +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. + +## 4. Proposed timing diagrams + +**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. + +![PWM timing for duty below, equal to, and above one half](timing.svg) + +| Region | State order from t/T = 0 | Interval lengths in units of T | +| --- | --- | --- | +| 0 < D < 0.5 | 10 → 00 → 01 → 00 | D, 0.5−D, D, 0.5−D | +| D = 0.5 | 10 → 01 | 0.5, 0.5 | +| 0.5 < D < 1 | 11 → 10 → 11 → 01 | D−0.5, 1−D, D−0.5, 1−D | + +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. + +## 5. Winding polarity and reference directions + +**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. + +```text + iA → +SWA ── ● 1 [ L3 ] 2 ── R1 ── VOUT + + iB → +SWB ──── 2 [ L4 ] 1 ● ── R2 ── VOUT +``` + +**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. + +## 6. Assumed per-device voltage stress + +**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. + +| Device | 10 | 01 | 00 | 11 | +| --- | --- | --- | --- | --- | +| Q1a / M13 | 0 | VIN − hA | VIN − hA | 0 | +| Q1b / M15 | 0 | hA | hA | 0 | +| Q2a / M11 | VIN − lA | 0 | 0 | VIN − lA | +| Q2b / M9 | lA | 0 | 0 | lA | +| Q3a / M14 | VIN − hB | 0 | VIN − hB | 0 | +| Q3b / M16 | hB | 0 | hB | 0 | +| Q4a / M12 | 0 | VIN − lB | 0 | VIN − lB | +| Q4b / M10 | 0 | lB | 0 | lB | + +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. + +## Provenance + +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. diff --git a/docs/topology/2to1_buck_stacked/review/SHA256SUMS b/docs/topology/2to1_buck_stacked/review/SHA256SUMS new file mode 100644 index 0000000000000000000000000000000000000000..17f5df3fa8d01e6943d8e37688b84da44d91c09e --- /dev/null +++ b/docs/topology/2to1_buck_stacked/review/SHA256SUMS @@ -0,0 +1,3 @@ +0b059a6f09d8fbb4d2bed195b8a3a4b394b33df5b03ce74e6674c8fe176a979e original-right.svg +5c43ae5da9054c794ac4a3b9fa4122eb7824761d4f6f43f31764388f9e17d7ad switching-states.svg +516ed71c2e9db9ab0256765e910b00d9ad4d0389efcc85439469d46b825b736c timing.svg diff --git a/docs/topology/2to1_buck_stacked/review/build_review_figures.py b/docs/topology/2to1_buck_stacked/review/build_review_figures.py new file mode 100644 index 0000000000000000000000000000000000000000..89c95a604fe52797940fee4e5c1c7d4115d00531 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/review/build_review_figures.py @@ -0,0 +1,204 @@ +"""Create the review overlays from the released right-hand Analog Canvas geometry.""" +from copy import deepcopy +from fractions import Fraction +from pathlib import Path +import xml.etree.ElementTree as ET + +HERE = Path(__file__).resolve().parent +NS = "http://www.w3.org/2000/svg" +ET.register_namespace("", NS) +BLUE = "#236eaa" +ORANGE = "#ad521a" +INK = "#202835" + +# These are Canvas object IDs and the visible power-wire segments from dut r266. +STACKS = { + ("A", "1"): ("M2_14", "M2_17"), + ("A", "0"): ("M2_13", "M2_15"), + ("B", "1"): ("M2_16", "M2_18"), + ("B", "0"): ("M6_13", "M6_14"), +} +STACK_LABELS = { + ("A", "1"): ("q-reference-M2_14", "q-reference-M2_16", "instance-label-M1_19"), + ("A", "0"): ("q-reference-M2_13", "q-reference-M2_15", "instance-label-M1_21"), + ("B", "1"): ("q-reference-M1_13", "q-reference-M2_18", "instance-label-M1_20"), + ("B", "0"): ("q-reference-M6_13", "q-reference-M6_14", "instance-label-M1_22"), +} +POWER_ROUTES = { + ("A", "1"): "M980 80 H900 V120 M900 160 V180 M900 220 V300", + ("A", "0"): "M980 470 H900 V450 M900 410 V380 M900 340 V300", + ("B", "1"): "M980 80 H1060 V120 M1060 160 V180 M1060 220 V250", + ("B", "0"): "M980 470 H1060 V450 M1060 410 V380 M1060 340 V250", +} +OUTPUT_ROUTES = ( + "M900 300 H1100 M1140 300 H1150 M1190 300 H1200 V270 " + "M1060 250 H1100 M1140 250 H1150 M1190 250 H1200 V270 " + "M1200 270 H1300 V290 M1260 270 V290 M1260 330 V350 H1300 V330 " + "M1280 350 V360" +) +ARROWS = { + ("A", "1"): "M936 99 V316 H1193", + ("A", "0"): "M947 451 V316 H1193", + ("B", "1"): "M1096 99 V263 H1193", + ("B", "0"): "M1096 451 V263 H1193", +} + + +def element(parent, tag, content=None, **attrs): + node = ET.SubElement(parent, f"{{{NS}}}{tag}", {k.replace("_", "-"): str(v) for k, v in attrs.items()}) + node.text = content + return node + + +def new_figure(width, height, title, description): + root = ET.Element(f"{{{NS}}}svg", { + "viewBox": f"0 0 {width} {height}", "width": str(width), "height": str(height), + "role": "img", "aria-labelledby": "figure-title figure-desc", + }) + element(root, "title", title, id="figure-title") + element(root, "desc", description, id="figure-desc") + element(root, "rect", width=width, height=height, fill="#fff") + return root + + +def label(parent, x, y, content, *, size=17, color=INK, weight=400, anchor="start"): + return element(parent, "text", content, x=x, y=y, fill=color, font_size=size, + font_family="Arial, sans-serif", font_weight=weight, text_anchor=anchor) + + +def write_figure(root, filename): + # Canvas text uses adjacent positioned spans. Indentation adds visible whitespace. + ET.ElementTree(root).write(HERE / filename, encoding="utf-8", xml_declaration=True) + + +def draw_state_card(root, formal, x, y, state, caption): + card = element(root, "g", transform=f"translate({x} {y})", data_state=state) + element(card, "rect", width=604, height=504, rx=8, fill="#fff", stroke="#d9dfe8") + label(card, 16, 26, f"{state} {caption}", size=20, weight=700) + artwork = element(card, "svg", x=7, y=34, width=590, height=457, viewBox="760 43 590 457") + schematic = deepcopy(formal) + selected = tuple(zip(("A", "B"), state)) + off = tuple((phase, str(1 - int(bit))) for phase, bit in selected) + muted_objects = {item for key in off for item in (*STACKS[key], *STACK_LABELS[key])} + if state == "00": + muted_objects.update({"VDD1_13", "power-label-vdd1_13", "contact-d6cc57b7521cdf67"}) + if state == "11": + muted_objects.update({"g3_14", "contact-452d5f2d2e336227"}) + for layer in schematic: + name = layer.get("data-layer") + if name == "routes": + layer.set("opacity", "0.34") + for d in (OUTPUT_ROUTES, *(POWER_ROUTES[key] for key in selected)): + element(artwork, "path", d=d, fill="none", stroke="#222", stroke_width=1.4) + for obj in layer: + object_id = obj.get("data-object-id") + if object_id in muted_objects: + obj.set("opacity", "0.35") + artwork.insert(0, schematic) + for phase, bit in selected: + color, x_label, y_label, text_label = ( + (BLUE, 1174, 332, "iA") if phase == "A" else (ORANGE, 1195, 237, "iB") + ) + d = ARROWS[phase, bit] + element(artwork, "path", d=d, fill="none", stroke="#fff", stroke_width=4.8, + stroke_linejoin="round", opacity=0.92) + element(artwork, "path", d=d, fill="none", stroke=color, stroke_width=2.15, + stroke_linejoin="round", marker_end=f"url(#arrow-{phase})") + label(artwork, x_label, y_label, text_label, size=13, color=color, weight=700) + + +def switching_states(): + source = ET.parse(HERE / "original-right.svg").getroot() + formal = next(group for group in source if group.get("data-layer") == "formal") + root = new_figure(1260, 1166, "2:1 Buck_Stacked switching states", + "Four ideal positive-current switching states on the original Canvas geometry. " + "Blue arrows follow phase A and orange arrows follow phase B toward the output.") + defs = element(root, "defs") + for child in source: + if child.tag.endswith("}style"): + defs.append(deepcopy(child)) + for phase, color in (("A", BLUE), ("B", ORANGE)): + marker = element(defs, "marker", id=f"arrow-{phase}", viewBox="0 0 10 10", + refX=9, refY=5, markerWidth=5, markerHeight=5, orient="auto-start-reverse") + element(marker, "path", d="M0 0 L10 5 L0 10 z", fill=color) + label(root, 18, 37, "2:1 Buck_Stacked — proposed switching states", size=29, weight=700) + label(root, 18, 66, "Ideal intervals, positive continuous winding current. Each arrow ends at its output branch.", size=17) + label(root, 18, 91, "Blue iA through L3", color=BLUE, weight=700) + label(root, 219, 91, "Orange iB through L4", color=ORANGE, weight=700) + label(root, 441, 91, "Dark stack carries winding current · Gray stack is outside that path", size=16) + for i, (state, caption) in enumerate(( + ("10", "A powered · B freewheels"), ("01", "A freewheels · B powered"), + ("00", "Both phases freewheel"), ("11", "Both phases powered"), + )): + draw_state_card(root, formal, 18 + (i % 2) * 620, 107 + (i // 2) * 516, state, caption) + label(root, 18, 1153, "Dead time, diode commutation, and midpoint charging are outside these four plateaus.", size=15) + write_figure(root, "switching-states.svg") + + +def intervals(duty): + edges = sorted({0, duty, Fraction(1, 2), (Fraction(1, 2) + duty) % 1, 1}) + for left, right in zip(edges, edges[1:]): + midpoint = (left + right) / 2 + a = midpoint < duty + b = (midpoint - Fraction(1, 2)) % 1 < duty + yield left, right, (a, b) + + +def plot_timing(root, top, region, duty, edge_labels): + width = 785 + x0 = 142 + chunks = list(intervals(duty)) + heading = region if duty == Fraction(1, 2) else f"{region} · drawn at D = {float(duty):.2f}" + label(root, 23, top + 25, heading, size=19, weight=700) + row_top = top + 69 + fills = {"00": "#edf0f4", "10": "#e7f3fa", "01": "#fbede2", "11": "#ece7f7"} + for (left, right, ab), tick in zip(chunks, edge_labels): + x, end = x0 + width * float(left), x0 + width * float(right) + state = "".join(str(int(value)) for value in ab) + element(root, "rect", x=x, y=row_top, width=end - x, height=138, fill=fills[state]) + element(root, "line", x1=x, x2=x, y1=row_top - 5, y2=row_top + 139, + stroke="#a2aebc", stroke_dasharray="3 3") + label(root, x, row_top - 13, tick, size=14, anchor="middle") + label(root, (x + end) / 2, row_top + 127, state, size=17, weight=700, anchor="middle") + element(root, "line", x1=x0 + width, x2=x0 + width, y1=row_top - 5, y2=row_top + 139, stroke="#a2aebc") + label(root, x0 + width, row_top - 13, "1", size=14, anchor="middle") + label(root, 74, row_top - 13, "t/T", size=14) + label(root, 74, row_top + 127, "AB", size=16, weight=700) + for i, (name, color) in enumerate((("A", BLUE), ("Ā", BLUE), ("B", ORANGE), ("B̄", ORANGE))): + high = row_top + 8 + i * 27 + low = high + 13 + label(root, 74, high + 13, name, color=color, weight=700) + trace = [] + for j, (left, right, ab) in enumerate(chunks): + on = ab[i // 2] if i % 2 == 0 else not ab[i // 2] + y = high if on else low + left_x, right_x = x0 + width * float(left), x0 + width * float(right) + trace.append(f"{'M' if j == 0 else 'L'}{left_x} {y} H{right_x}") + element(root, "path", d=" ".join(trace), fill="none", stroke=color, + stroke_width=2.4, stroke_linejoin="round") + + +def timing_diagram(): + root = new_figure(1000, 918, "2:1 Buck_Stacked proposed gate timing", + "Normalized phase A and B PWM commands and complements for duty below, at, and above one half.") + label(root, 23, 40, "2:1 Buck_Stacked — proposed PWM timing", size=28, weight=700) + label(root, 23, 68, "One phase period T. B starts T/2 after A. The four traces are logic commands.", size=16) + plot_timing(root, 90, "0 < D < 0.5", Fraction(7, 20), ["0", "D", "½", "½ + D"]) + plot_timing(root, 321, "D = 0.5", Fraction(1, 2), ["0", "½"]) + plot_timing(root, 552, "0.5 < D < 1", Fraction(13, 20), ["0", "D − ½", "½", "D"]) + label(root, 24, 798, "Dead time at each phase edge", size=17, weight=700) + label(root, 24, 824, "Both commands are low during blanking.", size=15) + label(root, 24, 848, "The three panels use zero dead time.", size=15) + label(root, 24, 872, "At D = 0.5, both phases change state together.", size=15) + element(root, "rect", x=656, y=804, width=91, height=68, fill="#edf0f4") + label(root, 702, 796, "Blanking interval", size=14, anchor="middle") + label(root, 470, 827, "Outgoing", size=15) + label(root, 470, 863, "Incoming", size=15) + element(root, "path", d="M566 814 H656 V829 H925 M566 865 H747 V850 H925", + fill="none", stroke=INK, stroke_width=2.2) + write_figure(root, "timing.svg") + + +if __name__ == "__main__": + switching_states() + timing_diagram() diff --git a/docs/topology/2to1_buck_stacked/review/original-right.svg b/docs/topology/2to1_buck_stacked/review/original-right.svg new file mode 100644 index 0000000000000000000000000000000000000000..5ec04cfdcf4d38d3667640b2806f890c5246d986 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/review/original-right.svg @@ -0,0 +1,2 @@ + +2:1 Buck_Stacked — right-hand schematicIOUTL3L4VIN2VIN2ABABVIN2COUTVOUTR1R2VINQ3aQ2aQ1aQ2bQ1bQ3bQ4aQ4b \ No newline at end of file diff --git a/docs/topology/2to1_buck_stacked/review/switching-states.svg b/docs/topology/2to1_buck_stacked/review/switching-states.svg new file mode 100644 index 0000000000000000000000000000000000000000..9a51cc3497713c08c48077c7ff63712f5b1c2d41 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/review/switching-states.svg @@ -0,0 +1,2 @@ + +2:1 Buck_Stacked switching statesFour ideal positive-current switching states on the original Canvas geometry. Blue arrows follow phase A and orange arrows follow phase B toward the output.2:1 Buck_Stacked — proposed switching statesIdeal intervals, positive continuous winding current. Each arrow ends at its output branch.Blue iA through L3Orange iB through L4Dark stack carries winding current · Gray stack is outside that path10 A powered · B freewheelsIOUTL3L4VIN2VIN2ABABVIN2COUTVOUTR1R2VINQ3aQ2aQ1aQ2bQ1bQ3bQ4aQ4biAiB01 A freewheels · B poweredIOUTL3L4VIN2VIN2ABABVIN2COUTVOUTR1R2VINQ3aQ2aQ1aQ2bQ1bQ3bQ4aQ4biAiB00 Both phases freewheelIOUTL3L4VIN2VIN2ABABVIN2COUTVOUTR1R2VINQ3aQ2aQ1aQ2bQ1bQ3bQ4aQ4biAiB11 Both phases poweredIOUTL3L4VIN2VIN2ABABVIN2COUTVOUTR1R2VINQ3aQ2aQ1aQ2bQ1bQ3bQ4aQ4biAiBDead time, diode commutation, and midpoint charging are outside these four plateaus. \ No newline at end of file diff --git a/docs/topology/2to1_buck_stacked/review/timing.svg b/docs/topology/2to1_buck_stacked/review/timing.svg new file mode 100644 index 0000000000000000000000000000000000000000..9a58c4273d0cf5a5ed8cf6aa47b31143e1cd1b76 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/review/timing.svg @@ -0,0 +1,2 @@ + +2:1 Buck_Stacked proposed gate timingNormalized phase A and B PWM commands and complements for duty below, at, and above one half.2:1 Buck_Stacked — proposed PWM timingOne phase period T. B starts T/2 after A. The four traces are logic commands.0 < D < 0.5 · drawn at D = 0.35010D00½01½ + D001t/TABAĀBB̄D = 0.5010½011t/TABAĀBB̄0.5 < D < 1 · drawn at D = 0.65011D − ½10½11D011t/TABAĀBB̄Dead time at each phase edgeBoth commands are low during blanking.The three panels use zero dead time.At D = 0.5, both phases change state together.Blanking intervalOutgoingIncoming \ No newline at end of file diff --git a/docs/topology/2to1_buck_stacked/source/README.md b/docs/topology/2to1_buck_stacked/source/README.md new file mode 100644 index 0000000000000000000000000000000000000000..7f833c7c36f25082ed39adc7ef676263149b9cf5 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/source/README.md @@ -0,0 +1,14 @@ +# Buck_Stacked source and release scope + +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. + +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. + +The complete source snapshot remains in the local qualification milestone. Its two full exports are identified here by hash for provenance. + +| Original local artifact | SHA-256 | +| --- | --- | +| Native project JSON | `d4e67c2621e0088a26c4ab7354dcb936265bed0854021509c908255bbce1cbe3` | +| Full native SVG | `f0b56b2708f7f797c592fd0316d0ae8fef1bed60d11f722b5098e8b7986cec18` | + +See the [technical approval](../approval.md) and the [published source manifest](SHA256SUMS). diff --git a/docs/topology/2to1_buck_stacked/source/SHA256SUMS b/docs/topology/2to1_buck_stacked/source/SHA256SUMS new file mode 100644 index 0000000000000000000000000000000000000000..a9840ba2e7f2c57534b6d9ff0b7d5623dddd41a8 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/source/SHA256SUMS @@ -0,0 +1,4 @@ +55d8fbd82655f45ef221fecaf195b66563ea895dfea976f62086d1881189b076 buck-stacked-right.structural.sp +0b059a6f09d8fbb4d2bed195b8a3a4b394b33df5b03ce74e6674c8fe176a979e ../review/original-right.svg +f7f5881fc34344c96c0069bfe55dc1b32643dfba8fa8a65aa3a7d83fe40bda67 ../../../../static/starters/buck_stacked.icproj.json +0831135f2de8dc63696e502eeee848854d29d02123181c9dd6188a7c364edd14 ../../../../static/starters/buck_stacked.sp diff --git a/docs/topology/2to1_buck_stacked/source/buck-stacked-right.structural.sp b/docs/topology/2to1_buck_stacked/source/buck-stacked-right.structural.sp new file mode 100644 index 0000000000000000000000000000000000000000..cbfa8137585901ff94906cd4a3dce71ab48a642a --- /dev/null +++ b/docs/topology/2to1_buck_stacked/source/buck-stacked-right.structural.sp @@ -0,0 +1,25 @@ +* 2:1 Buck_Stacked / right-hand circuit / dut r266 / structure r59 +* Structural transcription of the reviewed right-hand Canvas connectivity. +* The four unwired PWM gate pins are represented by distinct open nodes. +* VIN, Vin/2 and ground map to vin, vbias and 0. Supply and drivers are external. +* Windings retain the drawn pin order. The source has no electrical coupling element. +* Connectivity evidence. External SKY130 model bodies and transient controls are absent. + +C1 vout 0 1p +ILOAD vout 0 DC 1m +L3 sw_a l3_r1 1n +L4 l4_r2 sw_b 1n +XM9 lo_a open_m9_g 0 0 sky130_fd_pr__nfet_g5v0d16v0 w=5 l=0.7 nf=1 m=1 +XM10 lo_b open_m10_g 0 0 sky130_fd_pr__nfet_g5v0d16v0 w=5 l=0.7 nf=1 m=1 +XM11 sw_a vbias lo_a 0 sky130_fd_pr__nfet_g5v0d16v0 w=5 l=0.7 nf=1 m=1 +XM12 sw_b vbias lo_b 0 sky130_fd_pr__nfet_g5v0d16v0 w=5 l=0.7 nf=1 m=1 +XM13 vin g_m13 hi_a 0 sky130_fd_pr__nfet_g5v0d16v0 w=5 l=0.7 nf=1 m=1 +XM14 vin g_m14 hi_b 0 sky130_fd_pr__nfet_g5v0d16v0 w=5 l=0.7 nf=1 m=1 +XM15 hi_a open_m15_g sw_a 0 sky130_fd_pr__nfet_g5v0d16v0 w=5 l=0.7 nf=1 m=1 +XM16 hi_b open_m16_g sw_b 0 sky130_fd_pr__nfet_g5v0d16v0 w=5 l=0.7 nf=1 m=1 +R1 l3_r1 vout 1k +R2 l4_r2 vout 1k +V1 g_m13 sw_a DC 1 +V2 g_m14 sw_b DC 1 + +.end diff --git a/docs/topology/2to1_buck_stacked/validate.py b/docs/topology/2to1_buck_stacked/validate.py new file mode 100644 index 0000000000000000000000000000000000000000..033e1a37b91536d682b42ea8eba4684db583c477 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/validate.py @@ -0,0 +1,150 @@ +"""Replay the matched analytic, independent periodic, and NGSpice comparisons.""" +import argparse +from dataclasses import replace +import json +from pathlib import Path +import subprocess +import sys + +import numpy as np + +ROOT = Path(__file__).resolve().parents[3] +sys.path.insert(0,str(ROOT)) +from buck_stacked.preset import run_case, validate +from numerical import solve + +CASES = { + 'd25': {'duty':.25}, + 'd35': {'duty':.35}, + 'd45': {'duty':.45}, + 'nominal': {}, + 'd55': {'duty':.55}, + 'd65': {'duty':.65}, + 'd75': {'duty':.75}, + 'unequal': {'duty':.64,'switch_ron_mohm':7.5,'low_ron_mohm':21,'output_current_a':1.35}, + 'combined': {'duty':.38,'input_voltage_v':3.8,'output_current_a':1.5, + 'switching_frequency_mhz':3.4,'inductance_nh':1500,'coupling':.45,'output_esr_mohm':11, + 'dcr_mohm':18,'output_cap_uf':24,'switch_coff_pf':23,'gate_cap_pf':54}, + 'no_coupling': {'duty':.55,'coupling':0,'switching_frequency_mhz':3.4}, + 'zero_events': {'switch_coff_pf':0,'gate_cap_pf':0}, + 'loaded_target': {'voltage_mode':'output_voltage','target_output_v':1.5}, + 'low_corner': {'stop_us':35,'input_voltage_v':2.5,'output_current_a':.6,'switching_frequency_mhz':4, + 'dcr_mohm':2,'switch_ron_mohm':5,'inductance_nh':2000,'output_esr_mohm':1,'output_cap_uf':60,'coupling':.75}, + 'cold_nominal': {'stop_us':360}, + 'cold_unequal': {'stop_us':360,'duty':.6,'switch_ron_mohm':9,'low_ron_mohm':20}, +} +METRICS = ('voltage','phase_ripple','channel','esr','dcr','gate','coss','efficiency') +COLORS = ('#384a63','#147a6c','#b55c28') + + +def make_point(c): + return dict(id='buck_stacked',vin=c.vin,io=c.load,fs=c.fs,duty=c.duty,lt=c.winding,k=c.coupling, + 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) + + +def analytical(c): + params = dict(rs=.018,rl=c.dcr,rc=c.esr,vin=c.vin,load=c.load,fs=c.fs,coupling=c.coupling, + rippleScale=c.vin/(c.fs*c.winding*c.load),highRon=c.high/2,lowRon=c.low/2, + gateCap=c.gate_cap,coss=c.coss) + program = ''' +const m = require('./static/compare/buck-stacked.js'); +const [d,p] = JSON.parse(process.argv[1]); +console.log(JSON.stringify(m.evaluate(d,p))); +''' + r = json.loads(subprocess.check_output(['node','-e',program,json.dumps([c.duty,params])],cwd=ROOT)) + return tuple([c.ideal-c.load*r['droop_resistance'],c.load*r['phase_ripple_per_amp'], + *[c.load**2*r[k] for k in ('fet','cap','ind')],r['gate_w'],r['coss_w']]) + + +def with_efficiency(row,load): + power = row[0]*load + return dict(zip(METRICS,(*map(float,row),float(power/(power+sum(row[2:])))))) + + +def compare(name,path): + _,c,*_ = validate({'topologies':['buck_stacked'],**CASES[name]}) + c = replace(c,name=name) + p = make_point(c) + n = solve(p) + fine = solve(p,1536) + assert abs(n['vo']-fine['vo'])<1e-7 and np.max(abs(n['loss']-fine['loss']))<1e-7 + assert np.max(abs(fine['end']-fine['initial']))<1e-8 and abs(fine['balance'])<1e-7 + assert abs(fine['output_cap_a'])<1e-8 and fine['valley']>0 + s = run_case(c,path,cold=name.startswith('cold_')) + result = [with_efficiency(v,c.load) for v in [ + analytical(c),(fine['vo'],fine['phase_ripple'][0],*fine['loss'],fine['gate_w'],fine['coss_w']), + (s['vout_v'],s['winding_ripple_a'][0],sum(s['switch_w']),sum(s['esr_w']),sum(s['dcr_w']), + s['supplemental_gate_w'],s['coss_w'])]] + a,n,z = result + for metric in METRICS[:-1]: + for left,right,switches in [(a,n,False),(a,z,False),(n,z,True)]: + if metric=='voltage': + max_error = .0005 if switches else .002 + elif metric=='phase_ripple': + max_error = max(.005,.05*abs(right[metric])) + elif metric in ('gate','coss'): + max_error = max(.000001,.01*abs(right[metric])) + else: + max_error = max(.00001 if switches else .00003,(.01 if switches else .05)*abs(right[metric])) + if abs(left[metric]-right[metric])>max_error: + raise AssertionError((name,metric,left[metric],right[metric],max_error)) + return dict(case=name,duty=c.duty,settings=CASES[name],analytical=a,numerical=n,ngspice=z, + numerical_checks=dict(balance_w=float(fine['balance']),charge_average_a=float(fine['output_cap_a']), + periodic_change=float(np.max(abs(fine['end']-fine['initial'])))), + spice_checks={k:s[k] for k in ('balance_w','window_drift_v','output_cap_average_a', + 'winding_voltage_mean_v','switch_peak_v','winding_min_a','deck_sha256')}) + + +def plot(rows,path): + import matplotlib + matplotlib.use('Agg') + import matplotlib.pyplot as plt + + sweeps = [r for r in rows if r['case'].startswith('d') or r['case']=='nominal'] + panel = sorted(sweeps,key=lambda r:r['duty']) + fig,axes = plt.subplots(2,2,figsize=(7.3,4.5),layout='constrained') + for ax,(metric,unit,scale) in zip(axes.ravel(),[ + ('voltage','Mean output (V)',1),('phase_ripple','Phase ripple (A pp)',1), + ('channel','Channel loss (mW)',1000),('esr','Output ESR loss (mW)',1000)]): + for name,color,mark,style in zip(('analytical','numerical','ngspice'),COLORS,('o','s','x'),('-','--',':')): + ax.plot([r['duty'] for r in panel],[scale*r[name][metric] for r in panel], + color=color,marker=mark,ms=3,ls=style,label={'ngspice':'NGSpice'}.get(name,name.title())) + ax.set(xlabel='High-side duty',ylabel=unit) + ax.grid(alpha=.22) + axes[0,0].legend(frameon=False,fontsize=8) + fig.savefig(path/'duty-comparison.svg') + plt.close(fig) + fig,axes = plt.subplots(2,1,figsize=(7.3,4.1),sharex=True,layout='constrained') + for ax,metric in zip(axes,('gate','coss')): + for name,color,mark,style in zip(('analytical','numerical','ngspice'),COLORS,('o','s','x'),('-','--',':')): + ax.plot(range(len(rows)),[1000*r[name][metric] for r in rows], + color=color,marker=mark,ms=3,ls=style,label={'ngspice':'NGSpice'}.get(name,name.title())) + ax.set_ylabel(f'{metric.capitalize()} loss (mW)') + ax.grid(alpha=.22) + axes[-1].set_xticks(range(len(rows)),[r['case'] for r in rows],rotation=35,ha='right',fontsize=8) + axes[0].legend(frameon=False,fontsize=8) + fig.savefig(path/'event-comparison.svg') + plt.close(fig) + for name in ('duty-comparison.svg','event-comparison.svg'): + figure_path=path/name + figure_path.write_text('\n'.join(line.rstrip() for line in figure_path.read_text().splitlines())+'\n') + + +if __name__=='__main__': + parser = argparse.ArgumentParser() + parser.add_argument('directory',type=Path) + parser.add_argument('--case',choices=CASES,action='append') + parser.add_argument('--resume',action='store_true',help='Retain unchanged matched cases from the same source build') + args = parser.parse_args() + output = args.directory.resolve() + output.mkdir(parents=True,exist_ok=True) + selected = args.case or CASES + receipt=output/'matched-results.json' + cached=json.loads(receipt.read_text()) if args.resume and receipt.exists() else [] + records={row['case']:row for row in cached if row['settings']==CASES[row['case']]} + for name in selected: + records[name]=compare(name,output) + print(f'{name}: passed',flush=True) + data=[records[key] for key in CASES if key in records] + receipt.write_text(json.dumps(data,indent=2)+'\n') + plot(data,output) diff --git a/docs/topology/2to1_buck_stacked/verify_browser.mjs b/docs/topology/2to1_buck_stacked/verify_browser.mjs new file mode 100644 index 0000000000000000000000000000000000000000..c0fecd2ce420e9c9cfc6bec8be58203945bc19d9 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/verify_browser.mjs @@ -0,0 +1,209 @@ +import assert from 'node:assert/strict'; +import {readFile,writeFile} from 'node:fs/promises'; +import {createRequire} from 'node:module'; +import {resolve} from 'node:path'; + +const {chromium,expect:baseExpect}=createRequire(resolve('local-source/openpels/package.json'))('@playwright/test'); +const expect=baseExpect.configure({timeout:15000}); +const base=process.env.OPENPELS_URL??'http://127.0.0.1:8765'; +const browser=await chromium.launch({channel:'chrome',headless:true,args:[ + '--host-resolver-rules=MAP fonts.googleapis.com ~NOTFOUND, MAP fonts.gstatic.com ~NOTFOUND']}); +const page=await browser.newPage({viewport:{width:1600,height:1200}}); +const analysis=page.frameLocator('#comparison'), sim=page.frameLocator('#simulator'), editor=page.frameLocator('#editor'); +const field=name=>analysis.locator('#design-'+name), setting=name=>sim.locator('#sp2-'+name); +const close=(a,b,tol=1e-8)=>assert(Math.abs(a-b)<=tol,`${a} differs from ${b}`); +const errors=[],evidence={analysis:{},simulator:{},reload:{}}; +page.on('pageerror',e=>errors.push(e.message)); +async function details(frame,id) { + const node=frame.locator(id); + if (!(await node.evaluate(el=>el.open))) await node.locator('summary').first().click(); +} +async function download(button) { + const [file]=await Promise.all([page.waitForEvent('download'),button.click()]); + return (await readFile(await file.path())).toString(); +} +async function job() { + const pending=page.waitForResponse(r=>r.request().method()==='POST'&&r.url().endsWith('/api/simulation/jobs')); + await sim.locator('#runButton').click(); + const r=await pending; + assert.equal(r.status(),202,await r.text()); + const {id}=await r.json(); + await expect(sim.locator('#status')).toHaveText(/^Run /,{timeout:180000}); + await sim.locator('#plotWrap img').evaluate(img=>img.decode()); + const {state,result}=await (await page.request.get(base+'/api/simulation/jobs/'+id)).json(); + assert.equal(state,'succeeded'); + assert.equal(result.run_id,id); + return result; +} + +try { + assert((await (await page.request.get(base+'/healthz')).json()).topologies.includes('buck_stacked')); + await page.goto(base); + await expect(page.locator('.topology-tile')).toHaveCount(10); + await page.locator('[data-family="4"]').click(); + await expect(page.locator('[data-topology-id="buck_stacked"]')).toHaveCount(0); + await page.locator('[data-family="2"]').click(); + await expect(page.locator('.topology-tile')).toHaveCount(7); + const tile=page.locator('[data-topology-id="buck_stacked"]'); + await expect(tile).toContainText('Analysis + simulation'); + await tile.locator('img').evaluate(x=>x.decode()); + await tile.click(); + const card=analysis.locator('#circuits [data-topology="buck_stacked"]'); + await expect(card).toBeVisible(); + await expect(card.locator('.die-allocation [data-device]')).toHaveCount(8); + await expect(analysis.getByText('THE LOSS LINEUP',{exact:true})).toBeVisible(); + await expect(analysis.locator('[data-loss-mechanism="coss"] strong')).not.toHaveText('Unknown'); + for(const k of ['lk_nh','lm_uh','tank_nh']) await expect(field(k)).toBeHidden(); + for(const [id,value,reason] of [['max_caps','0','Requires one output capacitor'], + ['max_windings','1','Requires two inverse-coupled windings'],['max_drop_percent','0','droop exceeds'], + ['max_phase_ripple_percent','5','phase ripple exceeds'],['io','.1','crosses zero']]) { + const old=await field(id).inputValue(); + await field(id).fill(value); + await details(analysis,'.excluded-list'); + await expect(analysis.locator('[data-candidate="buck_stacked"]')).toContainText(reason); + await field(id).fill(old); + await expect(analysis.locator('[data-candidate-status="eligible"]')).toBeAttached(); + } + await field('budget_mode').selectOption('area'); + await field('utilization').fill('1.12'); + await expect(analysis.locator('#export-recommendation')).toBeDisabled(); + const values={utilization:'.5',die_mm2:'1.5',ron_area_mohm_mm2:'1.1',vout:'3.2',io:'1.25', + fs_mhz:'2.4',cap_uf:'44',si_l_nh:'1180',si_coupling:'.56',si_duty:'.61',rc_mohm:'6',rl_mohm:'5'}; + for(const [k,v] of Object.entries(values)) await field(k).fill(v); + for(const objective of ['capacitors','magnetics','loss']) { + await field('objective').selectOption(objective); + await expect(analysis.locator('[data-candidate-status="eligible"]')).toBeAttached(); + } + await details(analysis,'#analysis-workbench'); + await details(analysis,'#technology-panel'); + await expect(analysis.locator('#tech-vgs')).toHaveValue('1.6'); + await expect(analysis.locator('#tech-vgs')).not.toBeEditable(); + await expect(analysis.locator('#tech-events')).not.toBeEditable(); + await analysis.locator('#tech-eoss_pj').fill('.52'); + await analysis.locator('#apply-technology').click(); + const report=JSON.parse(await download(analysis.locator('#export-recommendation'))); + const tech=JSON.parse(await download(analysis.locator('#export-technology'))); + const row=report.winner; + assert.equal(row.id,'buck_stacked'); + assert.equal(row.device.length,8); + close(row.device.reduce((s,x)=>s+x.width_mm,0),row.width_mm); + close(row.gate_power,(2.51e-12/3.3)*row.width_mm*1.6**2*2.4e6); + close(row.coss_power,.5*.52e-12*row.width_mm*1.6**2*2.4e6); + close(tech.rows[0].coss_pf,.52*row.width_mm/8); + close(row.efficiency,row.delivered_w/(row.delivered_w+row.loss)); + close(Object.values(report.loss_scoreboard.rows[0].powers).reduce((a,b)=>a+b),row.loss); + await analysis.locator('[data-comparison-view="circuits"]').click(); + const candidateImage=analysis.locator('[data-candidate="buck_stacked"] img'); + await candidateImage.scrollIntoViewIfNeeded(); + await expect.poll(()=>candidateImage.evaluate(x=>x.naturalWidth)).toBeGreaterThan(0); + await analysis.locator('[data-candidate="buck_stacked"] [data-inspect-design]').click(); + await details(analysis,'#sweep-section'); + await analysis.locator('#rout-chart rect.hit').hover(); + await expect(analysis.locator('#rout-chart .chart-tooltip')).toContainText('STACK'); + await expect(analysis.locator('#si-voltage-chart svg')).toBeVisible(); + assert.match(await download(analysis.locator('#si-export-sweep')),/analytical_v/); + await analysis.getByText('Per-unit loss weights',{exact:true}).click(); + for(const [k,v] of Object.entries({rho_c:'.41',rho_l:'.31',rho_q:'12.2',si_coupling:'.47',si_ripple:'.82'})) + await analysis.locator('#'+k).fill(v); + await analysis.locator('#apply-weights').click(); + await expect(analysis.locator('#inspection-context')).toContainText('Manual comparison weights'); + const pu=await download(analysis.locator('#export-csv')); + for(const value of ['0.61','0.41','0.31','0.47','0.82']) assert(pu.includes('"'+value+'"')); + assert.match(await download(analysis.locator('[data-svg="buck_stacked"]')),/No separate charging term/); + await analysis.locator('#reset').click(); + evidence.analysis={controls:values,losses:report.loss_scoreboard.rows[0].powers,efficiency:row.efficiency,deviceCount:row.device.length}; + console.log('Analysis controls, sizing, Loss Lineup and exports passed'); + + await page.locator('#selected-edit').click(); + await expect(page.locator('#context-name')).toContainText('2:1 Buck_Stacked'); + await expect(page.locator('#device-count')).toHaveText('8'); + await expect(page.locator('#winding-count')).toHaveText('2'); + await expect(editor.locator('.schematic-canvas')).toBeVisible(); + const before=JSON.parse(await download(page.locator('#save-project'))); + await editor.getByRole('button',{name:'Place Resistor',exact:true}).click(); + await editor.locator('.schematic-canvas').click({position:{x:605,y:95}}); + await page.keyboard.press('Escape'); + const edited=JSON.parse(await download(page.locator('#save-project'))); + assert.equal(edited.documents[0].instances.length,before.documents[0].instances.length+1); + await editor.locator('.schematic-canvas').focus(); + await page.keyboard.press(process.platform==='darwin'?'Meta+z':'Control+z'); + assert.equal(JSON.parse(await download(page.locator('#save-project'))).documents[0].instances.length,before.documents[0].instances.length); + const seen=[]; + page.on('response',r=>{if(r.url().includes('v=buck-stacked'))seen.push(new URL(r.url()).pathname);}); + await page.reload(); + await page.getByRole('button',{name:'Schematic',exact:true}).click(); + await expect(page.locator('#context-name')).toContainText('2:1 Buck_Stacked'); + const menu=editor.getByTestId('project-menu-toggle'); + for(const [name,pattern] of [['Export SVG',/{ + const item=result.artifacts.find(a=>a.name===name); + assert(item,name); + return download(sim.locator(`[download="${name}"]`)); + }; + assert.match(await artifact(m.deck),/S_M13/); + assert.match(await artifact(m.waveform),/vds_m13_v.*coss_discharge_fixture_power_w/); + assert.match(await artifact('physical_design.log'),/ngspice/i); + assert.equal(JSON.parse(await artifact('result.json')).metrics[0].vout_v,m.vout_v); + assert.match(await artifact('physical_design-measurements.json'),/deck_sha256/); + evidence.simulator.edited={run:result.run_id,settings:edit,metrics:m}; + await setting('target').fill('2.99'); + await expect(sim.locator('#sp2-settings')).toContainText('outside the loaded voltage range'); + await sim.locator('#runButton').click(); + await expect(sim.locator('#status')).toContainText('requires duty outside'); + await setting('target').fill('1.53'); + await page.locator('#selected-analysis').click(); + await expect(field('vout')).toHaveValue('3.12'); + await expect(field('si_target_v')).toHaveValue('1.53'); + await page.locator('#selected-simulate').click(); + await expect(setting('target')).toHaveValue('1.53'); + await expect(setting('rs')).not.toHaveValue('9'); + const mode=sim.locator('#sp2-voltage-mode'); + await mode.selectOption('duty_cycle'); + await expect(setting('duty')).toBeVisible(); + await setting('duty').fill('.5'); + await sim.locator('#sp2-include-sweep').check(); + await sim.locator('#sp2-parameter').selectOption('duty'); + const s=await job(); + assert(s.sweep.length>=2&&s.sweep.every(r=>r.status==='passed')); + evidence.simulator.sweep={run:s.run_id,rows:s.sweep.map(r=>({duty:r.duty,vout:r.vout_v,status:r.status}))}; + assert.deepEqual(errors,[]); + if(process.env.OPENPELS_BROWSER_EVIDENCE) + await writeFile(process.env.OPENPELS_BROWSER_EVIDENCE,JSON.stringify(evidence,null,2)+'\n'); + console.log('Simulator target/duty, edited NGSpice run, return handoff, rejection and duty sweep passed'); +} finally { + await browser.close(); +} diff --git a/docs/topology/2to1_buck_stacked/verify_coss_browser.mjs b/docs/topology/2to1_buck_stacked/verify_coss_browser.mjs new file mode 100644 index 0000000000000000000000000000000000000000..eb17b72fc854fc3b937a4090e31f88fb01ccadf5 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/verify_coss_browser.mjs @@ -0,0 +1,147 @@ +import assert from 'node:assert/strict'; +import {createHash} from 'node:crypto'; +import {readFile,writeFile} from 'node:fs/promises'; +import {createRequire} from 'node:module'; +import {resolve} from 'node:path'; + +const {chromium,expect}=createRequire(resolve('local-source/openpels/package.json'))('@playwright/test'); +const preset=JSON.parse(await readFile('buck_stacked/preset_contract.json','utf8')); +const origin=process.env.OPENPELS_URL??'http://127.0.0.1:8765'; +const browser=await chromium.launch({channel:'chrome',headless:true,args:[ + '--host-resolver-rules=MAP fonts.googleapis.com ~NOTFOUND, MAP fonts.gstatic.com ~NOTFOUND']}); +const page=await browser.newPage({viewport:{width:1600,height:1200}}); +const errors=[]; +page.on('pageerror',error=>errors.push(error.message)); +const near=(actual,expected,tolerance=1e-10)=>assert(Math.abs(actual-expected)<=tolerance,`${actual} vs ${expected}`); +let sim=page; + +async function download(button) { + const [file]=await Promise.all([page.waitForEvent('download'),button.click()]); + return (await readFile(await file.path())).toString(); +} + +async function run(coss) { + const pending=page.waitForResponse(r=>r.request().method()==='POST'&&r.url().endsWith('/api/simulation/jobs')); + await sim.locator('#runButton').click(); + const response=await pending; + assert.equal(response.status(),202,await response.text()); + const payload=response.request().postDataJSON().payload; + assert.equal(payload.switch_coff_pf,coss); + await expect(sim.locator('#status')).toHaveText(/^Run /,{timeout:120000}); + await sim.locator('#plotWrap img').evaluate(img=>img.decode()); + const artifact=name=>download(sim.locator(`[download="${name}"]`)); + const result=JSON.parse(await artifact('result.json')); + assert.equal(result.validation,'passed',result.validation_message); + assert.equal(result.settings.switch_coff_pf,coss); + const m=result.metrics[0]; + const measurements=JSON.parse(await artifact('physical_design-measurements.json')); + assert.equal(measurements.refined.coss_w,m.coss_w); + assert.equal(measurements.settings.coss,coss===null?null:coss*1e-12); + const deck=await artifact(m.deck); + assert.equal(createHash('sha256').update(deck).digest('hex'),m.deck_sha256); + const wave=await artifact(m.waveform); + const columns=wave.split('\n')[0].split(','); + const lossField='coss_discharge_fixture_power_w'; + const details=sim.locator('#sp2-result'); + const displayedCoss = details.locator('dt').filter({hasText:'Measured Coss event loss'}) + .locator('xpath=following-sibling::dd[1]'); + assert.equal(m.efficiency_includes_coss,coss!==null); + if (coss===null) { + assert.equal(m.coss_w,null); + assert(!columns.includes(lossField)); + assert(!/\bCX=|^Voss_supply /m.test(deck)); + await expect(displayedCoss).toHaveText('Unknown · excluded'); + await expect(sim.locator('#summaryMetrics')).toContainText('excl. unknown Coss'); + } else { + assert(columns.includes(lossField)); + assert.match(deck,/^Voss_supply /m); + if(coss===0) { + assert.equal(m.coss_w,0); + const col=columns.indexOf(lossField); + assert(wave.trim().split('\n').slice(1).every(line=>Number(line.split(',')[col])===0)); + } else { + assert(m.coss_w>0); + const expected=4*coss*1e-12*m.gate_drive_v**2*payload.switching_frequency_mhz*1e6; + near(m.coss_w,expected,Math.max(1e-6,.01*expected)); + } + await expect(displayedCoss).toHaveText(`${(1e3*m.coss_w).toFixed(3)} mW`); + await expect(sim.locator('#summaryMetrics')).not.toContainText('unknown Coss'); + } + near(m.input_w,m.electrical_input_w+(m.coss_w??0)); + near(m.efficiency_with_gate,m.delivered_w/(m.input_w+m.supplemental_gate_w)); + return {payload,result:{run_id:result.run_id,settings:result.settings,metrics:m},waveform_columns:columns}; +} + +try { + // Use the actual Simulator selector with untouched defaults and without an Analysis point. + await page.goto(origin+'/simulator/'); + await sim.locator('#topologySelect').selectOption('buck_stacked'); + const expected={topologies:['buck_stacked'],voltage_mode:'duty_cycle'}; + for (const [id,entry] of Object.entries(preset.parameters)) { + if(id==='target') continue; + await expect(sim.locator('#sp2-'+id)).toHaveValue(String(entry.default??'')); + expected[entry.field]=entry.default; + } + const nominal=await run(10); + assert.deepEqual(nominal.payload,expected); + near(nominal.result.metrics.vout_v,1.486,2e-6); + near(nominal.result.metrics.gate_drive_v,1.5); + console.log('Exact default Simulator preset passed via Chrome.'); + + await page.goto(origin); + await page.locator('[data-topology-id="buck_stacked"]').click(); + sim=page.frameLocator('#simulator'); + const analysis=page.frameLocator('#comparison'); + const evidence={nominal}; + for(const [label,value] of [['positive','.52'],['blank',''],['zero','0']]) { + const expectedNull=value===''; + for(const id of ['#analysis-workbench','#technology-panel']) { + const detail=analysis.locator(id); + if(!(await detail.evaluate(el=>el.open))) await detail.locator('summary').first().click(); + } + await analysis.locator('#tech-eoss_pj').fill(value); + await analysis.locator('#apply-technology').click(); + const lineup=analysis.locator('[data-loss-mechanism="coss"] strong'); + if(expectedNull) await expect(lineup).toHaveText('Unknown'); + else if(value==='0') await expect(lineup).toHaveText(/^0\.00\s*mW$/); + else await expect(lineup).toHaveText(/mW/); + const design=JSON.parse(await download(analysis.locator('#export-recommendation'))); + const tech=JSON.parse(await download(analysis.locator('#export-technology'))).rows[0]; + assert.equal(design.winner.efficiency_includes_coss,!expectedNull); + assert.equal(design.winner.coss_power,tech.poss); + if(expectedNull) assert.equal(tech.coss_pf,null); + else near(tech.coss_pf,Number(value)*design.winner.width_mm/8); + await expect(page.locator('#selected-simulate')).toBeEnabled(); + await page.locator('#selected-simulate').click(); + await expect(sim.locator('#topologySelect')).toHaveValue('buck_stacked'); + const coss=sim.locator('#sp2-coss'); + await expect.poll(async()=>{const v=await coss.inputValue();return v===''?null:Number(v)}).toBe(tech.coss_pf); + if(expectedNull) { + await sim.locator('#sp2-include-sweep').check(); + await sim.locator('#sp2-parameter').selectOption('duty'); + await sim.locator('#sp2-sweep-count').fill('2'); + } + const job=await run(tech.coss_pf); + const m=job.result.metrics; + near(job.payload.switch_ron_mohm,1e3*tech.device[0].ron); + near(job.payload.gate_cap_pf,tech.gate_cap_pf); + if(tech.poss!==null) near(m.coss_w,tech.poss,Math.max(1e-6,.01*tech.poss)); + evidence[label]={analysis:{coss_pf:tech.coss_pf,coss_w:tech.poss,efficiency:design.winner.efficiency, + coss_included:design.winner.efficiency_includes_coss},...job}; + if(expectedNull) { + const csv=await download(sim.locator('[download="buck_stacked-sweep.csv"]')); + assert.match(csv,/coss_w,efficiency_includes_coss/); + assert(csv.trim().split('\n').slice(1).every(row=>row.trimEnd().endsWith(',,False'))); + await expect(sim.locator('#sp2-sweep-results')).toContainText('Unknown'); + evidence[label].sweep_csv=csv; + await sim.locator('#sp2-include-sweep').uncheck(); + } + await page.locator('#selected-analysis').click(); + console.log(`Analysis → Simulator ${label} Coss passed.`); + } + assert.deepEqual(errors,[]); + if(process.env.OPENPELS_COSS_EVIDENCE) + await writeFile(process.env.OPENPELS_COSS_EVIDENCE,JSON.stringify(evidence,null,2)+'\n'); +} finally { + await browser.close(); +} diff --git a/docs/topology/2to1_buck_stacked/verify_sizing.cjs b/docs/topology/2to1_buck_stacked/verify_sizing.cjs new file mode 100644 index 0000000000000000000000000000000000000000..cafdd3902bd5a14d85cf3febba6eb61427ec096d --- /dev/null +++ b/docs/topology/2to1_buck_stacked/verify_sizing.cjs @@ -0,0 +1,48 @@ +const assert = require('node:assert/strict'); +const model = require('../../../static/compare/buck-stacked.js'); +const technology = require('../../../static/compare/technology.js'); +const engine = require('../../../static/compare/engine.js'); +const catalog = require('../../../static/compare/models-data.json'); + +const p = {areaMinimum:0,areaBudget:1,ronArea:.002,gateCapPerArea:2e-8,cossPerArea:8e-9, + vin:3,fs:2e6,load:1,rc:.005,rl:.004,coupling:.6,rippleScale:1.5}; +const duty = .61; +const optimum = model.optimizeArea(duty,p); +assert(optimum.area>0&&optimum.area<1); +const loss = ({conduction,gate_w,coss_w}) => conduction+gate_w+coss_w; +const moments = model.evaluate(duty,{rs:1,...p}); +function physical(area, highFraction) { + const perHigh = highFraction*area/4, perLow = (1-highFraction)*area/4; + const fet = 4*p.ronArea*(moments.high_weight/perHigh+moments.low_weight/perLow); + const gate = p.gateCapPerArea*area*p.fs*(p.vin/2)**2; + const coss = p.cossPerArea*area*p.fs*(p.vin/2)**2/2; + return fet+moments.cap+moments.ind+gate+coss; +} +for (let i=1;i<=1000;i++) { + for(let j=1;j<40;j++) assert(loss(optimum.losses)<=physical(i/1000,j/40)+1e-12); +} +assert(Math.abs(optimum.device_areas.reduce((a,b)=>a+b,0)-optimum.area)<1e-12); +assert.equal(model.optimizeArea(duty,{...p,gateCapPerArea:0,cossPerArea:0}).area,1); +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]; +assert.equal(abs.vdrive,1.5); +assert(Math.abs(abs.gate_w-.0009)<1e-12); +assert(Math.abs(abs.coss_w-.00018)<1e-12); +assert(abs.efficiency_with_events engine.analyze({ratio:2,topologies:['buck_stacked'],vin:3,iout:1, + fs_mhz:2,lt_nh:1000,coss_pf},catalog).rows[0]; +for(const value of [null,'']) { + const unknown=stackedAbsolute(value); + assert.equal(unknown.coss_w,null); + assert.equal(unknown.efficiency_includes_coss,false); +} +assert.equal(stackedAbsolute(0).coss_w,0); +assert.equal(stackedAbsolute(0).efficiency_includes_coss,true); +assert.equal(stackedAbsolute(undefined).coss_w,abs.coss_w); + +const base = engine.analyzePU({ratio:2,topologies:['buck_stacked']},catalog).rows[0]; +const device = technology.example([base],{vin:3.2,io:1,fs_mhz:2,width_mm:400, + si_duty:duty,stack_coss_pf_per_mm:.4}).rows[0]; +assert.equal(device.device.length,8); +assert.equal(device.gate_swing_v,1.6); +assert(Math.abs(device.poss-.5*.4e-12*400*2e6*1.6**2)<1e-12); +console.log('Stacked buck allocation, interior and bounded optima, and absolute gate/Coss accounting passed.'); diff --git a/docs/topology/2to1_buck_stacked/verify_sweeps.mjs b/docs/topology/2to1_buck_stacked/verify_sweeps.mjs new file mode 100644 index 0000000000000000000000000000000000000000..0ebc3544753b47e3c010cef63bd6aa69de813822 --- /dev/null +++ b/docs/topology/2to1_buck_stacked/verify_sweeps.mjs @@ -0,0 +1,72 @@ +import assert from 'node:assert/strict'; +import {createHash} from 'node:crypto'; +import {createRequire} from 'node:module'; +import {writeFile} from 'node:fs/promises'; +import {resolve} from 'node:path'; +const require=createRequire(resolve(process.env.OPENPELS_SOURCE??'local-source/openpels','package.json')); +const {chromium,expect}=require('@playwright/test'); +const base=process.env.OPENPELS_URL??'http://127.0.0.1:8765'; +const browser=await chromium.launch({channel:'chrome',headless:true,args:[ + '--host-resolver-rules=MAP fonts.googleapis.com ~NOTFOUND, MAP fonts.gstatic.com ~NOTFOUND']}); +const axes={ + vin:[2.8,3.3,'VIN',1],load:[.8,1.25,'ILOAD',1],fs:[1.8,2.4,'FS',1e6], + duty:[.30,.70,'DUTY',1],lt:[800,1450,'LW',1e-9],coupling:[0,.72,'KCOUP',1], + dcr:[3,9,'RDCR',.001],rs:[9,18,'RH',.001],rslow:[10,18,'RL',.001], + gatecap:[4,42,'CG',1e-12],coss:[5,22,'CX',1e-12], + cout:[38,60,'CO',1e-6],esr:[2.5,11,'CESR',.001], + stop:[85,110,null,1],step:[750,1000,null,1], + target:[1.3,1.65,null,1], +}; +try { + const page=await browser.newPage(); + await page.goto(base); + await page.locator('[data-topology-id="buck_stacked"]').click(); + await page.locator('#selected-simulate').click(); + const sim=page.frameLocator('#simulator'), field=id=>sim.locator('#sp2-'+id); + await expect(sim.locator('#topologySelect')).toHaveValue('buck_stacked'); + await field('duty').fill('.44'); + await field('include-sweep').check(); + await expect(field('parameter').locator('option')).toHaveCount(Object.keys(axes).length-1); + const evidence={}; + for (const [id,[start,stop,param,scale]] of Object.entries(axes)) { + if(id==='target') await field('voltage-mode').selectOption('output_voltage'); + await field('parameter').selectOption(id); + for(const [key,value] of Object.entries({start,stop,count:2})) + await field('sweep-'+key).fill(String(value)); + const pending=page.waitForResponse(r=>r.request().method()==='POST'&&r.url().endsWith('/api/simulation/jobs')); + await sim.locator('#runButton').click(); + const response=await pending; + assert.equal(response.status(),202,await response.text()); + const {id:jobId}=await response.json(); + await expect(sim.locator('#runButton')).toBeDisabled(); + await expect(sim.locator('#status')).toHaveText(/^Run /,{timeout:120000}); + const job=await (await page.request.get(base+'/api/simulation/jobs/'+jobId)).json(); + assert.equal(job.state,'succeeded'); + assert.equal(job.result.validation,'passed',job.result.validation_message); + await expect(sim.locator('#sp2-sweep-results tbody tr')).toHaveCount(2); + await sim.locator('#sp2-sweep-results img').evaluate(img=>img.decode()); + const {sweep,artifacts}=job.result; + assert.deepEqual(sweep.map(row=>row.value),[start,stop]); + for (const row of sweep) { + assert.equal(row.status,'passed',id+': '+row.message); + const artifact=artifacts.find(file=>file.name===row.deck); + const deck=await (await page.request.get(base+artifact.url)).text(); + assert.equal(createHash('sha256').update(deck).digest('hex'),row.deck_sha256); + if (param) { + const observed=Number(deck.match(new RegExp('(?: |^)'+param+'=(\\S+)'))[1]); + assert(Math.abs(observed-row.value*scale)file.name==='buck_stacked-sweep.csv'); + assert.equal((await (await page.request.get(base+csv.url)).text()).trim().split('\n').length,3); + evidence[id]={run:jobId,rows:sweep.map(({value,vout_v,efficiency_with_gate,deck_sha256})=>({value,vout_v,efficiency_with_gate,deck_sha256}))}; + console.log(id,JSON.stringify(evidence[id])); + } + if(process.env.OPENPELS_SWEEP_EVIDENCE) await writeFile(process.env.OPENPELS_SWEEP_EVIDENCE,JSON.stringify(evidence,null,2)+'\n'); + console.log('All stacked buck axes exercised in both supported mode contexts, with deck hashes and CSVs verified.'); +} finally { + await browser.close(); +} diff --git a/docs/topology/2to1_buck_stacked/verify_workspace.mjs b/docs/topology/2to1_buck_stacked/verify_workspace.mjs new file mode 100644 index 0000000000000000000000000000000000000000..aef41894b450a6189c87ab397f2a8935089c955d --- /dev/null +++ b/docs/topology/2to1_buck_stacked/verify_workspace.mjs @@ -0,0 +1,51 @@ +import assert from 'node:assert/strict'; +import {createRequire} from 'node:module'; +import {resolve} from 'node:path'; +import {readFile,writeFile} from 'node:fs/promises'; + +const {chromium,expect}=createRequire(resolve('local-source/openpels/package.json'))('@playwright/test'); +const origin=process.env.OPENPELS_URL??'http://127.0.0.1:8765'; +const browser=await chromium.launch({channel:'chrome',headless:true,args:[ + '--host-resolver-rules=MAP fonts.googleapis.com ~NOTFOUND, MAP fonts.gstatic.com ~NOTFOUND']}); +try { + const page=await browser.newPage({viewport:{width:1600,height:1200}}); + const response=new Map(); + page.on('response',r=>response.set(new URL(r.url()).pathname,r)); + await page.goto(origin); + await page.locator('[data-topology-id="buck_stacked"]').click(); + const a=page.frameLocator('#comparison'); + const card=a.locator('#circuits [data-topology="buck_stacked"]'); + await expect(card).toBeVisible(); + if (!(await a.locator('#analysis-workbench').evaluate(x=>x.open))) await a.locator('#analysis-workbench summary').first().click(); + const alternate=a.locator('[data-topology-choice="buck2"]'); + await alternate.click(); + await expect(a.locator('#circuits [data-topology="buck2"]')).toBeVisible(); + await expect(card).toBeVisible(); + await alternate.click(); + await expect(a.locator('#circuits [data-topology="buck2"]')).toHaveCount(0); + if (!(await a.locator('#model-details').evaluate(x=>x.open))) await a.locator('#model-details summary').first().click(); + await expect(a.locator('#coefficients')).toContainText('4 (Ron,H J_H + Ron,L J_L)'); + if (!(await a.locator('#sweep-section').evaluate(x=>x.open))) await a.locator('#sweep-section summary').first().click(); + for (const axis of ['duty_cycle','input_voltage_v','output_current_a','switching_frequency_mhz']) { + await a.locator('#si-sweep-axis').selectOption(axis); + await expect(a.locator('#si-voltage-chart svg')).toBeVisible(); + } + await a.locator('#design-si_mode').selectOption('output_voltage'); + await a.locator('#design-si_target_v').fill('1.53'); + await a.locator('#si-sweep-axis').selectOption('output_voltage'); + await expect(a.locator('#si-voltage-chart svg')).toBeVisible(); + const files=['/pe.js','/gallery.js','/compare/app.js','/compare/engine.js','/compare/buck-stacked.js','/compare/technology.js', + '/compare/recommend.js','/compare/models-data.json','/compare/operating-conditions.json']; + for(const path of files) { + const served=response.get(path); + assert(served,path); + assert.equal(served.headers()['cache-control'],'no-store'); + assert.deepEqual(await served.body(),await readFile(resolve('static','.'+path))); + } + if(process.env.OPENPELS_WORKSPACE_EVIDENCE) + await writeFile(process.env.OPENPELS_WORKSPACE_EVIDENCE,JSON.stringify({files,axes:['duty_cycle','output_voltage','input_voltage_v', + 'output_current_a','switching_frequency_mhz'],comparison:'buck2 add/remove',coefficients:true},null,2)+'\n'); + console.log('Workspace comparison toggles, model disclosure, all five Analysis sweep axes and served asset bytes passed.'); +} finally { + await browser.close(); +} diff --git a/docs/topology/2to1_cross_validation/circuit.py b/docs/topology/2to1_cross_validation/circuit.py index d8f19893b169e684678b2683addbb5aa721b5fd2..8f2d4acda7c72669ce9658306e6bf9ed5bdc380c 100644 --- a/docs/topology/2to1_cross_validation/circuit.py +++ b/docs/topology/2to1_cross_validation/circuit.py @@ -76,14 +76,16 @@ def rk4(matrix, dt): return np.eye(len(z))+z+z2/2+z2@z/6+z2@z2/24 -def integrate(p, steps=768, stiff=False, ideal=False): +def integrate(p, steps=768, stiff=False, ideal=False, *, switching_states=states, + state_circuit=circuit, winding_only=False): """Build finite-step discrete maps, shoot for the periodic state, then sample.""" - slots = states(p) + slots = tuple(switching_states(p)) + winding_only = winding_only or p["id"] == "si2" dimension = 5 if p["id"] == "rsc2" else 3 maps = [] cycle = np.eye(dimension+1) for lo, hi, state in slots: - evaluate, gain = circuit(p,state,stiff,ideal) + evaluate, gain = state_circuit(p,state,stiff,ideal) offset = evaluate(np.zeros((dimension,1)))[0][:,0] linear = evaluate(np.eye(dimension))[0] - offset[:, None] augmented = np.zeros_like(cycle) @@ -151,10 +153,10 @@ def integrate(p, steps=768, stiff=False, ideal=False): output_kcl=p["io"]+ico) for name, series in quantities.items(): means[name] = means.get(name,0) + series @ weights - if p["id"] != "si2": + if not winding_only: charge += current @ weights/p["fs"] if p["id"] != "sp2": - winding = derivative[:2] if p["id"] == "si2" else derivative[2:4] + winding = derivative[:2] if winding_only else derivative[2:4] volt_seconds += winding @ weights ripple.extend(vo) currents.extend(current.T) @@ -163,7 +165,7 @@ def integrate(p, steps=768, stiff=False, ideal=False): maps[0][-1](initial[:dimension,None])[-1][0]) means.update(initial=initial[:-1], end=x[:-1], req=means["loss"].sum()/p["io"]**2, droop=(gain*p["vin"]-means["vo"])/p["io"], vpp=np.ptp(ripple), - valley=np.min(currents), edge=max(edges), storage=storage_w, + valley=np.min(currents), phase_ripple=np.ptp(currents, axis=0), edge=max(edges), storage=storage_w, balance=means["iin"]*p["vin"]-means["vo"]*p["io"]-means["loss"].sum()-storage_w, charge=charge, winding_current_closure=volt_seconds) return means diff --git a/docs/topology/2to1_resonant/verify_browser.mjs b/docs/topology/2to1_resonant/verify_browser.mjs index 47e9bab6b8f93b8f50604a0bf7d5507091f9ce90..f302651a48a9f03ea3968009733019f0375fcefa 100644 --- a/docs/topology/2to1_resonant/verify_browser.mjs +++ b/docs/topology/2to1_resonant/verify_browser.mjs @@ -19,7 +19,7 @@ page.on("pageerror", e => errors.push(e.message)); async function selectRsc() { await page.locator('[data-family="2"]').click(); - await expect(page.locator(".topology-tile")).toHaveCount(6); + await expect(page.locator(".topology-tile")).toHaveCount(7); await page.locator('[data-topology-id="rsc2"]').click(); await expect(analysis.locator('#circuits [data-topology="rsc2"]')).toBeVisible(); } @@ -52,7 +52,7 @@ const artifact = name => download(sim.locator(`[download="${name}"]`)); const near = (a,b,tolerance=1e-10) => assert(Math.abs(a-b)img.decode()); diff --git a/docs/topology/2to1_switched_inductor/verify_cache.mjs b/docs/topology/2to1_switched_inductor/verify_cache.mjs index b4e6af79dcbf923ef5963f844969faddd5fbaa63..70bc0f25341881ae0f6daee07c917017fe5c8f5e 100644 --- a/docs/topology/2to1_switched_inductor/verify_cache.mjs +++ b/docs/topology/2to1_switched_inductor/verify_cache.mjs @@ -2,13 +2,17 @@ import assert from "node:assert/strict"; import { spawn } from "node:child_process"; import { once } from "node:events"; -import { readFile } from "node:fs/promises"; +import { readFile,writeFile } from "node:fs/promises"; import { createRequire } from "node:module"; import { resolve } from "node:path"; const root=resolve(process.env.SI_CACHE_DIR); const priorHasSI=process.env.SI_CACHE_PRIOR_HAS_SI==="1"; const priorHasVoltage=process.env.SI_CACHE_PRIOR_HAS_VOLTAGE==="1"; +const stacked=process.env.OPENPELS_CACHE_TOPOLOGY==="buck_stacked"; +const currentId=stacked?"buck_stacked":"si2"; +const priorHasStacked=process.env.OPENPELS_CACHE_PREVIOUS_HAS_STACKED==="1"; +const priorCards=priorHasStacked?10:priorHasSI?9:8; const {chromium,expect:baseExpect}=createRequire(resolve(process.env.OPENPELS_SOURCE??"local-source/openpels","package.json"))("@playwright/test"); const expect=baseExpect.configure({timeout:20000}); const base="http://127.0.0.1:8765"; @@ -46,43 +50,70 @@ PreviousServer(('127.0.0.1',8765), }); page.on("pageerror",error=>console.error(error.message)); await page.goto(base); - await expect(page.locator(".topology-tile")).toHaveCount(priorHasSI?9:8); + await expect(page.locator(".topology-tile")).toHaveCount(priorCards); await page.locator('[data-family="2"]').click(); - const priorId=priorHasSI?"si2":"sp2"; + const priorId=priorHasStacked?"buck_stacked":priorHasSI?"si2":"sp2"; await page.locator(`[data-topology-id="${priorId}"]`).click(); await expect(page.frameLocator("#comparison").locator(`#circuits [data-topology="${priorId}"]`)).toBeVisible(); await expect(page.frameLocator("#comparison").locator("#design-si_mode")).toHaveCount(priorHasVoltage?1:0); + if(stacked&&!priorHasStacked) await expect(page.locator('[data-topology-id="buck_stacked"]')).toHaveCount(0); await stop(server); server=spawn("./run-local.sh",[],{stdio:"inherit"}); await healthy(server); const cacheAssets=["/pe.js","/gallery.js","/compare/app.js","/compare/style.css", - "/compare/models-data.json","/compare/switched-inductor.js","/compare/operating-point.js","/compare/operating-conditions.json"]; + "/compare/models-data.json","/compare/switched-inductor.js","/compare/operating-point.js","/compare/operating-conditions.json", + ...(stacked?["/compare/buck-stacked.js","/compare/engine.js","/compare/technology.js"]:[])]; const responses=new Map(); page.on("response",r=>{ const path=new URL(r.url()).pathname; if(cacheAssets.includes(path)) responses.set(path,r); }); await page.reload(); - await expect(page.locator(".topology-tile")).toHaveCount(9); + await expect(page.locator(".topology-tile")).toHaveCount(10); await page.locator('[data-family="2"]').click(); - await page.locator('[data-topology-id="si2"]').click(); - await expect(page.frameLocator("#comparison").locator('#circuits [data-topology="si2"]')).toBeVisible(); + await page.locator(`[data-topology-id="${currentId}"]`).click(); + await expect(page.frameLocator("#comparison").locator(`#circuits [data-topology="${currentId}"]`)).toBeVisible(); await expect(page.frameLocator("#comparison").locator("#design-si_mode")).toBeVisible(); const analysis=page.frameLocator("#comparison"); await analysis.locator("#sweep-section summary").first().click(); await expect(analysis.locator('#si-sweep-axis option[value="input_voltage_v"]')).toHaveCount(1); await expect.poll(()=>responses.size).toBe(cacheAssets.length); + const unchanged=new Set(["/compare/style.css","/compare/switched-inductor.js","/compare/operating-point.js"]); for(const path of cacheAssets) { const response=responses.get(path); - assert.equal(response.headers()["cache-control"],"no-store"); - assert.deepEqual(await response.body(),await readFile(resolve("static","."+path))); + const file=await readFile(resolve("static","."+path)); + assert.deepEqual(await response.body(),file,path); + if(stacked&&unchanged.has(path)) { + // An unchanged asset can come from the previous page's cache. Compare its bytes + // above and verify the new server's response policy independently. + const served=await page.request.get(base+path); + assert.equal(served.headers()["cache-control"],"no-store",path); + assert.deepEqual(await served.body(),file,path); + } else { + assert.equal(response.headers()["cache-control"],"no-store",path); + } + } + if(stacked&&priorHasStacked) { + for(const id of ['#analysis-workbench','#technology-panel']) { + const detail=analysis.locator(id); + if(!(await detail.evaluate(el=>el.open))) await detail.locator('summary').first().click(); + } + await analysis.locator('#tech-eoss_pj').fill(''); + await analysis.locator('#apply-technology').click(); + await expect(analysis.locator('[data-loss-mechanism="coss"] strong')).toHaveText('Unknown'); } await page.locator("#selected-simulate").click(); - await expect(page.frameLocator("#simulator").locator("#topologySelect")).toHaveValue("si2"); + await expect(page.frameLocator("#simulator").locator("#topologySelect")).toHaveValue(currentId); + if(stacked&&priorHasStacked) + await expect(page.frameLocator("#simulator").locator('#sp2-coss')).toHaveValue(''); const cold=await browser.newPage(); await cold.goto(base); - await expect(cold.locator('[data-topology-id="si2"]')).toBeVisible(); - console.log("Chrome cache enabled: same-tab normal reload exposes SI operating conditions; eight served asset bodies match release, and a fresh context shows SI"); + await expect(cold.locator(`[data-topology-id="${currentId}"]`)).toBeVisible(); + const result={currentId,previousBuildCards:priorCards,currentCards:10, + assets:cacheAssets.map(path=>({path,url:responses.get(path).url(),cacheControl:responses.get(path).headers()['cache-control']})), + normalReload:true,freshContext:true,...(stacked&&priorHasStacked?{blankCossHandoff:true}:{})}; + if (process.env.OPENPELS_CACHE_EVIDENCE) await writeFile(process.env.OPENPELS_CACHE_EVIDENCE,JSON.stringify(result,null,2)+'\n'); + console.log("Chrome cache enabled: same-tab normal reload, matching served bytes and fresh context verified for",currentId); } finally { await browser.close(); await stop(server); diff --git a/docs/topology/analysis_feature_parity_matrix.md b/docs/topology/analysis_feature_parity_matrix.md index 37c47b7d24d2ecee166b07292aed51e2760ad529..7aa436c8cedd073a6e1563719fb1d2edaa7cd6a6 100644 --- a/docs/topology/analysis_feature_parity_matrix.md +++ b/docs/topology/analysis_feature_parity_matrix.md @@ -98,3 +98,7 @@ See the [resonant SC analysis matrix](2to1_resonant/parity.md#analysis-matrix) a ## 2:1 switched inductor The [Switched Inductor Analysis matrix](2to1_switched_inductor/parity.md#analysis-matrix) records the XFLY6S comparison, finite-ripple analysis, duty and coupling controls, sizing, Loss Lineup, advanced workbench and exports. + +## 2:1 Buck_Stacked + +See the [Stacked Buck Analysis matrix](2to1_buck_stacked/parity.md#analysis-matrix). diff --git a/docs/topology/architecture_discussion.md b/docs/topology/architecture_discussion.md index 2f13d44f4c4cc6c191789fa57899e0e816e768d5..6ed52abeb3e02445a9655aa126c4001184ec6154 100644 --- a/docs/topology/architecture_discussion.md +++ b/docs/topology/architecture_discussion.md @@ -11,5 +11,7 @@ The [validated 2:1 baseline](baselines/validated-2to1-v1.0/README.md) records cu | Coupled resonant sizing | The RSC2 optimizer constrains all areas equal. A detuned 80/20 split at fixed total width reduced modeled conduction resistance and changed tank moments. | A coupled solver would solve periodic currents at each allocation and check objective and constraints for droop, damping, stress, charge sharing and commutation. The observed case motivates studying a wider feasible set. | | Device-specific Coss and commutation | Gate demand is tracked separately. Idealized linear Coss experiments support only their declared device and timing models. | Obtain calibrated device charge or dissipated energy, actual timing and supply boundaries before characterizing nonlinear Coss, overlap, recovery, dead time, startup or hardware efficiency. | | Generalization and evidence | Existing operating conditions, UI and test tooling support topology-specific models. Matched and finite-port records identify model, method and case separately. | Expand shared case schemas, measurements or residual infrastructure when compatible use is demonstrated. Keep switching graphs, equations and admissibility in topology fixtures. Preserve exact source/bench versions and curate evidence independently of working traces. | +| Stacked buck reference and qualification | Analysis `buck` exposes historical 4:1 sizing and comparison-duty semantics in the nominal 2:1 family. The [candidate circuit review](2to1_buck_stacked/circuit_definition.md) identifies physical PWM duty and proposed external gate-bias supplies. | The separate `buck_stacked` identity preserves historical consumers. Its Coss discharge fixture and effective gate rail have explicit energy boundaries. Future shared accounting could identify schematic-derived dissipation versus externally modeled events in a typed loss ledger. Keep this distinction in efficiency and droop outputs. | +| Missing, defaulted and zero switching-loss inputs | Buck_Stacked previously displayed blank Coss as unknown in Analysis but sent 0 pF to Simulator. Its handoff now preserves `null`, explicit zero, and positive values. A request that omits the field still gets the documented 10 pF preset default. Unknown Coss is excluded from a labeled subtotal and remains null in results. [Coss qualification evidence](2to1_buck_stacked/evidence/coss-browser.json) | This is the same input-provenance problem raised for gate-driving loss. Missing charge or capacitance can require a declared fallback, such as SI2's blank gate-capacitance input invoking its Ron × Qg proxy, or an unknown result when no fallback is defined. A user-entered zero is a modeled zero in either case. Consider shared metadata for unknown, defaulted, estimated and explicit values before changing other topology contracts. | Record review scope, affected consumers and acceptance tests before changing shared conventions. The [2:1 correction record](2to1_corrections/architecture.md) supplies the original detailed rationale. diff --git a/docs/topology/feature_parity_checklist.md b/docs/topology/feature_parity_checklist.md index b9ae901cde6d72351762d87475fdbe077a5b11d2..da48778435ddf83e503e561ed63e90fd250d7223 100644 --- a/docs/topology/feature_parity_checklist.md +++ b/docs/topology/feature_parity_checklist.md @@ -53,3 +53,7 @@ See the [resonant SC entry point and schematic checklist](2to1_resonant/parity.m ## 2:1 switched inductor acceptance evidence See the [SI entry point and schematic checklist](2to1_switched_inductor/parity.md#entry-point-and-schematic-checklist), the Analysis and Simulator matrices, and the [development report](2to1_switched_inductor/README.md). + +## 2:1 Buck_Stacked acceptance evidence + +See the [feature parity record](2to1_buck_stacked/parity.md) and [qualification status](2to1_buck_stacked/qualification.md). diff --git a/docs/topology/minjie_confirmation_list.md b/docs/topology/minjie_confirmation_list.md index a09e800b680cfb9da3dc7413f944a0107d8f720e..a4f7897f734e837b924fad97de96e278724d3318 100644 --- a/docs/topology/minjie_confirmation_list.md +++ b/docs/topology/minjie_confirmation_list.md @@ -1,5 +1,9 @@ # Minjie Chen confirmation list +## Buck_Stacked release scope + +The author confirmed public redistribution and adaptation of the reviewed right-hand circuit under AGPL-3.0-only. The Gallery and review SVGs use that geometry, and the editable starter carries the approved ports and coupling. The corresponding-source archive includes the public assets. The [release record](2to1_buck_stacked/source/README.md) and [qualification record](2to1_buck_stacked/qualification.md) identify the provenance and model limits. + ## RSC2 ngspice compatibility The installed deck and corresponding-source archive use textual comparisons in two waveform measurements for compatibility with Debian ngspice 44.2. On ngspice 47, all 11 trace columns matched exactly for the default and edited points at coarse and refined resolution. The [RSC2 browser workflow](2to1_resonant/verify_browser.mjs) passed on macOS and on the local Linux amd64 staging container, including the default run, four-point sweep, editor exports, downloads and invalid-input recovery. Hosted verification is pending. diff --git a/docs/topology/regression_test_registry.md b/docs/topology/regression_test_registry.md index d9766eeb35a57e700b84816ed336ec87fb6ed51e..43eeeacdcb3eed27a86afc24bbad55fe30835e49 100644 --- a/docs/topology/regression_test_registry.md +++ b/docs/topology/regression_test_registry.md @@ -14,6 +14,7 @@ The [validated 2:1 manifest](baselines/validated-2to1-v1.0/manifest.json) identi | RSC2 workflow | Gallery, editor, constrained sizing, operating-point handoffs, real run and sweep, artifact hashes and partial-sweep recovery | [Chrome workflow](2to1_resonant/verify_browser.mjs), [sweeps](2to1_resonant/verify_sweeps.mjs) | | 2:1 release/normal reload | SP2 absolute API, both CSV ledgers, RSC2 label and SI2 continuity. Fresh and warmed Chrome contexts. | [verify_browser.cjs](2to1_corrections/verify_browser.cjs), plus normal reload in [Analysis parity](2to1_switching_capacitors/integration/verify_analysis_parity.mjs). | | Original 4:1 | Tagged XFLY6S Analysis controls, lineup and exports and original design exports. XFLY6S, XFLY8S and C3L tagged versus live Simulator measurements. Protect historical analytical semantics and gating. | Existing [Analysis parity](2to1_switching_capacitors/integration/verify_analysis_parity.mjs) and [Simulator parity](2to1_switching_capacitors/integration/verify_simulator_parity.mjs), using `local-baseline-v1.0`. | +| 2:1 Buck_Stacked | 15 matched cases including seven duties and two zero-state starts. Eight-device area, half-input event energy, both voltage modes, editable starter, Chrome parity and sweep bindings. | [Matched replay](2to1_buck_stacked/validate.py), [sizing](2to1_buck_stacked/verify_sizing.cjs), [Chrome workflow](2to1_buck_stacked/verify_browser.mjs), [sweeps](2to1_buck_stacked/verify_sweeps.mjs), [advanced workspace](2to1_buck_stacked/verify_workspace.mjs), [exact defaults and Coss handoff](2to1_buck_stacked/verify_coss_browser.mjs), [post-fix receipts](2to1_buck_stacked/evidence/coss-regressions.json). | ## Run and retain evidence diff --git a/docs/topology/simulator_feature_parity_matrix.md b/docs/topology/simulator_feature_parity_matrix.md index 9bb078bc45219614b276bdb32693d287a9388ef0..8071001faa889c7da5c3fa1aae16be80129f79a3 100644 --- a/docs/topology/simulator_feature_parity_matrix.md +++ b/docs/topology/simulator_feature_parity_matrix.md @@ -92,3 +92,7 @@ See the [resonant SC simulator matrix](2to1_resonant/parity.md#simulator-matrix) ## 2:1 switched inductor The [Switched Inductor Simulator matrix](2to1_switched_inductor/parity.md#simulator-matrix) records the tagged comparison, direct duty control, admissible CCM bounds, sixteen sweep axes, waveforms, measurements, downloads, and recovery. + +## 2:1 Buck_Stacked + +See the [Stacked Buck Simulator matrix](2to1_buck_stacked/parity.md#simulator-matrix). diff --git a/docs/topology/topology_inventory.md b/docs/topology/topology_inventory.md index b191e3a24d9f00792f349ae0973edb936ae00ac1..d993242915af458ad98e929ea452b8df29f793dd 100644 --- a/docs/topology/topology_inventory.md +++ b/docs/topology/topology_inventory.md @@ -1,6 +1,6 @@ # OpenPELS topology inventory -The current release contains **eleven analytical catalog records, nine visible Gallery cards, six editable starters, and six NGSpice preset families**. The Gallery includes coupled-inductor references at 2:1 and 4:1 and the fixed-ratio series-parallel and resonant switched-capacitor references at 2:1, plus the finite-ripple switched inductor workflow at its nominal 2:1 point. This inventory also includes catalog records outside the Gallery. It does not count different drawings of one topology, individual testbench variants, or unrelated editor examples as additional converters. See [topology requirements](topology_requirements.md) and [addition workflow](topology_addition_workflow.md). +The current release contains **twelve analytical catalog records, ten visible Gallery cards, seven editable starters, and seven NGSpice preset families**. The Gallery includes coupled-inductor references at 2:1 and 4:1 and the fixed-ratio series-parallel and resonant switched-capacitor references at 2:1, plus the finite-ripple switched inductor workflow at its nominal 2:1 point. This inventory also includes catalog records outside the Gallery. It does not count different drawings of one topology, individual testbench variants, or unrelated editor examples as additional converters. See [topology requirements](topology_requirements.md) and [addition workflow](topology_addition_workflow.md). ## Existing converters @@ -17,6 +17,7 @@ Reference and Gallery SVG names are relative to [`static/compare/assets/`](../.. | Two-phase 2:1 series-parallel switched capacitor (`sp2`) | 2:1 | `sp2.svg` / `sp2-candidate.svg` | `sp2` | Yes. Fixed 2:1 periodic RC losses, delivered efficiency estimate and equal sizing. | [`sp2`, at 2:1](2to1_switching_capacitors/local_integration.md), with configurable single-axis sweeps | | Two-phase 2:1 resonant switched capacitor (`rsc2`) | 2:1 | `rsc2.svg` / `rsc2-candidate.svg` | `rsc2` | Matched periodic RLC, delivered efficiency and equal-device width sizing. | [`rsc2`, at 2:1](2to1_resonant/README.md), including tank and device sweeps | | 2:1 switched inductor (`si2`) | 2:1 nominal | `si2.svg` / `si2-candidate.svg` | `si2` | Duty-regulated inverse-coupled CCM, finite-ripple losses and RMS-optimal width allocation. | [`si2`](2to1_switched_inductor/README.md), including duty and component sweeps | +| 2:1 Buck_Stacked (`buck_stacked`) | 2:1 nominal | `buck-stacked.svg` / `buck-stacked-candidate.svg` | `buck_stacked` | Duty-regulated symmetric CCM, eight-device sizing and half-input gate/Coss events. | [`buck_stacked`](2to1_buck_stacked/README.md), with duty and loaded-voltage controls. | | XFLY-Boost (`boost`) | Outside Gallery | `boost.svg` / — | None | Topology and a conditional step-up gain relation only. No numerical loss model. | None | | XFLY-NS (`ns`) | Outside Gallery | `ns.svg` / — | None | Topology only. Requires a specified switching sequence and state derivation. | None | @@ -28,7 +29,7 @@ XFLY8S is a related match by design. The analytical drawing includes `Cc1` and ` | Ratio | Live Gallery coverage | Native starter shelf | Integrated simulation | | --- | --- | --- | --- | -| 2:1 | Six cards: `3lbuck`, `buck`, `buck2`, `sp2`, `rsc2`, `si2` | `buck2`, `sp2`, `rsc2`, `si2` | `sp2`, `rsc2`, `si2` | +| 2:1 | Seven cards: `3lbuck`, `buck`, `buck2`, `sp2`, `rsc2`, `si2`, `buck_stacked` | `buck2`, `sp2`, `rsc2`, `si2`, `buck_stacked` | `sp2`, `rsc2`, `si2`, `buck_stacked` | | 3:1 | No filter or registered family | No shelf tab or starter | None | | 4:1 | Four cards: `xfly2p`, `xfly4p`, `3lbuck`, `2sbuck` | `xfly6s`, `xfly8s` | `xfly6s`, `xfly8s`, `c3l` | | 6:1, 8:1, 16:1 | Filters exist and show the unvalidated empty state | Tabs exist, no matching starters | None | diff --git a/simulator_bridge.js b/simulator_bridge.js index 91a538958c13c5b72f9ea5132ead68aeb2d3aff9..81c80cc308fe36414fb756cd376aec361aa71a2a 100644 --- a/simulator_bridge.js +++ b/simulator_bridge.js @@ -58,10 +58,11 @@ function openpelsRenderArtifacts(result) { window.addEventListener("DOMContentLoaded", () => { const select = document.getElementById("topologySelect"); const frequency = document.getElementById("frequency"); - const frequencies = { xfly6s: 100, xfly8s: 50, c3l: 50, sp2: 2, rsc2: 2, si2: 2 }; + const frequencies = { xfly6s: 100, xfly8s: 50, c3l: 50, sp2: 2, rsc2: 2, si2: 2, buck_stacked: 2 }; topologyLabels.sp2 = "2:1 series-parallel SC"; topologyLabels.rsc2 = "2:1 resonant SC"; topologyLabels.si2 = "2:1 switched inductor"; + topologyLabels.buck_stacked = "2:1 Buck_Stacked"; const metricsTable = document.getElementById("metricsTable"); const originalHeader = metricsTable.tHead.rows[0].cloneNode(true); const summary = document.getElementById("summaryMetrics"); @@ -98,7 +99,7 @@ window.addEventListener("DOMContentLoaded", () => { const originalNote = note.textContent; const within = (axis, value, topology = select.value) => { const range = presets[topology]?.parameters[axis]; - return range && Number.isFinite(value) && value >= range.minimum && value <= range.maximum; + return range && (value === null ? range.optional : Number.isFinite(value) && value >= range.minimum && value <= range.maximum); }; function renderFixedControls(next) { if (spec?.id === next) return; @@ -145,7 +146,7 @@ window.addEventListener("DOMContentLoaded", () => { Object.assign(input, {id: label.htmlFor, type: "number", step: "any", min: entry.minimum, max: entry.maximum, required: !entry.optional, value: prior?.fields[id] ?? entry.default ?? ""}); - if (entry.optional) input.placeholder = "Automatic"; + if (entry.optional) input.placeholder = entry.placeholder ?? "Automatic"; field.append(label, input); inputHost.append(field); inputs.set(id, input); @@ -185,15 +186,17 @@ window.addEventListener("DOMContentLoaded", () => { if (!parameter.value) parameter.value="fs"; sweepLimits(); } - const modelAdapters = { - si2(number,inputs) { - const high=number("rs")/1000; + function windingAdapter(number,inputs,channels) { + const high=channels*number("rs")/1000; return OpenPELSSwitchedInductor.operatingAdapter({ vin:inputs.input_voltage_v,load:inputs.load.value,fs:inputs.switching_frequency_hz, winding:number("lt")*1e-9,coupling:number("coupling"),dcr:number("dcr")/1000,high, - low:Number.isFinite(number("rslow"))?number("rslow")/1000:high, + low:Number.isFinite(number("rslow"))?channels*number("rslow")/1000:high, }); - }, + } + const modelAdapters = { + si2:(number,inputs)=>windingAdapter(number,inputs,1), + buck_stacked:(number,inputs)=>windingAdapter(number,inputs,2), }; function operation() { const number=id=>inputs.get(id).valueAsNumber; @@ -261,11 +264,13 @@ window.addEventListener("DOMContentLoaded", () => { } function showMeasurements(run) { const m = run.metrics[0]; + const incomplete = m.efficiency_includes_coss === false; + const cossNote = incomplete ? " (excl. unknown Coss)" : ""; const pct = value => `${(100*value).toFixed(3)} %`; const values = [ [modeSelect ? "Ideal Vout" : "Nominal Vout", m.nominal_vout_v.toFixed(3) + " V"], ["Target Iout", run.settings.output_current_a.toFixed(3) + " A"], - ["Modeled efficiency", pct(m.efficiency_with_gate)], + ["Modeled efficiency" + cossNote, pct(m.efficiency_with_gate)], ["Run Time", run.elapsed_s.toFixed(2) + " s"], ]; summary.replaceChildren(...values.map(([label,value]) => { @@ -283,13 +288,13 @@ window.addEventListener("DOMContentLoaded", () => { for (const [label,value] of [ ["Topology", spec.short ?? "SP-SC"], ["Command duty", m.duty?.toFixed(3) ?? "0.5 nominal"], - ["Stage efficiency", pct(m.stage_efficiency)], - ["Efficiency incl. gate", pct(m.efficiency_with_gate)], + ["Stage efficiency" + cossNote, pct(m.stage_efficiency)], + ["Efficiency incl. gate" + cossNote, pct(m.efficiency_with_gate)], ["Gate loss (mW)", (1000*m.supplemental_gate_w).toFixed(3)], ["Vout avg (V)", m.vout_v.toFixed(5)], ["Iout avg (A)", m.iout_a.toFixed(4)], ["Iin avg (A)", m.iin_a.toFixed(4)], - ...(spec.id === "si2" ? [ + ...(["si2","buck_stacked"].includes(spec.id) ? [ ["Winding RMS (A)", m.winding_rms_a.map(v => v.toFixed(3)).join(" / ")], ["Winding ripple (A pp)", m.winding_ripple_a.map(v => v.toFixed(3)).join(" / ")], ["Output capacitor RMS (A)", m.output_cap_rms_a.toFixed(3)], @@ -318,12 +323,14 @@ window.addEventListener("DOMContentLoaded", () => { ["Ideal / analytical / simulated gain", [m.ideal_gain,m.analytical_gain,m.simulated_gain].map(v=>v.toFixed(6)).join(" / ")], ] : []), ["Output ripple", `${(1000*m.ripple_vpp).toFixed(3)} mV peak-to-peak`], - ["Input / delivered power", `${m.input_w.toFixed(5)} / ${m.delivered_w.toFixed(5)} W`], - ["Stage loss", `${(1000*m.stage_w).toFixed(3)} mW`], - [spec.id === "si2" ? "MOS terminal / output ESR loss" : "MOS terminal / flying ESR loss", `${(1000*m.switch_w.reduce((a,b) => a+b,0)).toFixed(3)} / ${(1000*m.esr_w.reduce((a,b) => a+b,0)).toFixed(3)} mW`], + ["Input / delivered power" + cossNote, `${m.input_w.toFixed(5)} / ${m.delivered_w.toFixed(5)} W`], + ...(spec.id==="buck_stacked"?[["Effective gate swing / nominal VDS",""+m.gate_drive_v.toFixed(3)+" V"], + ["Measured Coss event loss",incomplete ? "Unknown · excluded" : (1000*m.coss_w).toFixed(3)+" mW"]]:[]), + ["Stage loss" + cossNote, `${(1000*m.stage_w).toFixed(3)} mW`], + [["si2","buck_stacked"].includes(spec.id) ? "MOS terminal / output ESR loss" : "MOS terminal / flying ESR loss", `${(1000*m.switch_w.reduce((a,b) => a+b,0)).toFixed(3)} / ${(1000*m.esr_w.reduce((a,b) => a+b,0)).toFixed(3)} mW`], ...(m.dcr_w ? [ ["Inductor DCR loss", `${(1000*m.dcr_w.reduce((a,b) => a+b,0)).toFixed(3)} mW`], - ...(spec.id === "si2" ? [ + ...(["si2","buck_stacked"].includes(spec.id) ? [ ["Winding sum / difference ripple", `${m.winding_sum_ripple_a.toFixed(4)} / ${m.winding_delta_ripple_a.toFixed(4)} A peak-to-peak`], ["Winding current valleys", m.winding_min_a.map(v=>v.toFixed(3)).join(" / ")+" A"], ["Peak winding voltage", m.winding_voltage_peak_v.map(v=>v.toFixed(3)).join(" / ")+" V"], @@ -337,8 +344,8 @@ window.addEventListener("DOMContentLoaded", () => { ["Executed duration / maximum step", `${m.stop_us.toFixed(3)} µs / ${m.max_step_ps.toFixed(3)} ps`], ["Measurement window", `${Number(m.window_start_cycles.toFixed(3))}–${Number(m.window_stop_cycles.toFixed(3))} cycles`], ["Supplemental gate estimate", `${(1000*m.supplemental_gate_w).toFixed(3)} mW`], - ["Efficiency with gate estimate", `${(100*m.efficiency_with_gate).toFixed(3)} %`], - ["R from stage loss / voltage droop", + ["Efficiency with gate estimate" + cossNote, `${(100*m.efficiency_with_gate).toFixed(3)} %`], + ["R from stage loss / voltage droop" + cossNote, `${(1000*m.resistance_power_ohm).toFixed(3)} / ${(1000*m.resistance_droop_ohm).toFixed(3)} mΩ`], ]) { const term = document.createElement("dt"), description = document.createElement("dd"); @@ -350,12 +357,14 @@ window.addEventListener("DOMContentLoaded", () => { } function showSweep(run) { const title = document.createElement("h3"); - title.textContent = `${run.parameter.label} sweep`; + const stacked = spec.id === "buck_stacked"; + const incomplete = run.sweep.some(row => row.efficiency_includes_coss === false); + title.textContent = `${run.parameter.label} sweep${incomplete ? " · totals exclude unknown Coss where indicated" : ""}`; const table = document.createElement("table"); const header = table.createTHead().insertRow(); for (const label of [`Value (${run.parameter.unit})`, "Delivered Vout (V)", ...(modeSelect ? ["Duty","Analytical Vout (V)"] : []), - "Stage loss (mW)", "Efficiency incl. modeled gate (%)", "Validation"]) { + ...(stacked ? ["Coss loss (mW)"] : []), "Stage loss (mW)", "Efficiency incl. modeled gate (%)", "Validation"]) { const th = document.createElement("th"); th.scope = "col"; th.textContent = label; @@ -364,8 +373,8 @@ window.addEventListener("DOMContentLoaded", () => { const body = table.createTBody(); for (const m of run.sweep) { const row = body.insertRow(); - const metrics = m.status === "failed" ? Array(modeSelect?5:3).fill("—") : - [m.vout_v.toFixed(5), ...(modeSelect?[m.duty.toFixed(6),m.analytical_vout_v.toFixed(5)]:[]), (1000*m.stage_w).toFixed(3), (100*m.efficiency_with_gate).toFixed(3)]; + const metrics = m.status === "failed" ? Array((modeSelect?5:3)+(stacked?1:0)).fill("—") : + [m.vout_v.toFixed(5), ...(modeSelect?[m.duty.toFixed(6),m.analytical_vout_v.toFixed(5)]:[]), ...(stacked?[m.coss_w===null?"Unknown":(1000*m.coss_w).toFixed(3)]:[]), (1000*m.stage_w).toFixed(3), (100*m.efficiency_with_gate).toFixed(3)]; for (const value of [Number(m.value.toPrecision(10)), ...metrics, m.message ? m.status + ": " + m.message : m.status]) row.insertCell().textContent = value; @@ -526,7 +535,7 @@ window.addEventListener("DOMContentLoaded", () => { if (Number.isFinite(duty)) inputs.get(axes.duty_cycle).value = duty; if (Number.isFinite(target)) inputs.get(axes.output_voltage).value = target; for (const [axis,value] of Object.entries(next.plant??{})) - if (within(axis,value)) inputs.get(axis).value=value; + if (within(axis,value)) inputs.get(axis).value=value ?? ""; if (changed) showOperatingMode(); } refreshPoint(); diff --git a/simulator_frame.py b/simulator_frame.py index 8910704fae28a8d04aaeed7c4eacb3497d4ab73b..4fb2400985564e80f7ef3d600296d8e14eba30c2 100644 --- a/simulator_frame.py +++ b/simulator_frame.py @@ -20,6 +20,7 @@ def simulator_html(original): + Eight-switch 2:1 series-parallel SC + `; } function sp2ComparisonLoss(row){ @@ -49,13 +52,13 @@ function sp2ComparisonLoss(row){ return `

Physical finite-RC conduction · MOSFET ${value(loss.rms_fet)} · capacitor ESR ${value(loss.rms_cap)}. The FSL baselines plus finite-RC increment give the same total.

`; } function cards(){ - $('#circuits').innerHTML=report.rows.map(r=>{const meta=catalog.find(c=>c.id===r.id),sub=r.id==='xfly2p'?'Six-switch cell · two-command reference':r.id==='xfly4p'?'Split-middle cell · four-pulse reference':meta.family;return `

${esc(meta.name)}

${esc(sub)}
${esc(meta.name)} ${['sp2','rsc2','si2'].includes(r.id)?'topology schematic':'topology with individual device resistance labels'}${dieAllocation(r)}
${r.allocation?`

${r.id==='si2'?'Duty-dependent die allocation.':'Fixed '+r.allocation.reference_ratio+':1 die allocation; each device value is an on-resistance.'} ${r.id==='si2'?'Four switches sized from their RMS currents. Output capacitor ESR is included.':r.id==='rsc2'?'Matched flying capacitors and series inductors.':r.id==='sp2'?'Equal flying capacitors; no power inductors.':'Clamp ESR = 0 in clamp-cell models.'}${r.id==='si2'?'':' Input/output capacitor ESR is omitted.'}

`:''}
IDEAL CONVERSION + LOSS MODEL${r.valid?'Req / RS = '+fmt(r.total):'No numerical loss model'}
${equivalent(r)}
Swipe to view the full loss circuit →

${r.valid?`${r.id==='si2'?'Piecewise-linear CCM RMS · ':r.id==='rsc2'?'Exact periodic RLC · ':r.id==='sp2'?'Exact periodic RC · ':''}${r.id==='si2'?'RMS loss / RS = '+fmt(r.fsl):r.resonant?'Tank RMS loss / RS = '+fmt(r.fsl):'RFSL / RS = '+fmt(r.fsl)+' · RSSL,add / RS = '+fmt(r.ssl_series)} · Rg and Ross: see FOM example`:esc(r.domain)}

${r.valid?`
${['RFET','RCAP','RIND','RSSL'].map((n,i)=>`${r.id==='sp2'&&i<2?n+',FSL':n}/RS ${fmt(r[['fet','cap','ind','ssl'][i]])}`).join('')}
${sp2ComparisonLoss(r)}`:''}
`}).join(''); + $('#circuits').innerHTML=report.rows.map(r=>{const meta=catalog.find(c=>c.id===r.id),sub=r.id==='xfly2p'?'Six-switch cell · two-command reference':r.id==='xfly4p'?'Split-middle cell · four-pulse reference':meta.family;return `

${esc(meta.name)}

${esc(sub)}
${esc(meta.name)} ${['sp2','rsc2','si2','buck_stacked'].includes(r.id)?'topology schematic':'topology with individual device resistance labels'}${dieAllocation(r)}
${r.allocation?`

${isDutyBuck(r.id)?'Duty-dependent die allocation.':'Fixed '+r.allocation.reference_ratio+':1 die allocation; each device value is an on-resistance.'} ${isDutyBuck(r.id)?'Switches sized from their RMS currents. Output capacitor ESR is included.':r.id==='rsc2'?'Matched flying capacitors and series inductors.':r.id==='sp2'?'Equal flying capacitors; no power inductors.':'Clamp ESR = 0 in clamp-cell models.'}${isDutyBuck(r.id)?'':' Input/output capacitor ESR is omitted.'}

`:''}
IDEAL CONVERSION + LOSS MODEL${r.valid?'Req / RS = '+fmt(r.total):'No numerical loss model'}
${equivalent(r)}
Swipe to view the full loss circuit →

${r.valid?`${isDutyBuck(r.id)?'Piecewise-linear CCM RMS · ':r.id==='rsc2'?'Exact periodic RLC · ':r.id==='sp2'?'Exact periodic RC · ':''}${isDutyBuck(r.id)?'RMS loss / RS = '+fmt(r.fsl):r.resonant?'Tank RMS loss / RS = '+fmt(r.fsl):'RFSL / RS = '+fmt(r.fsl)+' · RSSL,add / RS = '+fmt(r.ssl_series)} · Rg and Ross: see FOM example`:esc(r.domain)}

${r.valid?`
${['RFET','RCAP','RIND','RSSL'].map((n,i)=>`${r.id==='sp2'&&i<2?n+',FSL':n}/RS ${fmt(r[['fet','cap','ind','ssl'][i]])}`).join('')}
${sp2ComparisonLoss(r)}`:''}
`}).join(''); $$('[data-svg]').forEach(b=>b.onclick=()=>download('openpels-'+b.dataset.svg+'-equivalent.svg',$(`[data-topology="${b.dataset.svg}"] .equivalent-drawing svg`).outerHTML)); - $('#coefficients').innerHTML=report.rows.map(r=>`
${esc(r.short)} · ${esc(r.domain)}${(r.formulas||['Not derived for this topology.']).map((f,i)=>`${['RFET','RCAP','RIND','RSSL'][i]} = ${esc(f)}`).join('')}

${esc(r.note)}

`).join(''); + $('#coefficients').innerHTML=report.rows.map(r=>`
${esc(r.short)} · ${esc(r.domain)}${(r.formulas||['Not derived for this topology.']).map((f,i)=>`${r.id==='buck_stacked'?'':(['RFET','RCAP','RIND','RSSL'][i]+' = ')}${esc(f)}`).join('')}

${esc(r.note)}

`).join(''); } function picker(){ const ids=OpenPELSRecommendation.familyIds(ratio),groups=[[`${ratio}:1 coupled-inductor cancellation family`,catalog.filter(c=>ids.includes(c.id))]]; - if(ratio===2)groups.push(['Duty-regulated switched inductor',catalog.filter(c=>c.id==='si2')]); + if(ratio===2)groups.push(['Duty-regulated switched inductor',catalog.filter(c=>isDutyBuck(c.id))]); if(ratio===2)groups.push(['Fixed 2:1 switched-capacitor references',catalog.filter(c=>['sp2','rsc2'].includes(c.id))]); $('#topology-picker').innerHTML=groups.map(([label,items])=>`
${label}
${items.map(c=>``).join('')}
`).join(''); $$('[data-topology-choice]').forEach(b=>b.onclick=()=>{const id=b.dataset.topologyChoice;if(selected.has(id)){if(typeof isDedicatedReference==='function'&&isDedicatedReference()&&id===focusedTopology){toast('The focused reference stays in this comparison.');return}if(selected.size===1){toast('Keep at least one topology selected.');return}selected.delete(id)}else selected.add(id);picker();update(typeof manualSp2Weights!=='undefined'&&manualSp2Weights)}); @@ -68,7 +71,7 @@ async function update(useEnteredWeights=false){const id=++requestId;try{ if (isSI()) updateLoadSummary(); reportOperatingPoint(true); } - const result=selected.size?await api('/api/analyze-pu',params()):{rows:[],curves:[],M:1/ratio,normalization:{rho_c:1,rho_l:1,rho_q:20}};if(id!==requestId)return;report=result;$('#si-model').hidden=!selected.has('si2');for(const id of ['si_coupling','si_ripple'])$('#'+id).parentElement.hidden=!selected.has('si2');$('#resonant-model').hidden=!selected.has('rsc2');$('#rho_t').parentElement.hidden=!selected.has('rsc2');cards();renderRecommendation();$('#status').textContent=`Step-down ${ratio}:1 · M = ${fmt(isSI()?(sp2Analysis?.operating_point?.idealGain??.5):1/ratio)} · RS base · ${isSI()?'positive-current CCM':(selected.has('sp2')||selected.has('rsc2'))?'fixed switched-capacitor reference':'cancellation-point family only'} · ${isSI()?'duty-dependent area allocation':'fixed loss-sizing allocations'}${selected.has('boost')?' · boost uses ratio 1:'+ratio:''}`;if($('#sweep-section').open){drawSweep();drawSIOperatingSweep()}}catch(e){$('#status').textContent='Check inputs';toast(e.message)}} + const result=selected.size?await api('/api/analyze-pu',params()):{rows:[],curves:[],M:1/ratio,normalization:{rho_c:1,rho_l:1,rho_q:20}};if(id!==requestId)return;report=result;$('#si-model').hidden=![...selected].some(isDutyBuck);for(const id of ['si_coupling','si_ripple'])$('#'+id).parentElement.hidden=![...selected].some(isDutyBuck);$('#resonant-model').hidden=!selected.has('rsc2');$('#rho_t').parentElement.hidden=!selected.has('rsc2');cards();renderRecommendation();$('#status').textContent=`Step-down ${ratio}:1 · M = ${fmt(isSI()?(sp2Analysis?.operating_point?.idealGain??.5):1/ratio)} · RS base · ${isSI()?'positive-current CCM':(selected.has('sp2')||selected.has('rsc2'))?'fixed switched-capacitor reference':'cancellation-point family only'} · ${isSI()?'duty-dependent area allocation':'fixed loss-sizing allocations'}${selected.has('boost')?' · boost uses ratio 1:'+ratio:''}`;if($('#sweep-section').open){drawSweep();drawSIOperatingSweep()}}catch(e){$('#status').textContent='Check inputs';toast(e.message)}} function chart(id,series,{xlabel='',ylabel='',logx=false,logy=false,xrange,yrange,marker=null,hline=null,cursorLabel='M'}={}){ const host=$('#'+id);const W=Math.max(310,host.clientWidth),H=280,L=55,R=16,T=15,B=45;const all=series.flatMap(s=>s.points).filter(p=>p.every(Number.isFinite)); if(!all.length){host.innerHTML='

No supported numerical model selected.

';return} @@ -89,7 +92,7 @@ function chart(id,series,{xlabel='',ylabel='',logx=false,logy=false,xrange,yrang host.innerHTML=svg;const canvas=host.querySelector('svg'),tip=host.querySelector('.chart-tooltip'),cursor=host.querySelector('#cursor-'+id); canvas.addEventListener('pointermove',e=>{const point=canvas.createSVGPoint();point.x=e.clientX;point.y=e.clientY;const p=point.matrixTransform(canvas.getScreenCTM().inverse());if(p.xW-R)return;let xx=tx(xmin)+(p.x-L)/(W-L-R)*(tx(xmax)-tx(xmin));if(logx)xx=10**xx;let lines=[];for(const s of series){const a=s.points;if(a.length===1?Math.abs(X(a[0][0])-p.x)>9:xxa.at(-1)[0])continue;let nearest=a.reduce((a,b)=>Math.abs(a[0]-xx)${logx?fmt(xx,0)+' Hz':esc(cursorLabel)+' = '+fmt(xx,3)}
${lines.join('
')}`;tip.hidden=false;tip.style.left=Math.min(e.clientX-host.getBoundingClientRect().left+12,host.clientWidth-170)+'px';tip.style.top='35px';cursor.setAttribute('d',`M${p.x},${T}V${H-B}`);cursor.setAttribute('visibility','visible')});canvas.addEventListener('pointerleave',()=>{tip.hidden=true;cursor.setAttribute('visibility','hidden')}); } -function drawSweep(){if(!report)return;chart('rout-chart',report.curves,{xlabel:'Nominal Vout / Vin',ylabel:'Req / Rs (p.u.)',logy:true,xrange:[0,selected.has('si2')?.75:.5],yrange:[Math.max(.001,Math.min(...report.curves.flatMap(s=>s.points.map(p=>p[1])))*.8),Math.max(50,...report.curves.filter(s=>s.points.length===1).map(s=>1.15*s.points[0][1]))],marker:isSI()?report.normalization.si_duty:report.M});$('#legend').innerHTML=report.curves.map(s=>`${s.name}`).join('')} +function drawSweep(){if(!report)return;chart('rout-chart',report.curves,{xlabel:'Nominal Vout / Vin',ylabel:'Req / Rs (p.u.)',logy:true,xrange:[0,[...selected].some(isDutyBuck)?.75:.5],yrange:[Math.max(.001,Math.min(...report.curves.flatMap(s=>s.points.map(p=>p[1])))*.8),Math.max(50,...report.curves.filter(s=>s.points.length===1).map(s=>1.15*s.points[0][1]))],marker:isSI()?report.normalization.si_duty:report.M});$('#legend').innerHTML=report.curves.map(s=>`${s.name}`).join('')} let siSweepRows=[]; function setSISweepDefaults() { const point=sp2Analysis?.operating_point?.inputs; @@ -126,7 +129,8 @@ function drawSIOperatingSweep(){ } const model=OpenPELSSwitchedInductor, p=result.deviceReport.parameters; // Freeze the selected silicon design, including the upper and lower widths. - const high=row.device[0].ron,low=row.device[1].ron,dcr=p.rl_mohm/1000,esr=p.rc_mohm/1000; + const channels=isStacked()?2:1; + const high=channels*row.device[0].ron,low=channels*row.device[channels].ron,dcr=p.rl_mohm/1000,esr=p.rc_mohm/1000; for (let i=0;i{setSISweepDefaults();drawSIOperatingSweep()}; $("#si-run-sweep").onclick=drawSIOperatingSweep; $("#si-export-sweep").onclick=()=>{ const columns=["value","target_v","duty","ideal_v","analytical_v","loaded_gain","req_ohm","efficiency","status","vin_v","load_a","frequency_hz"]; + if(isStacked()) columns.push("efficiency_includes_coss"); const csv=[columns.join(","),...siSweepRows.map(row=>columns.map(k=>JSON.stringify(row[k]??"")).join(","))]; - download("openpels-si-operating-sweep.csv",csv.join("\n"),"text/csv"); + download(isStacked()?"openpels-buck-stacked-operating-sweep.csv":"openpels-si-operating-sweep.csv",csv.join("\n"),"text/csv"); }; $('#sweep-section').addEventListener('toggle',()=>{if($('#sweep-section').open){drawSweep();drawSIOperatingSweep()}}); $$('[data-ratio]').forEach(b=>b.onclick=()=>{ratio=Number(b.dataset.ratio);updateLoadSummary();selected=new Set(OpenPELSRecommendation.familyIds(ratio));$$('[data-ratio]').forEach(v=>v.classList.toggle('active',v===b));picker();update()}); @@ -184,7 +189,7 @@ function quoteCSV(rows){ } $('#export-csv').onclick=()=>{ if(!report)return; - const hasTank=report.rows.some(r=>r.id==='rsc2'),hasSI=report.rows.some(r=>r.id==='si2'), + const hasTank=report.rows.some(r=>r.id==='rsc2'),hasSI=report.rows.some(r=>isDutyBuck(r.id)), hasSP2=report.rows.some(r=>r.id==='sp2'); const header=['Topology','Target_ratio','kFET_Rs','kCAP_Rc','kIND_Rl','kSSL_over_Cf_fs', 'RFET_pu','RCAP_pu','RIND_pu','RSSL_pu','Req_pu','RFSL_pu','RSSL_add_pu','Switching_loss_scope', @@ -198,7 +203,7 @@ $('#export-csv').onclick=()=>{ 'Separate technology example; Coss requires energy data', report.normalization.rho_c,report.normalization.rho_l,report.normalization.rho_q,r.domain, ...(hasTank?[r.id==='rsc2'?report.normalization.rho_t:'']:[]), - ...(hasSI?r.id==='si2'?[report.normalization.si_duty,report.normalization.si_coupling,report.normalization.si_ripple]:['','','']:[]), + ...(hasSI?isDutyBuck(r.id)?[report.normalization.si_duty,report.normalization.si_coupling,report.normalization.si_ripple]:['','','']:[]), ...(hasSP2?sp2LossColumns.map(([,key])=>r.sp2_loss?.[key]):[])]); download('openpels-per-unit-comparison.csv',quoteCSV([header,...rows]),'text/csv'); }; @@ -237,7 +242,7 @@ if(!isSI()){const point=OpenPELSRecommendation.operatingPoint(design);p.vin=poin if(!technologyReport)throw Error(sp2Error||'Enter a positive flying-capacitor budget for the device calculation.'); $('#export-technology').disabled=false;const t=technologyReport,unit=(v,scale=1)=>v==null?'unknown':!Number.isFinite(v)?'∞':fmt(v*scale); $('#technology-status').textContent=`Rs = ${fmt(t.rs*1e3)} mΩ · RΣ = ${fmt(t.parallel*1e3)} mΩ · gate demand = ${fmt(t.gate_power*1e3)} mW · ${switchedCap?'same sized device result as the loss lineup':'physical example is separate from the per-unit weights above'}`; -$('#technology-results').innerHTML=`${t.rows.map(r=>r.valid?`${['fet','cap','ind','hc','req'].map(k=>``).join('')}`:``).join('')}
${switchedCap?(isSI()?'Optimized-width switched inductor · winding and capacitor RMS loss.':focusedTopology==='rsc2'?'Resonant SC equal-area constrained optimum · exact periodic RLC.':'Optimized-width SP-SC result · exact linear periodic RC.'):'Fixed-width example: flat-current buck models; exact linear periodic RC for SP-SC. Not measured efficiency.'}
Topology${isSI()?'Cout':'CF each'} (μF)RFET (mΩ)RCAP (mΩ)RIND (mΩ)RHC,add (mΩ)Req (mΩ)Rg at Vx (Ω)Ross at Vx (Ω)Iout²Req + Pg + known Poss (mW)
${esc(report.rows.find(a=>a.id===r.id).short)}${r.cf?unit(r.cf,1e6):'—'}${(k==='ind'&&r.id==='sp2'||k==='hc'&&['rsc2','si2'].includes(r.id))?'N/A':unit(r[k],1e3)}${unit(r.gate_r)}${unit(r.oss_r)}${unit(r.partial_loss,1e3)}${r.poss===null?' + unknown Coss':''}
${esc(r.id)}Outside the supported analytical model
`; +$('#technology-results').innerHTML=`${t.rows.map(r=>r.valid?`${['fet','cap','ind','hc','req'].map(k=>``).join('')}`:``).join('')}
${switchedCap?(isSI()?'Optimized-width switched inductor · winding and capacitor RMS loss.':focusedTopology==='rsc2'?'Resonant SC equal-area constrained optimum · exact periodic RLC.':'Optimized-width SP-SC result · exact linear periodic RC.'):'Fixed-width example: flat-current buck models; exact linear periodic RC for SP-SC. Not measured efficiency.'}
Topology${isSI()?'Cout':'CF each'} (μF)RFET (mΩ)RCAP (mΩ)RIND (mΩ)RHC,add (mΩ)Req (mΩ)Rg at Vx (Ω)Ross at Vx (Ω)Iout²Req + Pg + known Poss (mW)
${esc(report.rows.find(a=>a.id===r.id).short)}${r.cf?unit(r.cf,1e6):'—'}${(k==='ind'&&r.id==='sp2'||k==='hc'&&['rsc2','si2','buck_stacked'].includes(r.id))?'N/A':unit(r[k],1e3)}${unit(r.gate_r)}${unit(r.oss_r)}${unit(r.partial_loss,1e3)}${r.poss===null?' + unknown Coss':''}
${esc(r.id)}Outside the supported analytical model
`; $('#sp2-design-loss').innerHTML=sp2DesignLoss(t); const exportLoss=$('[data-export-sp2-loss]'); if(exportLoss)exportLoss.onclick=()=>{ @@ -301,7 +306,7 @@ if(document.body.classList.contains('sp2-focused')){ selected=new Set([id]);const p=recommendationReport.parameters;$('#rho_c').value=(p.rc_mohm/1000/r.rs).toPrecision(8);$('#rho_l').value=(p.rl_mohm/1000/r.rs).toPrecision(8);$('#rho_q').value=r.cf?(1/(r.cf*p.fs_mhz*1e6*r.rs)).toPrecision(8):0;$('#analysis-workbench').open=true;$('#inspection-context').textContent=`${r.short}: ${fmt(r.width_mm)} mm total FET width, Rs = ${fmt(r.rs*1e3)} mΩ, modeled loss = ${fmt(r.loss*1e3)} mW. Reference die-map proportions are scaled to this width; A₀ = ${fmt(r.width_mm/12)} mm of width. The shortlist uses the common full-budget RS base; these diagrams use the actual sized-device Rs. The device example below is a separate reference calculation.`;picker();update();$('#analysis-workbench').scrollIntoView({behavior:'smooth',block:'start'})} let comparisonView='scoreboard'; function lossScoreboard(t){const data=t.loss_scoreboard;if(!data.rows.length)return ''; -const switchedCap=t.rows[0]?.id==='sp2', resonant=t.rows[0]?.id==='rsc2', si=t.rows[0]?.id==='si2'; +const switchedCap=t.rows[0]?.id==='sp2', resonant=t.rows[0]?.id==='rsc2', si=isDutyBuck(t.rows[0]?.id); const lossValue=(d,m)=>d.powers[m.id]===null?(m.id==='ind'?'N/A':'Unknown'):`${fmt(d.powers[m.id]*1e3,2)} mW`;const byId=Object.fromEntries(t.eligible.map(r=>[r.id,r]));const rating=n=>n==null?'—':String(n),tone=n=>n==null?'neutral':n>=66?'good':n>=33?'mid':'weak'; return `
THE LOSS LINEUPHigher score = lower modeled loss · actual values in mW
${data.rows.map(d=>{const r=byId[d.id];return ``}).join('')}${data.mechanisms.map(m=>`${data.rows.map(d=>``).join('')}`).join('')}${switchedCap?'':`${data.rows.map(()=>'').join('')}`}${data.rows.map(d=>``).join('')}
Compare the same
mechanism across circuits
${r.native_ratio}:1 FAMILY

${esc(r.short)}

${esc(r.name)} topology
${fmt(d.total*1e3,1)} mW
TOTAL MODELED LOSS
${data.mechanisms.filter(m=>d.powers[m.id]!=null).map(m=>``).join('')}
Rout ${fmt(r.rout*1e3,2)} mΩ
${m.symbol}${m.name}${switchedCap&&['fet','cap'].includes(m.id)?'Fast-switching baseline':''}${m.id==='charging'?'Finite-charge addition only':''}
${rating(d.ratings[m.id])}${lossValue(d,m)}
${resonant||si?'Core / dead time':'Coss / core / ripple'}Outside the current loss modelNot quantifiedNo score assigned
PRO / TRADEOFFAgainst the other displayed circuits

+ ${esc(d.pro)}${d.pro_delta!=null?`${fmt(d.pro_delta*1e3,2)} mW less than others’ mean`:''}

↔ ${esc(d.con)}${d.con_delta!=null?`${fmt(d.con_delta*1e3,2)} mW more than others’ mean`:''}

${byId[d.id].capacitors} caps · ${byId[d.id].windings} windings
${fmt(byId[d.id].width_mm,1)} mm FET width

${esc(data.scale)} Unknown losses are not scored as zero. The stacked color strip shows each mechanism’s share of modeled loss; ratings compare mechanisms separately.

What is included in each loss?

${si?'Winding and channel RMS currents set resistive loss. Output-capacitor ESR uses the summed winding ripple. Gate and optional Coss energy are tracked separately.':resonant?'The periodic tank RMS current gives switch conduction, flying-capacitor ESR and inductor DCR losses. Gate demand and any entered Coss energy are separate. Core and dead-time effects are unquantified.':switchedCap?'Conduction and ESR are the fast-switching baseline. The finite-charge addition is Iout² (Req − RFSL). The exact finite-RC path dissipation is represented by the baseline plus this increment; the raw SSL asymptote is never summed again. Gate demand is separate. Coss is included once when effective energy is provided. Winding DCR and magnetic losses are not applicable.':`Switch = Iout² RFET; capacitor = Iout² RCAP; winding = Iout² RIND; charging = Iout² (Req − RFSL); gate = the FOM-based gate-drive demand. These five terms sum to the displayed modeled total. The raw RSSL asymptote is not added again. Coss, core and ripple corrections remain unquantified. Pros and tradeoffs identify the largest mW difference versus the mean of the other displayed circuits; ratings are recalculated when this comparison set changes.`}

`; } @@ -342,16 +347,17 @@ function focusRecommendation(result) { }; } function isDedicatedReference() { - return ['sp2','rsc2','si2'].includes(focusedTopology) && ratio === 2; + return ['sp2','rsc2','si2','buck_stacked'].includes(focusedTopology) && ratio === 2; } let sp2Analysis, sp2Error, manualSp2Weights = false; function prepareSp2Analysis(base, useEnteredWeights) { manualSp2Weights = useEnteredWeights; try { const {vgs, events, eoss_pj} = technologyParameters(); + if(isStacked()) $('#tech-vgs').value=(Number($('#design-vout').value)/2).toString(); const recommend = isSI()?OpenPELSRecommendation.recommendSwitchedInductor:OpenPELSRecommendation.recommendSwitchedCap; sp2Analysis = recommend( - designParameters(), {vgs, events, eoss_pj}, base, + designParameters(), {vgs:isStacked()?Number($('#design-vout').value)/2:vgs, events, ...(isStacked()?{stack_coss_pf_per_mm:eoss_pj}:{eoss_pj})}, base, catalog.find((item) => item.id === focusedTopology), OpenPELSTechnology, ); sp2Error = ""; @@ -390,7 +396,7 @@ function sp2EfficiencySummary(t) { const r = t.rows[0]; if (r.efficiency == null) return '

This operating point has no positive delivered-voltage estimate or capacitance budget. Check the design constraints and load.

'; - return `

Modeled efficiency: ${(100*r.efficiency).toFixed(2)}% · delivered output ${r.estimated_open_loop_vout.toFixed(4)} V / ${r.delivered_w.toFixed(4)} W · modeled loss ${(1000*r.loss).toFixed(2)} mW.${r.sizing_constraint?' · '+esc(r.sizing_constraint)+'.':''}

Used ${fmt(r.width_mm)} mm of ${fmt(t.available_width_mm)} mm available. ${r.si?`Width per upper switch ${fmt(r.device[0].width_mm)} mm, per lower switch ${fmt(r.device[1].width_mm)} mm. Winding ripple ${fmt(r.phase_ripple_pp)} A pp. Winding RMS ${fmt(r.operating_waveforms.winding_rms_a)} A per leg and capacitor RMS ${fmt(r.operating_waveforms.output_cap_rms_a)} A. Droop resistance ${fmt(1000*r.droop_resistance)} mΩ. Ideal capacitor ripple ${fmt(r.capacitor_ripple_vpp*1000)} mV pp before ESR. `:`Each of eight devices gets 12.5% of used width (${r.device[0].width_mm.toFixed(3)} mm each).`} ${r.tank?`Tank RMS ${fmt(r.tank.tank_rms_per_output_amp*t.output_current)} A per leg · commutation current magnitude ${fmt(r.tank.commutation_current_per_output_amp*t.output_current)} A. `: ''}${r.coss_power===null?'Coss energy is unknown and is excluded from this estimate.':'It includes the entered Coss energy.'}

`; + return `

Modeled efficiency: ${(100*r.efficiency).toFixed(2)}% · delivered output ${r.estimated_open_loop_vout.toFixed(4)} V / ${r.delivered_w.toFixed(4)} W · modeled loss ${(1000*r.loss).toFixed(2)} mW.${r.sizing_constraint?' · '+esc(r.sizing_constraint)+'.':''}

Used ${fmt(r.width_mm)} mm of ${fmt(t.available_width_mm)} mm available. ${r.si?`Width per upper switch ${fmt(r.device[0].width_mm)} mm, per lower switch ${fmt(r.device[isStacked()?2:1].width_mm)} mm. Winding ripple ${fmt(r.phase_ripple_pp)} A pp. Winding RMS ${fmt(r.operating_waveforms.winding_rms_a)} A per leg and capacitor RMS ${fmt(r.operating_waveforms.output_cap_rms_a)} A. Droop resistance ${fmt(1000*r.droop_resistance)} mΩ. Ideal capacitor ripple ${fmt(r.capacitor_ripple_vpp*1000)} mV pp before ESR. `:`Each of eight devices gets 12.5% of used width (${r.device[0].width_mm.toFixed(3)} mm each).`} ${r.tank?`Tank RMS ${fmt(r.tank.tank_rms_per_output_amp*t.output_current)} A per leg · commutation current magnitude ${fmt(r.tank.commutation_current_per_output_amp*t.output_current)} A. `: ''}${r.coss_power===null?'Coss energy is unknown and is excluded from this estimate.':isStacked()?'It includes the half-input Coss event energy.':'It includes the entered Coss energy.'}

`; } const sp2Profile = { "design-si_mode":"duty_cycle","design-si_target_v":1.5, @@ -410,9 +416,11 @@ const profiles = new Map([ ['rsc2', {...sp2Profile, 'design-width_mm':401.3333333333, 'design-rc_mohm':5, 'design-tank_nh':5.5, 'design-max_windings':2, 'design-rl_mohm':4, rho_t:.61}], ]); +profiles.set('buck_stacked',{...profiles.get('si2'),'design-width_mm':400,'tech-eoss_pj':.4}); let otherProfile = null; const defaultInputScope = $(".input-scope").textContent; const defaultIntro = $(".intro p").textContent; +const defaultCossScope = $("#tech-coss-scope").textContent; const siLabels = {vout:'Input voltage (V)', cap_uf:'Output capacitance (μF)',max_caps:'Maximum output capacitors',rc_mohm:'Output capacitor ESR (mΩ)'}; const defaultLabels = Object.fromEntries(designFields.map(([key,label])=>[key,label])); function setInputLabels(si){ @@ -431,7 +439,13 @@ function switchAnalysisScope(nextId) { } else profiles.set(focusedTopology,current); for (const field of fields) field.value = next[field.id]; - setInputLabels(nextId==='si2'); + setInputLabels(isDutyBuck(nextId)); + const stacked=nextId==='buck_stacked'; + for(const key of ['vgs','events']) $('#tech-'+key).readOnly=stacked; + $('#tech-eoss_pj').parentElement.firstChild.textContent=stacked?'Linear Coss density (pF/mm)':techFields.find(([k])=>k==='eoss_pj')[1]; + $("#tech-coss-scope").textContent=stacked + ? "Linear Coss scales with transistor width. Each MOSFET discharges its nominal half-input voltage once per phase period. A blank entry leaves Coss loss unknown." + : defaultCossScope; const declared=OpenPELSOperatingPoint.definition(nextId); if (declared?.simulator?.axes) { const select=$("#design-si_mode"), mode=select.value; @@ -442,19 +456,19 @@ function switchAnalysisScope(nextId) { if (!entering) $("#inspection-context").textContent = otherProfile.inspection; $("#design-objective option[value=magnetics]").hidden = nextId==='sp2'; $(".selection-method summary").textContent = entering - ? (nextId==='si2'?"CCM feasibility and recommendation scope":"Fixed-ratio feasibility and recommendation scope") + ? (isDutyBuck(nextId)?"CCM feasibility and recommendation scope":"Fixed-ratio feasibility and recommendation scope") : "Ripple-cancellation criterion and recommendation scope"; $(".selection-method").classList.toggle("fixed-ratio-method", entering); - $('.sp2-method').textContent = nextId==='si2' - ? 'The design screens positive-current CCM, phase ripple, component counts and open-loop droop. The width budget covers all four switches. Fixed component counts leave the loss-minimizing width unchanged under every priority.' : nextId==='rsc2' + $('.sp2-method').textContent = isDutyBuck(nextId) + ? (stacked?'The design screens positive-current CCM, phase ripple, component counts and droop. Eight switches share the silicon budget. Fixed component counts leave the optimum unchanged under every priority.':'The design screens positive-current CCM, phase ripple, component counts and open-loop droop. The width budget covers all four switches. Fixed component counts leave the loss-minimizing width unchanged under every priority.') : nextId==='rsc2' ? 'Matched resonant legs use synchronized 50% commands. The design screens component counts, damping and droop, then sizes FET width. The capacitors and windings have fixed counts under all priorities. Tank current reverses during every period.' : sp2Method; showBudgetFields(); $(".intro p").textContent = entering - ? (nextId==='si2'?"Size the inverse-coupled buck at a target output voltage or a commanded duty cycle.":"Size the fixed 2:1 switched-capacitor design and compare its per-unit loss model with other 2:1 references.") + ? (isDutyBuck(nextId)?"Size the inverse-coupled buck at a target output voltage or a commanded duty cycle.":"Size the fixed 2:1 switched-capacitor design and compare its per-unit loss model with other 2:1 references.") : defaultIntro; $(".input-scope").textContent = entering - ? (nextId==='si2'?"Four switch areas follow the RMS current weights. Gate and optional Coss data are in the 180 nm device panel.":"Total FET width is sized within the silicon budget for minimum modeled loss subject to droop. Each of eight switches gets equal width. Two matched flying capacitors share the budget. Gate and optional Coss inputs are in the 180 nm device panel.") + ? (stacked?"Eight switch areas follow RMS current. Gate swing and nominal blocking are fixed at Vin/2.":isDutyBuck(nextId)?"Four switch areas follow the RMS current weights. Gate and optional Coss data are in the 180 nm device panel.":"Total FET width is sized within the silicon budget for minimum modeled loss subject to droop. Each of eight switches gets equal width. Two matched flying capacitors share the budget. Gate and optional Coss inputs are in the 180 nm device panel.") : defaultInputScope; } function reportOperatingPoint(includeSolution=false) { @@ -476,7 +490,8 @@ function reportOperatingPoint(includeSolution=false) { point.analytical_vout=command.analyticalVoltage; const p=sp2Analysis.parameters; point.plant={fs:p.fs_mhz,lt:p.si_l_nh,coupling:p.si_coupling,dcr:p.rl_mohm, - cout:p.cap_uf,esr:p.rc_mohm,rs:1000*row.device[0].ron,rslow:1000*row.device[1].ron,gate:p.vgs}; + cout:p.cap_uf,esr:p.rc_mohm,rs:1000*row.device[0].ron,rslow:1000*row.device[isStacked()?2:1].ron, + ...(isStacked()?{gatecap:sp2Analysis.deviceReport.rows[0].gate_cap_pf,coss:sp2Analysis.deviceReport.rows[0].coss_pf}:{gate:p.vgs})}; } } parent.postMessage(point,location.origin); @@ -498,7 +513,7 @@ window.addEventListener("message", (event) => { switchAnalysisScope(next.id); document.body.classList.toggle("sp2-focused", profiles.has(next.id)); document.body.classList.toggle("rsc2-focused", next.id==='rsc2'); - document.body.classList.toggle("si2-focused", next.id==='si2'); + document.body.classList.toggle("si2-focused", isDutyBuck(next.id)); ratio = next.ratio; focusedTopology = next.id; selected = new Set([next.id]); diff --git a/static/compare/assets/buck-stacked-candidate.svg b/static/compare/assets/buck-stacked-candidate.svg new file mode 100644 index 0000000000000000000000000000000000000000..5ec04cfdcf4d38d3667640b2806f890c5246d986 --- /dev/null +++ b/static/compare/assets/buck-stacked-candidate.svg @@ -0,0 +1,2 @@ + +2:1 Buck_Stacked — right-hand schematicIOUTL3L4VIN2VIN2ABABVIN2COUTVOUTR1R2VINQ3aQ2aQ1aQ2bQ1bQ3bQ4aQ4b \ No newline at end of file diff --git a/static/compare/assets/buck-stacked.svg b/static/compare/assets/buck-stacked.svg new file mode 100644 index 0000000000000000000000000000000000000000..5ec04cfdcf4d38d3667640b2806f890c5246d986 --- /dev/null +++ b/static/compare/assets/buck-stacked.svg @@ -0,0 +1,2 @@ + +2:1 Buck_Stacked — right-hand schematicIOUTL3L4VIN2VIN2ABABVIN2COUTVOUTR1R2VINQ3aQ2aQ1aQ2bQ1bQ3bQ4aQ4b \ No newline at end of file diff --git a/static/compare/buck-stacked.js b/static/compare/buck-stacked.js new file mode 100644 index 0000000000000000000000000000000000000000..459ac43e10b1448ec7dabe45865b1259af617ffd --- /dev/null +++ b/static/compare/buck-stacked.js @@ -0,0 +1,46 @@ +/* Reviewed eight-channel stacked buck, first-order positive-current CCM. */ +(function(root) { + 'use strict'; + + function evaluate(duty, p) { + const kernel = root.OpenPELSSwitchedInductor ?? require('./switched-inductor.js'); + const {rs, rc, rl, coupling = .6, rippleScale = .75, vin, fs, + gateCap = 0, coss = 0, highRon, lowRon} = p; + const c = kernel.currents(duty, coupling, rippleScale); + const high = Math.sqrt(c.high_weight), low = Math.sqrt(c.low_weight); + const highFraction = high / (4 * (high + low)), lowFraction = low / (4 * (high + low)); + const fractions = [highFraction, highFraction, lowFraction, lowFraction, + highFraction, highFraction, lowFraction, lowFraction]; + const rh = highRon ?? rs / (12 * highFraction), rlow = lowRon ?? rs / (12 * lowFraction); + const fet = 4 * (rh * c.high_weight + rlow * c.low_weight); + const cap = rc * c.capacitor_weight, ind = 2 * rl * c.winding_weight; + // Each binary gate interval is connected modulo a period. A, B have phase symmetry, + // and time reversal about the center of each A pulse makes the lossless ramp odd. + const droop = rl / 2 + rh * duty + rlow * (1 - duty); + const vdrive = vin === undefined ? undefined : vin / 2; + const eventScale = vdrive === undefined || fs === undefined ? 0 : vdrive ** 2 * fs; + const gate_w = 8 * gateCap * eventScale; + const coss_w = coss === null ? null : 4 * coss * eventScale; + const conduction = fet + cap + ind; + return {...c, fractions, fet, cap, ind, conduction, total: conduction, + fsl: conduction, ssl: 0, ssl_series: 0, droop_resistance: droop, D: duty, gate_duty: duty, + vdrive, gate_w, coss_w, coefficients:[fet / (rs || 1), c.capacitor_weight, 2 * c.winding_weight, 0]}; + } + + function optimizeArea(duty, p) { + const {areaBudget, areaMinimum = 0, ronArea, gateCapPerArea, cossPerArea} = p; + const point = evaluate(duty, {...p, rs: ronArea / areaBudget, gateCap: 0, coss: 0}); + if (!(point.min_phase_per_amp > 0 && areaBudget > 0 && ronArea > 0) || + areaMinimum < 0 || areaMinimum > areaBudget || gateCapPerArea < 0 || cossPerArea < 0) return null; + const alpha = point.fet * p.load ** 2 * areaBudget; + const beta = p.fs * (p.vin / 2) ** 2 * (gateCapPerArea + cossPerArea / 2); + const area = Math.min(areaBudget, Math.max(areaMinimum, beta ? Math.sqrt(alpha / beta) : areaBudget)); + return {area, device_areas: point.fractions.map(fraction => area * fraction), + losses: evaluate(duty, {...p, rs: ronArea / area, + gateCap: gateCapPerArea * area / 8, coss: cossPerArea * area / 8})}; + } + + const model = {evaluate, optimizeArea}; + root.OpenPELSBuckStacked = model; + if (typeof module !== 'undefined') module.exports = model; +})(typeof window !== 'undefined' ? window : globalThis); diff --git a/static/compare/engine.js b/static/compare/engine.js index 9489f7a99715b7f20d50d45d6cda28fa0c6b7ee4..0769449bdbb960e1a5baeb17f31fe14c5052423d 100644 --- a/static/compare/engine.js +++ b/static/compare/engine.js @@ -6,7 +6,9 @@ const load=()=>dataPromise||(dataPromise=fetch('./models-data.json',{cache:'no-s function num(p,k,d,lo,hi){const v=Number(p[k]??d);if(!Number.isFinite(v)||vhi)throw Error(`${k} must be between ${lo} and ${hi}`);return v} const linspace=(a,b,n)=>Array.from({length:n},(_,i)=>a+(b-a)*i/(n-1)); const si = () => root.OpenPELSSwitchedInductor??require('./switched-inductor.js'); -function valid(k,m){if(k==='si2')return m>=.25&&m<=.75;if(k==='sp2'||k==='rsc2')return Math.abs(m-.5)<1e-12;if(k==='buck2')return m>0&&m<1;return ['xfly2p','xfly4p','3lbuck','2sbuck','buck'].includes(k)&&m>0&&(k==='xfly4p'?m<=.25+1e-12:['xfly2p','2sbuck'].includes(k)?m<.5:m<=.5)} +const stacked = () => root.OpenPELSBuckStacked??require('./buck-stacked.js'); +const isDutyBuck = id => ['si2','buck_stacked'].includes(id); +function valid(k,m){if(isDutyBuck(k))return m>=.25&&m<=.75;if(k==='sp2'||k==='rsc2')return Math.abs(m-.5)<1e-12;if(k==='buck2')return m>0&&m<1;return ['xfly2p','xfly4p','3lbuck','2sbuck','buck'].includes(k)&&m>0&&(k==='xfly4p'?m<=.25+1e-12:['xfly2p','2sbuck'].includes(k)?m<.5:m<=.5)} function coefficients(k,d){if(k==='buck2')return [1/6,0,0];if(k==='sp2')return [2/3,.5,1/8];if(k==='xfly2p')return d<=.5?[(2+5*d)/12,d/4,0]:[(5*d*d-2*d+2)/(12*(1-d)),d*d/(4*(1-d)),(2*d-1)**2/8];if(k==='xfly4p')return [(3+Math.sqrt(5))/24*(3*d+(2+d)/Math.sqrt(5)),d/2,0];if(k==='3lbuck'||k==='buck')return [(1+Math.sqrt(3))/6*(d+(2-d)/Math.sqrt(3)),k==='3lbuck'?d/2:0,0];if(k==='2sbuck')return [(2+d-d*d)/(12*(1-d)),d/(8*(1-d)),d*d/8];throw Error('No verified loss model')} function chargingResistance(k,n,s){return k==='sp2'?(n&&s?s/Math.tanh(s/n):n+s):Math.hypot(n,s)} // In matched SP-SC, the same RMS branch current flows through both channels and the ESR. @@ -16,10 +18,10 @@ function sp2LossBreakdown(fet,cap,total){ return {fsl_fet:fet,fsl_cap:cap,finite_rc_increment:total-fsl, rms_fet:rmsScale===null?null:fet*rmsScale,rms_cap:rmsScale===null?null:cap*rmsScale}; } -function evaluate(k,m,p){if(!valid(k,m))return null;if(k==='si2'){const r=si().evaluate(m,p);return r.min_phase_per_amp>0?r:null}if(k==='rsc2')return p.rs>0?(root.OpenPELSResonant??require('./resonant.js')).evaluate(p):null;const d=2*m,[a,b,c]=coefficients(k,d),fet=a*p.rs,cap=b*p.rc,ind=(k==='sp2'?0:.5)*p.rl,ssl=c/(p.cf*p.fs),total=ind+chargingResistance(k,fet+cap,ssl);return {fet,cap,ind,ssl,fsl:fet+cap+ind,total,...(k==='sp2'?{sp2_loss:sp2LossBreakdown(fet,cap,total)}:{}),coefficients:[a,b,k==='sp2'?0:.5,c],D:d,gate_duty:k==='buck2'?m:k==='sp2'?.5:null}} +function evaluate(k,m,p){if(!valid(k,m))return null;if(isDutyBuck(k)){const r=(k==='si2'?si():stacked()).evaluate(m,p);return r.min_phase_per_amp>0?r:null}if(k==='rsc2')return p.rs>0?(root.OpenPELSResonant??require('./resonant.js')).evaluate(p):null;const d=2*m,[a,b,c]=coefficients(k,d),fet=a*p.rs,cap=b*p.rc,ind=(k==='sp2'?0:.5)*p.rl,ssl=c/(p.cf*p.fs),total=ind+chargingResistance(k,fet+cap,ssl);return {fet,cap,ind,ssl,fsl:fet+cap+ind,total,...(k==='sp2'?{sp2_loss:sp2LossBreakdown(fet,cap,total)}:{}),coefficients:[a,b,k==='sp2'?0:.5,c],D:d,gate_duty:k==='buck2'?m:k==='sp2'?.5:null}} function allocation(k,index,point){ - if(k==='si2'&&point){const areas=point.fractions.map(x=>12*x); - return {relative:point.fractions,areas,area_fractions:point.fractions,labels:['Q1','Q2','Q3','Q4'],total_area:12,reference_ratio:2};} + if(isDutyBuck(k)&&point){const areas=point.fractions.map(x=>12*x); + return {relative:point.fractions,areas,area_fractions:point.fractions,labels:k==='buck_stacked'?['Q1a','Q1b','Q2a','Q2b','Q3a','Q3b','Q4a','Q4b']:['Q1','Q2','Q3','Q4'],total_area:12,reference_ratio:2};} const relative=index[k].ratio,s=relative.reduce((a,b)=>a+b,0),areas=relative.map(v=>6*v/s);return {relative,areas,area_fractions:areas.map(v=>v/12),labels:areas.map((v,i)=>'S'+(i+1)),total_area:12,reference_ratio:['buck2','sp2','rsc2'].includes(k)?2:4}} function analyze(payload,data){ const p={rs:num(payload,'rs_mohm',20,0,1e5)/1000,rc:num(payload,'rc_mohm',20,0,1e5)/1000, @@ -30,24 +32,26 @@ function analyze(payload,data){ let selected=payload.topologies??['xfly2p','xfly4p','3lbuck','2sbuck','buck']; if(!Array.isArray(selected)||!selected.length||selected.some(k=>!index[k]))throw Error('Select known topologies'); selected=[...new Set(selected)]; - const siInputs=selected.includes('si2')?{...p,coupling:num(payload,'coupling',.6,0,.85),rippleScale:vin/(io*p.fs*p.lt)}:null; - const at=(id,m)=>evaluate(id,m,id==='si2'?siInputs:p); + const siInputs=selected.some(isDutyBuck)?{...p,coupling:num(payload,'coupling',.6,0,.85),rippleScale:vin/(io*p.fs*p.lt)}:null; + const stackInputs=selected.includes('buck_stacked')?{...siInputs,vin,load:io,gateCap:num(payload,'gate_cap_pf',25,0,100)*1e-12,coss:payload.coss_pf===null||String(payload.coss_pf).trim()===''?null:num(payload,'coss_pf',10,0,30)*1e-12}:null; + const at=(id,m)=>evaluate(id,m,id==='buck_stacked'?stackInputs:id==='si2'?siInputs:p); const rows=selected.map(id=>{ const r=at(id,M),meta=index[id]; const row={id,name:meta.name,short:meta.short,color:meta.color,note:meta.note,formulas:data.formulas[id], allocation:data.formulas[id]?allocation(id,index,r):null,valid:!!r,domain:meta.range}; if(!r)return row; - const loss=io*io*r.total,pout=vin*M*io,drop=io*(r.droop_resistance??r.total); + const conductionLoss=io*io*r.total,loss=conductionLoss+(r.gate_w??0)+(r.coss_w??0),pout=vin*M*io,drop=io*(r.droop_resistance??r.total); const delivered=(vin*M-drop)*io; // The original reference cells retain their documented nominal-power metric. - const usesDeliveredPower=['si2','sp2','rsc2','buck2'].includes(id); - const eta=usesDeliveredPower?(delivered>0?100*delivered/(delivered+loss):null):100*pout/(pout+loss); - return Object.assign(row,r,{loss_w:loss,conduction_efficiency:eta,droop_estimate_v:drop}); + const usesDeliveredPower=['si2','sp2','rsc2','buck2','buck_stacked'].includes(id); + const eta=usesDeliveredPower?(delivered>0?100*delivered/(delivered+conductionLoss):null):100*pout/(pout+conductionLoss); + return Object.assign(row,r,{loss_w:loss,conduction_efficiency:eta,droop_estimate_v:drop, + ...(id==='buck_stacked'?{efficiency_includes_coss:r.coss_w!==null,efficiency_with_events:delivered>0?100*delivered/(delivered+loss):null}:{})}); }); const xs=[...new Set([...linspace(.0005,.4995,500),.25,.5,M])].sort((a,b)=>a-b); const siSamples=[...new Set([...linspace(.25,.75,251),M])].sort((a,b)=>a-b); const curves=selected.map(id=>({id,name:index[id].short,color:index[id].color, - points:(id==='si2'?siSamples:xs).flatMap(m=>{const r=at(id,m);return r?[[m,r.total*1000]]:[]})})) + points:(isDutyBuck(id)?siSamples:xs).flatMap(m=>{const r=at(id,m);return r?[[m,r.total*1000]]:[]})})) .filter(s=>s.points.length); return {ratio,M,vin,iout:io,parameters:p,rows,curves,provenance:data.provenance,assumptions:data.assumptions}; } @@ -64,10 +68,10 @@ function analyzePU(payload,data){ const si_coupling=num(payload,'si_coupling',.6,0,.85), si_ripple=num(payload,'si_ripple',.75,0,10000), si_duty=payload.si_duty==null?M:num(payload,'si_duty',.5,.25,.75); const result=(k,m)=>{if(!valid(k,m))return null; - if(k==='si2')return evaluate(k,m,{rs:1,rc:rho_c,rl:rho_l,coupling:si_coupling,rippleScale:si_ripple});if(k==='rsc2')return rho_q>0?evaluate(k,m,{rs:1,rc:rho_c,rl:rho_l,cf:1/rho_q,fs:1,lt:rho_t}):null;const [a,b,c]=coefficients(k,2*m),fet=a,cap=b*rho_c,ind=(k==='sp2'?0:.5)*rho_l,ssl=c*rho_q;const net=fet+cap,ssl_series=k==='sp2'?chargingResistance(k,net,ssl)-net:(net||ssl)?ssl*ssl/(Math.hypot(net,ssl)+net):0;const total=ind+chargingResistance(k,net,ssl);return {fet,cap,ind,ssl,ssl_series,fsl:fet+cap+ind,total,...(k==='sp2'?{sp2_loss:sp2LossBreakdown(fet,cap,total)}:{}),coefficients:[a,b,k==='sp2'?0:.5,c],D:2*m,gate_duty:k==='buck2'?m:k==='sp2'?.5:null}}; - const rows=selected.map(id=>{const r=result(id,id==='si2'?si_duty:M),meta=index[id];return {id,name:meta.name,short:meta.short,color:meta.color,note:meta.note,formulas:data.formulas[id],allocation:data.formulas[id]?allocation(id,index,r):null,valid:!!r,domain:meta.range,...(r||{})}}); - const xs=[...new Set([...linspace(.0005,.4995,500),.25,.5,M])].sort((a,b)=>a-b),curves=selected.map(id=>({id,name:index[id].short,color:index[id].color,points:(id==='si2'?[...new Set([...linspace(.25,.75,251),si_duty])].sort((a,b)=>a-b):xs).flatMap(m=>{const r=result(id,m);return r?[[m,r.total]]:[]})})).filter(s=>s.points.length); - return {ratio,M,normalization:{base:'R_S',rho_c,rho_l,rho_q,...(selected.includes('rsc2')?{rho_t}:{}),...(selected.includes('si2')?{si_coupling,si_ripple,si_duty}:{}),component_unit:'R/R_S',coefficient_bases:['R_S','R_C','R_L','1/(C_F f_s)']},rows,curves,provenance:'XFLY-IEEE Section V-F, Table I; Figures 18–20. Dimensionless form of the current manuscript models.',assumptions:[ + if(isDutyBuck(k))return evaluate(k,m,{rs:1,rc:rho_c,rl:rho_l,coupling:si_coupling,rippleScale:si_ripple});if(k==='rsc2')return rho_q>0?evaluate(k,m,{rs:1,rc:rho_c,rl:rho_l,cf:1/rho_q,fs:1,lt:rho_t}):null;const [a,b,c]=coefficients(k,2*m),fet=a,cap=b*rho_c,ind=(k==='sp2'?0:.5)*rho_l,ssl=c*rho_q;const net=fet+cap,ssl_series=k==='sp2'?chargingResistance(k,net,ssl)-net:(net||ssl)?ssl*ssl/(Math.hypot(net,ssl)+net):0;const total=ind+chargingResistance(k,net,ssl);return {fet,cap,ind,ssl,ssl_series,fsl:fet+cap+ind,total,...(k==='sp2'?{sp2_loss:sp2LossBreakdown(fet,cap,total)}:{}),coefficients:[a,b,k==='sp2'?0:.5,c],D:2*m,gate_duty:k==='buck2'?m:k==='sp2'?.5:null}}; + const rows=selected.map(id=>{const r=result(id,isDutyBuck(id)?si_duty:M),meta=index[id];return {id,name:meta.name,short:meta.short,color:meta.color,note:meta.note,formulas:data.formulas[id],allocation:data.formulas[id]?allocation(id,index,r):null,valid:!!r,domain:meta.range,...(r||{})}}); + const xs=[...new Set([...linspace(.0005,.4995,500),.25,.5,M])].sort((a,b)=>a-b),curves=selected.map(id=>({id,name:index[id].short,color:index[id].color,points:(isDutyBuck(id)?[...new Set([...linspace(.25,.75,251),si_duty])].sort((a,b)=>a-b):xs).flatMap(m=>{const r=result(id,m);return r?[[m,r.total]]:[]})})).filter(s=>s.points.length); + return {ratio,M,normalization:{base:'R_S',rho_c,rho_l,rho_q,...(selected.includes('rsc2')?{rho_t}:{}),...(selected.some(isDutyBuck)?{si_coupling,si_ripple,si_duty}:{}),component_unit:'R/R_S',coefficient_bases:['R_S','R_C','R_L','1/(C_F f_s)']},rows,curves,provenance:'XFLY-IEEE Section V-F, Table I; Figures 18–20. Dimensionless form of the current manuscript models.',assumptions:[ 'Rs is the common resistance base. rho_C=Rc/Rs; rho_L=Rl/Rs; rho_Q=1/(Cf fs Rs). No absolute resistance, current or power is assigned.', 'Table columns k_FET=RFET/Rs, k_CAP=RCAP/Rc, k_IND=RIND/Rl and k_SSL=RSSL Cf fs are independent coefficients. These columns are not directly additive. Coefficients remain defined when their corresponding loss scale is zero.', ...data.assumptions.filter(s=>!s.startsWith('Conduction efficiency'))]}; diff --git a/static/compare/index.html b/static/compare/index.html index 443f267b2e26d5aae7838f16550b240d9286990c..1ad724fe18de035e14fc8c38d10219cdad1e602c 100644 --- a/static/compare/index.html +++ b/static/compare/index.html @@ -3,7 +3,7 @@
╳OpenPELS
Constraints → topology recommendation
Simulator

Compare converter candidates for your design.

Choose a conversion ratio and compare coupled-inductor cells at their nominal ripple-cancellation points.

2 · DESIGN CONSTRAINTS

Your available resources

Ron × area defaults to an illustrative 1 mΩ·mm², not a characterized TSMC layout value. Capacitor budget covers flying/clamp caps; winding limits count power windings. Driver area and Cin/Cout are outside these budgets. Lk = 50 nH and Lm = 1 μH are editable illustrative defaults, not characterized TSMC magnetics.

3 · COMPARE ALL QUALIFYING CANDIDATES

Topology candidates

Ripple-cancellation criterion and recommendation scope

Output voltage and output current are the operating-point inputs. The selected conversion ratio N:1 sets the nominal required input voltage Vin = N Vout. Output power and load resistance are calculated: Pout = Vout Iout and Rload = Vout/Iout. Converter Rout is the modeled output-referred series resistance (RFET + RCAP + RIND + the non-double-counted charging increment), not the load resistance. Each panel shows Rout in mΩ as well as its per-unit value. Rout/Rload gives the nominal constant-current droop fraction when requested Vout = Vin/ratio. The specified load current is used in the loss model; this is not a solved resistive-load equilibrium. Only coupled-inductor cells with a verified nominal two-level excitation pattern at this ratio are listed. The admitted patterns are matched complementary winding inputs at 50% effective duty, or the three-level buck’s ideal constant-midpoint state at 2:1. A two-phase buck reaches complementary excitation at ideal 2:1; balanced half-input hybrid cells reach it at ideal 4:1. A three-level buck also belongs to 2:1: with a balanced flying capacitor and 50% gate duty, its two redundant states both apply Vin/2 to the winding input, ideally giving zero winding voltage and ripple. This midpoint result does not require magnetic coupling, although the drawn implementation retains coupled windings. It differs from its coupling-assisted 4:1 operation. Real flying-capacitor voltage ripple, imbalance and dead time leave residual ripple that is not quantified by the midpoint-hold estimate. A four-pulse or three-level sequence must preserve the complementary winding-input pattern; arbitrary pulse permutations are not admitted by this estimate.

Lself = Lk + Lm; M = −Lm; LDM = Lk + 2Lm
Δiphase,pp ≈ Vstep / (4 feff LDM)

Vstep is Vin for buck cells and Vin/2 for the admitted hybrid cells. feff is fs for the two-command cells, and 2fs for the specified four-pulse / three-level excitation. Phase ripple percentage is Δiphase,pp divided by Iout/2. The symmetric common-mode switching excitation cancels ideally; individual phase ripple is finite and approaches zero only with sufficiently large differential-mode inductance. This is not a measured zero-ripple claim.

We screen the entered phase-ripple threshold, winding/capacitor counts, capacitance budget and estimated open-loop droop. Total FET width is searched under the silicon budget with each model’s relative allocation held fixed. Die-area mode uses RΣ = (Ron × area)/(usable transistor area); the 1 mΩ·mm² default is an illustrative editable layout assumption. Shortlist resistances share the full-budget RS base. Loss ranking remains the flat-current model plus gate drive; ripple-loss corrections and Coss energy are not inferred.

Ripple estimates assume equal winding turns, inverse polarity, balanced capacitor voltages, stiff ideal switching levels and matched timing. Capacitor ripple, imbalance, dead time, resistive voltage errors and control action can spoil cancellation. Vin is derived from the selected ideal cancellation ratio and requested output voltage. Changing ratio preserves both output voltage and current. Open-loop output under the specified current is predicted as Vin/ratio − Iout Rout, so matching the ideal target does not prove loaded regulation. Correcting loaded output voltage by duty adjustment can move away from the nominal cancellation point. Saturation, core loss and magnetic implementation need separate verification.

The current library establishes only the 2:1 and 4:1 cancellation-point families. The 6:1, 8:1 and 16:1 tabs remain empty until a higher-order switching and magnetic model is available. Off-duty buck comparisons and the nonmagnetic SC option are omitted. The stacked buck is grouped at its electrical 2:1 cancellation point while retaining its existing 4:1 loss-sizing allocation.

TI describes the three-level buck’s ideal D = 0.5 zero-inductor-voltage point in SLYT807. For coupled-inductor modal behavior, see ADI’s phase- and output-ripple analysis. The formulas above follow directly from the stated symmetric inductance matrix.

Inspect schematics, die allocation, and loss derivations

Reference drawings use normalized resistances. Inspect a shortlisted design to load its loss weights.

Per-unit loss weights
-
180 nm device reference · uses the specified output voltage and current

User-supplied device example from XFLY_Power_Analysis.md; not independently verified foundry data. FOMg = 1.51102 Ω·pC; FOMoss = 0.67424 Ω·pC. First-order width scaling; same device technology for all FETs. Device voltage rating and PVT limits require a PDK check.

Optional Eoss entry: dissipated Coss energy in pJ per 1 mm of total FET width per cycle, averaged over the actual device transitions after recovery. Leave blank when unknown. Qoss is not converted to Eoss.

Derivation and model scope

RΣ is the resistance of all available FET width in parallel. With the existing twelve-unit area budget, RΣ = RS/12. A device assigned fraction α has width αWtot and on-resistance RΣ/α. FOMg = Ron·Qg and FOMoss = Ron·Qoss are width independent under the supplied scaling.

Pg = VGS fs ng FOMg / RΣ; Rg = Vx² RΣ / (VGS fs ng FOMg)

Vx = M Vin is the ideal secondary voltage, ahead of the series loss resistances. Both loss shunts use Vx, rather than the loaded Vout. Gate power is a separate supply demand unless the driver is explicitly powered from the main input. The shunts are accounting equivalents; their current does not enter the conduction-loss calculations.

Poss = fs Σ νi Eoss,diss,i; Ross = Vx² / Poss

ng is the width-weighted number of gate-charge events per period, assumed uniform in this example. Actual four-pulse sequences require event counts for each physical device. No exact Eoss follows from FOMoss alone: Q(V), Eoss(V), switching swings, and recovery are needed. The optional aggregate Eoss input must already include these effects.

The numerical table uses matched flat winding currents for inductive converters. The added SP-SC uses an exact linear periodic RC model, with no power winding. Width allocations remain fixed at each topology’s reference ratio (2:1 for the added cells; 4:1 for the paper cells). These allocations are not automatically reoptimized at another sizing duty. The 4 μF budget covers flying and clamp capacitors only; Cin and Cout are excluded. Adopted allocation: equal main capacitors for two-capacitor cells; equal main and clamp capacitances in four-capacitor cells, consistent with the existing 2SBUCK model. This is a disclosed comparison assumption, not a capacitor-allocation optimum. Additional XFLY4P clamp recharge is not derived. Turn-on/off overlap, dead time, core loss, interconnects and ripple corrections remain outside these estimates.

RFET, RCAP and RIND use the existing closed-form duty expressions below. The charging increment uses the paper's asymptotic interpolation for the paper cells. The added SP-SC has its own exact linear periodic RC model. Unknown Coss loss is excluded from the displayed partial loss, so no total efficiency is claimed.

Finite-RC charge-event check

For a single linear RC charging event lasting d/fs, let q = a Iout/fs be the required transferred charge. Integrating i²R for an exponential current and eliminating its initial amplitude gives:

Revent = a²/[2 C fs] coth[d/(2 fs Rpath C)]
RSSL = a²/(2 C fs); RFSL = a² Rpath/d

Here C is the effective capacitance seen by that event. The exact result approaches both limits; they must not be added to another RMS model of the same event. It assumes a fixed linear path, settled initial conditions specified by the event, and a driving step chosen to transfer q. Each converter needs its own event capacitance, duration, charge multiplier, and periodic initial conditions before this expression can replace the existing interpolation.

+
180 nm device reference · uses the specified output voltage and current

User-supplied device example from XFLY_Power_Analysis.md; not independently verified foundry data. FOMg = 1.51102 Ω·pC; FOMoss = 0.67424 Ω·pC. First-order width scaling; same device technology for all FETs. Device voltage rating and PVT limits require a PDK check.

Optional Eoss entry: dissipated Coss energy in pJ per 1 mm of total FET width per cycle, averaged over the actual device transitions after recovery. Leave blank when unknown. Qoss is not converted to Eoss.

Derivation and model scope

RΣ is the resistance of all available FET width in parallel. With the existing twelve-unit area budget, RΣ = RS/12. A device assigned fraction α has width αWtot and on-resistance RΣ/α. FOMg = Ron·Qg and FOMoss = Ron·Qoss are width independent under the supplied scaling.

Pg = VGS fs ng FOMg / RΣ; Rg = Vx² RΣ / (VGS fs ng FOMg)

Vx = M Vin is the ideal secondary voltage, ahead of the series loss resistances. Both loss shunts use Vx, rather than the loaded Vout. Gate power is a separate supply demand unless the driver is explicitly powered from the main input. The shunts are accounting equivalents; their current does not enter the conduction-loss calculations.

Poss = fs Σ νi Eoss,diss,i; Ross = Vx² / Poss

ng is the width-weighted number of gate-charge events per period, assumed uniform in this example. Actual four-pulse sequences require event counts for each physical device. No exact Eoss follows from FOMoss alone: Q(V), Eoss(V), switching swings, and recovery are needed. The optional aggregate Eoss input must already include these effects.

The numerical table uses matched flat winding currents for inductive converters. The added SP-SC uses an exact linear periodic RC model, with no power winding. Width allocations remain fixed at each topology’s reference ratio (2:1 for the added cells; 4:1 for the paper cells). These allocations are not automatically reoptimized at another sizing duty. The 4 μF budget covers flying and clamp capacitors only; Cin and Cout are excluded. Adopted allocation: equal main capacitors for two-capacitor cells; equal main and clamp capacitances in four-capacitor cells, consistent with the existing 2SBUCK model. This is a disclosed comparison assumption, not a capacitor-allocation optimum. Additional XFLY4P clamp recharge is not derived. Turn-on/off overlap, dead time, core loss, interconnects and ripple corrections remain outside these estimates.

RFET, RCAP and RIND use the existing closed-form duty expressions below. The charging increment uses the paper's asymptotic interpolation for the paper cells. The added SP-SC has its own exact linear periodic RC model. Unknown Coss loss is excluded from the displayed partial loss, so no total efficiency is claimed.

Finite-RC charge-event check

For a single linear RC charging event lasting d/fs, let q = a Iout/fs be the required transferred charge. Integrating i²R for an exponential current and eliminating its initial amplitude gives:

Revent = a²/[2 C fs] coth[d/(2 fs Rpath C)]
RSSL = a²/(2 C fs); RFSL = a² Rpath/d

Here C is the effective capacitance seen by that event. The exact result approaches both limits; they must not be added to another RMS model of the same event. It assumes a fixed linear path, settled initial conditions specified by the event, and a driving step chosen to transfer q. Each converter needs its own event capacitance, duration, charge multiplier, and periodic initial conditions before this expression can replace the existing interpolation.

Loading topology models…
CONVERTER TOPOLOGYAVERAGED DC EQUIVALENT CIRCUIT
Effective resistance versus conversion ratio
OpenPELS · Based on the XFLY family analysisPer-unit analytical model · verify with switched simulation

Upload a topology

Vision connection

Your inference token and image go directly from this browser to the Hugging Face inference provider for this request. Neither is saved.

Choose a schematic to begin.

- + diff --git a/static/compare/models-data.json b/static/compare/models-data.json index f6476481970a6e74d8978983855aff69f164bc4b..7e8b73a2e5ebedbdab49daf759ab9e5046499b37 100644 --- a/static/compare/models-data.json +++ b/static/compare/models-data.json @@ -195,6 +195,29 @@ "range": "Positive-current CCM, 0.25 ≤ duty ≤ 0.75.", "gain": "M = D", "note": "Same four-switch graph as the flat-current two-phase coupled buck reference. Finite winding ripple, variable duty, and output-capacitor ESR are included." + }, + { + "id": "buck_stacked", + "name": "2:1 Buck_Stacked", + "short": "STACK", + "family": "Duty-regulated stacked buck", + "switches": 8, + "color": "#2e706c", + "gain": "M = gate duty", + "range": "0.25 ≤ D ≤ 0.75, positive-current CCM", + "status": "Local ideal equal-sharing model", + "ratio": [ + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1 + ], + "asset": "buck-stacked.svg", + "note": "Two inverse-coupled phases with series switch stacks. Each blocked MOSFET shares the stack voltage equally. Effective gate swing and nominal device blocking are Vin/2. One effective gate cycle and hard Coss discharge per device each period." } ], "formulas": { @@ -251,6 +274,12 @@ "(ΔIΣ / Iout)² / 12", "2 ⟨i_L²⟩ / Iout²", "0" + ], + "buck_stacked": [ + "R_FET = 4 (Ron,H J_H + Ron,L J_L) / Iout²", + "R_CAP = RESR ⟨i_C²⟩ / Iout²", + "R_IND = 2 RDCR (J_H + J_L) / Iout²", + "Pg = 8 fs Cg (Vin/2)²; Poss = 4 fs Coss (Vin/2)²" ] }, "provenance": "XFLY-IEEE Section V-F, Table I; Figures 18\u201320. Equations transcribed from the current working manuscript.", diff --git a/static/compare/operating-conditions.json b/static/compare/operating-conditions.json index 5fe3a260cb59a94bcb98cbc7bb4a489951dcfcab..2add98856e59b94adb7bd32e6d57492dea83036f 100644 --- a/static/compare/operating-conditions.json +++ b/static/compare/operating-conditions.json @@ -286,6 +286,114 @@ }, "ns": { "legacy_reference": true + }, + "buck_stacked": { + "nominal_ratio": 2, + "modes": [ + "duty_cycle", + "output_voltage" + ], + "default_mode": "duty_cycle", + "defaults": { + "input_voltage_v": 3, + "load": { + "kind": "current", + "value": 1 + }, + "switching_frequency_hz": 2000000, + "duty": 0.5, + "target_output_v": 1.5 + }, + "load_kinds": [ + "current" + ], + "derived": [ + "applied_duty", + "ideal_output_voltage_v", + "analytical_output_voltage_v", + "ideal_gain", + "loaded_gain", + "conduction_mode" + ], + "range": { + "duty": { + "min": 0.25, + "max": 0.75 + }, + "conduction_modes": [ + "positive_current_ccm" + ] + }, + "law": { + "ideal_gain": { + "constant": 0, + "duty": 1 + }, + "loaded_voltage_terms": { + "input_voltage_v": [ + 0, + 1 + ], + "winding_drop_v": [ + -1, + 0 + ], + "high_drop_v": [ + 0, + -1 + ], + "low_drop_v": [ + -1, + 1 + ] + } + }, + "simulator": { + "id": "buck_stacked", + "axes": { + "duty_cycle": "duty", + "output_voltage": "target" + }, + "handoff": { + "fs": "fs_mhz", + "lt": "si_l_nh", + "coupling": "si_coupling", + "dcr": "rl_mohm", + "cout": "cap_uf", + "esr": "rc_mohm" + } + }, + "analysis_sweep_axes": { + "duty_cycle": { + "label": "Duty cycle", + "start": 0.3, + "stop": 0.7 + }, + "output_voltage": { + "label": "Target output voltage (V)", + "start": 0.35, + "stop": 0.65, + "basis": "input_voltage_v" + }, + "input_voltage_v": { + "label": "Input voltage (V)", + "start": 0.9, + "stop": 1.1, + "basis": "input_voltage_v" + }, + "output_current_a": { + "label": "Output current (A)", + "start": 0.8, + "stop": 1.2, + "basis": "output_current_a" + }, + "switching_frequency_mhz": { + "label": "Switching frequency (MHz)", + "start": 0.8, + "stop": 1.2, + "basis": "switching_frequency_mhz" + } + } } } } diff --git a/static/compare/recommend.js b/static/compare/recommend.js index 2eb60ae79047d052e754f119da438935eb546292..f2eb4bf5f58b1beefc4a2ff828a0cca1079926f0 100644 --- a/static/compare/recommend.js +++ b/static/compare/recommend.js @@ -1,10 +1,10 @@ /* Constraint screening and width optimization within the verified analytical library. */ (function(root){'use strict'; -const specs=Object.freeze({si2:{ratio:2,caps:1,windings:2,magnetics:'inverse-coupled'},buck2:{ratio:2,caps:0,windings:2,magnetics:'inverse-coupled'},rsc2:{ratio:2,caps:2,windings:2,magnetics:'uncoupled resonant'},sp2:{ratio:2,caps:2,windings:0,magnetics:'none'},xfly2p:{ratio:4,caps:2,windings:2,magnetics:'coupled'},xfly4p:{ratio:4,caps:4,windings:2,magnetics:'coupled'},'3lbuck':{ratio:4,ratios:[2,4],caps:2,windings:2,magnetics:'coupled'},'2sbuck':{ratio:4,caps:4,windings:2,magnetics:'coupled'},buck:{ratio:2,caps:0,windings:2,magnetics:'coupled'}}); +const specs=Object.freeze({buck_stacked:{ratio:2,caps:1,windings:2,magnetics:'inverse-coupled'},si2:{ratio:2,caps:1,windings:2,magnetics:'inverse-coupled'},buck2:{ratio:2,caps:0,windings:2,magnetics:'inverse-coupled'},rsc2:{ratio:2,caps:2,windings:2,magnetics:'uncoupled resonant'},sp2:{ratio:2,caps:2,windings:0,magnetics:'none'},xfly2p:{ratio:4,caps:2,windings:2,magnetics:'coupled'},xfly4p:{ratio:4,caps:4,windings:2,magnetics:'coupled'},'3lbuck':{ratio:4,ratios:[2,4],caps:2,windings:2,magnetics:'coupled'},'2sbuck':{ratio:4,caps:4,windings:2,magnetics:'coupled'},buck:{ratio:2,caps:0,windings:2,magnetics:'coupled'}}); const excitation=Object.freeze({buck2:{level:1,pulses:1},buck:{level:1,pulses:1},xfly2p:{level:.5,pulses:1},xfly4p:{level:.5,pulses:2},'3lbuck':{level:.5,pulses:2},'2sbuck':{level:.5,pulses:1}}); function familyIds(ratio){return Object.keys(excitation).filter(id=>(specs[id].ratios??[specs[id].ratio]).includes(ratio))} // Dedicated reference eligibility; the winding-based optimizer keeps its own domain. -function referenceFamilyIds(ratio){const ids=familyIds(ratio);return ratio===2?[...ids,'sp2','rsc2','si2']:ids} +function referenceFamilyIds(ratio){const ids=familyIds(ratio);return ratio===2?[...ids,'sp2','rsc2','si2','buck_stacked']:ids} function ripplePoint(id,p){const ldm=p.lk_nh*1e-9+2*p.lm_uh*1e-6;if(id==='3lbuck'&&p.ratio===2)return {ripple_model:'ideal_midpoint_hold',phase_ripple_pp:0,phase_ripple_percent:0,effective_duty:1,gate_duty:.5,effective_frequency:0,ldm,residual_ripple_unmodeled:true,condition:'Ideal balanced flying capacitor holds winding input at Vin/2 = Vout; ideal winding voltage and ripple are zero. Real capacitor-voltage ripple, mismatch and timing effects are not quantified; coupling is not the cause of this ideal cancellation.'};const e=excitation[id],pp=p.vin*e.level/(4*p.fs_mhz*1e6*e.pulses*ldm);return {ripple_model:'complementary_excitation',phase_ripple_pp:pp,phase_ripple_percent:100*pp/(p.io/2),effective_duty:.5,effective_frequency:p.fs_mhz*1e6*e.pulses,ldm,condition:'Balanced 0/Vstep winding inputs, complementary 50% effective duty, matched inverse coupling; first-order phase-current ripple, not measured zero ripple.'}} const defaults={ratio:4,vin:3.3,vout:null,voltage_mode:'input_output',load_mode:'current',io:2,pout_w:1.65,fs_mhz:10,vgs:3.3,budget_mode:'area',width_mm:360,die_mm2:1,utilization:.5,ron_area_mohm_mm2:1,cap_uf:4,max_caps:4,max_windings:2,rc_mohm:20,rl_mohm:38,max_drop_percent:10,lk_nh:50,lm_uh:1,max_phase_ripple_percent:5,objective:'loss'}; @@ -164,6 +164,7 @@ function recommendSwitchedInductor(input, settings, base, meta, technology) { const deviceInputs={...settings,vin:p.vin,io:p.io,fs_mhz:p.fs_mhz,cap_uf:p.cap_uf, rc_mohm:p.rc_mohm,rl_mohm:p.rl_mohm,si_duty:p.si_duty,si_target_v:p.si_target_v, voltage_mode:p.voltage_mode,si_l_nh:p.si_l_nh,si_coupling:p.si_coupling}; + const stacked = meta.id === 'buck_stacked'; const bounded = p.voltage_mode==='output_voltage'; const calculate = width_mm => technology.example([base],{...deviceInputs,width_mm}); const isFeasible = point => point?.operating_point.solver.valid @@ -202,21 +203,21 @@ function recommendSwitchedInductor(input, settings, base, meta, technology) { if (r.vo<=0) reasons.push('The first-order model predicts nonpositive delivered voltage.'); if (bounded&&!targetFeasible&&!reasons.length) reasons.push('No reachable positive-current CCM design fits the selected constraints.'); const row={id:meta.id,name:meta.name,short:meta.short,asset:meta.asset,native_ratio:2,reference_match:true, - ...specs.si2,status:reasons.length?'excluded':'eligible',reasons,rank:reasons.length?null:1, + ...specs[meta.id],status:reasons.length?'excluded':'eligible',reasons,rank:reasons.length?null:1, width_mm:best.width_mm,available_width_mm:width,rs:deviceReport.rs,req:r.req,rout:r.req,req_pu:r.req/rsBudget, req_used_width_pu:r.req/deviceReport.rs,rout_over_rload:r.req/(requested/p.io),drop_percent:best.drop_percent,droop_resistance:si.droop_resistance, loss:best.loss,parts:{fet:r.fet,cap:r.cap,ind:r.ind,fsl:r.req,ssl:0,hc:0},cf:r.cf,si, conduction_power:r.conduction_power,gate_power:deviceReport.gate_power,coss_power:r.poss, - efficiency:r.efficiency,delivered_w:r.delivered_w,device:r.device,estimated_open_loop_vout:r.vo, + efficiency:r.efficiency,...(stacked?{efficiency_includes_coss:r.efficiency_includes_coss}:{}),delivered_w:r.delivered_w,device:r.device,estimated_open_loop_vout:r.vo, phase_ripple_pp:p.io*si.phase_ripple_per_amp,phase_ripple_percent:phasePercent, operating_waveforms:{ winding_average_a:p.io/2,winding_rms_a:p.io*Math.sqrt(si.winding_weight), winding_valley_a:p.io*si.min_phase_per_amp, - channel_rms_a:[si.high_weight,si.low_weight,si.high_weight,si.low_weight].map(w=>p.io*Math.sqrt(w)), - channel_average_a:[command.duty,command.duty-1,command.duty,command.duty-1].map(d=>d*p.io/2), + channel_rms_a:(stacked?[si.high_weight,si.high_weight,si.low_weight,si.low_weight,si.high_weight,si.high_weight,si.low_weight,si.low_weight]:[si.high_weight,si.low_weight,si.high_weight,si.low_weight]).map(w=>p.io*Math.sqrt(w)), + channel_average_a:(stacked?[command.duty,command.duty,command.duty-1,command.duty-1,command.duty,command.duty,command.duty-1,command.duty-1]:[command.duty,command.duty-1,command.duty,command.duty-1]).map(d=>d*p.io/2), output_cap_rms_a:p.io*Math.sqrt(si.capacitor_weight), ideal_winding_voltage_v:[(1-command.duty)*p.vin,-command.duty*p.vin], - ideal_switch_blocking_v:p.vin, + ideal_switch_blocking_v:stacked?p.vin/2:p.vin, }, capacitor_ripple_vpp:p.io*si.output_ripple_per_amp/(16*p.fs_mhz*1e6*r.cf), used_die_mm2:p.budget_mode==='area'?best.width_mm*p.ron_area_mohm_mm2*1e-3/technology.reference.ron:null}; @@ -226,7 +227,7 @@ function recommendSwitchedInductor(input, settings, base, meta, technology) { load_resistance:requested/p.io,requested_ratio:p.vin/requested,voltage_ratio_match:true, nominal_vout:p.vin/p.ratio,nominal_ratio:p.ratio, loaded_ratio:command.loadedGain>0?1/command.loadedGain:null,operating_point:command,rows:[row],eligible,winner:eligible[0]??null,native_models:1,deviceReport, - scope:'Two-phase inverse-coupled buck. Duty-regulated positive-current CCM with piecewise-linear winding currents and first-order loss.'}; + scope:stacked?'Eight-device stacked buck. Half-input effective gate swing and Coss energy. Positive winding-current CCM.':'Two-phase inverse-coupled buck. Duty-regulated positive-current CCM with piecewise-linear winding currents and first-order loss.'}; } function recommend(input,data,engine,technology){const op=operatingPoint(input),p=op.parameters;for(const k of ['ratio','vin','io','fs_mhz','vgs','width_mm','die_mm2','lk_nh','lm_uh'])if(!Number.isFinite(p[k])||p[k]<=0)throw Error(k+' must be positive');for(const k of ['cap_uf','max_caps','max_windings','rc_mohm','rl_mohm','max_drop_percent','max_phase_ripple_percent'])if(!Number.isFinite(p[k])||p[k]<0)throw Error(k+' must be nonnegative');if(![2,4,6,8,16].includes(p.ratio))throw Error('Choose a supported ratio');if(!['width','area'].includes(p.budget_mode)||!['loss','capacitors','magnetics'].includes(p.objective))throw Error('Choose a budget mode and objective');if(!Number.isInteger(p.max_caps)||!Number.isInteger(p.max_windings))throw Error('Component limits must be integers');if(!Number.isFinite(p.utilization)||p.utilization<=0||p.utilization>1)throw Error('Usable die fraction must be in (0,1]'); const calibrated=p.budget_mode==='width'||Number.isFinite(p.ron_area_mohm_mm2)&&p.ron_area_mohm_mm2>0,Wmax=availableWidth(p,technology),fs=p.fs_mhz*1e6,m=1/p.ratio,vo=p.vin*m; diff --git a/static/compare/scoreboard.js b/static/compare/scoreboard.js index 110d6193fefd83a65ed64d8ea514bf3a65afb31d..ffe66ee487d810935547b56d6a6a761f764643d7 100644 --- a/static/compare/scoreboard.js +++ b/static/compare/scoreboard.js @@ -4,11 +4,11 @@ const mechanisms=[{id:'fet',name:'MOSFET conduction',short:'Switch loss',symbol: const coss={id:'coss',name:'MOSFET Coss',short:'Output-capacitance loss',symbol:'O',color:'#648568'}; function build(report){ const switchedCap=report.eligible.length===1&&report.eligible[0].id==='sp2'; -const rms=report.eligible.length===1&&['rsc2','si2'].includes(report.eligible[0].id); +const rms=report.eligible.length===1&&['rsc2','si2','buck_stacked'].includes(report.eligible[0].id); const sp2Labels={fet:'MOSFET conduction (FSL)',cap:'Capacitor ESR (FSL)',charging:'Finite-RC increment'}; const mechanismsForReport=rms?[...mechanisms.filter(m=>m.id!=='charging'),coss]: switchedCap?[...mechanisms.map(m=>sp2Labels[m.id]?{...m,name:sp2Labels[m.id]}:m),coss]:mechanisms; -const io=report.output_current,rows=report.eligible.map(r=>{const powers={fet:io*io*r.parts.fet,cap:io*io*r.parts.cap,ind:io*io*r.parts.ind,charging:io*io*Math.max(0,r.req-r.parts.fsl),gate:r.gate_power};if(['rsc2','si2'].includes(r.id)){delete powers.charging;powers.coss=r.coss_power;}if(r.id==='sp2')Object.assign(powers,{ind:null,charging:io*io*r.parts.hc,coss:r.coss_power});return {id:r.id,total:r.loss,powers,ratings:{},unknown:['rsc2','si2'].includes(r.id)?{...(r.coss_power===null?{coss:null}:{}),core:null}:r.id==='sp2'?(r.coss_power===null?{coss:null}:{}):{coss:null,core_ripple:null}}}); +const io=report.output_current,rows=report.eligible.map(r=>{const powers={fet:io*io*r.parts.fet,cap:io*io*r.parts.cap,ind:io*io*r.parts.ind,charging:io*io*Math.max(0,r.req-r.parts.fsl),gate:r.gate_power};if(['rsc2','si2','buck_stacked'].includes(r.id)){delete powers.charging;powers.coss=r.coss_power;}if(r.id==='sp2')Object.assign(powers,{ind:null,charging:io*io*r.parts.hc,coss:r.coss_power});return {id:r.id,total:r.loss,powers,ratings:{},unknown:['rsc2','si2','buck_stacked'].includes(r.id)?{...(r.coss_power===null?{coss:null}:{}),core:null}:r.id==='sp2'?(r.coss_power===null?{coss:null}:{}):{coss:null,core_ripple:null}}}); const ranges=Object.fromEntries(mechanismsForReport.map(m=>{const v=rows.map(r=>r.powers[m.id]);return [m.id,{min:Math.min(...v),max:Math.max(...v)}]})); for(const r of rows){for(const m of mechanismsForReport){const {min,max}=ranges[m.id];r.ratings[m.id]=rows.length<2?null:Math.abs(max-min)<=Math.max(1e-12,max*1e-10)?99:Math.round(99*(max-r.powers[m.id])/(max-min))}const gains=mechanismsForReport.map(m=>{const others=rows.filter(a=>a!==r);return {id:m.id,label:m.short,delta:others.length?others.reduce((s,a)=>s+a.powers[m.id],0)/others.length-r.powers[m.id]:0}});const good=gains.filter(a=>a.delta>1e-9).sort((a,b)=>b.delta-a.delta)[0],bad=gains.filter(a=>a.delta< -1e-9).sort((a,b)=>a.delta-b.delta)[0];r.pro_delta=good?good.delta:null;r.con_delta=bad?-bad.delta:null;r.pro=good?'Lower '+good.label.toLowerCase():rows.length<2?'Only one qualified candidate':'No lower-loss category';r.con=bad?'Higher '+bad.label.toLowerCase():rows.length<2?'No relative comparison available':'No higher-loss category';} return {mechanisms:mechanismsForReport,rows,scale:'Ratings 0–99 within this displayed set, per mechanism: 99 = lowest modeled loss; 0 = highest. Ties = 99. One candidate = no relative score. These are not efficiency percentages.',unknowns:rms?'Core and switching-overlap loss are unquantified; Coss requires an effective energy input.':switchedCap?'Coss is included only with effective energy data; magnetic losses are inapplicable.':'Coss, core and ripple-loss corrections are not quantified or included in the modeled total.',charging_definition:'Charging increment = Iout² (Req − RFSL), not the raw SSL asymptote. It is nonoverlapping with the FSL terms.'};} diff --git a/static/compare/technology.js b/static/compare/technology.js index 34cb72b9db9fbc8c2701326f5ff410eca55ad63e..4fedfc4fe4114ebf261372a52f519d5910c73e26 100644 --- a/static/compare/technology.js +++ b/static/compare/technology.js @@ -3,22 +3,29 @@ const reference=Object.freeze({ron:.602,qg:2.51e-12,qoss:1.12e-12,width_mm:1,length_um:.18}); const fom=Object.freeze({gate:reference.ron*reference.qg,oss:reference.ron*reference.qoss}); function finiteRC(a,c,f,d,r){if(![a,c,f,d,r].every(Number.isFinite)||a<0||c<=0||f<=0||d<=0||d>1||r<0)throw Error('Invalid RC charge-event parameters');const ssl=a*a/(2*c*f),fsl=a*a*r/d;return {ssl,fsl,total:r===0?ssl:ssl/Math.tanh(d/(2*f*r*c))}} -function example(rows,p={}){const defaults={vin:3.3,io:2,fs_mhz:10,vgs:3.3,width_mm:360,cap_uf:4,rc_mohm:20,rl_mohm:38,events:1};p={...defaults,...p};for(const k of Object.keys(defaults)){if(!Number.isFinite(p[k])||p[k]<0||(!['rc_mohm','rl_mohm'].includes(k)&&p[k]===0))throw Error('Use finite positive technology-example settings')};if(p.eoss_pj!=null&&(!Number.isFinite(p.eoss_pj)||p.eoss_pj<0))throw Error('Eoss must be nonnegative');const fs=p.fs_mhz*1e6,rs=reference.ron*12/p.width_mm,parallel=rs/12,pg=p.vgs*fs*fom.gate*p.events/parallel; -return {parameters:p,fom,rs,parallel,gate_power:pg,rows:rows.map(r=>{if(!r.valid)return {id:r.id,valid:false};const tank=r.id==='rsc2'?(root.OpenPELSResonant??require('./resonant.js')).evaluate({rs,rc:p.rc_mohm/1000,rl:p.rl_mohm/1000,cf:p.cap_uf*5e-7,fs,lt:(p.tank_nh??5.5)*1e-9}):null;const model=r.id==='si2'?(root.OpenPELSSwitchedInductor??require('./switched-inductor.js')):null; +function example(rows,p={}){const defaults={vin:3.3,io:2,fs_mhz:10,vgs:3.3,width_mm:360,cap_uf:4,rc_mohm:20,rl_mohm:38,events:1};p={...defaults,...p};for(const k of Object.keys(defaults)){if(!Number.isFinite(p[k])||p[k]<0||(!['rc_mohm','rl_mohm'].includes(k)&&p[k]===0))throw Error('Use finite positive technology-example settings')};if(p.stack_coss_pf_per_mm!=null&&(!Number.isFinite(p.stack_coss_pf_per_mm)||p.stack_coss_pf_per_mm<0))throw Error('Coss density must be nonnegative');if(p.eoss_pj!=null&&(!Number.isFinite(p.eoss_pj)||p.eoss_pj<0))throw Error('Eoss must be nonnegative');const fs=p.fs_mhz*1e6,rs=reference.ron*12/p.width_mm,parallel=rs/12; +const stackOnly=rows.length===1&&rows[0].id==='buck_stacked'; +const stackGateCap=(reference.qg/3.3)*p.width_mm/8,stackCoss=p.stack_coss_pf_per_mm==null?null:p.stack_coss_pf_per_mm*1e-12*p.width_mm/8; +const pg=stackOnly?8*stackGateCap*(p.vin/2)**2*fs:p.vgs*fs*fom.gate*p.events/parallel; +return {parameters:p,fom,rs,parallel,gate_power:pg,rows:rows.map(r=>{if(!r.valid)return {id:r.id,valid:false};const tank=r.id==='rsc2'?(root.OpenPELSResonant??require('./resonant.js')).evaluate({rs,rc:p.rc_mohm/1000,rl:p.rl_mohm/1000,cf:p.cap_uf*5e-7,fs,lt:(p.tank_nh??5.5)*1e-9}):null;const stacked=r.id==='buck_stacked'; +const windingModel=root.OpenPELSSwitchedInductor??(typeof require==='function'?require('./switched-inductor.js'):null); +const model=stacked?(root.OpenPELSBuckStacked??require('./buck-stacked.js')):r.id==='si2'?windingModel:null; const atDuty=duty=>model.evaluate(duty,{rs,rc:p.rc_mohm/1000,rl:p.rl_mohm/1000, - coupling:p.si_coupling??.6,rippleScale:p.vin/(p.io*fs*(p.si_l_nh??1000)*1e-9)}); + coupling:p.si_coupling??.6,rippleScale:p.vin/(p.io*fs*(p.si_l_nh??1000)*1e-9), + ...(stacked?{vin:p.vin,load:p.io,fs,gateCap:stackGateCap,coss:stackCoss}:{})}); const op=root.OpenPELSOperatingPoint??require('./operating-point.js'); const commonInputs={input_voltage_v:p.vin,load:{kind:'current',value:p.io},switching_frequency_hz:fs}; const command=model?op.resolve(r.id,{...commonInputs, mode:p.voltage_mode==='output_voltage'?'output_voltage':'duty_cycle', ...(p.voltage_mode==='output_voltage'?{target_output_v:p.si_target_v}:{duty:p.si_duty??r.gate_duty}), -},model.operatingAdapter({vin:p.vin,load:p.io,fs,winding:(p.si_l_nh??1000)*1e-9,coupling:p.si_coupling??.6, - dcr:p.rl_mohm/1000,resistances_at_duty:duty=>atDuty(duty).fractions.slice(0,2).map(fraction=>rs/(12*fraction))})):null; +},windingModel.operatingAdapter({vin:p.vin,load:p.io,fs,winding:(p.si_l_nh??1000)*1e-9,coupling:p.si_coupling??.6, + dcr:p.rl_mohm/1000,resistances_at_duty:duty=>{const f=atDuty(duty).fractions;return stacked?[f[0],f[2]].map(x=>2*rs/(12*x)):f.slice(0,2).map(x=>rs/(12*x))}})):null; const si=command?atDuty(command.duty):null; - const n=si?1:['buck','buck2'].includes(r.id)?0:['xfly4p','2sbuck'].includes(r.id)?4:2,cf=n?p.cap_uf*1e-6/n:null,[a,b,l,q]=r.coefficients,fet=si?.fet??tank?.fet??a*rs,cap=si?.cap??tank?.cap??b*p.rc_mohm/1000,ind=si?.ind??tank?.ind??l*p.rl_mohm/1000,ssl=q? q/(cf*fs):0,net=fet+cap,hc=ssl?(r.id==='sp2'?(net?ssl/Math.tanh(ssl/net)-net:ssl):ssl*ssl/(Math.hypot(net,ssl)+net)):0,req=fet+cap+ind+hc,vx=command?command.idealVoltage:p.vin/(r.D?2/r.D:4),vo=command?.analyticalVoltage??(vx-p.io*req),gate_r=vx*vx/pg,poss=p.eoss_pj==null?null:p.eoss_pj*1e-12*p.width_mm*fs,oss_r=poss===null?null:poss===0?Infinity:vx*vx/poss,device=si?si.fractions.map((fraction,i)=>({id:'Q'+(i+1),width_mm:fraction*p.width_mm,ron:rs/(12*fraction)})):r.allocation.areas.map(area=>({width_mm:area*p.width_mm/12,ron:rs/area}));const point=command??(op.definition(r.id)?.default_mode==='fixed_ratio' + const n=si?1:['buck','buck2'].includes(r.id)?0:['xfly4p','2sbuck'].includes(r.id)?4:2,cf=n?p.cap_uf*1e-6/n:null,[a,b,l,q]=r.coefficients,fet=si?.fet??tank?.fet??a*rs,cap=si?.cap??tank?.cap??b*p.rc_mohm/1000,ind=si?.ind??tank?.ind??l*p.rl_mohm/1000,ssl=q? q/(cf*fs):0,net=fet+cap,hc=ssl?(r.id==='sp2'?(net?ssl/Math.tanh(ssl/net)-net:ssl):ssl*ssl/(Math.hypot(net,ssl)+net)):0,req=fet+cap+ind+hc,vx=command?command.idealVoltage:p.vin/(r.D?2/r.D:4),vo=command?.analyticalVoltage??(vx-p.io*req),rowGate=stacked?si.gate_w:pg,gate_r=vx*vx/rowGate,poss=stacked?(p.stack_coss_pf_per_mm==null?null:si.coss_w):p.eoss_pj==null?null:p.eoss_pj*1e-12*p.width_mm*fs,oss_r=poss===null?null:poss===0?Infinity:vx*vx/poss,device=si?si.fractions.map((fraction,i)=>({id:stacked?['Q1a','Q1b','Q2a','Q2b','Q3a','Q3b','Q4a','Q4b'][i]:'Q'+(i+1),width_mm:fraction*p.width_mm,ron:rs/(12*fraction)})):r.allocation.areas.map(area=>({width_mm:area*p.width_mm/12,ron:rs/area}));const point=command??(op.definition(r.id)?.default_mode==='fixed_ratio' ? op.resolve(r.id,{...commonInputs,mode:'fixed_ratio'},{loaded_voltage:()=>vo}) : null); const sp2Loss=r.id==='sp2'?(root.OpenPELSEngine??require('./engine.js')).sp2LossBreakdown(fet,cap,req):null; - return {id:r.id,valid:true,...(sp2Loss?{sp2_loss:sp2Loss}:{}),...(point?{operating_point:point}:{}),...(tank?{tank}:{}),...(si?{si}:{}),capacitors:si?1:n,cf,fet,cap,ind,ssl,hc,req,vx,vo,gate_r,poss,oss_r,device,conduction_power:p.io*p.io*req,partial_loss:p.io*p.io*req+pg+(poss??0)}})}; + return {id:r.id,valid:true,...(sp2Loss?{sp2_loss:sp2Loss}:{}),...(point?{operating_point:point}:{}),...(tank?{tank}:{}),...(si?{si}:{}),capacitors:si?1:n,cf,fet,cap,ind,ssl,hc,req,vx,vo,gate_r,poss,oss_r,device,conduction_power:p.io*p.io*req,partial_loss:p.io*p.io*req+rowGate+(poss??0), + ...(stacked?{gate_cap_pf:stackGateCap*1e12,coss_pf:stackCoss===null?null:stackCoss*1e12,gate_swing_v:p.vin/2}:{})}})}; } const api={reference,fom,finiteRC,example};root.OpenPELSTechnology=api;if(typeof module!=='undefined')module.exports=api; })(typeof window!=='undefined'?window:globalThis); diff --git a/static/gallery.js b/static/gallery.js index 4caf2e61f85f6a92ca3c909469c279e9d116b170..212a99aab67b99736853dc36c5ceaa707446ea9a 100644 --- a/static/gallery.js +++ b/static/gallery.js @@ -1,7 +1,15 @@ -import "./compare/recommend.js?v=operating-conditions"; +import "./compare/recommend.js?v=buck-stacked-coss"; export const FAMILY_RATIOS = [2, 4, 6, 8, 16]; const presets = { + buck_stacked: { + name: "2:1 Buck_Stacked", + image: "buck-stacked-candidate.svg", + starter: "buck_stacked", + simulator: "buck_stacked", + magneticsLabel: "2 inverse-coupled windings", + simulatorRatio: 2, + }, si2: { name: "2:1 switched inductor", image: "si2-candidate.svg", diff --git a/static/index.html b/static/index.html index 4bc62181f8f6afa4bd8e837bdbbb4fe6e40faddc..2231eb02899a7ec4766c780345e20fb66cb807a9 100644 --- a/static/index.html +++ b/static/index.html @@ -209,7 +209,7 @@
- + diff --git a/static/openpels-source.zip b/static/openpels-source.zip index a6a6e6fc5f6284312dc62c66d16dc4fff3b00460..1f08b668d86d5ad2f7fb5e1d035e9654b4d271c8 100644 --- a/static/openpels-source.zip +++ b/static/openpels-source.zip @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:76630249b4dd36837da7b1dc2869ca080a1904999973f884988125115efbd7cb -size 24947955 +oid sha256:7d60ccbdd1b559e8f2132de95b828073383f37d099b73dfd6498aad444622e3d +size 24989174 diff --git a/static/pe.js b/static/pe.js index 1b2c8723e78a4cad1117c1ccfcff27432d00d5c4..2f6d4563cdb2713c3d14eb87350472296d7103a6 100644 --- a/static/pe.js +++ b/static/pe.js @@ -1,6 +1,6 @@ import './compare/operating-point.js?v=operating-conditions'; import { createSimulator } from "./simulator.js?v=operating-conditions"; -import { createGallery } from "./gallery.js?v=operating-conditions"; +import { createGallery } from "./gallery.js?v=buck-stacked-coss"; import { createAnalysis } from "./analysis.js"; const $ = (s) => document.querySelector(s), $$ = (s) => [...document.querySelectorAll(s)]; @@ -35,7 +35,7 @@ const fixedPoints = new Map(Object.entries(conditions.topologies).filter(([,entr })); const fixedInBounds = (id, axis, value) => { const range = fixedPresets.get(id)?.parameters[axis]; - return range && Number.isFinite(value) && value >= range.minimum && value <= range.maximum; + return range && (value === null ? range.optional : Number.isFinite(value) && value >= range.minimum && value <= range.maximum); }; let legacyPoint = { vout: 0.8, iout: 2 }; let operatingPoint = legacyPoint; diff --git a/static/starters/buck_stacked.icproj.json b/static/starters/buck_stacked.icproj.json new file mode 100644 index 0000000000000000000000000000000000000000..093662ee33698dcef10d5825f11aaabd4e075d9e --- /dev/null +++ b/static/starters/buck_stacked.icproj.json @@ -0,0 +1 @@ +{"schemaVersion":86,"id":"project-f236f32d-2158-47ea-bb4b-b5e69d9132d1","name":"2:1 Buck_Stacked","topDocumentId":"document-89c0d0f5-5984-4afc-89fb-10f008c79a68","defaults":{"instance":{"mirror":"none","rotation":0},"instancesByType":{"ground":{"color":"#000000"},"inductor-compact":{"color":"#000000","parameters":{"value":"1u"},"target":{"deviceClass":"inductor","kind":"primitive"}},"nmos":{"color":"#000000","parameters":{"l":"700n","m":"1","nf":"1","w":"5u"},"target":{"definitionId":"copy-dependency-53122fc9fd8c6659","kind":"external-subcircuit"},"variant":"textbook-3terminal"},"resistor":{"color":"#000000","parameters":{"value":"4m"},"target":{"deviceClass":"resistor","kind":"primitive"}},"voltage-source":{"parameters":{"amplitude":"1","damping":"0","dc":"1.5","delay":"0","fall":"1ps","frequency":"1k","high":"1","low":"0","offset":"0","period":"10ns","phase":"0","rise":"1ps","waveform":"dc","width":"5ns"},"target":{"deviceClass":"voltage-source","kind":"primitive"}}},"label":{"alignment":"middle","locked":false,"rotation":0},"routeLeg":{"mode":"manual"}},"documents":[{"id":"document-89c0d0f5-5984-4afc-89fb-10f008c79a68","name":"dut","netlist":{"formalParameters":[],"name":"dut","terminals":[{"direction":"inout","id":"terminal-vdd1_13","interfaceInstanceIds":["VDD1_13"],"name":"VIN","netId":"wire-b78297b4-66e3-4fad-9f1a-3ce7691d081a-net_13"},{"direction":"passive","id":"terminal-p1_13","interfaceInstanceIds":["P1_13"],"name":"VBIAS","netId":"net-cell-pin-p1_13"},{"direction":"input","id":"stack-terminal-A","interfaceInstanceIds":["stack-port-A"],"name":"A","netId":"stack-gate-A"},{"direction":"input","id":"stack-terminal-B","interfaceInstanceIds":["stack-port-B"],"name":"B","netId":"stack-gate-B"},{"direction":"input","id":"stack-terminal-ABAR","interfaceInstanceIds":["stack-port-ABAR"],"name":"ABAR","netId":"stack-gate-ABAR"},{"direction":"input","id":"stack-terminal-BBAR","interfaceInstanceIds":["stack-port-BBAR"],"name":"BBAR","netId":"stack-gate-BBAR"},{"direction":"output","id":"stack-terminal-VOUT","interfaceInstanceIds":["stack-port-VOUT"],"name":"VOUT","netId":"net-c89167162f00667a_13"}]},"presentation":{"compactness":"normal","grid":10,"labelSubscriptAfterFirst":false,"labelSubscriptItalic":false,"styleProfileId":"razavi-textbook-v1"},"instances":[{"type":"voltage-source","name":"V1","id":"V1","coordinate":[820,180],"labels":[{"alignment":"start","anchor":{"fallback":[835,185],"offset":[15,5]},"bind":"name","format":{"runs":[{"children":["V"],"styles":["italic","bold"]},{"children":["1"],"styles":["subscript","bold"]}]},"id":"instance-label-V1","kind":"instance-label","order":0,"visible":false}]},{"type":"nmos","name":"M9","id":"M2_15","coordinate":[890,430],"labels":[{"alignment":"start","anchor":{"fallback":[905,435],"offset":[15,5]},"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"q-reference-M2_15","kind":"instance-label","order":3,"sizeScale":1,"text":{"runs":[{"children":["Q"],"styles":["italic","bold"]},{"children":["2b"],"styles":["subscript","bold"]}]},"textColor":"#000000"}],"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75}},{"type":"nmos","name":"M10","id":"M6_14","coordinate":[1050,430],"labels":[{"alignment":"start","anchor":{"fallback":[1065,435],"offset":[15,5]},"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"q-reference-M6_14","kind":"instance-label","order":4,"sizeScale":1,"text":{"runs":[{"children":["Q"],"styles":["italic","bold"]},{"children":["4b"],"styles":["subscript","bold"]}]},"textColor":"#000000"}],"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75}},{"type":"capacitor","name":"C1","id":"C5_13","coordinate":[1260,310],"color":"#000000","parameters":{"value":"47u"},"target":{"deviceClass":"capacitor","kind":"primitive"},"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75}},{"type":"ground","id":"g3_13","coordinate":[1280,370],"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75}},{"type":"current-source","name":"ILOAD","id":"I1_13","coordinate":[1300,310],"color":"#000000","parameters":{"amplitude":"1m","damping":"0","dc":"1","delay":"0","fall":"1ps","frequency":"1k","high":"1m","low":"0","offset":"0","period":"10ns","phase":"0","rise":"1ps","waveform":"dc","width":"5ns"},"target":{"deviceClass":"current-source","kind":"primitive"},"labels":[{"alignment":"start","anchor":{"fallback":[1315,315],"offset":[15,5]},"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"instance-label-I1_13","kind":"instance-label","order":5,"sizeScale":1,"text":{"runs":[{"children":["I"],"styles":["italic","bold"]},{"children":["OUT"],"styles":["subscript","bold"]}]},"textColor":"#000000"}],"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75}},{"type":"inductor-compact","name":"L3","id":"L1_13","coordinate":[1120,300],"rotation":270,"labels":[{"alignment":"start","anchor":{"fallback":[1115,325],"offset":[-5,25]},"bind":"name","documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"format":{"runs":[{"children":["L"],"styles":["italic","bold"]},{"children":["3"],"styles":["subscript","bold"]}]},"id":"instance-label-L1_13","kind":"instance-label","order":6,"textColor":"#000000"}],"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75}},{"type":"inductor-compact","name":"L4","id":"L2_13","coordinate":[1120,250],"rotation":270,"mirror":"horizontal","labels":[{"alignment":"end","anchor":{"fallback":[1125,230],"offset":[5,-20]},"bind":"name","documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"format":{"runs":[{"children":["L"],"styles":["italic","bold"]},{"children":["4"],"styles":["subscript","bold"]}]},"id":"instance-label-L2_13","kind":"instance-label","order":7,"textColor":"#000000"}],"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75}},{"type":"vdd-port","id":"VDD1_13","coordinate":[980,60],"color":"#000000","labels":[{"alignment":"start","anchor":{"fallback":[1000,65],"offset":[20,5]},"bind":{"kind":"cell-terminal-name","terminalId":"terminal-vdd1_13"},"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"format":{"runs":[{"children":["V"],"styles":["italic","bold"]},{"children":["IN"],"styles":["subscript","bold"]}]},"id":"power-label-vdd1_13","kind":"power-label","netId":"wire-b78297b4-66e3-4fad-9f1a-3ce7691d081a-net_13","order":8,"sizeScale":1,"textColor":"#000000"}],"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75}},{"type":"resistor","name":"R1","id":"R3_13","coordinate":[1170,300],"rotation":270,"labels":[{"anchor":{"fallback":[1170,286],"offset":[0,-14]},"bind":"name","documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"format":{"runs":[{"children":["R"],"styles":["italic","bold"]},{"children":["1"],"styles":["subscript","bold"]}]},"id":"instance-label-R3_13","kind":"instance-label","order":9,"sizeScale":1,"textColor":"#000000"}],"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75}},{"type":"resistor","name":"R2","id":"R4_13","coordinate":[1170,250],"rotation":270,"labels":[{"anchor":{"fallback":[1170,236],"offset":[0,-14]},"bind":"name","documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"format":{"runs":[{"children":["R"],"styles":["italic","bold"]},{"children":["2"],"styles":["subscript","bold"]}]},"id":"instance-label-R4_13","kind":"instance-label","order":10,"sizeScale":1,"textColor":"#000000"}],"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75}},{"type":"ground","id":"g3_14","coordinate":[980,480],"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75}},{"type":"nmos","name":"M11","id":"M2_13","coordinate":[890,360],"labels":[{"alignment":"start","anchor":{"fallback":[905,365],"offset":[15,5]},"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"q-reference-M2_13","kind":"instance-label","order":11,"sizeScale":1,"text":{"runs":[{"children":["Q"],"styles":["italic","bold"]},{"children":["2a"],"styles":["subscript","bold"]}]},"textColor":"#000000"}],"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75}},{"type":"nmos","name":"M12","id":"M6_13","coordinate":[1050,360],"labels":[{"alignment":"start","anchor":{"fallback":[1065,365],"offset":[15,5]},"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"q-reference-M6_13","kind":"instance-label","order":12,"sizeScale":1,"text":{"runs":[{"children":["Q"],"styles":["italic","bold"]},{"children":["4a"],"styles":["subscript","bold"]}]},"textColor":"#000000"}],"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75}},{"type":"nmos","name":"M13","id":"M2_14","coordinate":[890,140],"labels":[{"alignment":"start","anchor":{"fallback":[905,145],"offset":[15,5]},"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"q-reference-M2_14","kind":"instance-label","order":18,"sizeScale":1,"text":{"runs":[{"children":["Q"],"styles":["italic","bold"]},{"children":["1a"],"styles":["subscript","bold"]}]},"textColor":"#000000"}],"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75}},{"type":"nmos","name":"M14","id":"M2_16","coordinate":[1050,140],"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75}},{"type":"nmos","name":"M15","id":"M2_17","coordinate":[890,200],"labels":[{"alignment":"start","anchor":{"fallback":[905,205],"offset":[15,5]},"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"q-reference-M2_16","kind":"instance-label","order":19,"sizeScale":1,"text":{"runs":[{"children":["Q"],"styles":["italic","bold"]},{"children":["1b"],"styles":["subscript","bold"]}]},"textColor":"#000000"}],"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75}},{"type":"nmos","name":"M16","id":"M2_18","coordinate":[1050,200],"labels":[{"alignment":"start","anchor":{"fallback":[1065,205],"offset":[15,5]},"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"q-reference-M2_18","kind":"instance-label","order":20,"sizeScale":1,"text":{"runs":[{"children":["Q"],"styles":["italic","bold"]},{"children":["3b"],"styles":["subscript","bold"]}]},"textColor":"#000000"}],"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75}},{"type":"port","id":"P1_13","coordinate":[850,360]},{"type":"voltage-source","name":"V2","id":"V1_2","coordinate":[990,180],"labels":[{"alignment":"start","anchor":{"fallback":[1005,185],"offset":[15,5]},"bind":"name","format":{"runs":[{"children":["V"],"styles":["italic","bold"]},{"children":["2"],"styles":["subscript","bold"]}]},"id":"instance-label-V1_2","kind":"instance-label","order":24,"visible":false}]},{"type":"port","id":"stack-port-A","coordinate":[840,200]},{"type":"port","id":"stack-port-B","coordinate":[1010,200]},{"type":"port","id":"stack-port-ABAR","coordinate":[810,430]},{"type":"port","id":"stack-port-BBAR","coordinate":[970,430]},{"type":"port","id":"stack-port-VOUT","coordinate":[1360,270],"rotation":180}],"routes":[{"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"end":{"terminal":["M6_14","D"]},"id":"route-b8d1755697395690_13","legId":"route-leg-604a5ba6fa9af64e","start":{"terminal":["M6_13","S"]},"styleOverride":{"color":"#000000"}},{"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"wire-1b9b1ae8-5b80-4b6e-a52a-70200c7c7872-route_13","legs":[{"bend":"route-bend-b282f3c29198a7ea","coordinate":[1260,350],"id":"route-leg-b282f3c29198a7ea"},{"id":"route-leg-b282f4c29198a99d","junction":"junction-canonical-b0303cca0094b789_13"}],"start":{"terminal":["C5_13","2"]},"styleOverride":{"color":"#000000"}},{"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"end":{"terminal":["g3_13","0"]},"id":"route-canonical-743731247baf50d1_13","legId":"route-leg-f81f285e5fe3979d","start":{"junction":"junction-canonical-b0303cca0094b789_13"},"styleOverride":{"color":"#000000"}},{"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"route-ui-6_13","legs":[{"bend":"route-bend-a3eb8e2bbf2303ec","coordinate":[1300,350],"id":"route-leg-a3eb8e2bbf2303ec"},{"id":"route-leg-a3eb8f2bbf23059f","terminal":["I1_13","-"]}],"start":{"junction":"junction-canonical-b0303cca0094b789_13"},"styleOverride":{"color":"#000000"}},{"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"end":{"terminal":["M2_15","D"]},"id":"route-e5debd961c5da6ec_13","legId":"route-leg-acc22e34a8bf943c","start":{"terminal":["M2_13","S"]},"styleOverride":{"color":"#000000"}},{"end":{"terminal":["R4_13","1"]},"id":"route-ui-21_13","legId":"route-leg-501a4cd34148e6c6","start":{"terminal":["L2_13","1"]}},{"end":{"terminal":["R3_13","1"]},"id":"route-ui-34_13","legId":"route-leg-7d19bae6b1d9668c","start":{"terminal":["L1_13","2"]}},{"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"route-ui-14-a-16-b-splice-r3-first-b-splice-r3-second_2-b-29_13","legs":[{"bend":"route-bend-971729ad72583a74","coordinate":[1200,250],"id":"route-leg-971729ad72583a74"},{"id":"route-leg-97172aad72583c27","junction":"junction-canonical-46524ba74b702b15_13"}],"start":{"terminal":["R4_13","2"]},"styleOverride":{"color":"#000000"}},{"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"route-ui-14-a-16-b-splice-r3-first-b-splice-r3-second_2-a-29_13","legs":[{"bend":"route-bend-38cdba0cd8192e29","coordinate":[1200,300],"id":"route-leg-38cdba0cd8192e29"},{"id":"route-leg-38cdb90cd8192c76","junction":"junction-canonical-46524ba74b702b15_13"}],"start":{"terminal":["R3_13","2"]},"styleOverride":{"color":"#000000"}},{"end":{"junction":"junction-ui-28_13"},"id":"route-ui-30_13","legId":"route-leg-7b5bcd8f872a4200","start":{"junction":"junction-canonical-46524ba74b702b15_13"}},{"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"end":{"terminal":["C5_13","1"]},"id":"route-ui-2-b-17_2-a-28_13","legId":"route-leg-a77748f118cce2df","start":{"junction":"junction-ui-28_13"},"styleOverride":{"color":"#000000"}},{"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"route-ui-2-b-17_2-b-28_13","legs":[{"bend":"route-bend-52434578bd99ad0e","coordinate":[1300,270],"id":"route-leg-52434578bd99ad0e"},{"id":"route-leg-52434678bd99aec1","terminal":["I1_13","+"]}],"start":{"junction":"junction-ui-28_13"},"styleOverride":{"color":"#000000"}},{"id":"route-canonical-b1158a167e31eff9-a-contact-g3_5-0_13","legs":[{"bend":"route-bend-df326c0e8ef036c7","coordinate":[900,470],"id":"route-leg-df326c0e8ef036c7"},{"id":"route-leg-df326b0e8ef03514","terminal":["g3_14","0"]}],"start":{"terminal":["M2_15","S"]}},{"id":"route-canonical-b1158a167e31eff9-b-contact-g3_5-0_13","legs":[{"bend":"route-bend-0959477cb1577942","coordinate":[1060,470],"id":"route-leg-0959477cb1577942"},{"id":"route-leg-0959487cb1577af5","terminal":["M6_14","S"]}],"start":{"terminal":["g3_14","0"]}},{"end":{"junction":"junction-ui-52_13"},"id":"route-ui-17_4-a-38-a-52_13","legId":"route-leg-10483444a99b82fb","start":{"terminal":["M6_13","D"]}},{"end":{"terminal":["L2_13","2"]},"id":"route-ui-17_4-a-38-b-52_13","legId":"route-leg-7ede19a78799b67e","start":{"junction":"junction-ui-52_13"}},{"end":{"terminal":["M2_14","S"]},"id":"route-ui-48_13","legId":"route-leg-f689b0ca9bfce479","start":{"terminal":["M2_17","D"]}},{"end":{"terminal":["M2_18","D"]},"id":"route-ui-49_13","legId":"route-leg-dda1374204592104","start":{"terminal":["M2_16","S"]}},{"end":{"junction":"junction-ui-61_13"},"id":"route-ui-53-a-61_13","legId":"route-leg-1100743afff1611c","start":{"terminal":["M2_18","S"]}},{"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"wire-b78297b4-66e3-4fad-9f1a-3ce7691d081a-route-a-contact-vdd1-p_13","legs":[{"bend":"route-bend-5e3ca48a2aed1cbd","coordinate":[900,80],"id":"route-leg-5e3ca48a2aed1cbd"},{"id":"route-leg-5e3ca38a2aed1b0a","terminal":["VDD1_13","P"]}],"start":{"terminal":["M2_14","D"]},"styleOverride":{"color":"#000000"}},{"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"wire-b78297b4-66e3-4fad-9f1a-3ce7691d081a-route-b-contact-vdd1-p_13","legs":[{"bend":"route-bend-153f5e76a64e2a10","coordinate":[1060,80],"id":"route-leg-153f5e76a64e2a10"},{"id":"route-leg-153f5f76a64e2bc3","junction":"junction-lifecycle-4-1_13"}],"start":{"terminal":["VDD1_13","P"]},"styleOverride":{"color":"#000000"}},{"end":{"junction":"junction-ui-57_13"},"id":"route-ui-55-b-contact-p1-p-a-57_13","legId":"route-leg-ccfd930cb1e11a59","start":{"terminal":["M2_13","G"]}},{"id":"route-ui-55-b-contact-p1-p-b-57_13","legs":[{"bend":"route-bend-dff169ed59eae470","coordinate":[860,390],"id":"route-leg-dff169ed59eae470"},{"bend":"route-bend-dff16aed59eae623","coordinate":[1020,390],"id":"route-leg-dff16aed59eae623"},{"bend":"route-bend-dff16bed59eae7d6","coordinate":[1020,360],"id":"route-leg-dff16bed59eae7d6"},{"id":"route-leg-dff16ced59eae989","terminal":["M6_13","G"]}],"start":{"junction":"junction-ui-57_13"}},{"end":{"junction":"junction-ui-57_13"},"id":"route-ui-58_13","legId":"route-leg-f39a7692a10f2bb6","start":{"terminal":["P1_13","P"]}},{"id":"route-ui-62_13","legs":[{"bend":"route-bend-164991207d211459","coordinate":[990,250],"id":"route-leg-164991207d211459"},{"id":"route-leg-164990207d2112a6","junction":"junction-ui-61_13"}],"start":{"junction":"junction-lifecycle-66-1"}},{"id":"route-ui-63_13","legs":[{"bend":"route-bend-0841de90711227e4","coordinate":[990,140],"id":"route-leg-0841de90711227e4"},{"id":"route-leg-0841df9071122997","terminal":["M2_16","G"]}],"start":{"junction":"junction-lifecycle-66-2"}},{"id":"route-ui-64_13","legs":[{"bend":"route-bend-461ffe34f434bd7b","coordinate":[820,140],"id":"route-leg-461ffe34f434bd7b"},{"id":"route-leg-461ffd34f434bbc8","terminal":["M2_14","G"]}],"start":{"junction":"junction-lifecycle-65-2"}},{"end":{"junction":"junction-ui-50_13"},"id":"route-ui-19_4-a-36-b-50_13","legId":"route-leg-70f568ea5a1f133c","start":{"terminal":["L1_13","1"]}},{"end":{"junction":"junction-ui-65"},"id":"route-ui-51-a-59_13-a-65","legId":"route-leg-5ef0f5ce29ae28bb","start":{"terminal":["M2_17","S"]}},{"end":{"junction":"junction-ui-50_13"},"id":"route-ui-51-a-59_13-b-65","legId":"route-leg-31fe0bf09da2b970","start":{"junction":"junction-ui-65"}},{"end":{"terminal":["M2_13","D"]},"id":"route-ui-19_4-a-36-a-50_13","legId":"route-leg-bd43a28d9d0d16c1","start":{"junction":"junction-ui-50_13"}},{"id":"route-ui-66","legs":[{"bend":"route-bend-6523dff0ed585bcd","coordinate":[820,250],"id":"route-leg-6523dff0ed585bcd"},{"id":"route-leg-6523def0ed585a1a","junction":"junction-ui-65"}],"start":{"terminal":["V1","-"]}},{"end":{"terminal":["M2_17","G"]},"id":"stack-route-A","legId":"stack-end-A","start":{"terminal":["stack-port-A","P"]}},{"end":{"terminal":["M2_18","G"]},"id":"stack-route-B","legId":"stack-end-B","start":{"terminal":["stack-port-B","P"]}},{"end":{"terminal":["M2_15","G"]},"id":"stack-route-ABAR","legId":"stack-end-ABAR","start":{"terminal":["stack-port-ABAR","P"]}},{"end":{"terminal":["M6_14","G"]},"id":"stack-route-BBAR","legId":"stack-end-BBAR","start":{"terminal":["stack-port-BBAR","P"]}},{"end":{"junction":"junction-ui-28_13"},"id":"stack-route-VOUT","legId":"stack-end-VOUT","start":{"terminal":["stack-port-VOUT","P"]}}],"connections":{"contacts":[[{"junction":"junction-lifecycle-66-1"},{"terminal":["V1_2","-"]}],[{"junction":"junction-ui-52_13"},{"junction":"junction-ui-61_13"}],[{"junction":"junction-lifecycle-65-2"},{"terminal":["V1","+"]}],[{"junction":"junction-lifecycle-66-2"},{"terminal":["V1_2","+"]}],[{"junction":"junction-lifecycle-4-1_13"},{"terminal":["M2_16","D"]}]],"unrouted":[[{"junction":"junction-canonical-b0303cca0094b789_13"},{"terminal":["M2_13","B"]},{"terminal":["M2_14","B"]},{"terminal":["M2_15","B"]},{"terminal":["M2_16","B"]},{"terminal":["M2_17","B"]},{"terminal":["M2_18","B"]},{"terminal":["M6_13","B"]},{"terminal":["M6_14","B"]}]]},"nets":[{"at":{"terminal":["C5_13","2"]},"id":"net-power-g3_13"},{"at":{"terminal":["M2_14","S"]},"id":"wire-216c0eb9-6350-4d34-835b-c1195d4a45f6-net_13"},{"at":{"terminal":["M2_14","D"]},"id":"wire-b78297b4-66e3-4fad-9f1a-3ce7691d081a-net_13"},{"at":{"terminal":["C5_13","1"]},"id":"net-c89167162f00667a_13"},{"at":{"terminal":["M2_16","S"]},"id":"net-a13172e5b2ec0f18_13"},{"at":{"terminal":["L2_13","1"]},"id":"net-d54a55392bcf90a9_13"},{"at":{"terminal":["g3_14","0"]},"id":"net-power-g3_14"},{"at":{"terminal":["L1_13","2"]},"id":"net-02837d038f0e8e96_13"},{"at":{"terminal":["L1_13","1"]},"id":"net-32d42b47dd8ac819_13"},{"at":{"terminal":["L2_13","2"]},"id":"net-7baf232fac0a057e_13"},{"at":{"terminal":["M2_13","S"]},"id":"net-34f8f605faafe983_13"},{"at":{"terminal":["M6_13","S"]},"id":"net-d0310f0b90e8a0e3_13"},{"at":{"terminal":["M2_14","G"]},"id":"net-d08440a96f146865_13"},{"at":{"terminal":["M2_16","G"]},"id":"net-d08440a96f146865_14"},{"at":{"terminal":["M2_13","G"]},"id":"net-cell-pin-p1_13"},{"at":{"terminal":["M2_17","G"]},"id":"stack-gate-A"},{"at":{"terminal":["M2_18","G"]},"id":"stack-gate-B"},{"at":{"terminal":["M2_15","G"]},"id":"stack-gate-ABAR"},{"at":{"terminal":["M6_14","G"]},"id":"stack-gate-BBAR"}],"junctions":[{"coordinate":[1280,350],"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"junction-canonical-b0303cca0094b789_13","role":"branch"},{"coordinate":[1260,270],"id":"junction-ui-28_13","role":"branch"},{"coordinate":[1200,270],"id":"junction-canonical-46524ba74b702b15_13","role":"branch"},{"coordinate":[1060,120],"id":"junction-lifecycle-4-1_13","role":"branch"},{"coordinate":[900,300],"id":"junction-ui-50_13","role":"branch"},{"coordinate":[1060,250],"id":"junction-ui-52_13","role":"branch"},{"coordinate":[860,360],"id":"junction-ui-57_13","role":"branch"},{"coordinate":[1060,250],"id":"junction-ui-61_13","role":"branch"},{"coordinate":[820,160],"id":"junction-lifecycle-65-2","role":"branch"},{"coordinate":[990,200],"id":"junction-lifecycle-66-1","role":"branch"},{"coordinate":[990,160],"id":"junction-lifecycle-66-2","role":"branch"},{"coordinate":[900,250],"id":"junction-ui-65","role":"branch"}],"annotations":[{"alignment":"end","anchor":{"kind":"free","position":{"x":1255,"y":300}},"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"instance-label-M3_13","kind":"instance-label","order":1,"sizeScale":1,"text":{"runs":[{"children":["C"],"styles":["italic","bold"]},{"children":["OUT"],"styles":["subscript","bold"]}]},"textColor":"#000000"},{"alignment":"end","anchor":{"kind":"free","position":{"x":1300,"y":260}},"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"instance-label-M4_13","kind":"instance-label","order":2,"sizeScale":1,"text":{"runs":[{"children":["V"],"styles":["italic","bold"]},{"children":["OUT"],"styles":["subscript","bold"]}]},"textColor":"#000000"},{"alignment":"end","anchor":{"kind":"free","position":{"x":865,"y":205}},"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"instance-label-M1_19","kind":"instance-label","order":13,"text":{"runs":[{"children":["A"],"styles":["italic","bold"]}]},"textColor":"#000000"},{"alignment":"end","anchor":{"kind":"free","position":{"x":1025,"y":205}},"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"instance-label-M1_20","kind":"instance-label","order":14,"sizeScale":1,"text":{"runs":[{"children":["B"],"styles":["italic","bold"]}]},"textColor":"#000000"},{"alignment":"start","anchor":{"kind":"free","position":{"x":1065,"y":145}},"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"q-reference-M1_13","kind":"instance-label","order":15,"sizeScale":1,"text":{"runs":[{"children":["Q"],"styles":["italic","bold"]},{"children":["3a"],"styles":["subscript","bold"]}]},"textColor":"#000000"},{"alignment":"end","anchor":{"kind":"free","position":{"x":865,"y":435}},"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"instance-label-M1_21","kind":"instance-label","order":16,"sizeScale":1,"text":{"runs":[{"children":["A"],"styles":["overbar","italic","bold"]}]},"textColor":"#000000"},{"alignment":"end","anchor":{"kind":"free","position":{"x":1020,"y":435}},"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"instance-label-M1_22","kind":"instance-label","order":17,"sizeScale":1,"text":{"runs":[{"children":["B"],"styles":["overbar","italic","bold"]}]},"textColor":"#000000"},{"alignment":"end","anchor":{"kind":"free","position":{"x":795,"y":185}},"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"instance-label-M1_18","kind":"instance-label","order":21,"sizeScale":1,"text":{"runs":[{"denominator":{"runs":[{"children":["2"],"styles":["italic","bold"]}]},"kind":"fraction","numerator":{"runs":[{"children":["V"],"styles":["italic","bold"]},{"children":["IN"],"styles":["subscript","bold"]}]}}]},"textColor":"#000000"},{"alignment":"end","anchor":{"kind":"free","position":{"x":830,"y":365}},"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"instance-label-M1_23","kind":"instance-label","order":22,"sizeScale":1,"text":{"runs":[{"denominator":{"runs":[{"children":["2"],"styles":["italic","bold"]}]},"kind":"fraction","numerator":{"runs":[{"children":["V"],"styles":["italic","bold"]},{"children":["IN"],"styles":["subscript","bold"]}]}}]},"textColor":"#000000"},{"alignment":"end","anchor":{"kind":"free","position":{"x":965,"y":185}},"documentStyle":{"annotationStrokeScale":0.75,"fontScale":0.9,"junctionRadiusScale":0.75,"symbolStrokeScale":0.75,"wireStrokeScale":0.75},"id":"instance-label-M1_15","kind":"instance-label","order":23,"sizeScale":1,"text":{"runs":[{"denominator":{"runs":[{"children":["2"],"styles":["italic","bold"]}]},"kind":"fraction","numerator":{"runs":[{"children":["V"],"styles":["italic","bold"]},{"children":["IN"],"styles":["subscript","bold"]}]}}]},"textColor":"#000000"}],"drafting":{"objects":[]},"mosBulkDefaults":{"nmosNetId":"net-power-g3_13","pmosNetId":"wire-b78297b4-66e3-4fad-9f1a-3ce7691d081a-net_13"},"connectivityEvidence":[{"id":"connectivity-evidence-80815f31981d834f_13","kind":"name-claim","name":"0","netId":"net-power-g3_13","owner":{"kind":"power-marker","objectId":"g3_13"},"powerDomain":"ground","scope":"global"},{"id":"connectivity-evidence-80815f31981d834f_14","kind":"name-claim","name":"0","netId":"net-power-g3_14","owner":{"kind":"power-marker","objectId":"g3_14"},"powerDomain":"ground","scope":"global"},{"id":"connectivity-evidence-8d5f66ad67857328_13","kind":"name-claim","name":"0","netId":"net-power-g3_14","owner":{"kind":"power-marker","objectId":"g3_14"},"powerDomain":"ground","scope":"global"}],"inductorCouplings":[{"id":"stack-coupling","k":".6","members":[{"dotPin":"1","instanceId":"L1_13"},{"dotPin":"1","instanceId":"L2_13"}],"name":"K34"}],"sourceStatus":"connectivity-modified","revision":266}],"componentDefinitions":[{"electrical":{"capabilities":{"supportsBulkBinding":false,"supportsModel":false,"supportsValueAnnotation":true},"deviceClass":"capacitor","dialects":["spice","spectre"],"id":"capacitor","parameters":[{"defaultValue":"1p","displayRole":"value","editor":"text","help":"Capacitance","label":"Value","name":"value","placeholder":"1p","required":true,"unitHint":"F"}],"pinOrder":["1","2"],"pinSemantics":[{"pinName":"1","role":"capacitor-top-plate"},{"pinName":"2","role":"capacitor-bottom-plate"}],"referencePrefix":"C","symbolId":"capacitor","targetPolicy":"builtin"},"symbol":{"id":"capacitor","name":"Capacitor","pins":[{"at":[0,-20],"direction":"north","name":"1","presentation":{"leadLength":10,"visibility":"visible"},"role":"passive"},{"at":[0,20],"direction":"south","name":"2","presentation":{"leadLength":10,"visibility":"visible"},"role":"passive"}],"primitives":[{"from":[8.05064,-3.233605],"kind":"line","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"emphasis"},"to":[-8.05064,-3.233605]},{"from":[8.05064,3.233605],"kind":"line","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"emphasis"},"to":[-8.05064,3.233605]},{"from":[0,-3.233605],"kind":"line","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"},"to":[0,-20]},{"from":[0,3.233605],"kind":"line","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"},"to":[0,20]}],"schemaVersion":1,"variants":[],"viewBox":{"height":48,"width":24,"x":-12,"y":-24}}},{"electrical":{"capabilities":{"supportsBulkBinding":false,"supportsModel":false,"supportsValueAnnotation":true},"deviceClass":"current-source","dialects":["spice","spectre"],"id":"current-source","parameters":[{"defaultValue":"1m","displayRole":"value","editor":"text","help":"DC value and operating-point bias","label":"DC value","name":"dc","placeholder":"1m","required":true,"unitHint":"A"},{"defaultValue":"dc","displayRole":"none","editor":"select","help":"Transient waveform emitted by this source","label":"Transient","name":"waveform","options":[{"label":"None","value":"dc"},{"label":"PULSE","value":"pulse"},{"label":"SIN","value":"sin"},{"label":"PWL","value":"pwl"}],"placeholder":"dc","required":false},{"displayRole":"none","editor":"text","help":"Comma-separated time/value pairs","label":"PWL points","name":"pwlPoints","placeholder":"0s 0, 1ns 0, 2ns 1m","required":false,"unitHint":"s / A","visibleForSourceWaveforms":["pwl"]},{"displayRole":"none","editor":"text","help":"Small-signal magnitude for AC analysis; leave empty for no AC excitation","label":"AC magnitude","name":"acMagnitude","placeholder":"1m","required":false,"unitHint":"A"},{"displayRole":"none","editor":"text","help":"Small-signal phase in degrees; used only with an AC magnitude","label":"AC phase","name":"acPhase","placeholder":"0","required":false,"unitHint":"deg"},{"defaultValue":"0","displayRole":"none","editor":"text","help":"PULSE value before and between active pulses","label":"Low","name":"low","placeholder":"0","required":false,"unitHint":"A","visibleForSourceWaveforms":["pulse"]},{"defaultValue":"1m","displayRole":"none","editor":"text","help":"PULSE active value","label":"High","name":"high","placeholder":"1m","required":false,"unitHint":"A","visibleForSourceWaveforms":["pulse"]},{"defaultValue":"0","displayRole":"none","editor":"text","help":"Time before the transient waveform begins","label":"Delay","name":"delay","placeholder":"0","required":false,"unitHint":"s","visibleForSourceWaveforms":["pulse","sin"]},{"defaultValue":"1ps","displayRole":"none","editor":"text","help":"PULSE rising-edge duration","label":"Rise time","name":"rise","placeholder":"1ps","required":false,"unitHint":"s","visibleForSourceWaveforms":["pulse"]},{"defaultValue":"1ps","displayRole":"none","editor":"text","help":"PULSE falling-edge duration","label":"Fall time","name":"fall","placeholder":"1ps","required":false,"unitHint":"s","visibleForSourceWaveforms":["pulse"]},{"defaultValue":"5ns","displayRole":"none","editor":"text","help":"Time the PULSE source remains at its high value","label":"Pulse width","name":"width","placeholder":"5ns","required":false,"unitHint":"s","visibleForSourceWaveforms":["pulse"]},{"defaultValue":"10ns","displayRole":"none","editor":"text","help":"Time between PULSE rising edges","label":"Period","name":"period","placeholder":"10ns","required":false,"unitHint":"s","visibleForSourceWaveforms":["pulse"]},{"defaultValue":"0","displayRole":"none","editor":"text","help":"SIN waveform offset","label":"Offset","name":"offset","placeholder":"0","required":false,"unitHint":"A","visibleForSourceWaveforms":["sin"]},{"defaultValue":"1m","displayRole":"none","editor":"text","help":"SIN peak amplitude","label":"Amplitude","name":"amplitude","placeholder":"1m","required":false,"unitHint":"A","visibleForSourceWaveforms":["sin"]},{"defaultValue":"1k","displayRole":"none","editor":"text","help":"SIN frequency","label":"Frequency","name":"frequency","placeholder":"1k","required":false,"unitHint":"Hz","visibleForSourceWaveforms":["sin"]},{"defaultValue":"0","displayRole":"none","editor":"text","help":"SIN exponential damping factor","label":"Damping","name":"damping","placeholder":"0","required":false,"unitHint":"1/s","visibleForSourceWaveforms":["sin"]},{"defaultValue":"0","displayRole":"none","editor":"text","help":"SIN phase in degrees","label":"SIN phase","name":"phase","placeholder":"0","required":false,"unitHint":"deg","visibleForSourceWaveforms":["sin"]}],"pinOrder":["+","-"],"referencePrefix":"I","sourceWaveformDefault":"dc","symbolId":"current-source","targetPolicy":"builtin"},"symbol":{"id":"current-source","name":"Independent Current Source","pins":[{"at":[0,-20],"direction":"north","name":"+","presentation":{"leadLength":10,"visibility":"visible"},"role":"positive"},{"at":[0,20],"direction":"south","name":"-","presentation":{"leadLength":10,"visibility":"visible"},"role":"negative"}],"primitives":[{"center":[0,0],"fillableBody":true,"kind":"circle","part":"body","radius":10.755814,"style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"}},{"from":[0,-6.976744],"kind":"line","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"},"to":[0,-2.325581]},{"fill":"foreground","kind":"polygon","points":[[0,6.976744],[-4.651163,-2.325581],[4.651163,-2.325581]],"stroke":"none"},{"from":[0,-10.755814],"kind":"line","part":"lead-positive","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"},"to":[0,-20]},{"from":[0,10.755814],"kind":"line","part":"lead-negative","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"},"to":[0,20]}],"schemaVersion":1,"variants":[{"additionalPrimitives":[{"fill":"none","fillableBody":true,"kind":"polygon","part":"diamond-body","points":[[0,-12.5],[12.5,0],[0,12.5],[-12.5,0]],"stroke":"foreground","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"}},{"from":[0,-12.5],"kind":"line","part":"diamond-lead-positive","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"},"to":[0,-20]},{"from":[0,12.5],"kind":"line","part":"diamond-lead-negative","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"},"to":[0,20]}],"hiddenPinNames":[],"hiddenPrimitiveParts":["body","lead-positive","lead-negative"],"id":"diamond"}],"viewBox":{"height":48,"width":30,"x":-15,"y":-24}}},{"electrical":{"capabilities":{"supportsBulkBinding":false,"supportsModel":false,"supportsValueAnnotation":false},"deviceClass":"net-marker","dialects":["spice","spectre"],"id":"ground","parameters":[],"pinOrder":["0"],"referencePrefix":null,"symbolId":"ground","targetPolicy":"none"},"symbol":{"id":"ground","labelVisibility":"hidden","name":"Ground","pins":[{"at":[0,-10],"direction":"north","name":"0","presentation":{"leadLength":10,"visibility":"visible"},"role":"ground"}],"primitives":[{"from":[0,-10],"kind":"line","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"},"to":[0,0]},{"from":[-6.395349,0],"kind":"line","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"ground"},"to":[6.395349,0]},{"from":[-4.069767,5.813953],"kind":"line","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"ground"},"to":[4.069767,5.813953]},{"from":[-2.325581,11.046512],"kind":"line","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"ground"},"to":[2.325581,11.046512]}],"schemaVersion":1,"variants":[],"viewBox":{"height":31,"width":24,"x":-12,"y":-14}}},{"electrical":{"capabilities":{"supportsBulkBinding":false,"supportsModel":false,"supportsValueAnnotation":true},"deviceClass":"inductor","dialects":["spice","spectre"],"id":"inductor-compact","parameters":[{"defaultValue":"1n","displayRole":"value","editor":"text","help":"Inductance","label":"Value","name":"value","placeholder":"1n","required":true,"unitHint":"H"}],"pinOrder":["1","2"],"referencePrefix":"L","symbolId":"inductor-compact","targetPolicy":"builtin"},"symbol":{"id":"inductor-compact","name":"Inductor","pins":[{"at":[0,-20],"direction":"north","name":"1","presentation":{"leadLength":10,"visibility":"visible"},"role":"passive"},{"at":[0,20],"direction":"south","name":"2","presentation":{"leadLength":10,"visibility":"visible"},"role":"passive"}],"primitives":[{"data":"M 0 -20 L 0 -19.4953 C 0 -19.4953 0 -19.4953 0 -18.2174 C 0 -16.9409 0 -14.3851 0 -13.1087 C 0 -11.8308 0 -11.8308 0 -11.8308 C 0 -11.8308 0 -11.8308 1.2452 -11.5749 C 2.4889 -11.319 4.9763 -10.8087 6.1873 -9.7867 C 7.3983 -8.7647 7.3313 -7.2323 4.8439 -6.2088 C 2.355 -5.1868 -2.5543 -4.6765 -5.009 -5.4427 C -7.4637 -6.2088 -7.4637 -8.2544 -4.9763 -8.7201 C -2.4874 -9.1872 2.4889 -8.0759 5.0209 -6.3874 C 7.5545 -4.6988 7.6422 -2.4331 5.1548 -0.9439 C 2.6659 0.5437 -2.3996 1.2549 -4.9317 0.5884 C -7.4637 -0.0781 -7.4637 -2.1222 -4.9317 -2.6325 C -2.3996 -3.1442 2.6659 -2.1222 5.1325 -0.456 C 7.5991 1.2102 7.4652 3.5206 4.9317 5.0544 C 2.3996 6.5867 -2.532 7.3425 -4.9986 6.6983 C -7.4637 6.0541 -7.4637 4.01 -4.9986 3.3763 C -2.532 2.744 2.3996 3.5206 4.8885 4.7985 C 7.3759 6.0764 7.4205 7.8542 6.1992 8.9983 C 4.9763 10.1423 2.4889 10.6525 1.2452 10.9084 C 0 11.1643 0 11.1643 0 11.1643 C 0 11.1643 0 11.1643 0 12.5523 C 0 13.9403 0 16.7178 0 18.1073 C 0 19.4953 0 19.4953 0 19.4953 L 0 20","kind":"path","style":{"lineCap":"butt","lineJoin":"round","strokeRole":"normal"}}],"schemaVersion":1,"variants":[],"viewBox":{"height":48,"width":20,"x":-10,"y":-24}}},{"electrical":{"capabilities":{"supportsBulkBinding":true,"supportsModel":true,"supportsValueAnnotation":true},"deviceClass":"mos","dialects":["spice","spectre"],"id":"nmos","mosBulkClass":"nmos","parameters":[{"defaultValue":"1u","displayRole":"width","editor":"text","help":"Total channel width","label":"W","name":"w","placeholder":"1u","required":true,"unitHint":"m"},{"defaultValue":"150n","displayRole":"length","editor":"text","help":"Channel length","label":"L","name":"l","placeholder":"150n","required":true,"unitHint":"m"},{"defaultValue":"1","displayRole":"finger-count","editor":"decimal","help":"Finger count, so finger width is W / NF","label":"NF","name":"nf","placeholder":"1","required":false},{"defaultValue":"1","displayRole":"multiplier","editor":"decimal","help":"Parallel multiplier","label":"M","name":"m","placeholder":"1","required":false}],"pinOrder":["D","G","S","B"],"referencePrefix":"M","seriesInsertionPinPair":["D","S"],"symbolId":"nmos","targetPolicy":"required-model"},"symbol":{"defaultVariantId":"textbook-3terminal","id":"nmos","name":"NMOS","pins":[{"at":[10,-20],"direction":"north","name":"D","presentation":{"leadLength":10,"visibility":"visible"},"role":"drain"},{"at":[-20,0],"direction":"west","name":"G","presentation":{"leadLength":10,"visibility":"visible"},"role":"gate"},{"at":[10,20],"direction":"south","name":"S","presentation":{"leadLength":10,"visibility":"visible"},"role":"source"},{"at":[20,0],"direction":"east","name":"B","presentation":{"leadLength":10,"visibility":"visible"},"role":"bulk"}],"primitives":[{"kind":"polyline","points":[[-4.244186,-6.976744],[10,-6.976744],[10,-20]],"style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"}},{"kind":"polyline","part":"source-arrow-host","points":[[-4.244186,6.976744],[10,6.976744],[10,20]],"style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"}},{"fill":"foreground","kind":"polygon","part":"gate-bar","points":[[-11.802326,-9.593023],[-11.802326,9.593023],[-8.895349,9.593023],[-8.895349,-9.593023]],"stroke":"none"},{"fill":"foreground","kind":"polygon","part":"gate-bar","points":[[-6.569767,-12.5],[-6.569767,12.5],[-3.662791,12.5],[-3.662791,-12.5]],"stroke":"none"},{"from":[-8.895349,0],"kind":"line","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"},"to":[-20,0]},{"from":[-3.662791,0],"kind":"line","part":"bulk-lead","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"},"to":[10,0]},{"from":[16.395349,0],"kind":"line","part":"bulk-lead","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"},"to":[20,0]},{"fill":"foreground","kind":"polygon","part":"bulk-lead","points":[[10,0],[16.395349,-3.488372],[16.395349,3.488372]],"stroke":"none"}],"schemaVersion":1,"variants":[{"additionalPrimitives":[{"kind":"polyline","part":"source-arrow","points":[[-3.662791,6.976744],[10,6.976744],[10,20]],"style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"}},{"fill":"foreground","kind":"polygon","part":"source-arrow","points":[[10.581395,6.976744],[1.27907,2.906977],[1.27907,11.046512]],"stroke":"none"}],"auxiliaryPins":[{"at":[-4,0],"direction":"east","name":"B","routing":{"escape":"outward","preferredLanding":[0,0]}}],"hiddenPinNames":["B"],"hiddenPrimitiveParts":["bulk-lead","source-arrow-host"],"id":"textbook-3terminal"}],"viewBox":{"height":48,"width":48,"x":-24,"y":-24}}},{"symbol":{"id":"port","name":"Port","pins":[{"at":[0,0],"direction":"east","name":"P","presentation":{"leadLength":10,"visibility":"visible"},"role":"port"}],"primitives":[{"center":[-7.086614,0],"fill":"none","kind":"circle","radius":2.47907,"stroke":"foreground","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"}},{"from":[0,0],"kind":"line","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"},"to":[-4.607544,0]}],"schemaVersion":1,"variants":[],"viewBox":{"height":14,"width":18,"x":-14,"y":-7}}},{"electrical":{"capabilities":{"supportsBulkBinding":false,"supportsModel":false,"supportsValueAnnotation":true},"deviceClass":"resistor","dialects":["spice","spectre"],"id":"resistor","parameters":[{"defaultValue":"1k","displayRole":"value","editor":"text","help":"Resistance","label":"Value","name":"value","placeholder":"1k","required":true,"unitHint":"Ohm"}],"pinOrder":["1","2"],"referencePrefix":"R","symbolId":"resistor","targetPolicy":"builtin"},"symbol":{"id":"resistor","name":"Resistor","pins":[{"at":[0,-20],"direction":"north","name":"1","presentation":{"leadLength":10,"visibility":"visible"},"role":"passive"},{"at":[0,20],"direction":"south","name":"2","presentation":{"leadLength":10,"visibility":"visible"},"role":"passive"}],"primitives":[{"bounds":{"height":40,"width":10.360465,"x":-4.988372,"y":-20},"data":"M 0 -20 L 0 -8.72093 L 5.372093 -6.395349 L -4.604651 -4.069767 L 5.372093 -1.162791 L -4.988372 1.744186 L 5.372093 4.651163 L -4.604651 7.55814 L 0 8.72093 L 0 20","kind":"path","style":{"lineCap":"butt","lineJoin":"miter","miterLimit":12,"strokeRole":"normal"}}],"schemaVersion":1,"variants":[],"viewBox":{"height":48,"width":20,"x":-10,"y":-24}}},{"electrical":{"capabilities":{"supportsBulkBinding":false,"supportsModel":false,"supportsValueAnnotation":false},"deviceClass":"net-marker","dialects":["spice","spectre"],"id":"vdd-port","parameters":[],"pinOrder":["P"],"referencePrefix":null,"symbolId":"vdd-port","targetPolicy":"none"},"symbol":{"id":"vdd-port","labelVisibility":"hidden","name":"VDD Power Port","pins":[{"at":[0,20],"direction":"south","name":"P","presentation":{"leadLength":10,"visibility":"visible"},"role":"power"}],"primitives":[{"from":[0,20],"kind":"line","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"},"to":[0,1.5]},{"fill":"foreground","kind":"polygon","points":[[-10,-0.88],[10,-0.88],[10,2.36],[-10,2.36]],"stroke":"none"}],"schemaVersion":1,"variants":[],"viewBox":{"height":26,"width":24,"x":-12,"y":-2}}},{"electrical":{"capabilities":{"supportsBulkBinding":false,"supportsModel":false,"supportsValueAnnotation":true},"deviceClass":"voltage-source","dialects":["spice","spectre"],"id":"voltage-source","parameters":[{"defaultValue":"1","displayRole":"value","editor":"text","help":"DC value and operating-point bias","label":"DC value","name":"dc","placeholder":"1.8","required":true,"unitHint":"V"},{"defaultValue":"dc","displayRole":"none","editor":"select","help":"Transient waveform emitted by this source","label":"Transient","name":"waveform","options":[{"label":"None","value":"dc"},{"label":"PULSE","value":"pulse"},{"label":"SIN","value":"sin"},{"label":"PWL","value":"pwl"}],"placeholder":"dc","required":false},{"displayRole":"none","editor":"text","help":"Comma-separated time/value pairs","label":"PWL points","name":"pwlPoints","placeholder":"0s 0, 1ns 0, 2ns 1","required":false,"unitHint":"s / V","visibleForSourceWaveforms":["pwl"]},{"displayRole":"none","editor":"text","help":"Small-signal magnitude for AC analysis; leave empty for no AC excitation","label":"AC magnitude","name":"acMagnitude","placeholder":"1","required":false,"unitHint":"V"},{"displayRole":"none","editor":"text","help":"Small-signal phase in degrees; used only with an AC magnitude","label":"AC phase","name":"acPhase","placeholder":"0","required":false,"unitHint":"deg"},{"defaultValue":"0","displayRole":"none","editor":"text","help":"PULSE value before and between active pulses","label":"Low","name":"low","placeholder":"0","required":false,"unitHint":"V","visibleForSourceWaveforms":["pulse"]},{"defaultValue":"1","displayRole":"none","editor":"text","help":"PULSE active value","label":"High","name":"high","placeholder":"1","required":false,"unitHint":"V","visibleForSourceWaveforms":["pulse"]},{"defaultValue":"0","displayRole":"none","editor":"text","help":"Time before the transient waveform begins","label":"Delay","name":"delay","placeholder":"0","required":false,"unitHint":"s","visibleForSourceWaveforms":["pulse","sin"]},{"defaultValue":"1ps","displayRole":"none","editor":"text","help":"PULSE rising-edge duration","label":"Rise time","name":"rise","placeholder":"1ps","required":false,"unitHint":"s","visibleForSourceWaveforms":["pulse"]},{"defaultValue":"1ps","displayRole":"none","editor":"text","help":"PULSE falling-edge duration","label":"Fall time","name":"fall","placeholder":"1ps","required":false,"unitHint":"s","visibleForSourceWaveforms":["pulse"]},{"defaultValue":"5ns","displayRole":"none","editor":"text","help":"Time the PULSE source remains at its high value","label":"Pulse width","name":"width","placeholder":"5ns","required":false,"unitHint":"s","visibleForSourceWaveforms":["pulse"]},{"defaultValue":"10ns","displayRole":"none","editor":"text","help":"Time between PULSE rising edges","label":"Period","name":"period","placeholder":"10ns","required":false,"unitHint":"s","visibleForSourceWaveforms":["pulse"]},{"defaultValue":"0","displayRole":"none","editor":"text","help":"SIN waveform offset","label":"Offset","name":"offset","placeholder":"0","required":false,"unitHint":"V","visibleForSourceWaveforms":["sin"]},{"defaultValue":"1","displayRole":"none","editor":"text","help":"SIN peak amplitude","label":"Amplitude","name":"amplitude","placeholder":"1","required":false,"unitHint":"V","visibleForSourceWaveforms":["sin"]},{"defaultValue":"1k","displayRole":"none","editor":"text","help":"SIN frequency","label":"Frequency","name":"frequency","placeholder":"1k","required":false,"unitHint":"Hz","visibleForSourceWaveforms":["sin"]},{"defaultValue":"0","displayRole":"none","editor":"text","help":"SIN exponential damping factor","label":"Damping","name":"damping","placeholder":"0","required":false,"unitHint":"1/s","visibleForSourceWaveforms":["sin"]},{"defaultValue":"0","displayRole":"none","editor":"text","help":"SIN phase in degrees","label":"SIN phase","name":"phase","placeholder":"0","required":false,"unitHint":"deg","visibleForSourceWaveforms":["sin"]}],"pinOrder":["+","-"],"referencePrefix":"V","sourceWaveformDefault":"dc","symbolId":"voltage-source","targetPolicy":"builtin"},"symbol":{"id":"voltage-source","name":"Independent Voltage Source","pins":[{"at":[0,-20],"direction":"north","name":"+","presentation":{"leadLength":10,"visibility":"visible"},"role":"positive"},{"at":[0,20],"direction":"south","name":"-","presentation":{"leadLength":10,"visibility":"visible"},"role":"negative"}],"primitives":[{"center":[0,0],"fillableBody":true,"kind":"circle","radius":10.755814,"style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"}},{"from":[-20.058139,-14.534884],"kind":"line","part":"upright-polarity-positive-horizontal","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"},"to":[-11.918605,-14.534884]},{"from":[-15.988372,-18.604651],"kind":"line","part":"upright-polarity-positive-vertical","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"},"to":[-15.988372,-10.465117]},{"from":[-20.058139,13.372093],"kind":"line","part":"upright-polarity-negative","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"},"to":[-11.918605,13.372093]},{"from":[0,-10.755814],"kind":"line","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"},"to":[0,-20]},{"from":[0,10.755814],"kind":"line","style":{"lineCap":"butt","lineJoin":"miter","strokeRole":"normal"},"to":[0,20]}],"schemaVersion":1,"variants":[],"viewBox":{"height":48,"width":39,"x":-24,"y":-24}}}],"externalSubcircuitDefinitions":[{"formalParameters":[{"defaultValue":"5","name":"w"},{"defaultValue":"0.7","name":"l"},{"defaultValue":"1","name":"nf"},{"defaultValue":"1","name":"m"}],"id":"copy-dependency-53122fc9fd8c6659","interfaceStatus":"declared","name":"sky130_fd_pr__nfet_g5v0d16v0","terminals":[{"direction":"passive","id":"copy-terminal-25a1f0e6875345e9","name":"D"},{"direction":"passive","id":"copy-terminal-0988937fdcf2ff78","name":"G"},{"direction":"passive","id":"copy-terminal-a8fb3c2f94ebebf6","name":"S"},{"direction":"passive","id":"copy-terminal-9ad6f5427a6c4399","name":"B"}]},{"formalParameters":[{"defaultValue":"1","name":"w"},{"defaultValue":"0.15","name":"l"},{"defaultValue":"1","name":"nf"},{"defaultValue":"1","name":"m"}],"id":"external-subcircuit-27f716b14d59fc10","interfaceStatus":"declared","name":"sky130_fd_pr__pfet_01v8","terminals":[{"direction":"passive","id":"external-subcircuit-terminal-7921a0096089118d","name":"D"},{"direction":"passive","id":"external-subcircuit-terminal-79219f0960890fda","name":"G"},{"direction":"passive","id":"external-subcircuit-terminal-79219e0960890e27","name":"S"},{"direction":"passive","id":"external-subcircuit-terminal-79219d0960890c74","name":"B"}]}],"simulationFolders":[],"source":{"dialect":"none","entry":null,"files":[],"sourcePolicy":"copy"},"symbolLibrary":{"hash":"razavi-reference-v1","id":"razavi-symbols","version":"1"},"structureRevision":59} diff --git a/static/starters/buck_stacked.sp b/static/starters/buck_stacked.sp new file mode 100644 index 0000000000000000000000000000000000000000..d2007faa2070167dd7070296d782300ec3d36257 --- /dev/null +++ b/static/starters/buck_stacked.sp @@ -0,0 +1,20 @@ + +.subckt dut VIN VSS VBIAS A B ABAR BBAR VOUT +C1 VOUT VSS 47u +ILOAD VOUT VSS DC 1 +L3 net1 net0 1u +L4 net8 net3 1u +XM10 net5 BBAR VSS VSS sky130_fd_pr__nfet_g5v0d16v0 l=700n m=1 nf=1 w=5u +XM11 net1 VBIAS net2 VSS sky130_fd_pr__nfet_g5v0d16v0 l=700n m=1 nf=1 w=5u +XM12 net3 VBIAS net5 VSS sky130_fd_pr__nfet_g5v0d16v0 l=700n m=1 nf=1 w=5u +XM13 VIN net6 net9 VSS sky130_fd_pr__nfet_g5v0d16v0 l=700n m=1 nf=1 w=5u +XM14 VIN net7 net4 VSS sky130_fd_pr__nfet_g5v0d16v0 l=700n m=1 nf=1 w=5u +XM15 net9 A net1 VSS sky130_fd_pr__nfet_g5v0d16v0 l=700n m=1 nf=1 w=5u +XM16 net4 B net3 VSS sky130_fd_pr__nfet_g5v0d16v0 l=700n m=1 nf=1 w=5u +XM9 net2 ABAR VSS VSS sky130_fd_pr__nfet_g5v0d16v0 l=700n m=1 nf=1 w=5u +R1 net0 VOUT 4m +R2 net8 VOUT 4m +V1 net6 net1 DC 1.5 +V2 net7 net3 DC 1.5 +K34 L3 L4 .6 +.ends dut diff --git a/static/starters/index.json b/static/starters/index.json index 885b20eaddacab03fad0f462b86b74774b1d996e..0aff992392513d2bc07fb61ee95878872d9271ec 100644 --- a/static/starters/index.json +++ b/static/starters/index.json @@ -81,5 +81,19 @@ "B" ], "description": "Two inverse-coupled buck phases with 180° interleaving and eight switching-state drawings." + }, + { + "id": "buck_stacked", + "name": "2:1 Buck_Stacked", + "ratio": 2, + "model": "buck_stacked", + "switches": 8, + "magneticsLabel": "2 inverse-coupled windings", + "project": "starters/buck_stacked.icproj.json", + "phases": [ + "A", + "B" + ], + "description": "Eight-device right-hand stacked buck from Analog Canvas dut r266, with editable gate ports and inverse-coupled windings." } ] diff --git a/static/testbenches/buck_stacked-preset.json b/static/testbenches/buck_stacked-preset.json new file mode 100644 index 0000000000000000000000000000000000000000..0728eb594ac0146c4859234445b25d8e84f1ca59 --- /dev/null +++ b/static/testbenches/buck_stacked-preset.json @@ -0,0 +1,163 @@ +{ + "id": "buck_stacked", + "ratio": 2, + "status": "local-generic-model", + "run_kind": "run", + "parameters": { + "vin": { + "field": "input_voltage_v", + "label": "Input voltage", + "unit": "V", + "minimum": 2.5, + "maximum": 3.8, + "default": 3, + "optional": false + }, + "load": { + "field": "output_current_a", + "label": "Output current", + "unit": "A", + "minimum": 0.6, + "maximum": 2, + "default": 1, + "optional": false + }, + "fs": { + "field": "switching_frequency_mhz", + "label": "Switching frequency", + "unit": "MHz", + "minimum": 1, + "maximum": 4, + "default": 2, + "optional": false + }, + "duty": { + "field": "duty", + "label": "High-side duty", + "unit": "fraction", + "minimum": 0.25, + "maximum": 0.75, + "default": 0.5, + "optional": false + }, + "target": { + "field": "target_output_v", + "label": "Target output voltage", + "unit": "V", + "minimum": 0.1, + "maximum": 3, + "default": 1.5, + "optional": false + }, + "lt": { + "field": "inductance_nh", + "label": "Self-inductance per winding", + "unit": "nH", + "minimum": 750, + "maximum": 2000, + "default": 1000, + "optional": false + }, + "coupling": { + "field": "coupling", + "label": "Inverse coupling magnitude", + "unit": "", + "minimum": 0, + "maximum": 0.75, + "default": 0.6, + "optional": false + }, + "dcr": { + "field": "dcr_mohm", + "label": "DCR per winding", + "unit": "m\u03a9", + "minimum": 2, + "maximum": 25, + "default": 4, + "optional": false + }, + "rs": { + "field": "switch_ron_mohm", + "label": "High-stack Ron per MOSFET", + "unit": "m\u03a9", + "minimum": 5, + "maximum": 25, + "default": 12, + "optional": false + }, + "rslow": { + "field": "low_ron_mohm", + "label": "Low-stack Ron per MOSFET (blank uses high)", + "unit": "m\u03a9", + "minimum": 5, + "maximum": 25, + "default": null, + "optional": true + }, + "gatecap": { + "field": "gate_cap_pf", + "label": "Effective gate capacitance per MOSFET", + "unit": "pF", + "minimum": 0, + "maximum": 100, + "default": 25, + "optional": false + }, + "coss": { + "field": "switch_coff_pf", + "label": "Effective linear Coss per MOSFET", + "unit": "pF", + "minimum": 0, + "maximum": 30, + "default": 10, + "optional": true, + "placeholder": "Unknown" + }, + "cout": { + "field": "output_cap_uf", + "label": "Output capacitance", + "unit": "\u00b5F", + "minimum": 20, + "maximum": 60, + "default": 47, + "optional": false + }, + "esr": { + "field": "output_esr_mohm", + "label": "Output capacitor ESR", + "unit": "m\u03a9", + "minimum": 1, + "maximum": 12, + "default": 5, + "optional": false + }, + "stop": { + "field": "stop_us", + "label": "Simulation duration", + "unit": "\u00b5s", + "minimum": 20, + "maximum": 1000, + "default": null, + "optional": true + }, + "step": { + "field": "max_step_ps", + "label": "Refined maximum step ceiling", + "unit": "ps", + "minimum": 100, + "maximum": 3000, + "default": null, + "optional": true + } + }, + "sweep_points": { + "minimum": 2, + "maximum": 15, + "default": 5 + }, + "name": "2:1 Buck_Stacked", + "short": "STACK", + "model_note": "Eight ideal channels in two inverse-coupled phases. Each blocked pair shares voltage equally. Positive-current CCM, zero dead time.", + "gate_note": "Effective gate swing is always half the input voltage. One equivalent gate cycle per device per period.", + "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." +}