Add qualified 2:1 SI2, SP2, RSC2, and Buck_Stacked workflows

#1
by Elvis0001 - opened
This view is limited to 50 files because it contains too many changes. See the raw diff here.
Files changed (50) hide show
  1. .agents/skills/openpels-topology-development/SKILL.md +26 -0
  2. .gitattributes +2 -0
  3. .gitignore +5 -0
  4. AGENTS.md +47 -0
  5. Dockerfile +5 -1
  6. README.md +93 -5
  7. buck_stacked/NOTICE.md +5 -0
  8. buck_stacked/__init__.py +0 -0
  9. buck_stacked/preset.py +278 -0
  10. buck_stacked/preset_contract.json +163 -0
  11. buck_stacked/stacked-buck.cir +78 -0
  12. docs/architecture/ai_integration.md +57 -0
  13. docs/architecture/architecture_assessment.md +53 -0
  14. docs/architecture/circuit_data_model.md +66 -0
  15. docs/architecture/repository_map.md +39 -0
  16. docs/architecture/simulation_workflow.md +50 -0
  17. docs/architecture/system_architecture.md +61 -0
  18. docs/topology/2to1_buck_stacked/README.md +63 -0
  19. docs/topology/2to1_buck_stacked/analytical_model.md +34 -0
  20. docs/topology/2to1_buck_stacked/approval.md +9 -0
  21. docs/topology/2to1_buck_stacked/build_starter.mjs +78 -0
  22. docs/topology/2to1_buck_stacked/circuit_definition.md +83 -0
  23. docs/topology/2to1_buck_stacked/evidence/SHA256SUMS +19 -0
  24. docs/topology/2to1_buck_stacked/evidence/baseline-2to1-quality.json +111 -0
  25. docs/topology/2to1_buck_stacked/evidence/browser.json +242 -0
  26. docs/topology/2to1_buck_stacked/evidence/cache.json +61 -0
  27. docs/topology/2to1_buck_stacked/evidence/coss-browser.json +979 -0
  28. docs/topology/2to1_buck_stacked/evidence/coss-cache.json +62 -0
  29. docs/topology/2to1_buck_stacked/evidence/coss-regressions.json +290 -0
  30. docs/topology/2to1_buck_stacked/evidence/coss-sweeps.json +274 -0
  31. docs/topology/2to1_buck_stacked/evidence/coss-workflow.json +243 -0
  32. docs/topology/2to1_buck_stacked/evidence/coss-workspace.json +22 -0
  33. docs/topology/2to1_buck_stacked/evidence/duty-comparison.svg +2392 -0
  34. docs/topology/2to1_buck_stacked/evidence/event-comparison.svg +1997 -0
  35. docs/topology/2to1_buck_stacked/evidence/executed-decks.zip +3 -0
  36. docs/topology/2to1_buck_stacked/evidence/matched-results.json +1019 -0
  37. docs/topology/2to1_buck_stacked/evidence/sweeps.json +274 -0
  38. docs/topology/2to1_buck_stacked/evidence/workspace.json +22 -0
  39. docs/topology/2to1_buck_stacked/numerical.py +65 -0
  40. docs/topology/2to1_buck_stacked/package_source.py +83 -0
  41. docs/topology/2to1_buck_stacked/parity.md +114 -0
  42. docs/topology/2to1_buck_stacked/qualification.md +47 -0
  43. docs/topology/2to1_buck_stacked/review/README.md +94 -0
  44. docs/topology/2to1_buck_stacked/review/SHA256SUMS +3 -0
  45. docs/topology/2to1_buck_stacked/review/build_review_figures.py +204 -0
  46. docs/topology/2to1_buck_stacked/review/original-right.svg +2 -0
  47. docs/topology/2to1_buck_stacked/review/switching-states.svg +0 -0
  48. docs/topology/2to1_buck_stacked/review/timing.svg +2 -0
  49. docs/topology/2to1_buck_stacked/source/README.md +14 -0
  50. docs/topology/2to1_buck_stacked/source/SHA256SUMS +4 -0
.agents/skills/openpels-topology-development/SKILL.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: openpels-topology-development
3
+ description: Add, integrate, or qualify DC-DC converter topologies in OpenPELS, including feature-parity reviews against the original 4:1 XFLY6S workflow.
4
+ ---
5
+
6
+ # OpenPELS topology development
7
+
8
+ Read the repository [AGENTS.md](../../../AGENTS.md) and follow the [topology addition workflow](../../../docs/topology/topology_addition_workflow.md) and [model validation checklist](../../../docs/topology/topology_validation_checklist.md). Preserve Minjie Chen’s functional definition, software architecture, UI design philosophy, and engineering methods.
9
+
10
+ Use the 2:1 sp2 implementation at `sp2-integrated-v1.0` as a worked example for integration, packaging, and regression evidence. Review its [local integration record](../../../docs/topology/2to1_switching_capacitors/local_integration.md) and [Analysis parity audit](../../../docs/topology/analysis_feature_parity_matrix.md). The original 4:1 XFLY6S at `local-baseline-v1.0` remains the functional design reference.
11
+
12
+ ## Mandatory Feature Parity Validation
13
+
14
+ Complete the [Analysis feature parity matrix](../../../docs/topology/analysis_feature_parity_matrix.md) against XFLY6S at `local-baseline-v1.0`. Test every applicable row, including the full candidate workflow, The Loss Lineup, circuit and plot interactions, advanced controls and exports. Change inputs and verify dependent results against the validated analytical model. Attach feature-level browser and numerical or export evidence. Record the physical basis for every N/A. An applicable failure, blocker or unverified row prevents full integration and Batch 3 acceptance.
15
+
16
+ Complete the [Simulator feature parity matrix](../../../docs/topology/simulator_feature_parity_matrix.md) for every integration alongside the Analysis matrix. Verify the default and edited inputs, executed decks, measurements, sweeps, downloads, operating-point handoff, error recovery, and normal Chrome reload. Use real NGSpice jobs and compare with the tagged XFLY6S, XFLY8S, and C3L Simulator. Document the physical basis for each N/A and the limits of every qualified parameter range. An unresolved applicable row blocks full integration.
17
+
18
+ Previously validated Simulator parameter sets are regression benchmarks. Provide continuous numerical inputs and allow simultaneous changes wherever physically applicable. Apply physical, model, and resource bounds before running. Evaluate convergence, steady state, energy balance and reliability from the new result. Keep fixture restrictions out of the user input path.
19
+
20
+ Use the original 4:1 XFLY6S implementation as the functional reference. Start a separate [feature parity checklist](../../../docs/topology/feature_parity_checklist.md) for each topology. Compare individual features and controls, including alternate budget modes, collapsed settings, and controls suppressed by topology-specific rendering. Trace each applicable control to the calculation, job, waveform, or export that uses it. Exercise it with the default and at least one meaningful change.
21
+
22
+ Document the units, qualified range and physical basis of topology-specific defaults. Keep applicable controls accessible. Mark a control inapplicable only with a circuit- or model-specific explanation and supporting evidence. Treat missing, inaccessible, or unverified applicable controls as open qualification items.
23
+
24
+ Verify the final served build in Chrome at `http://127.0.0.1:8765`. Prove that normal navigation or reload uses the updated frontend in an existing browser session, and use a fresh or cache-disabled context to cross-check the result. Verify rendered behavior and downloaded artifacts against the qualified models.
25
+
26
+ Batch 3 requires a passing checklist for each topology before acceptance. The Gallery, Analysis, Simulator, and Schematic entry points are smoke checks. Full integration requires the individual applicable rows to pass. Link the evidence and record significant decisions in the [Minjie review log](../../../docs/topology/minjie_confirmation_list.md).
.gitattributes CHANGED
@@ -81,3 +81,5 @@ static/assets/LiberationSerif-Regular-DREh6cMU.ttf filter=lfs diff=lfs merge=lfs
81
  static/testbenches/images/c3l.png filter=lfs diff=lfs merge=lfs -text
82
  static/testbenches/images/xfly6s.png filter=lfs diff=lfs merge=lfs -text
83
  static/testbenches/images/xfly8s.png filter=lfs diff=lfs merge=lfs -text
 
 
 
81
  static/testbenches/images/c3l.png filter=lfs diff=lfs merge=lfs -text
82
  static/testbenches/images/xfly6s.png filter=lfs diff=lfs merge=lfs -text
83
  static/testbenches/images/xfly8s.png filter=lfs diff=lfs merge=lfs -text
84
+ docs/topology/2to1_switching_capacitors/figures/nominal_waveforms.png filter=lfs diff=lfs merge=lfs -text
85
+ docs/topology/2to1_switching_capacitors/figures/output_resistance.png filter=lfs diff=lfs merge=lfs -text
.gitignore ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ /.venv/
2
+ /.openpels-runtime/
3
+ /local-source/
4
+ __pycache__/
5
+ .DS_Store
AGENTS.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # OpenPELS development rules
2
+
3
+ These rules apply to the entire repository.
4
+
5
+ ## Topology library scope
6
+
7
+ - Expand the DC-DC topology library across conversion ratios. Use the original 4:1 XFLY6S implementation as the functional reference and preserve Minjie Chen’s architecture, UI design philosophy, and engineering methods.
8
+ - Each qualified topology must offer Gallery and ratio registration, an editable Analog Canvas schematic, validated analytical losses and efficiency, applicable sizing optimization, and integrated NGSpice with waveforms, applicable parameter sweeps, and downloadable results. Publish assumptions, validation evidence, and limits.
9
+ - Necessary local topology expansion is authorized, including ratio and family eligibility, topology-specific gain, duty, device and measurement definitions, and backward-compatible shared frontend, backend, packaging, and test changes. Routine local integration needs no separate Minjie approval. The circuit approval gate below still applies. Record significant changes, findings, and architectural implications in the [Minjie review log](docs/topology/minjie_confirmation_list.md).
10
+ - Major redesign, changes to fundamental methodology, upstream deployment, and external analysis agents or MCP interfaces are outside scope.
11
+
12
+ ## Workflow for topology tasks
13
+
14
+ - For every task that develops, extends, integrates, or qualifies a converter topology, use the [topology development skill](.agents/skills/openpels-topology-development/SKILL.md) and follow the [11-stage workflow](docs/topology/topology_addition_workflow.md#standard-qualification-sequence) in order. Begin with the [next-topology guide](docs/topology/next_topology.md), and use the existing [validation checklist](docs/topology/topology_validation_checklist.md), [report template](docs/topology/technical_validation_report_template.md), and [regression registry](docs/topology/regression_test_registry.md) to record and verify the work.
15
+ - **Circuit approval gate.** Obtain and record human approval of the circuit definition, switching states, and timing before deriving or implementing the analytical model. Reuse recorded approval for the same unchanged definition and scope. Link the approval and identify the reviewed revision or equivalent artifact. If the applicable approval is missing or a change affects the approved circuit, states, or timing, seek approval for that scope before proceeding with dependent work.
16
+ - Analytical derivation, physical and mathematical checks, independent numerical validation, executed NGSpice validation, three-way comparison, regression testing, and version-controlled evidence archival are mandatory for qualification. The independent solver must derive its model from the approved circuit and primitive component laws, without reusing the analytical formulas being tested. Link existing evidence where it still applies to the reviewed configuration and assumptions.
17
+ - Record every stage and applicable check in the qualification record. Link evidence for each pass, explain and record each inapplicable item, and name every failed, blocked, pending, or unverified item and its blocker. Until all applicable checks pass and the evidence is archived, report the topology as incomplete. A scoped task may end at an intermediate stage with its completed and outstanding work recorded.
18
+
19
+ ## Git and repository boundaries
20
+
21
+ - Preserve the original OpenPELS history, the original 4:1 models at `local-baseline-v1.0`, and the [validated 2:1 baseline](docs/topology/baselines/validated-2to1-v1.0/README.md) at `validated-2to1-v1.0`. Do not rewrite the original commits or move or delete either tag.
22
+ - Do normal development on `openpels-dev` or a dedicated feature branch.
23
+ - Never modify or push to the original developer’s Hugging Face repository.
24
+ - Review the staged diff before committing. Never commit credentials, API tokens, virtual environments, or temporary simulation results. Keep generated runtime files in ignored locations.
25
+ - Create a local Git commit with a descriptive message for each completed and validated development milestone. Keep unrelated changes out of the commit.
26
+
27
+ ## Before and during implementation
28
+
29
+ - Before implementing a feature, inspect the existing architecture and trace the affected workflows. Identify the components, interfaces, and data the change will touch.
30
+ - Preserve existing functionality unless the user explicitly requests a behavior change.
31
+ - Use the [README](README.md) for local launch and frontend build instructions. The workbench and reference analysis are served from `static/`. `server.py` serves the UI and job API, `simulator_service.py` runs NGSpice jobs, and `simulator_frame.py` and `simulator_bridge.js` connect the simulator to the workbench. The corresponding frontend source is available in `static/openpels-source.zip`.
32
+
33
+ ## Mandatory Feature Parity Validation
34
+
35
+ - For every newly integrated topology, complete the [Feature Parity Validation checklist](docs/topology/feature_parity_checklist.md) using the original 4:1 XFLY6S implementation. Compare each feature and UI control, including alternate modes and advanced settings. Accessibility of Gallery, Analysis, Simulator, and Schematic is an entry-point smoke check.
36
+ - Complete the [Analysis feature parity matrix](docs/topology/analysis_feature_parity_matrix.md) row by row, with browser and numerical or export evidence for every applicable feature. Compare against XFLY6S at `local-baseline-v1.0`, including the candidate workflow, The Loss Lineup, and the advanced workbench. Record a technical reason for every exclusion and keep applicable blocked or unverified items open.
37
+ - Complete the [Simulator feature parity matrix](docs/topology/simulator_feature_parity_matrix.md) for each integration alongside the Analysis matrix. Compare with the tagged 4:1 Simulator and verify each applicable control, real NGSpice run and sweep, outputs, downloads, handoff, and error recovery in Chrome. Record qualified bounds and justify exclusions. A pending applicable row blocks full integration.
38
+ - Previously validated Simulator parameter sets are regression benchmarks. Provide continuous numerical inputs and simultaneous edits wherever physically applicable. Validate model and numerical bounds before execution, then assess convergence, steady state and result reliability from the run.
39
+ - Verify applicable design constraints, technology settings, analytical calculations and losses, efficiency, sizing, optimization objectives, simulation controls, sweeps, waveforms, and exports. Preserve applicable functionality and give a technical justification for each inapplicable control. Document and verify physically meaningful topology-specific defaults.
40
+ - Test the actual user workflow in Chrome at `http://127.0.0.1:8765`, including frontend cache invalidation in an existing browser session.
41
+ - [Batch 3 acceptance](docs/topology/feature_parity_checklist.md#batch-3-acceptance) requires a passing checklist for every newly integrated Batch 3 topology. An open applicable item blocks full-integration status.
42
+
43
+ ## Verification and reporting
44
+
45
+ - After implementation, run regression checks appropriate to the affected components. For GUI changes, exercise the relevant workflow in Chrome. For simulation changes, run the affected NGSpice workflows and verify the resulting measurements, waveforms, or downloads as applicable.
46
+ - Verify behavior through the application’s normal entry points. A successful build or syntax check alone does not establish that the application works.
47
+ - Report all modifications, tests and their results, assumptions, limitations, and unresolved issues. State which relevant checks could not be run and why.
Dockerfile CHANGED
@@ -11,7 +11,11 @@ RUN pip install --no-cache-dir -r requirements-simulator.txt
11
  RUN useradd -m -u 1000 appuser
12
  COPY --chown=appuser static ./static
13
  COPY --chown=appuser simulator ./simulator
14
- COPY --chown=appuser server.py simulator_service.py simulator_frame.py simulator_bridge.js simulator-source.json ./
 
 
 
 
15
  USER appuser
16
  EXPOSE 7860
17
  CMD ["python3", "server.py", "--host", "0.0.0.0"]
 
11
  RUN useradd -m -u 1000 appuser
12
  COPY --chown=appuser static ./static
13
  COPY --chown=appuser simulator ./simulator
14
+ COPY --chown=appuser sp2 ./sp2
15
+ COPY --chown=appuser rsc2 ./rsc2
16
+ COPY --chown=appuser si2 ./si2
17
+ COPY --chown=appuser buck_stacked ./buck_stacked
18
+ COPY --chown=appuser operating_conditions.py server.py simulator_service.py simulator_frame.py simulator_bridge.js simulator-source.json ./
19
  USER appuser
20
  EXPOSE 7860
21
  CMD ["python3", "server.py", "--host", "0.0.0.0"]
README.md CHANGED
@@ -15,11 +15,12 @@ Browse supported power-electronics topologies as a gallery, filter by conversion
15
  ratio, then select a circuit for detailed analysis and single-topology simulation.
16
  Selection and output voltage/current carry through the workflow.
17
 
18
- The library contains qualified coupled-magnetic references in the 2:1 and 4:1
19
- families. 6:1, 8:1 and 16:1 remain explicitly unvalidated. Cards identify
20
- analysis-only topologies and available simulation presets. NGSpice currently
21
- supports XFLY6S, XFLY8S and C3L in the 4:1 family, with waveforms, measurements
22
- and executed-file downloads.
 
23
 
24
  The native schematic editor retains portable project import/export, undo,
25
  SVG and SPICE design-netlist exports for its supplied starters. Selecting a
@@ -34,3 +35,90 @@ upstream commit df9afb17d88a6925cdbf8a6f87e68175029e8280, under AGPL-3.0-only.
34
  Copyright notices are retained. Complete corresponding source, the dependency
35
  lockfile and reproduction instructions are available through the application's
36
  **Download complete source** footer link (`static/openpels-source.zip`).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  ratio, then select a circuit for detailed analysis and single-topology simulation.
16
  Selection and output voltage/current carry through the workflow.
17
 
18
+ The Gallery includes the 2:1 series-parallel and resonant switched-capacitor
19
+ converters (`sp2` and `rsc2`) and coupled-magnetic references at 2:1 and 4:1.
20
+ Ratios 6:1, 8:1 and 16:1 show their current unvalidated state. The local
21
+ NGSpice workspace offers XFLY6S, XFLY8S and C3L at 4:1 and the
22
+ `sp2` and `rsc2` presets at 2:1. Results include waveforms and downloadable executed
23
+ decks, measurements and CSV data.
24
 
25
  The native schematic editor retains portable project import/export, undo,
26
  SVG and SPICE design-netlist exports for its supplied starters. Selecting a
 
35
  Copyright notices are retained. Complete corresponding source, the dependency
36
  lockfile and reproduction instructions are available through the application's
37
  **Download complete source** footer link (`static/openpels-source.zip`).
38
+
39
+ ## Topology development and validation
40
+
41
+ Start with the [validated 2:1 baseline](docs/topology/baselines/validated-2to1-v1.0/README.md),
42
+ then follow the [standard development workflow](docs/topology/topology_addition_workflow.md).
43
+ The [next-topology guide](docs/topology/next_topology.md) links the reusable checklist,
44
+ technical report template and regression registry.
45
+
46
+ ## Run locally on macOS
47
+
48
+ From the checkout, install the runtime and restore the public release assets:
49
+
50
+ ```sh
51
+ brew install python@3.12 ngspice
52
+ python3.12 -m venv .venv
53
+ .venv/bin/python -m pip install -r requirements-simulator.txt
54
+ .venv/bin/python restore-local-assets.py
55
+ ./run-local.sh
56
+ ```
57
+
58
+ Open [OpenPELS in Chrome](http://127.0.0.1:8765). Stop a foreground server
59
+ with **Control-C**. Set `PORT=8766` before `./run-local.sh` to use a different
60
+ port. The launcher serves the existing frontend and pins the simulator engine
61
+ to the bundled revision. The asset restore command replaces Git LFS pointers
62
+ with checksum-verified bytes from the matching public Hugging Face revision.
63
+ Git may show these files as modified in a checkout without Git LFS filters.
64
+
65
+ Gallery, analysis, editing and NGSpice use bundled circuit resources. The UI
66
+ requests Google Fonts and has fallback fonts. Browser recovery uses local
67
+ browser storage. NGSpice writes runs and logs to `.openpels-runtime/`.
68
+ The optional **Upload a topology** feature sends the submitted image and token
69
+ directly to Hugging Face Inference Providers. To use it, enter your own token
70
+ with Inference Providers permission under **Vision connection**. The default
71
+ model is `Qwen/Qwen2.5-VL-72B-Instruct`. The local simulator uses the included
72
+ generic SPICE models. There is no database, external storage, or foundry PDK
73
+ required for the local workbench.
74
+
75
+ For `sp2`, select **2:1** in Gallery, open **2:1 series-parallel SC**, and
76
+ choose **Edit schematic** or **Simulate**. The Analysis page reports the
77
+ delivered-voltage efficiency estimate and equal device allocation. The
78
+ Simulator defaults to 3 V. Edit multiple numerical settings together and
79
+ optionally sweep an input over a custom range. Each run checks steady state,
80
+ energy balance, and numerical convergence. The application reports delivered output
81
+ separately from the 1.5 V ideal conversion reference.
82
+ [Local integration and validation](docs/topology/2to1_switching_capacitors/local_integration.md)
83
+
84
+ For the **2:1 resonant SC** converter, select **2:1** in Gallery and open its card.
85
+ Analysis sizes the eight switches for the entered series-RLC tanks. **Edit schematic**
86
+ opens the local circuit and its two state views. **Simulate** opens the generic
87
+ NGSpice preset with editable tank settings and custom sweeps.
88
+ [Derivation and local validation](docs/topology/2to1_resonant/README.md)
89
+
90
+ For the **2:1 switched inductor** converter, select **2:1** in Gallery. Analysis
91
+ solves duty from Vin and an output-voltage target, or predicts loaded output
92
+ from Vin and a duty command. It sizes the four MOSFETs and reports power-loss
93
+ resistance separately from voltage droop. The editable starter
94
+ includes eight switching drawings. The NGSpice preset exposes continuous
95
+ voltage and duty modes, inverse coupling, parasitics, waveforms and custom sweeps.
96
+ [Derivation and local validation](docs/topology/2to1_switched_inductor/README.md) · [Operating Conditions Interface](docs/topology/operating_conditions.md)
97
+
98
+ For **2:1 Buck_Stacked**, the Gallery opens the eight-switch design, editable
99
+ right-hand starter, and ideal positive-current CCM Simulator. Analysis and
100
+ Simulator support duty and loaded-output commands. A blank Coss value reports
101
+ a subtotal with the unknown loss excluded. [Qualification and release scope](docs/topology/2to1_buck_stacked/qualification.md)
102
+
103
+ ## Rebuild the frontend
104
+
105
+ The release contains the built UI in `static/`. The source archive includes the
106
+ editable frontend and reference analysis as sibling directories. To rebuild,
107
+ use Node.js 24 or newer and the archived pnpm version:
108
+
109
+ ```sh
110
+ # Extract into a fresh directory so earlier source contents are not reused.
111
+ source_dir=$(mktemp -d /tmp/openpels-source.XXXXXX)
112
+ unzip -q static/openpels-source.zip -d "$source_dir"
113
+ npm install --prefix .openpels-runtime/toolchain pnpm@11.16.0
114
+ export PATH="$PWD/.openpels-runtime/toolchain/node_modules/.bin:$PWD/.venv/bin:$PATH"
115
+ pnpm --dir "$source_dir/openpels" install --frozen-lockfile
116
+ pnpm --dir "$source_dir/openpels" build
117
+ .venv/bin/python "$source_dir/openpels/scripts/openpels/build.py"
118
+ PORT=8766 OPENPELS_STATIC_DIR="$source_dir/openpels/apps/editor/dist-pe" \
119
+ OPENPELS_RUN_DIR="$PWD/.openpels-runtime/rebuilt" ./run-local.sh
120
+ ```
121
+
122
+ Open [the rebuilt workbench](http://127.0.0.1:8766) while the release build runs
123
+ on port 8765. The source archive also contains the frontend build guide at
124
+ `local-source/openpels/scripts/openpels/README.md`.
buck_stacked/NOTICE.md ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # Buck_Stacked schematic notice
2
+
3
+ The right-hand Buck_Stacked schematic was authored by Fangyu Mao in Analog Canvas. The author authorized public redistribution and adaptation of that schematic and its derivatives under the GNU Affero General Public License, version 3 only. This release covers the right-hand circuit of cloud revision 21, `dut` revision 266, structure revision 59.
4
+
5
+ The source package includes the right-hand Gallery drawings and the editable starter derived from the reviewed circuit. The starter retains external SKY130 interface references. The executable NGSpice qualification deck uses ideal channel elements.
buck_stacked/__init__.py ADDED
File without changes
buck_stacked/preset.py ADDED
@@ -0,0 +1,278 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """NGSpice preset for the approved equal-sharing eight-channel stacked buck."""
2
+ from dataclasses import asdict, dataclass
3
+ import json
4
+ from pathlib import Path
5
+ import subprocess
6
+ import time
7
+
8
+ import numpy as np
9
+
10
+ from operating_conditions import add_measurement, request_contract, resolve
11
+ from rsc2.preset import execute_deck, interval
12
+ from si2.preset import current_profile, estimate, timing
13
+ from sp2.sp2_preset import SweepRejection, validate_preset, write_sweep
14
+
15
+ HERE = Path(__file__).resolve().parent
16
+ TRACE = ('time_s,vin_v,vout_v,input_current_a,sw_a_v,sw_b_v,vgs_q1_v,vgs_q2_v,vgs_q3_v,vgs_q4_v,'
17
+ 'il_a_a,il_b_a,vl_a_v,vl_b_v,iq1_a,iq2_a,iq3_a,iq4_a,vcap_v,'
18
+ 'vds_m13_v,vds_m15_v,vds_m11_v,vds_m9_v,vds_m14_v,vds_m16_v,vds_m12_v,vds_m10_v,'
19
+ 'gate_fixture_power_w,coss_discharge_fixture_power_w')
20
+ EXTRA = 'icap_a,output_current_a,input_power_w,delivered_power_w,winding_sum_a,winding_delta_a'
21
+
22
+
23
+ def contract():
24
+ return json.loads((HERE/'preset_contract.json').read_text())
25
+
26
+
27
+ @dataclass(frozen=True)
28
+ class Case:
29
+ name: str
30
+ vin: float
31
+ load: float
32
+ fs: float
33
+ duty: float
34
+ winding: float
35
+ coupling: float
36
+ dcr: float
37
+ high: float # stack sum, for common LC timing estimate
38
+ low: float
39
+ esr: float
40
+ cout: float
41
+ coss: float | None
42
+ gate_cap: float
43
+ stop: float | None
44
+ step: float | None
45
+ operating_point: dict
46
+
47
+ @property
48
+ def period(self):
49
+ return 1/self.fs
50
+
51
+ @property
52
+ def ideal(self):
53
+ return self.duty*self.vin
54
+
55
+ @property
56
+ def loaded(self):
57
+ return self.operating_point['derived']['analytical_output_voltage_v']
58
+
59
+
60
+ def build_case(name, s):
61
+ vin, load, fs = s['input_voltage_v'], s['output_current_a'], s['switching_frequency_mhz']*1e6
62
+ winding, coupling = s['inductance_nh']*1e-9, s['coupling']
63
+ high = s['switch_ron_mohm']*2e-3
64
+ low = high if s['low_ron_mohm'] is None else s['low_ron_mohm']*2e-3
65
+ dcr = s['dcr_mohm']*1e-3
66
+ inputs = dict(input_voltage_v=vin,load=dict(kind='current',value=load),switching_frequency_hz=fs)
67
+ if 'target_output_v' in s:
68
+ inputs.update(mode='output_voltage',target_output_v=s['target_output_v'])
69
+ else:
70
+ inputs.update(mode='duty_cycle',duty=s['duty'])
71
+
72
+ def screen(duty):
73
+ _, _, valley = current_profile(duty,vin,load,fs,winding,coupling)
74
+ return ('positive_current_ccm', []) if valley > 0 else (
75
+ 'outside_positive_current_ccm', ['Predicted winding current crosses zero. Increase load, L or frequency.'])
76
+
77
+ point = resolve('buck_stacked',inputs,balance=dict(input_voltage_v=vin,winding_drop_v=load*dcr/2,
78
+ high_drop_v=load*high/2,low_drop_v=load*low/2),screen=screen)
79
+ if not point['solver']['valid']:
80
+ raise ValueError(' '.join(point['solver']['diagnostics']))
81
+ coss = None if s['switch_coff_pf'] is None else s['switch_coff_pf']*1e-12
82
+ return Case(name,vin,load,fs,point['derived']['applied_duty'],winding,coupling,dcr,high,low,
83
+ s['output_esr_mohm']*1e-3,s['output_cap_uf']*1e-6,coss,
84
+ s['gate_cap_pf']*1e-12,s['stop_us'],s['max_step_ps'],point)
85
+
86
+
87
+ def validate(payload):
88
+ mode, numeric, spec = request_contract('buck_stacked',payload,contract())
89
+ settings, main, axis, cases = validate_preset(numeric,spec,build_case,estimate,
90
+ 'stacked buck',retain_infeasible=True)
91
+ return {**settings,'voltage_mode':mode},main,axis,cases
92
+
93
+
94
+ def deck_source(c, cycles, step, *, cold=False):
95
+ ia, ib, _ = current_profile(c.duty,c.vin,c.load,c.fs,c.winding,c.coupling)
96
+ values = dict(VIN=c.vin, ILOAD=c.load, FS=c.fs, DUTY=c.duty, LW=c.winding, KCOUP=c.coupling,
97
+ RDCR=c.dcr, RH=c.high/2, RL=c.low/2, CESR=c.esr, CO=c.cout,
98
+ IA0=0 if cold else ia, IB0=0 if cold else ib, VC0=0 if cold else c.loaded,
99
+ CG=max(c.gate_cap, 1e-24))
100
+ if c.coss is not None:
101
+ values['CX'] = max(c.coss, 1e-24)
102
+ lines = (HERE/'stacked-buck.cir').read_text().splitlines()
103
+ lines[1] = '.param '+' '.join(f'{key}={value:.15g}' for key,value in values.items())
104
+ tran = next(i for i,line in enumerate(lines) if line.startswith('.tran'))
105
+ lines[tran] = f'.tran {step:.15g} {cycles*c.period:.15g} {(cycles-11)*c.period:.15g} {step:.15g} uic'
106
+ if c.coss is None:
107
+ first = next(i for i,line in enumerate(lines) if line.startswith('Voss_supply '))
108
+ lines[first:tran] = ['* Coss unspecified. Coss fixture and event loss excluded.']
109
+ lines = [line.removesuffix(' coss_w') for line in lines if not line.startswith('let coss_w=')]
110
+ return '\n'.join(lines)+'\n'
111
+
112
+
113
+ def measure(data, c):
114
+ t, vin, vout, iin, swa, swb, ga, ga_bar, gb, gb_bar, ia, ib, va, vb = data[:,:14].T
115
+ branches = data[:,14:18]
116
+ vc, stress, gate_power = data[:,18], data[:,19:27], data[:,27]
117
+ duration = t[-1]-t[0]
118
+
119
+ def average(x):
120
+ return np.trapezoid(x,t,axis=0)/duration
121
+
122
+ ic = (vout-vc)/c.esr
123
+ input_w, delivered = average(vin*iin), c.load*average(vout)
124
+ switch_w = average(np.repeat(branches,2,axis=1)*stress)
125
+ dcr_w = c.dcr*average(np.stack((ia**2,ib**2),axis=1))
126
+ esr_w = c.esr*average(ic**2)
127
+ stored = (c.winding*(ia**2+ib**2-2*c.coupling*ia*ib)+c.cout*vc**2)/2
128
+ storage_w = (stored[-1]-stored[0])/duration
129
+ electrical_loss = input_w-delivered
130
+ gate_w = float(average(gate_power)) if c.gate_cap else 0.
131
+ coss_w = None if c.coss is None else float(average(data[:,28])) if c.coss else 0.
132
+ known_coss = coss_w if coss_w is not None else 0.
133
+ modeled_input = input_w + known_coss
134
+ stage = electrical_loss + known_coss
135
+ vdrive = c.vin/2
136
+ # Use plateau probes while timing voltages are at their full logic levels.
137
+ plateau = (np.minimum(ga,ga_bar)<vdrive*.01)&(np.minimum(gb,gb_bar)<vdrive*.01)
138
+ peak = np.max(np.abs(stress[plateau]),axis=0)
139
+ return dict(vout_v=float(average(vout)),iout_a=c.load,iin_a=float(average(iin)),input_w=float(modeled_input),
140
+ electrical_input_w=float(input_w),delivered_w=float(delivered),stage_w=float(stage),
141
+ supplemental_gate_w=gate_w,coss_w=coss_w,gate_drive_v=vdrive,
142
+ stage_efficiency=float(delivered/modeled_input),
143
+ efficiency_with_gate=float(delivered/(modeled_input+gate_w)),
144
+ efficiency_includes_coss=coss_w is not None,
145
+ switch_w=switch_w.tolist(),esr_w=[float(esr_w)],dcr_w=dcr_w.tolist(),storage_w=float(storage_w),
146
+ balance_w=float(electrical_loss-sum(switch_w)-sum(dcr_w)-esr_w-storage_w),
147
+ resistance_power_ohm=float(stage/c.load**2),
148
+ resistance_droop_ohm=float((c.ideal-average(vout))/c.load),
149
+ ripple_vpp=float(np.ptp(vout)),duty=c.duty,
150
+ measured_duty=[float(average(g)/vdrive) for g in (ga,gb)],
151
+ winding_average_a=[float(average(i)) for i in (ia,ib)],
152
+ winding_rms_a=[float(np.sqrt(average(i**2))) for i in (ia,ib)],
153
+ winding_voltage_peak_v=[float(np.max(np.abs(v))) for v in (va,vb)],
154
+ winding_min_a=[float(np.min(i)) for i in (ia,ib)],
155
+ winding_ripple_a=[float(np.ptp(i)) for i in (ia,ib)],
156
+ winding_sum_ripple_a=float(np.ptp(ia+ib)),winding_delta_ripple_a=float(np.ptp(ia-ib)),
157
+ winding_voltage_mean_v=[float(average(v)) for v in (va,vb)],
158
+ switch_peak_v=peak.tolist(),output_cap_rms_a=float(np.sqrt(average(ic**2))),
159
+ output_cap_average_a=float(average(ic)),
160
+ gate_overlap_fraction=[float(average((g>vdrive/2)&(other>vdrive/2)))
161
+ for g,other in ((ga,ga_bar),(gb,gb_bar))])
162
+
163
+
164
+ def single_trace(case,directory,name,cycles,step,cold=False):
165
+ trace, checksum = execute_deck(directory,deck_source(case,cycles,step,cold=cold),name,
166
+ columns=28 if case.coss is None else 29)
167
+ if trace[-1,0] < cycles*case.period*(1-1e-7):
168
+ raise ValueError('NGSpice stopped before the measurement window.')
169
+ stop = (cycles-1.173205)*case.period
170
+ data = interval(trace,stop-4*case.period,stop)
171
+ measured = measure(data,case)
172
+ previous = measure(interval(trace,stop-8*case.period,stop-4*case.period),case)
173
+ measured['window_drift_v'] = abs(measured['vout_v']-previous['vout_v'])
174
+ measured['window_drift_w'] = abs(measured['stage_w']-previous['stage_w'])
175
+ return measured,data,checksum
176
+
177
+
178
+ def run_case(case,directory,*,cold=False):
179
+ cycles, step = timing(case)
180
+ coarse,_,_ = single_trace(case,directory,case.name+'-coarse',cycles,step,cold)
181
+ fine,data,checksum = single_trace(case,directory,case.name,cycles,step/2,cold)
182
+ if min(fine['winding_min_a']) <= 0 or not 0 < fine['vout_v'] < case.ideal:
183
+ raise ValueError('Measured operation is outside positive-output, positive-current CCM.')
184
+ if (fine['window_drift_v']>.0003 or fine['window_drift_w']>max(.00003,.01*fine['stage_w'])
185
+ or abs(fine['output_cap_average_a'])>.0003 or max(map(abs,fine['winding_voltage_mean_v']))>.001):
186
+ raise ValueError('No periodic steady state in the measurement window. Increase duration.')
187
+ if abs(fine['balance_w'])>max(.00003,.01*fine['stage_w']):
188
+ raise ValueError('Measured electrical stage failed energy closure.')
189
+ if abs(fine['vout_v']-coarse['vout_v'])>.0004 or abs(fine['stage_w']-coarse['stage_w'])>max(.00003,.02*fine['stage_w']):
190
+ raise ValueError('Time-step refinement failed. Use a smaller maximum step.')
191
+ if max(abs(d-case.duty) for d in fine['measured_duty'])>.0002 or max(fine['gate_overlap_fraction'])>1e-8:
192
+ raise ValueError('The complementary commands failed the duty or overlap check.')
193
+ if max(abs(v-case.vin/2) for v in fine['switch_peak_v'])>max(.004,.03*case.vin/2):
194
+ raise ValueError('The measured blocking plateaus exceed the ideal equal-sharing tolerance.')
195
+ _, vin, out, iin = data[:,:4].T
196
+ ia,ib = data[:,10:12].T
197
+ extras = ((out-data[:,18])/case.esr,np.full(len(data),case.load),vin*iin,case.load*out,ia+ib,ia-ib)
198
+ wave = directory/f'{case.name}_waveform.csv'
199
+ trace_header = TRACE.rsplit(',',1)[0] if case.coss is None else TRACE
200
+ if case.coss == 0:
201
+ data[:,28] = 0
202
+ np.savetxt(wave,np.column_stack((data,*extras)),delimiter=',',comments='',header=trace_header+','+EXTRA)
203
+ target = case.operating_point['inputs'].get('target_output_v')
204
+ row = dict(status='passed',message='',deck=f'{case.name}.cir',waveform=wave.name,deck_sha256=checksum,
205
+ nominal_vout_v=case.ideal,ideal_vout_v=case.ideal,ideal_gain=case.duty,vin_v=case.vin,
206
+ target_vout_v=target,analytical_vout_v=case.loaded,analytical_gain=case.loaded/case.vin,
207
+ simulated_gain=fine['vout_v']/case.vin,target_error_v=None if target is None else fine['vout_v']-target,
208
+ operating_point=add_measurement(case.operating_point,fine['vout_v']),
209
+ stop_us=cycles*case.period*1e6,max_step_ps=step/2*1e12,
210
+ window_start_cycles=cycles-5.173205,window_stop_cycles=cycles-1.173205,**fine)
211
+ (directory/f'{case.name}-measurements.json').write_text(
212
+ json.dumps(dict(settings=asdict(case),refined=row,coarse=coarse,cold=cold),allow_nan=False,indent=2)+'\n')
213
+ return row
214
+
215
+
216
+ def plot_waveform(directory,wave):
217
+ import matplotlib
218
+ matplotlib.use('Agg')
219
+ import matplotlib.pyplot as plt
220
+
221
+ values = np.genfromtxt(directory/wave,delimiter=',',names=True)
222
+ t = 1e6*(values['time_s']-values['time_s'][0])
223
+ event_keys = [key for key in ('gate_fixture_power_w','coss_discharge_fixture_power_w') if key in values.dtype.names]
224
+ plots = (
225
+ ('VGS command (V)', ['vgs_q1_v','vgs_q2_v','vgs_q3_v','vgs_q4_v']),
226
+ ('Switch node (V)', ['sw_a_v','sw_b_v']),
227
+ ('VDS (V)', [f'vds_m{i}_v' for i in (13,15,11,9,14,16,12,10)]),
228
+ ('Winding voltage (V)', ['vl_a_v','vl_b_v']),
229
+ ('Winding current (A)', ['il_a_a','il_b_a','winding_sum_a']),
230
+ ('Output voltage (V)', ['vout_v']),
231
+ ('Event fixtures (W)', event_keys),
232
+ )
233
+ figure,axes = plt.subplots(len(plots),1,sharex=True,figsize=(9,11),layout='constrained')
234
+ if len(event_keys) == 1:
235
+ axes[-1].set_title('Coss unknown · event loss excluded')
236
+ for ax,(label,keys) in zip(axes,plots):
237
+ for i,key in enumerate(keys):
238
+ ax.plot(t,values[key],('-','--',':','-.')[i%4],label=key.replace('_',' '))
239
+ ax.set_ylabel(label)
240
+ if len(keys)>1:
241
+ ax.legend(loc='upper right',ncol=min(4,len(keys)),fontsize=7)
242
+ axes[-1].set_xlabel('Time within measurement window (µs)')
243
+ figure.savefig(directory/'buck_stacked-waveforms.png',dpi=150)
244
+ plt.close(figure)
245
+
246
+
247
+ def run(payload,directory,progress=lambda complete,total: None):
248
+ settings,main,axis,entries = validate(payload)
249
+ started = time.perf_counter()
250
+ rows = []
251
+ total = 1+len(entries)
252
+ progress(0,total)
253
+ for index,(value,case) in enumerate([(None,main),*entries],1):
254
+ if isinstance(case,SweepRejection):
255
+ row = dict(status='failed',phase='operating_point',message=case.reason)
256
+ else:
257
+ try:
258
+ row = run_case(case,directory)
259
+ except (ValueError,subprocess.TimeoutExpired) as error:
260
+ row = dict(status='failed',phase='transient',message=str(error),operating_point=case.operating_point)
261
+ rows.append(dict(value=value,**row))
262
+ progress(index,total)
263
+ operating,*sweep = rows
264
+ success = operating['status']=='passed'
265
+ if not success and not sweep:
266
+ raise ValueError(operating['message'])
267
+ if success:
268
+ plot_waveform(directory,operating['waveform'])
269
+ if axis:
270
+ write_sweep(directory,axis,sweep,topology='buck_stacked')
271
+ return dict(run_id=directory.name,settings={**settings,'topologies':['buck_stacked'],'sweep':payload.get('sweep')},
272
+ operating_point=operating.get('operating_point'),elapsed_s=time.perf_counter()-started,
273
+ metrics=[operating] if success else [],validation=operating['status'],validation_message=operating['message'],
274
+ model_provenance=dict(id='buck_stacked',model='ideal equal-sharing stacked buck',
275
+ deck_sha256=operating.get('deck_sha256')),
276
+ sweep=sweep,parameter={k:axis[k] for k in ('label','unit')} if axis else None,
277
+ sweep_plot_url=f'/simulator/runs/{directory.name}/buck_stacked-sweep.png' if axis else None,
278
+ **({'plot_url':f'/runs/{directory.name}/buck_stacked-waveforms.png'} if success else {}))
buck_stacked/preset_contract.json ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "buck_stacked",
3
+ "ratio": 2,
4
+ "status": "local-generic-model",
5
+ "run_kind": "run",
6
+ "parameters": {
7
+ "vin": {
8
+ "field": "input_voltage_v",
9
+ "label": "Input voltage",
10
+ "unit": "V",
11
+ "minimum": 2.5,
12
+ "maximum": 3.8,
13
+ "default": 3,
14
+ "optional": false
15
+ },
16
+ "load": {
17
+ "field": "output_current_a",
18
+ "label": "Output current",
19
+ "unit": "A",
20
+ "minimum": 0.6,
21
+ "maximum": 2,
22
+ "default": 1,
23
+ "optional": false
24
+ },
25
+ "fs": {
26
+ "field": "switching_frequency_mhz",
27
+ "label": "Switching frequency",
28
+ "unit": "MHz",
29
+ "minimum": 1,
30
+ "maximum": 4,
31
+ "default": 2,
32
+ "optional": false
33
+ },
34
+ "duty": {
35
+ "field": "duty",
36
+ "label": "High-side duty",
37
+ "unit": "fraction",
38
+ "minimum": 0.25,
39
+ "maximum": 0.75,
40
+ "default": 0.5,
41
+ "optional": false
42
+ },
43
+ "target": {
44
+ "field": "target_output_v",
45
+ "label": "Target output voltage",
46
+ "unit": "V",
47
+ "minimum": 0.1,
48
+ "maximum": 3,
49
+ "default": 1.5,
50
+ "optional": false
51
+ },
52
+ "lt": {
53
+ "field": "inductance_nh",
54
+ "label": "Self-inductance per winding",
55
+ "unit": "nH",
56
+ "minimum": 750,
57
+ "maximum": 2000,
58
+ "default": 1000,
59
+ "optional": false
60
+ },
61
+ "coupling": {
62
+ "field": "coupling",
63
+ "label": "Inverse coupling magnitude",
64
+ "unit": "",
65
+ "minimum": 0,
66
+ "maximum": 0.75,
67
+ "default": 0.6,
68
+ "optional": false
69
+ },
70
+ "dcr": {
71
+ "field": "dcr_mohm",
72
+ "label": "DCR per winding",
73
+ "unit": "m\u03a9",
74
+ "minimum": 2,
75
+ "maximum": 25,
76
+ "default": 4,
77
+ "optional": false
78
+ },
79
+ "rs": {
80
+ "field": "switch_ron_mohm",
81
+ "label": "High-stack Ron per MOSFET",
82
+ "unit": "m\u03a9",
83
+ "minimum": 5,
84
+ "maximum": 25,
85
+ "default": 12,
86
+ "optional": false
87
+ },
88
+ "rslow": {
89
+ "field": "low_ron_mohm",
90
+ "label": "Low-stack Ron per MOSFET (blank uses high)",
91
+ "unit": "m\u03a9",
92
+ "minimum": 5,
93
+ "maximum": 25,
94
+ "default": null,
95
+ "optional": true
96
+ },
97
+ "gatecap": {
98
+ "field": "gate_cap_pf",
99
+ "label": "Effective gate capacitance per MOSFET",
100
+ "unit": "pF",
101
+ "minimum": 0,
102
+ "maximum": 100,
103
+ "default": 25,
104
+ "optional": false
105
+ },
106
+ "coss": {
107
+ "field": "switch_coff_pf",
108
+ "label": "Effective linear Coss per MOSFET",
109
+ "unit": "pF",
110
+ "minimum": 0,
111
+ "maximum": 30,
112
+ "default": 10,
113
+ "optional": true,
114
+ "placeholder": "Unknown"
115
+ },
116
+ "cout": {
117
+ "field": "output_cap_uf",
118
+ "label": "Output capacitance",
119
+ "unit": "\u00b5F",
120
+ "minimum": 20,
121
+ "maximum": 60,
122
+ "default": 47,
123
+ "optional": false
124
+ },
125
+ "esr": {
126
+ "field": "output_esr_mohm",
127
+ "label": "Output capacitor ESR",
128
+ "unit": "m\u03a9",
129
+ "minimum": 1,
130
+ "maximum": 12,
131
+ "default": 5,
132
+ "optional": false
133
+ },
134
+ "stop": {
135
+ "field": "stop_us",
136
+ "label": "Simulation duration",
137
+ "unit": "\u00b5s",
138
+ "minimum": 20,
139
+ "maximum": 1000,
140
+ "default": null,
141
+ "optional": true
142
+ },
143
+ "step": {
144
+ "field": "max_step_ps",
145
+ "label": "Refined maximum step ceiling",
146
+ "unit": "ps",
147
+ "minimum": 100,
148
+ "maximum": 3000,
149
+ "default": null,
150
+ "optional": true
151
+ }
152
+ },
153
+ "sweep_points": {
154
+ "minimum": 2,
155
+ "maximum": 15,
156
+ "default": 5
157
+ },
158
+ "name": "2:1 Buck_Stacked",
159
+ "short": "STACK",
160
+ "model_note": "Eight ideal channels in two inverse-coupled phases. Each blocked pair shares voltage equally. Positive-current CCM, zero dead time.",
161
+ "gate_note": "Effective gate swing is always half the input voltage. One equivalent gate cycle per device per period.",
162
+ "switch_note": "Coss uses the half-input hard-discharge energy per device. NGSpice measures switching energy in separate RC fixtures. Leave Coss blank to exclude the unknown loss from the subtotal, or enter zero explicitly."
163
+ }
buck_stacked/stacked-buck.cir ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ OpenPELS 2:1 Buck_Stacked, Analog Canvas dut r266, right-hand circuit
2
+ .param VIN=3 ILOAD=1 FS=2Meg DUTY=0.5 LW=1u KCOUP=0.6 RDCR=4m RH=12m RL=12m CESR=5m CO=47u IA0=0.38 IB0=0.62 VC0=1.486 CG=25p CX=10p
3
+ .param VG={VIN/2} PERIOD={1/FS} EDGE={PERIOD/10000} PW={DUTY*PERIOD-EDGE}
4
+ .options method=gear reltol=1e-6 abstol=1e-11 vntol=1e-9
5
+ Vinput vin 0 {VIN}
6
+ * The logic voltages represent effective VGS, with zero dead time.
7
+ Vga ga 0 PULSE({VG} 0 {DUTY*PERIOD-EDGE/2} {EDGE} {EDGE} {(1-DUTY)*PERIOD-EDGE} {PERIOD})
8
+ Vgb gb 0 PULSE(0 {VG} {PERIOD/2-EDGE/2} {EDGE} {EDGE} {PW} {PERIOD})
9
+ Bphaseb b 0 V=v(gb)+(time<{(DUTY-0.5)*PERIOD+EDGE/2} ? {VG}*min(1,max(0,({(DUTY-0.5)*PERIOD+EDGE/2}-time)/{EDGE})) : 0)
10
+ Babar ga_bar 0 V={VG}-v(ga)
11
+ Bbbar gb_bar 0 V={VG}-v(b)
12
+ .model high SW(Ron={RH} Roff=1G Vt={VG/2} Vh=0)
13
+ .model low SW(Ron={RL} Roff=1G Vt={VG/2} Vh=0)
14
+ * Both series channels are enabled by the branch command in the reduced model.
15
+ * Equal off resistances realize ideal static VDS sharing.
16
+ Vha vin dha 0
17
+ S_M13 dha hi_a ga 0 high
18
+ S_M15 hi_a swa ga 0 high
19
+ Vla swa dla 0
20
+ S_M11 dla lo_a ga_bar 0 low
21
+ S_M9 lo_a 0 ga_bar 0 low
22
+ Vhb vin dhb 0
23
+ S_M14 dhb hi_b b 0 high
24
+ S_M16 hi_b swb b 0 high
25
+ Vlb swb dlb 0
26
+ S_M12 dlb lo_b gb_bar 0 low
27
+ S_M10 lo_b 0 gb_bar 0 low
28
+ * First terminals are dotted. Phase B current toward the load is -i(L4).
29
+ L3 swa ra {LW} ic={IA0}
30
+ L4 rb swb {LW} ic={-IB0}
31
+ K34 L3 L4 {KCOUP}
32
+ R1 ra out {RDCR}
33
+ R2 rb out {RDCR}
34
+ RCO out co {CESR}
35
+ CO co 0 {CO} ic={VC0}
36
+ Iload out 0 {ILOAD}
37
+ * Independent event fixtures for the aggregate of eight identical capacitors.
38
+ * Use the power stage for conduction, and measure only the declared RC event
39
+ * boundaries here. Event circuits do not perturb the stage or duplicate loss.
40
+ Vevent event 0 PULSE(0 1 {PERIOD/4} {EDGE} {EDGE} {PERIOD/2-EDGE} {PERIOD})
41
+ Bnevent nevent 0 V=1-v(event)
42
+ .model ev SW(Ron=1m Roff=1T Vt=0.5 Vh=0)
43
+ Vgate_supply aux_gate 0 {VG}
44
+ Sg_charge aux_gate g_charge event 0 ev
45
+ Rg_charge g_charge cg 2
46
+ Cg cg 0 {8*CG}
47
+ Sg_release cg g_release nevent 0 ev
48
+ Rg_release g_release 0 2
49
+ Voss_supply aux_coss 0 {VG}
50
+ Sx_charge aux_coss x_charge event 0 ev
51
+ Rx_charge x_charge cx 2
52
+ Cx cx 0 {8*CX}
53
+ Sx_release cx x_release nevent 0 ev
54
+ Rx_release x_release 0 2
55
+ .tran 1n 100u 0 1n uic
56
+ .control
57
+ set wr_singlescale
58
+ set wr_vecnames
59
+ set numdgt=15
60
+ run
61
+ let input_a=-i(Vinput)
62
+ let ib=-i(L4)
63
+ let va=v(swa)-v(ra)
64
+ let vb=v(swb)-v(rb)
65
+ let gate_w=-v(aux_gate)*i(Vgate_supply)
66
+ let coss_w=v(x_release)*v(x_release)/2
67
+ let d13=v(dha)-v(hi_a)
68
+ let d15=v(hi_a)-v(swa)
69
+ let d11=v(dla)-v(lo_a)
70
+ let d9=v(lo_a)
71
+ let d14=v(dhb)-v(hi_b)
72
+ let d16=v(hi_b)-v(swb)
73
+ let d12=v(dlb)-v(lo_b)
74
+ let d10=v(lo_b)
75
+ wrdata trace.dat v(vin) v(out) input_a v(swa) v(swb) v(ga) v(ga_bar) v(b) v(gb_bar) i(L3) ib va vb i(Vha) i(Vla) i(Vhb) i(Vlb) v(co) d13 d15 d11 d9 d14 d16 d12 d10 gate_w coss_w
76
+ quit
77
+ .endc
78
+ .end
docs/architecture/ai_integration.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AI integration and deterministic analysis
2
+
3
+ OpenPELS has one active model-backed feature in the integrated workbench: optional schematic image transcription in the Analysis view. The loss equations, reference selection, state-table arithmetic, and sizing search run as deterministic JavaScript. The source ZIP also contains a former Python vision service and upstream Analog Canvas agent infrastructure. Their current status differs from the browser feature.
4
+
5
+ ## Active components and interfaces
6
+
7
+ | Source | Responsibility |
8
+ | --- | --- |
9
+ | `static/compare/index.html:12` | **Upload a topology** dialog, image picker, operating notes, optional Hugging Face inference token, and configurable model ID defaulting to `Qwen/Qwen2.5-VL-72B-Instruct`. [index.html:12](../../static/compare/index.html#L12) |
10
+ | `static/compare/app.js:71` | `loadImage()` validates image type and size and invokes `FileReader`. The click handler sends preview data and options to the browser engine, displays the interpretation, offers a reviewed reference selection and editable state table, then clears the token field. [app.js:71](../../static/compare/app.js#L71), [app.js:74](../../static/compare/app.js#L74) |
11
+ | `static/compare/engine.js:18` | `inspect()` validates data URL input, handles the no-token case, constructs a hosted chat-completions request, parses one JSON object, and normalizes recognized fields. [engine.js:18](../../static/compare/engine.js#L18), [engine.js:19](../../static/compare/engine.js#L19) |
12
+ | `static/compare/models-data.json:216` | Bundled system prompt and reference catalog context. The prompt requests actual connections, winding polarity, gating evidence, candidates, uncertainty, and an optional conditional state table. It treats image text as untrusted evidence and instructs the model to leave unknown gates or unsupported losses unresolved. [models-data.json:216](../../static/compare/models-data.json#L216) |
13
+ | `static/compare/engine.js:32` | `OpenPELSEngine.api()` is an in-browser dispatcher for `/api/catalog`, `/api/health`, `/api/analyze`, `/api/analyze-pu`, `/api/state-model`, `/api/state-model-pu`, `/api/control`, and `/api/inspect`. These names resemble routes but are function parameters in this deployment. `/api/health` here identifies browser execution and sets `vision_configured: false`. `server.py` exposes simulation routes, not the JavaScript analysis names. [engine.js:32](../../static/compare/engine.js#L32), [server.py:40](../../server.py#L40), [server.py:68](../../server.py#L68) |
14
+
15
+ ## Image recognition and review
16
+
17
+ ```mermaid
18
+ flowchart TD
19
+ I[User chooses schematic image and optional notes]
20
+ B[Browser validates type and size and makes a data URL]
21
+ Q{Inference token supplied}
22
+ U[Preview and no-inference status]
23
+ R[Hosted model request]
24
+ P[Parse and normalize a JSON interpretation]
25
+ H[Human reviews graph and modulation]
26
+ C[Select a qualified catalog reference]
27
+ S[Evaluate an optional reviewed state table]
28
+ I --> B --> Q
29
+ Q -->|No| U
30
+ Q -->|Yes| R --> P --> H
31
+ H --> C
32
+ H --> S
33
+ ```
34
+
35
+ 1. **Input.** The browser accepts PNG, JPEG, and WebP files up to 8,000,000 bytes and holds the data URL in the page. `inspect()` checks the data URL format and encoded size. With no token it returns `configured: false`, `requires_review: true`, and an unknown candidate without calling a provider. [app.js:72](../../static/compare/app.js#L72), [engine.js:18](../../static/compare/engine.js#L18)
36
+ 2. **Inference.** With a user token, the browser POSTs to `https://router.huggingface.co/v1/chat/completions` with bearer authorization. The request carries the system prompt, up to 4,000 characters of operating notes as unverified claims, and the image data URL. It sets `max_tokens: 3500`, `temperature: 0.1`, and a 90-second timeout. The deployed path requires reachable hosted inference, browser access, permission and quota for a selected vision model. There is no downloaded model or backend token store in this path, and the UI clears the input after each request. [engine.js:19](../../static/compare/engine.js#L19), [app.js:78](../../static/compare/app.js#L78)
37
+ 3. **Interpretation.** The browser reads `choices[0].message.content`, strips optional JSON fences, parses an object, restricts candidate IDs to the local catalog, clamps confidence, and normalizes top-level fields. The response contract includes `summary`, `candidate_id`, `confidence`, `components`, `gates`, `magnetic_coupling`, `uncertainties`, `analysis_plan`, `model_conditions`, `derivation`, and optional `state_table`. Nested circuit content is not checked against the native project schema. Parsed model text is displayed as data, and the recognized result is never imported as a schematic or submitted as a simulator deck. [engine.js:19](../../static/compare/engine.js#L19), [app.js:74](../../static/compare/app.js#L74)
38
+ 4. **Reference handoff.** A recognized and configured candidate can offer a checkbox to confirm the circuit graph, winding polarity and gate sequence. Applying it checks current ratio-family membership via `familyIds()` before adding the catalog model to the analytical selection. The focused workbench view still filters its recommendation presentation through `focusRecommendation()`. The prompt explicitly warns that switch count cannot identify an XFLY four-pulse realization. [app.js:75](../../static/compare/app.js#L75), [app.js:128](../../static/compare/app.js#L128), [recommend.js:5](../../static/compare/recommend.js#L5), [models-data.json:216](../../static/compare/models-data.json#L216)
39
+ 5. **Optional state-table arithmetic.** A returned state table is exposed as editable JSON with a separate evaluation action. `stateModel()` accepts 1–64 states with fractions summing to one, checks finite and dimensionally consistent normalized currents, and verifies zero weighted capacitor current within its tolerance. It computes per-device current-square weights and a switch allocation under an area budget. `stateModelPU()` reports FSL coefficients relative to `Rs`, `Rc`, and `Rl`. It does not infer SSL, derive timing, prove graph KCL, check legal switch combinations, or verify volt-second balance. [app.js:76](../../static/compare/app.js#L76), [engine.js:14](../../static/compare/engine.js#L14), [engine.js:31](../../static/compare/engine.js#L31)
40
+
41
+ ## Deterministic model and optimization code
42
+
43
+ - `valid()`, `coefficients()`, `evaluate()` and `analyzePU()` encode reference domains, FET/capacitor/winding resistance terms, charging-loss interpolation, and per-unit outputs. XFLY6S uses the `xfly2p` reference and a fixed sizing allocation. The recorded assumptions include matched average phase currents, flat-current FSL for inductive cells and limited loss coverage. `control()` is an additional deterministic calculation exposed by the dispatcher. [engine.js:8](../../static/compare/engine.js#L8), [engine.js:17](../../static/compare/engine.js#L17), [engine.js:20](../../static/compare/engine.js#L20), [models-data.json:207](../../static/compare/models-data.json#L207)
44
+ - `recommend()` screens known candidates using ratio, excitation/ripple, capacitance and winding budget, droop, and FET width or die area. It searches total FET width using a logarithmic grid plus local refinement, retains the library's relative device sizing, and ranks eligible rows by modeled loss or resource count. `OpenPELSTechnology` supplies an illustrative 180 nm example and gate FOM inputs, while `OpenPELSScores` summarizes relative loss mechanisms. These are local numerical tools with explicit domains. [recommend.js:8](../../static/compare/recommend.js#L8), [recommend.js:16](../../static/compare/recommend.js#L16), [technology.js:1](../../static/compare/technology.js#L1), [scoreboard.js:4](../../static/compare/scoreboard.js#L4)
45
+
46
+ ## Archived capabilities and potential integration points
47
+
48
+ | Area | Evidence and boundary | Possible future use |
49
+ | --- | --- | --- |
50
+ | Prior Python vision service | `openpels-analysis/app.py` implemented real `/api/inspect` and analysis HTTP routes. Its `agent.py` has a separate prompt, Pillow normalization, bounded concurrency, optional `HF_TOKEN` fallback, and `VISION_MODEL` default. The current deployment serves its sibling static analysis assets and does not start that Python server. [legacy app.py:50](../../local-source/openpels-analysis/app.py#L50), [legacy agent.py:10](../../local-source/openpels-analysis/agent.py#L10), [package-site.py:11](../../local-source/openpels/scripts/openpels/package-site.py#L11) | Use it as historical context for a provider contract. Any future service boundary would need an explicit data and credential policy. |
51
+ | External AI agents | The archive includes `createAgentCircuitService()` with `capabilities`, `snapshot`, `transact`, and `render`, plus agent client/routing and MCP tooling. `PowerEditor` disables `agent` and the public agent UI, so the integrated workbench exposes no such endpoint. [agent service.ts:64](../../local-source/openpels/packages/agent-adapter/src/service.ts#L64), [service.ts:304](../../local-source/openpels/packages/agent-adapter/src/service.ts#L304), [editor.tsx:12](../../local-source/openpels/apps/editor/src/pe/editor.tsx#L12), [editor.tsx:86](../../local-source/openpels/apps/editor/src/pe/editor.tsx#L86) | A separately authorized integration could read canonical snapshots and propose revision-checked edits to the existing transaction engine. The vision payload is a hypothesis, with a different schema and authority. |
52
+ | Symbolic circuit analysis | The canonical model supplies terminal membership, controlled bindings and coupling, while the analytical input accepts supplied state fractions and normalized currents. No integrated graph-to-state symbolic solver was found. [connectivity.ts:66](../../local-source/openpels/packages/model/src/schema/connectivity.ts#L66), [instance.ts:120](../../local-source/openpels/packages/model/src/schema/instance.ts#L120), [engine.js:14](../../static/compare/engine.js#L14) | A future adapter could combine a validated graph, explicit modulation and assumptions, derive state equations, check KCL and balance, and only then translate validated currents to the existing FSL evaluator. |
53
+ | Loss models and automated optimization | The current width search is a constrained analytical optimizer. NGSpice jobs independently evaluate curated decks and specific operating points. No integrated feedback loop automatically optimizes the editor schematic using generated state models or simulated waveforms. [recommend.js:16](../../static/compare/recommend.js#L16), [simulator_service.py:161](../../simulator_service.py#L161) | Map explicit candidate parameters to qualified jobs, compare analytical and simulated objectives with declared units, and retain input/result provenance and model validity per trial. |
54
+
55
+ ## Verification scope
56
+
57
+ Offline checks exercised the no-token path, the request/response format with an intercepted mock, and state-table charge balance acceptance and rejection. The test did not call Hugging Face, upload an image, or use a real token. Live service availability, browser CORS, provider-dependent response quality and topology recognition accuracy remain unverified in this investigation. See [architecture assessment](architecture_assessment.md).
docs/architecture/architecture_assessment.md ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Architecture assessment
2
+
3
+ OpenPELS is strongest as a local workbench for curated converter references. It combines a native schematic editor, browser-side analytical tools, and reproducible NGSpice presets in one interface. The boundary between the three is intentional and observable in both the code and tests. The architecture does not yet provide a schematic-to-testbench compiler for an arbitrary edited converter.
4
+
5
+ ## Evidence and validation
6
+
7
+ The investigation used the tracked checkout at `54c669e`, the local source ZIP and an existing extraction. Selected editor, schema, packaging, netlist and legacy AI source files matched their ZIP members byte for byte. Browser tests ran with installed Chrome and NGSpice against a fresh loopback instance with a temporary run directory. Temporary copies of the tests used Chrome flags to block external DNS and background network activity. They were removed with the test instance. There were no dependency installations or authenticated provider calls.
8
+
9
+ | Status | Capability or check | Evidence |
10
+ | --- | --- | --- |
11
+ | Verified in Chrome | Default gallery, six cards, family filters, clear unvalidated states, selected analysis, shared operating point, corresponding NGSpice run, native editing, and mobile layout. | `gallery.browser.mjs` passed. [test:9](../../local-source/openpels/scripts/openpels/gallery.browser.mjs#L9) |
12
+ | Verified in Chrome | Starter load, resistor placement/undo, signature detachment and restoration, native SVG download, portable project download and recovery, invalid import protection, local storage migration, source ZIP download, and mobile layout. | `browser-check.mjs` passed with no page errors reported. [test:19](../../local-source/openpels/scripts/openpels/browser-check.mjs#L19), [test:132](../../local-source/openpels/scripts/openpels/browser-check.mjs#L132) |
13
+ | Verified in Chrome and NGSpice | Individual XFLY6S, XFLY8S, and C3L runs delivered a waveform image, metrics, and one executed deck per run. A real 15-point XFLY6S sweep completed. The suite also exercised simulated sweep failure handling, result clearing, and rejection of a multiple-topology request. | `simulator.browser.mjs` passed. [per-preset test:40](../../local-source/openpels/scripts/openpels/simulator.browser.mjs#L40), [sweep test:112](../../local-source/openpels/scripts/openpels/simulator.browser.mjs#L112), [failure injection:133](../../local-source/openpels/scripts/openpels/simulator.browser.mjs#L133) |
14
+ | Verified locally | Eight Python contract tests passed. They cover startup, job input, source instrumentation and preservation, source provenance, and GUI adaptation. The starter checker passed for buck2, XFLY6S, and XFLY8S, including structural SPICE round trips. The standalone XFLY6S startup deck ran in `--validate` mode and reported a finite average output of 0.655966 V. | [test_simulator.py:16](../../local-source/openpels/scripts/openpels/test_simulator.py#L16), [test_testbenches.py:21](../../local-source/openpels/scripts/openpels/test_testbenches.py#L21), [check-starters.mjs:1](../../local-source/openpels/scripts/openpels/check-starters.mjs#L1), [run_testbench.py:21](../../static/testbenches/run_testbench.py#L21) |
15
+ | Verified offline with a mock | An absent token causes zero provider calls. The browser engine built the default model request and consumed an intercepted JSON response. Conditional FSL accepted a balanced current table and rejected an unbalanced one. | An ad hoc Node test replaced `fetch` and loaded the shipped engine and prompt. [engine.js:14](../../static/compare/engine.js#L14), [engine.js:18](../../static/compare/engine.js#L18) |
16
+ | Code-confirmed; verification limited | Native Spectre format controls and printing, archived simulation folders, historical Python inference, upstream agent operations, and the source-case job route. The current investigation examined these code paths. Its live test of an original case used the standalone runner. | [netlist-mode.ts:8](../../local-source/openpels/apps/editor/src/features/netlist-export/netlist-mode.ts#L8), [printers.ts:500](../../local-source/openpels/packages/netlist/src/printers.ts#L500), [project.ts:139](../../local-source/openpels/packages/model/src/schema/project.ts#L139), [agent service:64](../../local-source/openpels/packages/agent-adapter/src/service.ts#L64), [simulator_service.py:123](../../simulator_service.py#L123) |
17
+ | Unverified or outside current runtime | Live hosted image recognition, Spectre execution or output equivalence, arbitrary schematic simulation, deployed Space configuration, upstream agent/cloud/Office workflows, and full transient revalidation of every original deck. Package presence or type definitions are insufficient for these claims. | [AI verification scope](ai_integration.md#verification-scope), [simulation extension](simulation_workflow.md#adding-an-engine-such-as-cadence-spectre), [editor capability flags](../../local-source/openpels/apps/editor/src/pe/editor.tsx#L12) |
18
+
19
+ ## Architectural strengths
20
+
21
+ - **Explicit authorities.** The editor owns state and undo, the analytical library owns coefficients, and the simulation adapter owns execution. Models that lack a qualified preset or reference family are surfaced as unavailable. The XFLY8S label makes a concrete topology mismatch visible. [gallery.js:11](../../static/gallery.js#L11), [pe.js:61](../../static/pe.js#L61), [editor.tsx:32](../../local-source/openpels/apps/editor/src/pe/editor.tsx#L32)
22
+ - **Provenance and reproducibility.** The engine is pinned and verified before import. Original cases have per-deck hashes. A run returns executed settings, metrics, engine revision, and downloadable deck/log rather than a chart alone. Generated assets are distributed with corresponding source, locked dependencies, and upstream attribution. [simulator_service.py:92](../../simulator_service.py#L92), [simulator_service.py:123](../../simulator_service.py#L123), [simulator_service.py:191](../../simulator_service.py#L191), [package-site.py:24](../../local-source/openpels/scripts/openpels/package-site.py#L24)
23
+ - **Small local runtime.** Static delivery and project handling stay local. Numeric-only preset jobs have admission limits and run serially off the HTTP threads. Vision is optional and the deterministic tools can be exercised without inference. [server.py:86](../../server.py#L86), [simulator_service.py:40](../../simulator_service.py#L40), [simulator_service.py:161](../../simulator_service.py#L161), [engine.js:18](../../static/compare/engine.js#L18)
24
+ - **Existing test leverage.** The archive contains relevant browser and contract checks for the composition, alongside the upstream packages' tests. The browser suites assert outcomes, including real waveform loading, rather than merely compiling the editor bundle. [archived guide:25](../../local-source/openpels/scripts/openpels/README.md#L25), [simulator.browser.mjs:82](../../local-source/openpels/scripts/openpels/simulator.browser.mjs#L82)
25
+
26
+ ## Limitations and technical debt
27
+
28
+ | Finding | Implication |
29
+ | --- | --- |
30
+ | **Reference wiring is manually coordinated.** Catalog IDs, gallery mappings, starter metadata, simulator enum/probes, and deck names are distinct registries. The signature serializes selected electrical fields rather than constructing a graph-equivalence proof. | Adding a topology or treating two artifacts as equivalent requires checking each representation. Signature coverage for additional electrically relevant project fields, such as bulk or project-level model-source changes, warrants a dedicated test before the signature is used as a stronger guarantee. [gallery.js:4](../../static/gallery.js#L4), [starters/index.json:16](../../static/starters/index.json#L16), [electrical-signature.ts:4](../../local-source/openpels/apps/editor/src/pe/electrical-signature.ts#L4), [engine:62](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L62) |
31
+ | **Integration relies on text transformations and module mutation.** The server adapts legacy HTML with string and regex substitutions, overrides global paths/templates in the imported module, and replaces `analyze_case` with a wrapper. Deck generation assumes known tokens and per-topology signal names. | The checksum pins behavior, and selected replacements have guard checks. Engine updates or simultaneous instances sharing a work path still require care, with compatibility and fixture tests for templates, signals, and bridge messages. [simulator_frame.py:4](../../simulator_frame.py#L4), [simulator_frame.py:53](../../simulator_frame.py#L53), [simulator_service.py:98](../../simulator_service.py#L98), [engine:1123](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1123) |
32
+ | **Jobs and evidence are temporary.** Job status is in memory, the one worker is shared by sessions, and pruning runs on new submissions. Files can outlive job metadata after restart because the service creates the run directory without rebuilding its registry. | The current service is well suited to single-user local runs. Long-lived or multi-user operation would need explicit decisions about admission, ownership, cancellation, retention, and restart recovery. [simulator_service.py:101](../../simulator_service.py#L101), [simulator_service.py:161](../../simulator_service.py#L161), [simulator_service.py:214](../../simulator_service.py#L214) |
33
+ | **Results have bounded physical meaning.** Curated generic models, open-loop duty inference, a finite measurement window, approximate gate loss and energy correction limit interpretation. The implemented winding storage term sums per-winding self energies. It contains no mutual-energy term despite the coupled decks. The browser analytical estimate has a separate domain and scope. | Treat analytic and simulated losses as model outputs. Qualification against hardware or another engine would require agreed correlation fixtures, device models and tolerances. [engine:1072](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1072), [engine:1247](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1247), [models-data.json:208](../../static/compare/models-data.json#L208) |
34
+ | **Model-backed recognition has shallow validation.** The provider result is normalized at the top level, candidate identity requires review, and the current table evaluator checks numerical consistency and capacitor charge balance only. | Review is a real boundary. Accuracy, graph completeness, and legal switching sequences remain separate validation questions. The current workbench uses no model result as an executable deck. [engine.js:14](../../static/compare/engine.js#L14), [engine.js:19](../../static/compare/engine.js#L19), [app.js:75](../../static/compare/app.js#L75) |
35
+ | **The release tree and source tree differ.** The tracked tree contains hashed outputs, while the build source and tests are in an LFS ZIP. Integration Python copies and historical study artifacts also coexist. | Editing and testing require identifying the authority for each artifact, rebuilding generated outputs where appropriate, and verifying that the source ZIP corresponds to the served build. [restore-local-assets.py:13](../../restore-local-assets.py#L13), [build.py:5](../../local-source/openpels/scripts/openpels/build.py#L5), [package-site.py:26](../../local-source/openpels/scripts/openpels/package-site.py#L26) |
36
+
37
+ ## Extension seams and unresolved decisions
38
+
39
+ These are possible interfaces revealed by the investigation. They are outside the currently verified capabilities.
40
+
41
+ - **New curated converters.** The seams are the catalog and eligibility rules, starter generator, deck manifest, probe contract, and browser handoff tests. Open question: what evidence qualifies a topology for analysis, editing, and simulation separately, especially when an analytical reference and an executable preset differ?
42
+ - **Edited-project simulation.** The seams are the canonical codec, structural export, and existing job/result interface. Open question: which inputs own modulation, allowed source/model bindings, loads, parasitics, initial conditions, and analysis intent? The current launcher accepts only bundled presets. See [circuit data model](circuit_data_model.md) and [simulation workflow](simulation_workflow.md).
43
+ - **Additional engines.** Engine-specific preparation and result parsing could sit behind the job service. Open questions include which locally licensed runtime and libraries are available, how units and probe conventions would be normalized, and which per-topology numerical tolerances would qualify comparisons. See [Spectre boundary](simulation_workflow.md#adding-an-engine-such-as-cadence-spectre).
44
+ - **Agent, symbolics, and optimization.** Typed snapshots, revision-checked transactions, signed state tables, and deterministic objectives are available seams. Open questions include edit authorization, accepted switching-state syntax, proof/correlation requirements, how results would track provenance, and what data could leave the local machine. See [AI integration](ai_integration.md#archived-capabilities-and-potential-integration-points).
45
+
46
+ ## Documentation gaps
47
+
48
+ The root README explains setup and scope. The archived OpenPELS contract explains intended behavior and the archived build guide gives test commands. The study README and testbench manifest provide deck provenance. This architecture set supplies a cross-layer map. The following reference material remains absent or incomplete in the inspected checkout and archive:
49
+
50
+ - A standalone, versioned specification for the deployed job API and frame message schemas, with units, defaults, error semantics, and examples for each job kind. Relevant behavior is currently split across the shell, adapter, request validation, and engine. [archived contract:41](../../local-source/openpels/docs/specs/openpels.md#L41), [simulator_service.py:40](../../simulator_service.py#L40), [server.py:68](../../server.py#L68)
51
+ - A converter-by-converter crosswalk covering catalog/starter/deck identity, named switch correspondences, applied gate truth tables and phase-current sign conventions. Existing mappings and comments describe selected examples. They do not provide a unified equivalence specification. [gallery.js:4](../../static/gallery.js#L4), [starters/index.json:16](../../static/starters/index.json#L16), [xfly6s_transient.cir:101](../../static/testbenches/netlists/xfly6s_transient.cir#L101)
52
+ - A numerical qualification matrix with engine versions, measurement options, expected tolerances, provenance of calibration parameters, and any independently validated device data. Existing tests establish run behavior, selected contracts, and output availability. No foundry data or private sources were inspected. [engine:62](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L62), [testbench README](../../static/testbenches/README.md), [simulator.browser.mjs:40](../../local-source/openpels/scripts/openpels/simulator.browser.mjs#L40)
53
+ - A provider-independent vision evaluation set and a written reference for field validation, confidence calibration, data handling, and model-version compatibility. The prompt, UI and endpoint contract exist in source. Live provider accuracy remains an open question. [models-data.json:216](../../static/compare/models-data.json#L216), [engine.js:19](../../static/compare/engine.js#L19)
docs/architecture/circuit_data_model.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Circuit data model and schematic editor
2
+
3
+ ## The three XFLY6S representations
4
+
5
+ | Representation | XFLY6S example | What the artifact owns |
6
+ | --- | --- | --- |
7
+ | Curated topology catalog and loss model | Catalog ID `xfly2p`, named `XFLY6S` by the workbench, qualified at 4:1. | Reference drawing, model domain, loss coefficients, size allocation and analytical excitation assumptions. The catalog entry contains no editable project graph. [models-data.json:4](../../static/compare/models-data.json#L4), [gallery.js:4](../../static/gallery.js#L4), [recommend.js:3](../../static/compare/recommend.js#L3) |
8
+ | Native Analog Canvas project | Starter ID `xfly6s`, loaded from `starters/xfly6s.icproj.json`. The starter manifest separately names `xfly2p` as the reference model. | Editable component instances, terminals, nets, coupling, layout and source provenance. The companion `xfly6s.sp` is the structural input used to generate it. [starters/index.json:16](../../static/starters/index.json#L16), [project JSON:1](../../static/starters/xfly6s.icproj.json#L1), [starter SPICE:3](../../static/starters/xfly6s.sp#L3) |
9
+ | NGSpice simulator preset | Preset ID `xfly6s`, template `testbenches/netlists/xfly6s_transient.cir`; related original cases include startup, settling and winding DCR mismatch. | Executable testbench with device models, parasitics, source/load, gates, initial conditions, probes and transient control. [simulator_service.py:105](../../simulator_service.py#L105), [testbench manifest:8](../../static/testbenches/index.json#L8), [deck:5](../../static/testbenches/netlists/xfly6s_transient.cir#L5) |
10
+
11
+ The mapping is explicit in `gallery.js`. It is not a conversion based on the current project name, switch count, or electrical connectivity. XFLY8S is the clearest counterexample: `xfly4p` maps to starter and simulator IDs `xfly8s`, but the gallery labels them as related because the analytical model includes clamp capacitors absent from the starter and simulator. [gallery.js:5](../../static/gallery.js#L5), [gallery.js:11](../../static/gallery.js#L11)
12
+
13
+ ## Native project structure
14
+
15
+ ```mermaid
16
+ flowchart TD
17
+ P[CircuitProject]
18
+ C[SchematicDocument or Cell]
19
+ I[Instance and symbol binding]
20
+ T[Terminal reference]
21
+ N[Logical net]
22
+ R[Route and drawing geometry]
23
+ J[Junction]
24
+ K[Coupling and dotted end references]
25
+ F[Formal cell terminals and parameters]
26
+ P --> C
27
+ C --> I
28
+ C --> N
29
+ I --> T
30
+ N --> T
31
+ C --> R
32
+ R --> J
33
+ C --> K
34
+ K --> I
35
+ C --> F
36
+ F --> N
37
+ ```
38
+
39
+ - **Project and cells.** `CircuitProjectSchema` has stable IDs, a top document, documents, structural revision, source and symbol-library manifests, optional user component/model sources, external subcircuit definitions, and simulation folders. A cell has its own revision, instances, `netlist` interface, nets, routing, junctions, annotations and presentation. An instance can reference a child cell by ID or an external subcircuit. [project.ts:115](../../local-source/openpels/packages/model/src/schema/project.ts#L115), [document.ts:84](../../local-source/openpels/packages/model/src/schema/document.ts#L84), [instance.ts:86](../../local-source/openpels/packages/model/src/schema/instance.ts#L86)
40
+ - **Instances and electrical parameters.** The runtime schema separates symbol and placement from electrical binding. An `InstanceNetlistDataSchema` binding can be primitive, named model, subcircuit, or unresolved. Its parameter values are strings so a value such as `100n` or an expression can retain its authored form. Device terminal references carry an `instanceId`, `pinName`, and optional signal member ID. Imported terminal ordering and source spans provide provenance. [instance.ts:51](../../local-source/openpels/packages/model/src/schema/instance.ts#L51), [instance.ts:120](../../local-source/openpels/packages/model/src/schema/instance.ts#L120), [instance.ts:148](../../local-source/openpels/packages/model/src/schema/instance.ts#L148)
41
+ - **Nets, routes, and coupling.** `NetSchema` records terminal membership. Routes and junctions describe drawn connections, with separate connectivity evidence for such things as named claims and imported nets. `deriveNetConnectivity()` distinguishes physical and logical connectivity. A wire crossing without a junction does not create a join by coordinate alone. `InductorCouplingSchema` records two winding instance IDs, each dotted pin, and `k` as value text. [connectivity schema:66](../../local-source/openpels/packages/model/src/schema/connectivity.ts#L66), [connectivity schema:145](../../local-source/openpels/packages/model/src/schema/connectivity.ts#L145), [routing.ts:58](../../local-source/openpels/packages/model/src/schema/routing.ts#L58), [deriveNetConnectivity():99](../../local-source/openpels/packages/derived/src/connectivity.ts#L99)
42
+ - **Portable format.** The XFLY6S fixture has portable `schemaVersion: 86`, one document, 21 instances including formal port symbols, 13 nets, 43 routes, 17 junctions, one coupling, and an empty `simulationFolders` array. Compact field names and defaults are decoded into the runtime model, whose schema version is 58 in the archive. `parseProject()` and `serializeCompactProject()` are the versioned boundary. Use the codec to interpret the JSON rather than treating the compact and runtime fields as interchangeable. [xfly6s.icproj.json:1](../../static/starters/xfly6s.icproj.json#L1), [owned-project-file.ts:21](../../local-source/openpels/packages/project-protocol/src/owned-project-file.ts#L21), [common.ts:11](../../local-source/openpels/packages/model/src/schema/common.ts#L11), [load.ts:648](../../local-source/openpels/packages/project-protocol/src/load.ts#L648), [save.ts:100](../../local-source/openpels/packages/project-protocol/src/save.ts#L100)
43
+
44
+ The structural XFLY6S source makes the topology concrete. Six MOSFETs form two legs. `C1 XA YB` and `C2 XB YA` cross-link the legs. `L1 YA VOUT` and `L2 VOUT YB` have opposite output-current orientations even though `K1` is positive `.95`; the project records both dotted ends at pin `1`. `N` is an illustrative level-1 MOS model, and formal ports expose `A`, `MA`, `ABAR`, `B`, `MB`, and `BBAR`. The generator imports the subcircuit using `importSpiceSources()`, attaches bulk and sizing bindings, lays out power paths and ports, and emits a canonical JSON fixture plus the structural `.sp` source. [xfly6s.sp:2](../../static/starters/xfly6s.sp#L2), [generate-starters.mjs:47](../../local-source/openpels/scripts/openpels/generate-starters.mjs#L47), [generate-starters.mjs:131](../../local-source/openpels/scripts/openpels/generate-starters.mjs#L131), [generate-starters.mjs:445](../../local-source/openpels/scripts/openpels/generate-starters.mjs#L445)
45
+
46
+ ## Switching information and timing
47
+
48
+ | Layer | Representation | Scope |
49
+ | --- | --- | --- |
50
+ | Native starter | Gate nets and ports, two phase labels, and a description identifying composite middle-switch commands `MA` and `MB`. | The starter exposes a circuit interface. It has no executable gate waveforms, transient setup, or period-by-period state schedule. Upstream Canvas can express electrical control bindings, voltage/current source waveforms (`dc`, `pulse`, `sin`, `pwl`), and separate simulation intent, but the PE starter does not populate these as a converter testbench. [starters/index.json:21](../../static/starters/index.json#L21), [xfly6s.sp:3](../../static/starters/xfly6s.sp#L3), [source-waveform.ts:34](../../local-source/openpels/packages/netlist/src/source-waveform.ts#L34), [project.ts:139](../../local-source/openpels/packages/model/src/schema/project.ts#L139) |
51
+ | Analytical reference | `recommend.js` records excitation levels and pulse counts. `engine.js` maps conversion gain and duty to reference coefficients. The optional state-table evaluator takes fractions and per-device signed normalized current arrays. | The excitation metadata supports screening near specified cancellation conditions. The state table is supplied explicitly and belongs to the analysis input, not the schematic or simulator. [recommend.js:3](../../static/compare/recommend.js#L3), [engine.js:8](../../static/compare/engine.js#L8), [engine.js:14](../../static/compare/engine.js#L14) |
52
+ | Runnable deck | SPICE `.param` statements and behavioral voltage sources compute phase time, pulses, complementary gates, and dead time. `.tran` governs simulation timing. | The original XFLY6S startup deck has `FSW=100Meg`, `TDEAD=50p`, and `DUTY=0.40`. The B phase is shifted by `TS/2`; source-referenced drivers act on the six MOSFETs. XFLY8S uses quarter-period timing offsets and its own frequency convention. [xfly6s_transient.cir:5](../../static/testbenches/netlists/xfly6s_transient.cir#L5), [xfly6s_transient.cir:43](../../static/testbenches/netlists/xfly6s_transient.cir#L43), [xfly6s_transient.cir:103](../../static/testbenches/netlists/xfly6s_transient.cir#L103), [xfly8s_transient.cir:114](../../static/testbenches/netlists/xfly8s_transient.cir#L114) |
53
+
54
+ The starter uses `1u` windings, `.95` coupling and `10u` input/output capacitances. The original startup deck uses `3n`, `.70`, `1u` input and `100n` output, plus the models and gating described above. This is concrete evidence that matching the starter's identity or signature does not imply it is the executed testbench. [xfly6s.sp:10](../../static/starters/xfly6s.sp#L10), [xfly6s_transient.cir:19](../../static/testbenches/netlists/xfly6s_transient.cir#L19)
55
+
56
+ ## Load, edit, save, and export
57
+
58
+ 1. The shell fetches `starters/index.json` and, on first load with no recovered project or pending request, defaults to XFLY6S. Gallery selection opens reference analysis. **Edit schematic** explicitly chooses the starter. `openStarter()` fetches JSON and sends a ticketed `pe:load`. The editor validates same origin and sender, parses the project, and keeps the existing circuit on parse failure. [pe.js:100](../../static/pe.js#L100), [pe.js:117](../../static/pe.js#L117), [pe.js:185](../../static/pe.js#L185), [pe.js:350](../../static/pe.js#L350), [editor.tsx:46](../../local-source/openpels/apps/editor/src/pe/editor.tsx#L46)
59
+ 2. The editor owns operations and undo. Its controller invokes the edit engine with revisioned transactions and validates candidates before applying them. `App` reports the committed project to `PowerEditor`, which emits `pe:snapshot`. The shell uses origin, frame identity, and request IDs to ignore unrelated and stale messages. [document-controller.ts:426](../../local-source/openpels/apps/editor/src/document/document-controller.ts#L426), [App.tsx:906](../../local-source/openpels/apps/editor/src/app/App.tsx#L906), [editor.tsx:32](../../local-source/openpels/apps/editor/src/pe/editor.tsx#L32), [pe.js:239](../../static/pe.js#L239)
60
+ 3. The shell captures the first accepted signature of the selected starter. The project comparison includes top cell, instance IDs/symbols/netlist data, formal ports/parameters, names and net terminal membership, couplings, no-connects, definitions, and source. It excludes visual placement itself. Equal signatures enable the separate reference action, and a change detected by the signature disables it. This is an equality check over selected serialized fields, so it should not be treated as a graph-equivalence proof. [electrical-signature.ts:4](../../local-source/openpels/apps/editor/src/pe/electrical-signature.ts#L4), [pe.js:268](../../static/pe.js#L268), [pe.js:287](../../static/pe.js#L287)
61
+ 4. `saveLocal()` stores the current canonical project, starter ID and signature baseline in origin-scoped browser `localStorage`. The workbench can download `openpels.icproj.json` and reopen a local JSON project with a 10 MB import limit. A deliberately imported project has no starter assigned. [pe.js:126](../../static/pe.js#L126), [pe.js:280](../../static/pe.js#L280), [pe.js:314](../../static/pe.js#L314)
62
+ 5. The native editor's file commands export graphics from the current document. Design export goes through `exportDesignNetlist()` and the design-netlist compiler/printers, using the selected format, project, optional root cell and naming profile. The code exposes SPICE and Spectre (`SCS`) formats. The starter checker exercised a structural SPICE round trip, and Chrome verified SVG download. Spectre output compatibility was inspected in code; no Spectre run was tested. [editor-file-commands.ts:107](../../local-source/openpels/apps/editor/src/features/editor-shell/editor-file-commands.ts#L107), [editor-file-commands.ts:165](../../local-source/openpels/apps/editor/src/features/editor-shell/editor-file-commands.ts#L165), [netlist-mode.ts:8](../../local-source/openpels/apps/editor/src/features/netlist-export/netlist-mode.ts#L8), [printers.ts:500](../../local-source/openpels/packages/netlist/src/printers.ts#L500)
63
+
64
+ ## Analog Canvas integration boundary
65
+
66
+ The README pins Analog Canvas upstream commit `df9afb17d88a6925cdbf8a6f87e68175029e8280`. The reused editor supplies symbols/components, wire editing, hierarchy, transactions, undo, source import and export. OpenPELS adds `PowerEditor`, a desktop-style browser host, the snapshot/signature bridge, curated starters, workbench navigation and independent reference and simulation views. Its `EditorServices` has no identity or project store, disables community, agent, native simulation and external links, and retains local components and browser export delivery. The native editor source contains broader capabilities, but these settings define the integrated UI. The Python server never receives a project snapshot or any native schematic connection graph. [README.md:32](../../README.md#L32), [editor.tsx:12](../../local-source/openpels/apps/editor/src/pe/editor.tsx#L12), [editor.tsx:86](../../local-source/openpels/apps/editor/src/pe/editor.tsx#L86), [server.py:68](../../server.py#L68)
docs/architecture/repository_map.md ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # OpenPELS repository map
2
+
3
+ The Git checkout is a deployable release plus local development tooling. The source archive includes the larger Analog Canvas workspace and the earlier analysis project. This distinction matters when tracing code or identifying where an implementation change would belong. Archived paths referenced here are relative to the archive root. The existing `local-source/` extraction provides the line references.
4
+
5
+ ## Tracked checkout
6
+
7
+ | Path | Role and key symbols |
8
+ | --- | --- |
9
+ | `AGENTS.md`, `README.md`, `.gitignore` | Development rules, local launch and rebuild instructions, and local state exclusions. [AGENTS.md:5](../../AGENTS.md#L5), [README.md:38](../../README.md#L38), [.gitignore:1](../../.gitignore#L1) |
10
+ | `run-local.sh`, `Dockerfile`, `requirements-simulator.txt`, `restore-local-assets.py` | Native and container entry points, Python dependency bounds, and a separate public asset restore utility that checks pointer size and SHA-256. Asset restoration is a checkout setup operation. [run-local.sh:14](../../run-local.sh#L14), [Dockerfile:1](../../Dockerfile#L1), [restore-local-assets.py:18](../../restore-local-assets.py#L18) |
11
+ | `server.py` | `WorkbenchHandler`, `create_server()`, CLI and static/API routing. [server.py:20](../../server.py#L20) |
12
+ | `simulator_service.py`, `simulator-source.json` | `Simulator`, request validation, source case instrumentation, job queue and artifacts, and engine provenance/checksum. [simulator_service.py:40](../../simulator_service.py#L40), [simulator_service.py:85](../../simulator_service.py#L85), [simulator-source.json:1](../../simulator-source.json#L1) |
13
+ | `simulator_frame.py`, `simulator_bridge.js` | `simulator_html()` rewrites the pinned GUI at serve time. Browser functions adapt its legacy call sites to the asynchronous API, retain the latest reference while busy, and expose artifacts. [simulator_frame.py:4](../../simulator_frame.py#L4), [simulator_bridge.js:2](../../simulator_bridge.js#L2), [simulator_bridge.js:100](../../simulator_bridge.js#L100) |
14
+ | `simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py` | Runtime copy of the pinned engine, including original HTML, deck transformations, subprocess execution, raw parser, plots, and standalone handler. The OpenPELS server imports it rather than starting its standalone server. [engine:62](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L62), [engine:1123](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1123), [engine:1695](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1695) |
15
+ | `library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/` | Historical study retained in Git with its own GUI, scripts, graphs, raw deck sources, and figures. The active launcher uses the separate `simulator/` copy and the service points it at `static/testbenches/`. [study README](../../library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/README.md), [run-local.sh:18](../../run-local.sh#L18), [simulator_service.py:101](../../simulator_service.py#L101) |
16
+ | `static/index.html`, `pe.js`, `pe.css`, `gallery.js`, `analysis.js`, `simulator.js` | Workbench shell and view coordination, gallery registry/filter, editor recovery, and frame contracts. [index.html:137](../../static/index.html#L137), [pe.js:24](../../static/pe.js#L24), [gallery.js:4](../../static/gallery.js#L4) |
17
+ | `static/compare/` | Browser analysis UI, catalog and prompt (`models-data.json`), equations and image inspection (`engine.js`), constraint screening (`recommend.js`), technology example (`technology.js`), and score presentation (`scoreboard.js`). `assets/` contains reference drawing SVGs. [compare/index.html:13](../../static/compare/index.html#L13), [engine.js:32](../../static/compare/engine.js#L32), [recommend.js:10](../../static/compare/recommend.js#L10) |
18
+ | `static/pe-editor.html`, `static/assets/` | Built editor entry, hashed TypeScript/React output and lazy chunks, styles, fonts, and WebAssembly. Use corresponding source in the archive for human-readable editor logic. [pe-editor.html:7](../../static/pe-editor.html#L7) |
19
+ | `static/starters/` | Manifest and editable `.icproj.json` projects with structural `.sp` inputs for buck2, XFLY6S, and XFLY8S. [starters/index.json:1](../../static/starters/index.json#L1), [starters/xfly6s.sp:1](../../static/starters/xfly6s.sp#L1) |
20
+ | `static/testbenches/` | Nine pinned runnable decks with manifest and case hashes, simulator schematic PNGs, a standalone validation runner, and a downloadable archive. [index.json:1](../../static/testbenches/index.json#L1), [run_testbench.py:21](../../static/testbenches/run_testbench.py#L21), [testbench README](../../static/testbenches/README.md) |
21
+ | `static/office/`, `static/sw.js`, `static/manifest.webmanifest`, `static/third-party/` | Packaged supporting assets from the editor build. The Office task pane is a separate entry. The service worker file implements a shell cache with API exclusions, but its presence alone does not establish registration by the OpenPELS entry or verified offline coverage. [office/taskpane.html:1](../../static/office/taskpane.html#L1), [sw.js:61](../../static/sw.js#L61) |
22
+
23
+ ## Corresponding source archive
24
+
25
+ | Archive path | Role |
26
+ | --- | --- |
27
+ | `openpels/apps/editor/src/pe/` | OpenPELS editor composition and the `electricalSignature()` reference check. The Vite composition builds a desktop-style entry into `dist-pe`. [editor.tsx:12](../../local-source/openpels/apps/editor/src/pe/editor.tsx#L12), [electrical-signature.ts:4](../../local-source/openpels/apps/editor/src/pe/electrical-signature.ts#L4), [vite.pe.config.ts:6](../../local-source/openpels/apps/editor/vite.pe.config.ts#L6) |
28
+ | `openpels/apps/editor/src/app/`, `document/`, `features/`, `hosts/`, `services/` | Shared Analog Canvas application, transactional controller, editor surfaces, browser export delivery, and host service abstractions. [App.tsx:669](../../local-source/openpels/apps/editor/src/app/App.tsx#L669), [document-controller.ts:444](../../local-source/openpels/apps/editor/src/document/document-controller.ts#L444), [editor-file-commands.ts:165](../../local-source/openpels/apps/editor/src/features/editor-shell/editor-file-commands.ts#L165) |
29
+ | `openpels/packages/` | `model` and `project-protocol` provide schemas and the project codec. `derived` and `edit-engine` derive connectivity and transact edits. `devices`, `symbols`, and `components` supply definitions. `spice`, `netlist`, and `rnl` handle import, extraction and formats. `exporters` and `render-svg` generate graphical exports. `agent-*`, `simulation-service`, and `spice-run` supply upstream capabilities with different host composition. [workspace manifest:11](../../local-source/openpels/package.json#L11), [project schema:115](../../local-source/openpels/packages/model/src/schema/project.ts#L115), [connectivity.ts:99](../../local-source/openpels/packages/derived/src/connectivity.ts#L99) |
30
+ | `openpels/apps/desktop/`, `apps/powerpoint/`, `apps/mcp-server/` | Other upstream compositions bundled as source. The integrated launcher starts only `server.py`. An upstream application's presence does not establish an enabled OpenPELS capability. [run-local.sh:14](../../run-local.sh#L14), [archive package.json:30](../../local-source/openpels/package.json#L30) |
31
+ | `openpels/scripts/openpels/` | Integration source and build, fixture generation, packaging, deployment and verification scripts. `build.py` checks types, runs Vite, generates and verifies starters, and packages testbenches and the site. `package-site.py` copies and adapts the sibling analysis static files and generates the source ZIP. [build.py:5](../../local-source/openpels/scripts/openpels/build.py#L5), [package-site.py:5](../../local-source/openpels/scripts/openpels/package-site.py#L5), [archived guide:12](../../local-source/openpels/scripts/openpels/README.md#L12) |
32
+ | `openpels-analysis/` | Sibling source of the reference analysis static scripts. Contains former standalone Python `app.py`, `agent.py`, model equations in `models.py`, and study copies. `package-site.py` copies its `static/` subtree. The standalone Python server is outside current OpenPELS launch. [package-site.py:11](../../local-source/openpels/scripts/openpels/package-site.py#L11), [legacy app.py:50](../../local-source/openpels-analysis/app.py#L50), [legacy models.py:151](../../local-source/openpels-analysis/models.py#L151) |
33
+
34
+ ## Ownership by workflow
35
+
36
+ - **Gallery and handoff** live in the workbench shell and analysis/simulator adapters. Check `gallery.js` where catalog IDs are mapped to starter/preset IDs and `pe.js` where view transitions and eligibility are enforced. [gallery.js:4](../../static/gallery.js#L4), [pe.js:61](../../static/pe.js#L61)
37
+ - **Editing, project compatibility and design exports** belong to the native editor composition and its shared packages. A checked-in starter is a generated fixture. Its generator, emitted SPICE source, and browser loader are different stages. [generate-starters.mjs:131](../../local-source/openpels/scripts/openpels/generate-starters.mjs#L131), [generate-starters.mjs:445](../../local-source/openpels/scripts/openpels/generate-starters.mjs#L445), [pe.js:185](../../static/pe.js#L185)
38
+ - **Execution, artifacts, and retention** belong to the deployed Python job service, pinned engine, and testbench inputs. Code that regenerates the site or deploys the Space is distinct from the runtime. [simulator_service.py:172](../../simulator_service.py#L172), [simulator_service.py:214](../../simulator_service.py#L214), [archived guide:45](../../local-source/openpels/scripts/openpels/README.md#L45)
39
+ - **Local-only data** includes `.venv/`, `.openpels-runtime/`, and `local-source/`. Git LFS stores the large assets as pointers in Git and hydrated payloads in the working tree and cache. The source archive, WASM, testbench images, and several fonts are among them. [.gitignore:1](../../.gitignore#L1), [.gitattributes:31](../../.gitattributes#L31), [restore-local-assets.py:18](../../restore-local-assets.py#L18)
docs/architecture/simulation_workflow.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Simulation workflow
2
+
3
+ The integrated simulator runs one curated NGSpice preset at a time. Its starting schematic is the circuit encoded in a bundled testbench. The browser editor's current project and the analytical model are independent inputs to their own workflows. A structural SPICE or Spectre export from the editor is a separate artifact for an external testbench workflow. See [circuit data model](circuit_data_model.md).
4
+
5
+ ```mermaid
6
+ sequenceDiagram
7
+ actor U as User
8
+ participant H as Workbench shell
9
+ participant F as Simulator iframe
10
+ participant A as Python job API
11
+ participant N as Pinned engine and NGSpice
12
+ participant D as Local run files
13
+ U->>H: Select XFLY6S in Gallery and open Simulator
14
+ H->>F: Preset ID, ratio, Vout and Iout
15
+ U->>F: Run with numeric testbench controls
16
+ F->>A: POST simulation job
17
+ A-->>F: 202 and job ID
18
+ A->>N: Dispatch job and select bundled template
19
+ N->>D: Write executed deck, log and raw data
20
+ N->>D: Write metrics and waveform artifacts
21
+ F->>A: Poll job by ID
22
+ A-->>F: Settings, measurements and artifact URLs
23
+ F->>A: Fetch waveform PNG or download files
24
+ ```
25
+
26
+ ## XFLY6S from selection to executed deck
27
+
28
+ 1. **Select a preset.** Gallery maps analytical ID `xfly2p` to simulation ID `xfly6s`. `simulationAvailable()` requires a preset, 4:1 selection, output voltage 0.30–1.10 V and output current 0.1–40 A. `createSimulator()` health-checks the service, loads `/simulator/`, and sends `pe:select-topology`. The frame sets target voltage and current and initializes `Vin` as `ratio × Vout`; the simulation controls remain editable. With the shell defaults this handoff is 0.8 V, 2 A and 3.2 V input. [gallery.js:5](../../static/gallery.js#L5), [pe.js:27](../../static/pe.js#L27), [pe.js:61](../../static/pe.js#L61), [simulator.js:53](../../static/simulator.js#L53), [simulator_bridge.js:101](../../simulator_bridge.js#L101)
29
+ 2. **Submit numeric settings.** `/simulator/` serves HTML adapted from the pinned engine's original GUI. `simulator_html()` substitutes one preset selector, per-preset frequency, scoped images, opt-in sweep, and the async bridge. On Run, the form supplies voltage/current, inductance, flying capacitance, frequency, coupling, winding DCR, switch resistance and off-capacitance, gate drive and capacitance, stop time, and maximum step. `openpelsSimulationFetch()` wraps these as `{kind, payload}` in a POST to `/api/simulation/jobs`. It polls the job ID about every 500 ms, with a 15-second timeout per poll and a 30-minute overall polling window. [server.py:45](../../server.py#L45), [simulator_frame.py:4](../../simulator_frame.py#L4), [engine:967](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L967), [simulator_bridge.js:2](../../simulator_bridge.js#L2)
30
+ 3. **Validate and dispatch.** `WorkbenchHandler.do_POST()` caps the request body at 16 KiB and accepts only the job endpoint. `validate_request()` allows `run`, `sweep-case`, or `source`, allowlists fields, and checks finite numeric values and the topology/case selector. One worker executes jobs and at most three may be active or queued. The HTTP layer uses `202` on submission, `400` for invalid input, `413` for invalid body size, `429` for a full queue and `404` for a missing job ID. Job states are `queued`, `running`, `succeeded`, and `failed`. The bridge converts a failed job into a response the preserved GUI can render. [server.py:49](../../server.py#L49), [server.py:68](../../server.py#L68), [simulator_service.py:40](../../simulator_service.py#L40), [simulator_service.py:161](../../simulator_service.py#L161), [simulator_bridge.js:21](../../simulator_bridge.js#L21)
31
+ 4. **Generate the executed netlist.** `Simulator.__init__()` verifies the bundled Python engine against `simulator-source.json`, imports it, and points its template map at `static/testbenches/netlists/*_transient.cir`. `settings_from_payload()` clamps or defaults inputs and converts units. `settings_for_operating_point()` sets a resistive load `Rload = Vout_target / Iout_target`. `infer_topology_duty()` uses half the input voltage, average winding DCR, and a topology calibration factor to estimate duty, then clamps it to 0.12–0.78. This is a preset-specific open-loop calculation. `prepare_deck()` substitutes deck parameters, DCR, model resistance, `.tran`, measurement window and output paths and adds probes while retaining the template's circuit and gate expressions. [simulator_service.py:86](../../simulator_service.py#L86), [engine:1072](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1072), [engine:1123](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1123), [engine:1439](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1439)
32
+ 5. **Execute and measure.** `run_ngspice()` invokes `ngspice -b` with the generated deck as an argument, captures output in a log, and uses a 120-second subprocess timeout. `read_selected_ascii_raw()` reads the expected per-topology channels. `analyze_case()` computes winding and summed currents, capacitor differential voltages, output ripple, averages, phase imbalance, `Pin = −Vin × i(Vvin)`, and `Pout = Vout²/Rload`. Time averages integrate over the selected window, ordinarily at most the last 0.2 µs. Reported efficiency uses input power adjusted for estimated energy storage and a simplified gate-capacitance term. It is a modeled result from the deck and postprocessor. [engine:1167](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1167), [engine:1185](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1185), [engine:1232](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1232), [engine:1282](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1282)
33
+ 6. **Render and download.** `make_plot()` creates an Agg-rendered PNG with voltage and flying-capacitor transients, phase and summed winding currents, and a final-window capacitor zoom. The service adds a CSV with up to 4,000 rows sampled by index and removes raw and full time-series files after success. It returns the engine revision, executed settings, metrics, plot URL and artifact list. The browser renders an image and metrics table and offers the executed deck, log, sampled CSV, JSON and available PNG. Files are stored under `<work>/output/xfly_gui/<run_id>/`. Completed jobs are pruned on subsequent submissions when older than an hour measured from creation or when the retained count reaches 64. Job metadata is memory-only. [engine:1355](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1355), [simulator_service.py:113](../../simulator_service.py#L113), [simulator_service.py:184](../../simulator_service.py#L184), [simulator_service.py:214](../../simulator_service.py#L214), [simulator_bridge.js:38](../../simulator_bridge.js#L38)
34
+
35
+ ## Sweeps and original testbenches
36
+
37
+ | Path | Semantics | Evidence |
38
+ | --- | --- | --- |
39
+ | `kind: run` | One topology with `topologies: [id]`. Returns metrics and a waveform plot. | [simulator_service.py:50](../../simulator_service.py#L50), [engine:1480](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1480) |
40
+ | `kind: sweep-case` | One topology with `topology: id`. The browser submits 15 cases if enabled, using 0.65, 0.75, and 0.85 V at 20, 40, 60, 80, and 100% of base current. Each case copies base parameters except the operating point. The backend recomputes duty/load and returns a metric and artifacts. The browser assembles SVG efficiency curves. Up to three browser requests can be in flight while execution remains serial. | [engine:743](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L743), [engine:880](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L880), [engine:1515](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1515), [simulator_frame.py:40](../../simulator_frame.py#L40) |
41
+ | `kind: source` | A developer-facing job using an exact manifest `case_id`. `source_run()` checks the original deck checksum and changes output instrumentation and probe saves in the executed copy. Circuit, models, gating, initial conditions and transient command stay intact. The UI has no original-case selector. Legacy `#testbenches` opens Simulator. | [simulator_service.py:74](../../simulator_service.py#L74), [simulator_service.py:123](../../simulator_service.py#L123), [pe.js:389](../../static/pe.js#L389) |
42
+ | Standalone testbench runner | The manifest covers three variants per topology: startup (2 µs), long settling (20 µs), and DCR mismatch (20 µs). `run_testbench.py` verifies source bytes, prepares paths, runs NGSpice and requires finite measurements. With `--validate`, only waveform-file writes are suppressed in a temporary copy. | [testbench manifest:1](../../static/testbenches/index.json#L1), [run_testbench.py:21](../../static/testbenches/run_testbench.py#L21), [testbench README](../../static/testbenches/README.md) |
43
+
44
+ The original XFLY6S source deck and a parameterized XFLY6S run can give different results for the same nominal topology. The original fixes gate timing, devices and `.tran` settings in the source, while the parameterized path adjusts run settings and infers duty. To reproduce a result, record which path, deck, engine revision/version, settings, and measurement window were used. [source deck:103](../../static/testbenches/netlists/xfly6s_transient.cir#L103), [simulator_service.py:123](../../simulator_service.py#L123), [engine:1123](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1123)
45
+
46
+ ## Adding an engine such as Cadence Spectre
47
+
48
+ **Current evidence.** The native netlist code can print a structural Spectre dialect through `printSpectreNetlist()`. The archived upstream `SimulationEngine` type includes `ngspice` and `vacask`. Neither the OpenPELS `Simulator` job API nor its launcher exposes an engine selector, native VACASK execution, or a Spectre runner. Spectre syntax generation alone does not establish executable testbenches or compatible device libraries. [printers.ts:500](../../local-source/openpels/packages/netlist/src/printers.ts#L500), [profile-engine.ts:7](../../local-source/openpels/packages/simulation-service/src/profile-engine.ts#L7), [simulator_service.py:17](../../simulator_service.py#L17), [server.py:105](../../server.py#L105)
49
+
50
+ **Possible extension, not implemented.** A runner boundary could keep the existing job and result interfaces while making deck preparation, invocation, diagnostics and result parsing engine-specific. A Spectre implementation would need a licensed installation, approved local device models if applicable, dialect-appropriate gate sources and saves, and a supported method to read output into a common `time`, voltage, current and capacitor-signal representation. The present parser expects NGSpice ASCII raw data and topology-specific probe names, and the present deck uses NGSpice `.control` statements. An acceptance case could compare XFLY6S waveforms and metrics under equivalent model parameters and record engine versions, measurement windows, signal sign conventions and tolerances. A separate design decision is required to compile arbitrary edited schematics into testbenches, regardless of engine. [engine:62](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L62), [engine:1185](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L1185), [xfly6s_transient.cir:120](../../static/testbenches/netlists/xfly6s_transient.cir#L120)
docs/architecture/system_architecture.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # OpenPELS system architecture
2
+
3
+ OpenPELS is a single-origin web workbench with four views: Gallery, Analysis, Simulator, and Schematic. Three different artifacts can describe the same converter. The schematic editor owns an editable project, the analytical workspace uses a curated reference model, and the simulator runs a parameterized testbench. The workbench links these artifacts by reference identity and operating point. It does not translate the current editor project into a runnable deck. See [circuit data model](circuit_data_model.md) and [simulation workflow](simulation_workflow.md).
4
+
5
+ This analysis covers the local checkout inspected at `54c669e`, its packaged runtime, and the corresponding source in [`static/openpels-source.zip`](../../static/openpels-source.zip). Links under `local-source/` refer to the local extraction of that archive, whose two top-level directories are `openpels/` and `openpels-analysis/`. Those extracted files are ignored by Git. Test scope and uncertainties are recorded in the [assessment](architecture_assessment.md).
6
+
7
+ ```mermaid
8
+ flowchart LR
9
+ B[Chrome]
10
+ H[OpenPELS workbench shell]
11
+ E[Analog Canvas editor iframe]
12
+ A[Analysis iframe]
13
+ S[Simulator iframe]
14
+ L[(Browser local storage)]
15
+ P[Python HTTP server]
16
+ Q[Simulation job worker]
17
+ N[NGSpice subprocess]
18
+ D[(Local run directory)]
19
+ V[Optional Hugging Face inference router]
20
+ B -->|HTTP| P
21
+ P -->|Serves static files| H
22
+ H <-->|Project snapshots| E
23
+ H <-->|Reference and operating point| A
24
+ H <-->|Preset and operating point| S
25
+ H <-->|Saved project| L
26
+ A -->|Optional image and user token| V
27
+ S <-->|Job API and artifact HTTP| P
28
+ P --> Q
29
+ Q --> N
30
+ N -->|Logs and raw samples| D
31
+ Q -->|Metrics and exports| D
32
+ D --> P
33
+ ```
34
+
35
+ ## Components and entry points
36
+
37
+ | Layer | Implementation and entry point | Responsibilities |
38
+ | --- | --- | --- |
39
+ | Workbench and gallery | HTML, CSS, and browser ES modules. [`static/index.html:42`](../../static/index.html#L42) defines the gallery, [`:137`](../../static/index.html#L137) and [`:209`](../../static/index.html#L209) define the frames, and [`:243`](../../static/index.html#L243) loads `pe.js`. | `createGallery()` derives card eligibility from the analytical library. `chooseTopology()` and `showView()` coordinate selection, view visibility, and operating-point handoff. [gallery.js:33](../../static/gallery.js#L33), [gallery.js:107](../../static/gallery.js#L107), [pe.js:100](../../static/pe.js#L100), [pe.js:200](../../static/pe.js#L200) |
40
+ | Native schematic editor | React 19, TypeScript, and Vite. [`static/pe-editor.html:7`](../../static/pe-editor.html#L7) loads the compiled bundle. The source entry is `PowerEditor` in [`openpels/apps/editor/src/pe/editor.tsx:26`](../../local-source/openpels/apps/editor/src/pe/editor.tsx#L26). | An adapted Analog Canvas desktop-style composition. It hosts editing, connectivity, hierarchy, undo, import, and export. It parses and publishes canonical projects through the browser bridge. |
41
+ | Analytical reference | Static HTML and JavaScript under `static/compare/`. [`index.html:13`](../../static/compare/index.html#L13) loads the engine, technology, recommendation, scoreboard, and UI scripts. | Computes curated numerical loss and sizing estimates in the browser. Loads `models-data.json`. `OpenPELSEngine.api()` dispatches route-shaped calls in JavaScript. [engine.js:5](../../static/compare/engine.js#L5), [engine.js:20](../../static/compare/engine.js#L20), [engine.js:32](../../static/compare/engine.js#L32) |
42
+ | HTTP backend | Python standard library `ThreadingHTTPServer` and `SimpleHTTPRequestHandler`. `main()` starts `create_server()` and a `Simulator`. [server.py:20](../../server.py#L20), [server.py:86](../../server.py#L86), [server.py:105](../../server.py#L105) | Serves the static workbench, renders adapter HTML for the simulator, accepts simulation jobs, serves results and artifacts. There is no application database or project persistence endpoint in this runtime. |
43
+ | Simulator | `Simulator` dynamically imports the bundled, checksum-pinned XFLY Python engine. The engine runs NGSpice in batch mode and uses NumPy and Matplotlib (Agg) for results. [simulator_service.py:85](../../simulator_service.py#L85), [pinned engine:27](../../simulator/library/ngspice/studies/xfly6s_xfly8s_c3l_scaled_comparison/gui/xfly_compare_gui.py#L27) | Uses a single worker, local files, and per-topology deck and signal definitions. `simulator_html()` adapts the legacy UI and `openpelsSimulationFetch()` bridges it to the async API. [simulator_frame.py:4](../../simulator_frame.py#L4), [simulator_bridge.js:2](../../simulator_bridge.js#L2) |
44
+ | Optional vision | `inspect()` in `static/compare/engine.js` calls a hosted multimodal model directly from the browser using a user-supplied inference token. [engine.js:18](../../static/compare/engine.js#L18), [models-data.json:216](../../static/compare/models-data.json#L216) | Produces a proposed interpretation for review. The deployed Python server has no inference proxy, agent endpoint, or model runtime. See [AI integration](ai_integration.md). |
45
+
46
+ ### Runtime and deployment
47
+
48
+ - [`run-local.sh:14`](../../run-local.sh#L14) binds to `127.0.0.1`, defaults to port `8765`, points explicitly at `static/` and the vendored engine, and uses `.openpels-runtime/` by default. [`Dockerfile:1`](../../Dockerfile#L1) instead uses Python 3.12 on Debian slim, installs NGSpice, sets explicit paths, and binds the unprivileged container process to `0.0.0.0:7860`. [`server.py:95`](../../server.py#L95) has fallback paths suited to the archived source layout. Launching bare `server.py` from this packaged checkout without path overrides can resolve the wrong paths.
49
+ - Runtime Python requirements are Matplotlib `>=3.10,<4`, NumPy `>=2,<3`, and Pillow `>=11,<13`. A normal launch serves already-built assets. Rebuilding requires the archive's Node `>=24` and pnpm `11.16.0` toolchain, Vite, TypeScript, React, and the locked workspace packages. The editor uses Zod schemas and ships browser assets including fonts and WebAssembly for netlist and text tooling. [requirements-simulator.txt:1](../../requirements-simulator.txt#L1), [archive package.json:6](../../local-source/openpels/package.json#L6), [editor package.json:10](../../local-source/openpels/apps/editor/package.json#L10)
50
+ - User projects stay in browser storage or user-downloaded files. Simulation jobs live in a process-local dictionary and job outputs in the configured work directory. Browser fonts can request Google Fonts, and the separate Office material references Office.js. Neither is a backend storage or database dependency. [pe.js:126](../../static/pe.js#L126), [simulator_service.py:110](../../simulator_service.py#L110), [pe.css:1](../../static/pe.css#L1), [office/taskpane.html:7](../../static/office/taskpane.html#L7)
51
+
52
+ ### Runtime interfaces
53
+
54
+ | Interface | Data crossing the boundary | Implementation |
55
+ | --- | --- | --- |
56
+ | Editor ↔ shell | Same-origin `pe:hello`, `pe:ready`, `pe:load`, `pe:snapshot`, and `pe:error`. `pe:load` carries project JSON and a request ID. A snapshot carries canonical JSON, signature, and matching request ID. | [pe.js:150](../../static/pe.js#L150), [pe.js:239](../../static/pe.js#L239), [editor.tsx:32](../../local-source/openpels/apps/editor/src/pe/editor.tsx#L32) |
57
+ | Analysis ↔ shell | `pe:topology` sends catalog ID, ratio, `vout`, and `iout`. Analysis returns its ready and operating-point messages. | [analysis.js:2](../../static/analysis.js#L2), [compare/app.js:140](../../static/compare/app.js#L140) |
58
+ | Simulator ↔ shell | `pe:select-topology` carries preset ID, ratio, `vout`, and `iout`. The frame reports readiness, busy state, acknowledgment, and edited operating point. | [simulator.js:10](../../static/simulator.js#L10), [simulator_bridge.js:82](../../simulator_bridge.js#L82) |
59
+ | Simulator ↔ Python | `GET /healthz`, `GET /simulator/`, `GET /simulator/bridge.js`, `POST /api/simulation/jobs`, and `GET /api/simulation/jobs/{id}`. Artifacts and drawings are under `/simulator/runs/` and `/simulator/assets/`. Static GETs fall through to the site directory. | [server.py:40](../../server.py#L40), [server.py:68](../../server.py#L68) |
60
+
61
+ The editor never sends circuit JSON to the Python service in the integrated flow. The only bridge from schematic context to reference analysis is the shell's recognition of a matching starter signature and the user-facing reference action. The simulation endpoint receives topology and numeric settings, independent of the editor and of the analytical loss coefficients. [pe.js:235](../../static/pe.js#L235), [pe.js:287](../../static/pe.js#L287), [simulator_service.py:40](../../simulator_service.py#L40)
docs/topology/2to1_buck_stacked/README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 2:1 Buck_Stacked development and validation report
2
+
3
+ | Record item | Value |
4
+ | --- | --- |
5
+ | Scope | Right-hand eight-MOSFET circuit, Analog Canvas `dut` r266, cloud r21, structure r59 |
6
+ | Review | [User-approved Circuit Definition](approval.md), with equal device blocking and half-input effective gate swing |
7
+ | Local model, starter, Simulator IDs | `buck_stacked`, nominal 2:1 |
8
+ | Base and references | `openpels-dev` at `8d4868c`; `validated-2to1-v1.0` for SI2, SP2 and RSC2; `local-baseline-v1.0` for original 4:1 behavior |
9
+ | Claim | Ideal equal-sharing, symmetric two-phase, positive-current CCM, constant-current output load, independent average and transient validation |
10
+ | Validation tools | NGSpice 47, Python/NumPy periodic RK4 on the independently assembled switched circuit, JavaScript first-order calculation |
11
+
12
+ ## Circuit, equations and implementation
13
+
14
+ The [Circuit Definition](circuit_definition.md) and [visual review packet](review/README.md) map the device labels to the source pins, states, current paths and dot polarity. The original drawing, connectivity and project hashes are preserved. The [analytical derivation](analytical_model.md) applies signed KCL, KVL, charge balance and winding volt-seconds. It separates output voltage droop from RMS conduction and switching-event power. The ideal gain is D. The loaded-voltage command solves the mean volt-second law for duty and screens positive winding-current CCM.
15
+
16
+ The independent [numerical fixture](numerical.py) builds a branch-incidence state law from the eight reviewed channel positions, winding matrix, output KCL and individual ohmic/charge laws. It uses the shared fixed-step periodic shooting, Simpson sampling and conservation framework. The [NGSpice deck](../../../buck_stacked/stacked-buck.cir) contains all eight channels with separate measured drain-to-source stresses, an inverse-coupled winding pair, DCR, finite Cout with ESR, and a free-running output. Identical ideal off resistances give equal sharing within each blocked pair. The measured plateau stress can differ slightly from Vin/2 due to the active pair's ohmic drop. Switching energy uses nominal Vin/2 exactly. The numerical solution and NGSpice do not evaluate the first-order ripple or sizing formula to obtain steady-state waveforms.
17
+
18
+ The ideal switching model puts the two series devices into the appropriate branch state together. Effective gate loss assumes one equivalent charge/discharge per device at Vin/2. Coss uses the stored half-input hard-discharge energy. The numerical event calculation integrates capacitor charge, and NGSpice measures gate-rail energy and Coss release heat with separate RC fixtures. Charging-path energy, commutation waveforms, practical voltage-balancing mechanisms and dynamic sharing mismatch are outside this comparison. Model power includes only the explicit event terms. It makes no hardware startup, PDK transistor, core, dead-time, recovery or control-loop performance claim.
19
+
20
+ Sizing uses the per-device RMS weights under a shared width or area budget. The independent [sizing check](verify_sizing.cjs) verifies the constrained result against a grid of total areas and high/low allocations. In the illustrative technology example, the effective linear gate capacitance density is Qg(3.3 V)/3.3 V, with Qg = 2.51 pC/mm. The default Coss density is 0.4 pF/mm. The Simulator defaults can also be entered as standalone effective capacitances per MOSFET. Neither set constitutes a characterized library.
21
+
22
+ ## Results and ranges
23
+
24
+ The three methods used identical design inputs within each of 15 matches. The seven-point duty sweep held the nominal circuit and load fixed from D = 0.25 through 0.75. Additional cases exercised unequal high/low Ron, simultaneous changes, zero coupling, zero event capacitances, a loaded target, a lower-loss corner, and two independent zero-energy starts. The [tolerances and error definitions](analytical_model.md#qualification-criteria-set-before-comparisons) were fixed before comparing results. Pairwise checks passed.
25
+
26
+ At 3 V, 1 A, 2 MHz and D = 0.5, the ideal output is 1.5 V. The analytical and numerical loaded output is 1.486 V. The NGSpice output was 1.486 V, with 12.220 mW channel loss, 2.037 mW winding DCR loss, near-zero symmetric output ESR loss, 0.899 mW measured gate energy and 0.180 mW measured Coss discharge energy. Modeled efficiency including both event terms was 98.979%. Phase ripple was approximately 0.234 A peak-to-peak. At a commanded 1.5 V loaded target, the solver increases duty above 0.5 and the NGSpice output follows without a clamp.
27
+
28
+ | Largest difference | Analytic vs. numerical | Analytic vs. NGSpice | Numerical vs. NGSpice |
29
+ | --- | ---: | ---: | ---: |
30
+ | Mean output | 2.36 µV | 29.75 µV | 29.75 µV |
31
+ | Phase current peak-to-peak | 2.20 mA | 2.19 mA | 0.02 mA |
32
+ | Channel loss | 1.34 µW | 3.24 µW | 3.17 µW |
33
+ | Gate energy per second | 0 µW | 7.39 µW | 7.39 µW |
34
+ | Coss energy per second | 0 µW | 0.56 µW | 0.56 µW |
35
+
36
+ [Duty and conduction comparison plots](evidence/duty-comparison.svg) · [Gate and Coss comparison plots](evidence/event-comparison.svg) · [Matched results](evidence/matched-results.json) · [Executed decks, logs, measurements and nominal waveform](evidence/executed-decks.zip)
37
+
38
+ The continuous [Simulator input contract](../../../buck_stacked/preset_contract.json) accepts Vin 2.5–3.8 V, load 0.6–2 A, frequency 1–4 MHz, duty 0.25–0.75, L 750–2000 nH, inverse coupling magnitude 0–0.75, per-winding DCR 2–25 mΩ, per-device Ron 5–25 mΩ, Cout 20–60 µF, ESR 1–12 mΩ, effective gate capacitance 0–100 pF, and Coss 0–30 pF. Duration and maximum step are independently configurable. The joint domain further requires positive phase current, reachable loaded output, acceptable numerical work, periodicity and convergence. The input intervals do not qualify all combinations. The 4 MHz low-loss witness needed a shorter explicit 35 µs run because the conservative automatic settling estimate exceeded the shared work limit. It passed the normal whole-window and step-refinement checks.
39
+
40
+ ## Integration and regression
41
+
42
+ The workbench exposes a separate model ID alongside the historical `buck` comparator. The fixed 4:1 sizing reference remains available. The editable OpenPELS copy preserves source positions and device names and adds four input ports, an output port and the approved coupling element. The original Canvas file remains untouched. The starter's structural export uses the source's PDK binding. It is separate from the ideal executable validation bench.
43
+
44
+ The [feature parity record](parity.md) links the same-origin Chrome/NGSpice workflows and the tagged 4:1 comparison. All 16 applicable Simulator sweep axes passed with two executed points each. Chrome verified the normal same-tab transition from the previous build and the fresh context. Tag and live XFLY6S, XFLY8S, and C3L measurements matched, including the XFLY6S 15-point sweep and original Analysis exports. SI2, SP2, and RSC2 browser workflows passed. Their 80 matched bench cases and six zero-state replays passed the existing gates. All 45 packaged Analysis tests and the corresponding-source packaging replay passed. Use the [qualification record](qualification.md) for the current disposition of each stage. The [Minjie log](../minjie_confirmation_list.md) and [architecture discussion](../architecture_discussion.md) record the boundary between the historical comparison and the new physical model. The [regression registry](../regression_test_registry.md) lists permanent replays.
45
+
46
+ ## Stage 9–11 audit closure
47
+
48
+ Chrome ran the untouched 10 pF default through the Simulator selector. NGSpice delivered 1.486 V at 98.979% modeled efficiency. The same test exercised the Analysis handoff at positive, blank and explicit-zero Coss. Blank Coss transfers as null. Its fixture is omitted, its result is null, and the efficiency is labeled as excluding unknown Coss. Explicit zero reports a modeled zero, with a zero-power waveform column. Positive Coss matches the analytical event estimate within the established tolerance. A request that omits the field uses the documented default. [Chrome receipt](evidence/coss-browser.json)
49
+
50
+ The known-input electrical decks were unchanged. All 30 archived coarse and refined decks reproduce byte for byte. The prior signed KCL/KVL, independent numerical and three-way results remain the Stage 1–8 qualification evidence. The [closure checklist](parity.md#closure-checklist-for-stages-9-through-11) and [regression receipts](evidence/coss-regressions.json) cover the final browser, baseline and package checks. The [Minjie architecture issue](../architecture_discussion.md) records the relationship to gate-drive input defaults and missing-parameter handling.
51
+
52
+ ## Replay
53
+
54
+ From the repository root, generate the candidate data under the ignored runtime directory and run the analytical sizing check.
55
+
56
+ ```sh
57
+ .venv/bin/python docs/topology/2to1_buck_stacked/validate.py .openpels-runtime/buck-stacked-validation
58
+ node docs/topology/2to1_buck_stacked/verify_sizing.cjs
59
+ ```
60
+
61
+ The shipped editable starter is included in the corresponding-source archive. Maintainers with the original local Canvas snapshot can use the starter generation script with that snapshot.
62
+
63
+ Run `verify_browser.mjs`, `verify_coss_browser.mjs` and `verify_sweeps.mjs` with Chrome and OpenPELS at port 8765. The [evidence manifest](evidence/SHA256SUMS) binds the curated results.
docs/topology/2to1_buck_stacked/analytical_model.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Analytical model and matched test scope
2
+
3
+ The [approved circuit](approval.md) uses two series channels per high or low path. This model covers matched phases and positive-current CCM with a constant-current load, identical winding self inductance L, inverse coupling magnitude k, a finite output capacitor in the validation circuits, and zero dead time. Switching energy is a separate hard-switching event ledger. Refer each resistance to the actual modeled device and each capacitance to one device.
4
+
5
+ ## State equations and first-order solution
6
+
7
+ Let a and b be the approved binary high-stack commands. Positive phase current goes from the switch node toward VOUT. In state (a,b), each selected pair carries the phase current, drain to source in a high stack and source to drain in a low stack. The blocked pair carries zero ideal plateau current. Each pair has two series resistances. Denote their sums by R_H and R_L.
8
+
9
+ 1. Output KCL gives i_C = i_A + i_B − I_o. With C_o and R_ESR, v_o = v_C + R_ESR i_C and dv_C/dt = i_C/C_o.
10
+ 2. Phase A KVL gives L di_A/dt − kL di_B/dt = a V_in − v_o − (R_DCR + R_a) i_A. Phase B gives L di_B/dt − kL di_A/dt = b V_in − v_o − (R_DCR + R_b) i_B. R_a is R_H when a=1 and R_L when a=0.
11
+ 3. In the lossless ripple approximation, periodic volt-seconds give V_o = D V_in. Periodic output-capacitor charge and half-period phase symmetry give each phase mean I_o/2. Invert the two winding equations. Per normalized period, the phase A slope is V_in/[(1−k²) L f_s] times [(a−D) + k(b−D)]. Integrate over the approved gate edges and subtract the cycle mean of the accumulated zero-offset ramp before adding I_o/2. Phase B is phase A shifted by half a period.
12
+ 4. For a linear segment from x to y, the mean current is (x+y)/2 and the mean square is (x²+xy+y²)/3. Sum each with its interval fraction. Let J_H,J_L be the resulting per-phase second moments in the high/low intervals in A². Let Q_H,Q_L be the interval-weighted current means in A. Q_H+Q_L=I_o/2. Compute the capacitor second moment from i_A+i_B−I_o on the same segments.
13
+ 5. The first-order loaded mean is D V_in − R_DCR I_o/2 − R_H Q_H − R_L Q_L. This is distinct from the power-equivalent resistance. Invert this loaded-voltage prediction within the admissible positive-CCM duty region for a VOUT target. This is an open-loop operating-point estimate. It characterizes duty authority, with no controller dynamics or hardware regulation claim.
14
+
15
+ The first-order ripple uses the *lossless* winding voltage and a stiff mean output. The independently integrated numerical and NGSpice circuits retain resistive drops, finite C_o and ESR. Validate approximation error on the declared points. For equal stack resistances the loaded-voltage formula is exact within the ideal switch model by average KVL and charge balance.
16
+
17
+ Each high-command interval is symmetric around its own pulse center, and the half-period-shifted command is also even about that center. The lossless current excursion about its interval mean is then odd. The high and low mean currents are both I_o/2, giving Q_H = D I_o/2 and Q_L = (1−D) I_o/2. The fixed-device incremental duty gain is V_in − (I_o/2)(R_H−R_L), positive throughout the admitted parameter bounds. Compensating load-induced droop therefore raises duty at a fixed voltage target. With the nominal 3 V rail, 1 A load and equal 24 mΩ stacks, the first-order loaded range over D=0.25–0.75 is 0.736–2.236 V. A 1.500 V command requires D=0.504667. The periodic solver and switched bench verify that point independently. The first-order implementation shares the coupled-winding integration kernel with SI2 after deriving the current-carrying stacks from the approved graph.
18
+
19
+ ## Loss, drive and area
20
+
21
+ | Term | Model and boundary |
22
+ | --- | --- |
23
+ | Channel | 2(R_H J_H+R_L J_L), from two identical phases. Each MOSFET contributes its own resistance times its stack moment. |
24
+ | Winding DCR | 2 R_DCR (J_H+J_L). |
25
+ | Output ESR | R_ESR times mean square capacitor current from output KCL. |
26
+ | Effective gate supply | One equivalent full gate charge/discharge per MOSFET per period. Per device E_g = C_g (V_in/2)² = Q_g(V_in/2) × V_in/2, where Q_g(V) is the effective charge for the stated swing. The drive assumption is a port-energy model, including the effective swing of the biased devices. It does not characterize their practical bias supply. |
27
+ | Coss event | The approved equal-sharing rule sets each blocked device to V_in/2. Per device the hard turn-on discharges E_oss = ½ C_oss (V_in/2)² for constant effective C_oss, once per period. Use the dissipated stored-energy component once. Output-capacitor ripple and gate supply are separate. Charging-path redistribution, nonlinear energy recovery, and voltage-sharing dynamics are outside this event model. |
28
+ | Total efficiency | I_o V_o/[I_o V_o + P_channel + P_DCR + P_ESR + P_Coss + P_gate]. Switching-event power is a separate boundary and does not adjust the channel-only volt-second droop. |
29
+
30
+ At fixed total transistor area A_T, set R_i = ρ/A_i, C_g,i = c_g A_i, C_oss,i = c_oss A_i. All eight devices have one event and the same specified swing/stress. The two event totals therefore depend on A_T and not on its partition. Minimizing ∑ ρ J_i/A_i gives A_i/A_T = √J_i/∑√J_i with equality at the stationary solution by Cauchy–Schwarz. There are four high devices with J_H and four low devices with J_L. Under an area **ceiling** and allowance to vary total area, the loss has form α/A_T + β A_T + passive loss, where α=ρ(∑√J_i)² and β=f_s(V_in/2)²(c_g+c_oss/2). The unconstrained optimum is √(α/β). Use the budget ceiling if β=0, and otherwise clamp to the allowed area range. Absolute technology numbers are illustrative unless accompanied by device characterization.
31
+
32
+ ## Qualification criteria set before comparisons
33
+
34
+ Use matched abstract positive-current CCM switching and the approved bias and stress. Compare output mean (2 mV absolute), phase ripple (5% with a 5 mA floor) and each passive/channel loss (5% with a 30 µW floor) for the first-order approximation against both switched solutions. Use 0.5 mV for the numerical/NGSpice mean, 1% plus a 10 µW floor for channel/passive total, and 1% plus a 1 µW floor for individual event terms. Check output-capacitor charge mean below 0.3 mA, winding voltage mean below 1 mV, measured cycle-to-cycle output drift below 0.3 mV and electrical energy closure below max(30 µW, 1% of electrical-stage loss). Reject nonpositive winding current or unqualified numerical resource/operating limits. Interpret these gates as model checks, independent of hardware stress certification.
docs/topology/2to1_buck_stacked/approval.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Circuit Definition approval
2
+
3
+ The user explicitly approved Analog Canvas `dut` revision 266 (cloud revision 21, structure revision 59) in this OpenPELS chat on 2026-11-29 New York time. They manually reviewed and confirmed the [switching states and timing](review/README.md). The [source provenance](source/README.md) identifies the original local snapshot. The [published review artifacts](review/SHA256SUMS) cover the same right-hand circuit.
4
+
5
+ > I approve the Circuit Definition of `2:1 Buck_Stacked`, Analog Canvas dut revision 266. The switching states and timing diagrams have been manually reviewed and confirmed to be correct.
6
+
7
+ - The two MOSFETs in each blocked stack are assumed to share equally. Each has nominal blocking voltage Vin/2.
8
+ - The effective gate-to-source swing is Vdrive = Vin/2. Apply both assumptions in the analytical and periodic numerical models, NGSpice, and transistor sizing.
9
+ - Practical voltage-balancing mechanisms and dynamic sharing mismatch are outside the qualification scope. The fixed-drop idealization applies to drain-to-source blocking. The original Canvas artifact retains the reviewed geometry, labels and connections.
docs/topology/2to1_buck_stacked/build_starter.mjs ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import assert from 'node:assert/strict';
2
+ import {readFileSync, writeFileSync} from 'node:fs';
3
+ import {resolve} from 'node:path';
4
+ import {pathToFileURL} from 'node:url';
5
+
6
+ const packageFile = name => pathToFileURL(resolve('local-source/openpels/packages',name,'dist/index.js')).href;
7
+ const {parseProject,serializeCompactProject} = await import(packageFile('project-protocol'));
8
+ const {createDesignNetlistExport} = await import(packageFile('netlist'));
9
+ const raw = JSON.parse(readFileSync(process.argv[2],'utf8'));
10
+ assert.equal(raw.schemaVersion,87);
11
+ assert.equal(raw.documents[0].revision,266);
12
+ // The bundled editor uses schema 86. This source has no schema-87-only
13
+ // object in the right-hand cell; assert the compiled graph after migration.
14
+ raw.schemaVersion=86;
15
+ const project=parseProject(JSON.stringify(raw));
16
+ const [top]=project.documents;
17
+ assert.equal(project.documents.length,1);
18
+ top.instances=top.instances.filter(i=>i.placement.position.x>760);
19
+ const ids=new Set(top.instances.map(i=>i.id));
20
+ top.netlist.terminals=top.netlist.terminals.filter(t=>t.interfaceInstanceIds.some(id=>ids.has(id)));
21
+ top.junctions=top.junctions.filter(j=>j.position.x>760);
22
+ const junctions=new Set(top.junctions.map(j=>j.id));
23
+ const right=e=>e.kind==='terminal'?ids.has(e.instanceId):e.kind==='junction'?junctions.has(e.junctionId):(e.position??e.point)?.x>760;
24
+ for(const net of top.nets) net.terminals=net.terminals.filter(t=>ids.has(t.instanceId));
25
+ top.nets=top.nets.filter(n=>n.terminals.length);
26
+ const nets=new Set(top.nets.map(n=>n.id));
27
+ top.routes=top.routes.filter(r=>nets.has(r.netId)&&right(r.start));
28
+ top.connectivityEvidence=top.connectivityEvidence.filter(e=>nets.has(e.netId)&&
29
+ (!e.owner?.objectId||ids.has(e.owner.objectId)));
30
+ top.annotations=top.annotations.filter(o=>o.anchor.kind==='object'?ids.has(o.anchor.objectId):o.anchor.position.x>760);
31
+ top.drafting.objects=top.drafting.objects.filter(o=>o.anchor.position.x>760);
32
+ const device=ref=>top.instances.find(i=>i.reference===ref);
33
+ const netAt=(instance,pinName)=>top.nets.find(n=>n.terminals.some(t=>t.instanceId===instance.id&&t.pinName===pinName));
34
+ top.mosBulkDefaults={nmosNetId:netAt(device('M13'),'B').id,
35
+ pmosNetId:top.netlist.terminals.find(t=>t.name==='VIN').netId};
36
+ const connect=(name,destination,position,rotation,net,direction)=>{
37
+ const id='stack-port-'+name, pin={instanceId:id,pinName:'P'};
38
+ top.instances.push({id,symbolId:'port',placement:{position,rotation,mirror:'none'}});
39
+ top.netlist.terminals.push({id:'stack-terminal-'+name,netId:net.id,name,direction,interfaceInstanceIds:[id]});
40
+ net.terminals.push(pin);
41
+ top.routes.push({id:'stack-route-'+name,netId:net.id,start:{kind:'terminal',...pin},
42
+ legs:[{id:'stack-end-'+name,mode:'manual',to:{kind:'endpoint',endpoint:destination}}]});
43
+ };
44
+ for(const [reference,name,x,y] of [['M15','A',840,200],['M16','B',1010,200],
45
+ ['M9','ABAR',810,430],['M10','BBAR',970,430]]) {
46
+ const mos=device(reference);
47
+ const gate={kind:'terminal',instanceId:mos.id,pinName:'G'};
48
+ assert.equal(netAt(mos,'G'),undefined);
49
+ const net={id:'stack-gate-'+name,terminals:[{instanceId:mos.id,pinName:'G'}]};
50
+ top.nets.push(net);
51
+ connect(name,gate,{x,y},0,net,'input');
52
+ }
53
+ const bias=top.netlist.terminals.find(t=>t.id==='terminal-p1_13');
54
+ bias.name='VBIAS';
55
+ delete bias.signal;
56
+ const out=netAt(device('C1'),'1');
57
+ const junction=top.junctions.find(j=>j.position.x===1300&&j.position.y===270)
58
+ ??top.junctions.find(j=>j.position.x===1260&&j.position.y===270);
59
+ assert.ok(junction);
60
+ connect('VOUT',{kind:'junction',junctionId:junction.id},{x:1360,y:270},180,out,'output');
61
+ top.inductorCouplings=[{id:'stack-coupling',name:'K34',k:'.6',
62
+ members:['L3','L4'].map(ref=>({instanceId:device(ref).id,dotPin:'1'}))}];
63
+ // The native electrical object supplies dots and coupling lines on the copy.
64
+ top.drafting.objects=top.drafting.objects.filter(o=>!/^(circle-[78]|construction-9)/.test(o.id));
65
+ for(const [ref,value] of Object.entries({L3:'1u',L4:'1u',R1:'4m',R2:'4m',C1:'47u'}))
66
+ device(ref).netlist.parameters.value=value;
67
+ for(const ref of ['V1','V2']) device(ref).netlist.parameters.dc='1.5';
68
+ device('ILOAD').netlist.parameters.dc='1';
69
+ const saved=serializeCompactProject(project);
70
+ const reloaded=parseProject(saved);
71
+ const exported=createDesignNetlistExport(reloaded);
72
+ assert.equal(exported.status,'ready',JSON.stringify(exported.diagnostics.filter(x=>x.severity==='error')));
73
+ assert.equal(reloaded.documents[0].instances.filter(x=>x.symbolId==='nmos').length,8);
74
+ assert.match(exported.file.text,/K34 L3 L4 \.6/i);
75
+ assert.deepEqual(exported,createDesignNetlistExport(parseProject(serializeCompactProject(reloaded))));
76
+ writeFileSync('static/starters/buck_stacked.icproj.json',saved);
77
+ writeFileSync('static/starters/buck_stacked.sp',exported.file.text);
78
+ console.log('Eight-switch starter and native SPICE roundtrip verified.');
docs/topology/2to1_buck_stacked/circuit_definition.md ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Circuit Definition Review — 2:1 Buck_Stacked
2
+
3
+ **Approved.** The [approval record](approval.md) confirms the right-hand stacked buck and its timing, and adds the equal-sharing and half-input drive assumptions for qualification. This document retains the original review evidence.
4
+
5
+ [Visual review packet](review/README.md) · Original right-hand crop, eight-device gate and stress tables, switching-state overlays, PWM timing and winding polarity.
6
+
7
+ ## Source and review scope
8
+
9
+ | Record | Value |
10
+ | --- | --- |
11
+ | Analog Canvas | [Project 2:1 Buck_Stacked](https://analog-canvas.tokenzhang.com), cloud ID `4727dbf5-ce00-4d5f-a0d0-720ae7fc9cbd`, cloud revision 21 |
12
+ | Reviewed cell | `dut`, document `document-89c0d0f5-5984-4afc-89fb-10f008c79a68`, cell revision 266, structure revision 59, schema 87 |
13
+ | Capture | 2026-11-29 New York time, read-only MCP inspection and exports from the paired Editor. The active project was clean. No saved switching-state cells or simulation folders were present. |
14
+ | Provenance | Fangyu Mao confirmed authorship and authorized public release of the right-hand circuit and derivatives under AGPL-3.0-only. [Release scope](source/README.md). |
15
+ | Implementation base | `openpels-dev` at `8d4868c`, with SI2, SP2 and RSC2 pinned at `validated-2to1-v1.0`. XFLY6S at `local-baseline-v1.0` is the workflow reference. |
16
+ | Provisional identity | 2:1 nominal. Existing Analysis catalog `buck` is the stacked synchronous buck reference. Use `buck_stacked` as the qualification/starter/Simulator working ID. Confirm how to qualify the legacy entry while preserving its historical fixed-4:1 sizing behavior before registration. |
17
+
18
+ [Right-hand SVG](review/original-right.svg) · [Editable release starter](../../../static/starters/buck_stacked.icproj.json) · [Right-hand structural SPICE transcription](source/buck-stacked-right.structural.sp) · [SHA-256 manifest](source/SHA256SUMS)
19
+
20
+ The reviewed right-hand circuit has floating DC sources `V1` and `V2` and uses three external rail connections for `VIN`, ground, and `Vin/2` gate bias. The complete original export remains in the local qualification milestone.
21
+
22
+ ## Right-hand circuit and signed paths
23
+
24
+ | Phase | Upper series stack from `VIN` to switch node | Lower series stack from switch node to ground | Output branch, positive current toward `VOUT` |
25
+ | --- | --- | --- | --- |
26
+ | A | `M13 (Q1a)` → `hi_a` → `M15 (Q1b)` → `sw_a` | `sw_a` → `M11 (Q2a)` → `lo_a` → `M9 (Q2b)` → 0 | `sw_a` → L3 pin 1 (dot) → pin 2 → R1 → `VOUT` |
27
+ | B | `M14 (Q3a)` → `hi_b` → `M16 (Q3b)` → `sw_b` | `sw_b` → `M12 (Q4a)` → `lo_b` → `M10 (Q4b)` → 0 | `sw_b` → L4 pin 2 → pin 1 (dot) → R2 → `VOUT` |
28
+
29
+ All eight bulk pins resolve to ground. The output has `C1` (displayed as `COUT`) and `ILOAD` (displayed as `IOUT`) from output to ground. Positive capacitor current enters `C1.1`. Positive load current leaves the output through `ILOAD`, and `i_C1 = i_A + i_B − i_load` with the sign convention above. Winding voltage is positive from the switch node toward the series resistor. If the drawn dots denote magnetic coupling, positive phase A current enters its dot and positive phase B current leaves its dot, which gives inverse coupling in the two phase-current references. The dots are drafting objects. The source project has no electrical coupling element or coefficient. Review assumption: the dots denote an intended inverse-coupled pair. The coupling coefficient and winding self-inductance remain parameters for later qualification. This choice leaves the source drawing unchanged.
30
+
31
+ | Gate | Drawn drive or proposed external command |
32
+ | --- | --- |
33
+ | `M13.G`, `M14.G` | `V1+`, `V2+`, respectively. Source negatives are at `sw_a`, `sw_b`, so each gate rides its switch node by the floating source voltage. The symbols are annotated `VIN/2`; their saved DC value is 1 V. Review assumption: use a floating bias of `VIN/2` as annotated. The bias polarity follows the drawn source terminals. |
34
+ | `M11.G`, `M12.G` | Shared externally supplied `Vin/2` port, referenced to ground. |
35
+ | `M15.G`, `M16.G` | Proposed active-high `A` and `B`, based on the unbound drawing labels. Use source-referenced high-side drive with respect to `sw_a`/`sw_b` for the commanded gates. |
36
+ | `M9.G`, `M10.G` | Proposed active-high complementary commands `Ā` and `B̄`, grounded-source reference. The drawing uses overbars. Complementary commands exclude the dead-time blanks. |
37
+
38
+ The upper and lower inner MOSFETs receive the PWM commands. Their series partners receive voltage biases that can support stacked-switch operation when the level shifts and devices provide adequate gate overdrive. The candidate uses the full input rail for power transfer. The `VIN/2` connections serve gate bias. The midpoint nodes of the stacks are internal; biasing the gate at half the input does not establish equal blocking voltage, safe transient sharing or a fixed midpoint voltage. Drive amplitudes, bias current, device stress, thresholds, body-diode paths and startup need switched-device validation. The saved `1 nH`, `1 kΩ`, `1 pF`, `1 mA` and 1 V settings remain source facts. They do not establish a coherent, load-qualified operating point.
39
+
40
+ ## Proposed switching states and timing
41
+
42
+ The four steady states below assume correctly biased stacks, positive continuous phase currents, ideal commutation and a phase B pulse delayed by half a period. H or L denotes an available **series path**. A biased member of the inactive stack can still conduct transiently into its midpoint. Its instantaneous channel state is not determined by the logic command.
43
+
44
+ | State `AB` | Active commands | Phase A path | Phase B path | Ideal `sw_a, sw_b` |
45
+ | --- | --- | --- | --- | --- |
46
+ | `10` | `A, B̄` | `VIN → M13 → M15 → sw_a → L3 → R1 → VOUT` | `0 → M10 → M12 → sw_b → L4 → R2 → VOUT` | `VIN, 0` |
47
+ | `01` | `Ā, B` | `0 → M9 → M11 → sw_a → L3 → R1 → VOUT` | `VIN → M14 → M16 → sw_b → L4 → R2 → VOUT` | `0, VIN` |
48
+ | `00` | `Ā, B̄` | `0 → M9 → M11 → sw_a → L3 → R1 → VOUT` | `0 → M10 → M12 → sw_b → L4 → R2 → VOUT` | `0, 0` |
49
+ | `11` | `A, B` | `VIN → M13 → M15 → sw_a → L3 → R1 → VOUT` | `VIN → M14 → M16 → sw_b → L4 → R2 → VOUT` | `VIN, VIN` |
50
+
51
+ The NMOS channel current in a high path is drain-to-source. For positive winding current in a synchronous freewheel path it is source-to-drain in both lower devices. The load returns to ground. When the sum of winding currents exceeds the load current, the excess enters `C1.1`; otherwise the capacitor supplies the difference. For each winding the path voltage has positive polarity in H and negative polarity in L for a lossless stage with `0 < VOUT < VIN`.
52
+
53
+ Let `T` be the per-phase switching period and `D` the ideal high-command time divided by `T`. A is high on `[0,D)` and B is high on `[0.5,0.5+D)` modulo one period. The table and timeline share the same time origin.
54
+
55
+ ```text
56
+ 0 < D < 1/2 0 D 1/2 1/2+D 1
57
+ AB | 10 | 00 | 01 | 00 |
58
+
59
+ D = 1/2 0 1/2 1
60
+ AB | 10 | 01 |
61
+
62
+ 1/2 < D < 1 0 D−1/2 1/2 D 1
63
+ AB | 11 | 10 | 11 | 01 |
64
+ ```
65
+
66
+ For the lower region the four durations in order are `D, 1/2−D, D, 1/2−D` times `T`. At the nominal point each interval is `T/2`. Above it the four durations are `D−1/2, 1−D, D−1/2, 1−D` times `T`. State `11` energizes both phases through separate upper stacks and is allowed. Simultaneous upper and lower conduction in **one** phase shorts that phase's input rail to ground and is forbidden.
67
+
68
+ At each transition the outgoing PWM device turns off first, both commands in that phase are low for dead time, then the incoming device turns on. At 50% duty both phases can be blanked at the same time. A positive winding current must continue through device capacitances and available diode/channel paths while the switch node commutates. The grounded bulks make the diode path a device-level check. A negative winding current changes the commutation path and is outside the proposed positive-CCM envelope. The ideal timeline uses zero dead time. For an implementation that delays the incoming edges by `t_LH` and `t_HL`, both commanded plateaus exist only if `t_LH/T < D < 1−t_HL/T`. This is a timing condition. The safe dead time, minimum pulse widths and device-level duty bounds are open.
69
+
70
+ ## Nominal conversion and regulation
71
+
72
+ Under ideal CCM switching each winding input alternates between `VIN` for fraction `D` and ground for fraction `1−D`. Periodic winding flux requires its mean voltage to vanish. That gives the pre-model operating identification `VOUT/VIN = D`, hence nominal 2:1 at `D = 0.5`. The ideal two-phase PWM state sequence permits `0 < D < 1`; the endpoints are static commands. The above-50% state sequence is a review proposal and its loaded operating range is unverified. Device overdrive, stress, CCM, dead time and minimum pulse widths constrain any physical duty range.
73
+
74
+ Varying duty can set a different mean output in the ideal stage, and a feedback loop could use duty to correct loaded droop where the qualified range leaves headroom. The source includes no output feedback controller, loop compensation or demonstrated regulation range. At 50% the ideal summed phase excitation is constant; cancellation of summed winding-current ripple additionally requires symmetric windings and timing and the stated ideal conditions. Individual winding currents can still ripple.
75
+
76
+ ## Consistency checks and review decision
77
+
78
+ - Each active path was traced by `D/G/S/B` and passive pin membership in the MCP snapshot. The upper and lower stacks share only each phase's switch node in the series power path. The two output branches meet downstream of their separate resistors. The gate labels are separate drawing annotations and the overbars were checked in the rich-text data.
79
+ - Native SPICE export reported `MISSING_PIN_NET` for the four PWM gates on the reviewed circuit (`M9`, `M10`, `M15`, `M16`). The public structural transcription assigns distinct open nodes to those gates. It adds no gate sources or magnetic coupling. A qualified deck requires the approved external commands, bias and magnetic interpretation.
80
+ - Each timing row covers exactly one period, applies high commands for fraction `D` to each phase, and selects one series path per phase outside dead time. The transition from `00` through the nominal complementary states to `11` agrees with their path polarities and introduces no same-phase overlap.
81
+ - No local graph correction was applied to the original. The review decisions are the right-hand scope, external command map, floating biases interpreted from their annotations, inverse coupling interpreted from the visible dots, and the ideal timing with physical commutation deferred to qualification.
82
+
83
+ The user confirmed this source revision and timing in the [approval record](approval.md). The [qualification record](qualification.md) tracks dependent stages.
docs/topology/2to1_buck_stacked/evidence/SHA256SUMS ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 943c68f3a21e9ba67dcf98fd7165e2a86504d3144eaa25b7a6d4722165829a46 baseline-2to1-quality.json
2
+ ac92f6a999c5e2ab9cf93fe2cc18fb9fa44d69eb67254a69e2a67789252d1994 browser.json
3
+ 462e04e2fc0bd843db9180856d07fb87a72b23412ec36bd493f6948fdc9ef8e9 cache.json
4
+ eab0f303fc2f97a6a5fc6b1a38aa1a2e2d8107ecef86c70f9b67516996d4c0b3 coss-browser.json
5
+ ebf4d90cb7ef442fd006eb0d09bd2335348524b9445cee004c7b9ca5cfb48523 coss-cache.json
6
+ daae2b25b9841cae1e0d31de04fcd5159a802adacd491b257fdd2543a83c30db coss-regressions.json
7
+ 81c930ceba92f859f22702d73e69001f808000c383bc257a6d7066b065882f0c coss-sweeps.json
8
+ bbdcbb9409396ae091aa0cc97605289f06390124cecdc65f593cc2e123517e5f coss-workflow.json
9
+ c0ff0da00e568823ffbfca91de279ada01e86898b3d7ec8a9008810a422caeee coss-workspace.json
10
+ 755d7b9684dc9a57055f515e57a12803df8991396a7a5ea8c55df9668275a5a4 duty-comparison.svg
11
+ be07a80e3bc679e3743a9f73b8bcd0394c5d8a3c69c0dbd6c16fc9298968ec1a event-comparison.svg
12
+ 49fc608ed4afff7deffa3ef1dcf1cd35cdd74f911b11fb922147b0276544eff0 executed-decks.zip
13
+ 20f18bb607e3396b9af24a6260ee8f4237b87b1dfb64fcad28de64253b4337fd matched-results.json
14
+ 284fd680c76b2e46068c2a3694185a61ae1ea54900fcb3dc1c9bd070b7d39ed4 sweeps.json
15
+ c0ff0da00e568823ffbfca91de279ada01e86898b3d7ec8a9008810a422caeee workspace.json
16
+ 7d60ccbdd1b559e8f2132de95b828073383f37d099b73dfd6498aad444622e3d ../../../../static/openpels-source.zip
17
+ f7f5881fc34344c96c0069bfe55dc1b32643dfba8fa8a65aa3a7d83fe40bda67 ../../../../static/starters/buck_stacked.icproj.json
18
+ 0831135f2de8dc63696e502eeee848854d29d02123181c9dd6188a7c364edd14 ../../../../static/starters/buck_stacked.sp
19
+ c13511e72d73238deb24f53beb3c024b29159f1e00fb5b90e9df13f4751b3a81 ../../../../buck_stacked/stacked-buck.cir
docs/topology/2to1_buck_stacked/evidence/baseline-2to1-quality.json ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "si2": {
3
+ "cases": 33,
4
+ "bench_relative_req_error": {
5
+ "value": 0.0001262280412663852,
6
+ "case": "duty_4"
7
+ },
8
+ "bench_absolute_vo_error": {
9
+ "value": 9.940919230566614e-06,
10
+ "case": "duty_1"
11
+ },
12
+ "bench_convergence_ohm": {
13
+ "value": 9.703032875924e-07,
14
+ "case": "ccm_reject"
15
+ },
16
+ "bench_energy_residual_w": {
17
+ "value": 2.0323409635715165e-06,
18
+ "case": "unequal_switches"
19
+ },
20
+ "numeric_energy_residual_w": {
21
+ "value": 5.506762927598441e-11,
22
+ "case": "cf_2"
23
+ },
24
+ "analysis_relative_req_difference": {
25
+ "value": 3.772370049359708e-05,
26
+ "case": "unequal_symmetric_duty"
27
+ },
28
+ "analysis_output_difference_v": {
29
+ "value": 3.385607068295826e-05,
30
+ "case": "unequal_symmetric_duty"
31
+ }
32
+ },
33
+ "sp2": {
34
+ "cases": 20,
35
+ "bench_relative_req_error": {
36
+ "value": 4.761822107179903e-05,
37
+ "case": "io_1"
38
+ },
39
+ "bench_absolute_vo_error": {
40
+ "value": 3.458280290802307e-06,
41
+ "case": "fs_1"
42
+ },
43
+ "bench_convergence_ohm": {
44
+ "value": 2.689999308760904e-06,
45
+ "case": "co_1"
46
+ },
47
+ "bench_energy_residual_w": {
48
+ "value": 0.0004411606570880663,
49
+ "case": "fs_1"
50
+ },
51
+ "numeric_energy_residual_w": {
52
+ "value": 4.447195533362376e-07,
53
+ "case": "fs_1"
54
+ },
55
+ "analysis_relative_req_difference": {
56
+ "value": 0.15266292141261317,
57
+ "case": "fs_1"
58
+ },
59
+ "analysis_output_difference_v": {
60
+ "value": 0.09440669609019381,
61
+ "case": "fs_1"
62
+ },
63
+ "clamped_relative_req_error": {
64
+ "value": 0.00019448670000654644,
65
+ "case": "fs_1"
66
+ },
67
+ "stiff_analysis_relative_req_error": {
68
+ "value": 1.0491368788168032e-06,
69
+ "case": "ssl_limit"
70
+ }
71
+ },
72
+ "rsc2": {
73
+ "cases": 27,
74
+ "bench_relative_req_error": {
75
+ "value": 0.00044707001744093144,
76
+ "case": "weak_tuned"
77
+ },
78
+ "bench_absolute_vo_error": {
79
+ "value": 6.7699519501474015e-06,
80
+ "case": "cf_1"
81
+ },
82
+ "bench_convergence_ohm": {
83
+ "value": 2.2274308092401496e-05,
84
+ "case": "cf_1"
85
+ },
86
+ "bench_energy_residual_w": {
87
+ "value": 2.7397526158477866e-05,
88
+ "case": "io_2"
89
+ },
90
+ "numeric_energy_residual_w": {
91
+ "value": 8.59941517300511e-09,
92
+ "case": "overdamped_math"
93
+ },
94
+ "analysis_relative_req_difference": {
95
+ "value": 0.06154319455331281,
96
+ "case": "co_1"
97
+ },
98
+ "analysis_output_difference_v": {
99
+ "value": 0.001725527723591025,
100
+ "case": "cf_1"
101
+ },
102
+ "clamped_relative_req_error": {
103
+ "value": 3.43617421874054e-05,
104
+ "case": "width_split_equal"
105
+ },
106
+ "stiff_analysis_relative_req_error": {
107
+ "value": 1.0447304132910062e-09,
108
+ "case": "fs_1"
109
+ }
110
+ }
111
+ }
docs/topology/2to1_buck_stacked/evidence/browser.json ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "analysis": {
3
+ "controls": {
4
+ "utilization": ".5",
5
+ "die_mm2": "1.5",
6
+ "ron_area_mohm_mm2": "1.1",
7
+ "vout": "3.2",
8
+ "io": "1.25",
9
+ "fs_mhz": "2.4",
10
+ "cap_uf": "44",
11
+ "si_l_nh": "1180",
12
+ "si_coupling": ".56",
13
+ "si_duty": ".61",
14
+ "rc_mohm": "6",
15
+ "rl_mohm": "5"
16
+ },
17
+ "losses": {
18
+ "fet": 0.018274235898271443,
19
+ "cap": 0.000024274633725940832,
20
+ "ind": 0.003940303911711195,
21
+ "gate": 0.0019181212561983475,
22
+ "coss": 0.0006556765090909092
23
+ },
24
+ "efficiency": 0.9898425425204165,
25
+ "deviceCount": 8
26
+ },
27
+ "simulator": {
28
+ "edited": {
29
+ "run": "ea153c8017214ebca997f4bbf25a4c1a",
30
+ "settings": {
31
+ "vin": "3.12",
32
+ "load": "1.24",
33
+ "fs": "2.25",
34
+ "lt": "1150",
35
+ "coupling": ".57",
36
+ "dcr": "5.1",
37
+ "rs": "9",
38
+ "rslow": "15",
39
+ "gatecap": "29",
40
+ "coss": "12",
41
+ "cout": "44",
42
+ "esr": "5.5",
43
+ "stop": "110",
44
+ "step": "750"
45
+ },
46
+ "metrics": {
47
+ "value": null,
48
+ "status": "passed",
49
+ "message": "",
50
+ "deck": "physical_design.cir",
51
+ "waveform": "physical_design_waveform.csv",
52
+ "deck_sha256": "dad1e3d29c8156095d53a1178c168dfeef1316ebc4282f22809e7444fa2d0f35",
53
+ "nominal_vout_v": 1.548070447394674,
54
+ "ideal_vout_v": 1.548070447394674,
55
+ "ideal_gain": 0.4961764254470109,
56
+ "vin_v": 3.12,
57
+ "target_vout_v": 1.53,
58
+ "analytical_vout_v": 1.53,
59
+ "analytical_gain": 0.49038461538461536,
60
+ "simulated_gain": 0.49038525452589316,
61
+ "target_error_v": 0.0000019941207867191224,
62
+ "operating_point": {
63
+ "schema_version": 1,
64
+ "nominal_ratio": 2,
65
+ "inputs": {
66
+ "input_voltage_v": 3.12,
67
+ "load": {
68
+ "kind": "current",
69
+ "value": 1.24
70
+ },
71
+ "switching_frequency_hz": 2250000,
72
+ "mode": "output_voltage",
73
+ "target_output_v": 1.53
74
+ },
75
+ "derived": {
76
+ "applied_duty": 0.4961764254470109,
77
+ "ideal_output_voltage_v": 1.548070447394674,
78
+ "ideal_gain": 0.4961764254470109,
79
+ "ideal_operating_ratio": 2.015412157276696,
80
+ "analytical_output_voltage_v": 1.53,
81
+ "loaded_gain": 0.49038461538461536,
82
+ "operating_ratio": 2.03921568627451,
83
+ "conduction_mode": "positive_current_ccm"
84
+ },
85
+ "range": {
86
+ "duty": {
87
+ "min": 0.25,
88
+ "max": 0.75
89
+ },
90
+ "conduction_modes": [
91
+ "positive_current_ccm"
92
+ ],
93
+ "loaded_voltage_v": {
94
+ "min": 0.7600980000000002,
95
+ "max": 2.3238180000000006
96
+ }
97
+ },
98
+ "solver": {
99
+ "status": "resolved",
100
+ "valid": true,
101
+ "diagnostics": []
102
+ },
103
+ "measurement": {
104
+ "output_voltage_v": 1.5300019941207867,
105
+ "gain": 0.49038525452589316,
106
+ "operating_ratio": 2.039213028472491
107
+ }
108
+ },
109
+ "stop_us": 109.77777777777777,
110
+ "max_step_ps": 750,
111
+ "window_start_cycles": 241.826795,
112
+ "window_stop_cycles": 245.826795,
113
+ "vout_v": 1.5300019941207867,
114
+ "iout_a": 1.24,
115
+ "iin_a": 0.61531573502324,
116
+ "input_w": 1.9200478357384068,
117
+ "electrical_input_w": 1.9197850932725093,
118
+ "delivered_w": 1.8972024727097756,
119
+ "stage_w": 0.0228453630286312,
120
+ "supplemental_gate_w": 0.0012685368412732009,
121
+ "coss_w": 0.00026274246589745126,
122
+ "gate_drive_v": 1.56,
123
+ "stage_efficiency": 0.9881016698629046,
124
+ "efficiency_with_gate": 0.9874492820578386,
125
+ "switch_w": [
126
+ 0.001731450427558176,
127
+ 0.0017314504275581825,
128
+ 0.0029273181100958195,
129
+ 0.0029273181100958195,
130
+ 0.0017310186699023215,
131
+ 0.0017310186699023198,
132
+ 0.0029265873948264034,
133
+ 0.0029265873948264034
134
+ ],
135
+ "esr_w": [
136
+ 5.218069939160327e-8
137
+ ],
138
+ "dcr_w": [
139
+ 0.0019764422891168656,
140
+ 0.001975949183255344
141
+ ],
142
+ "storage_w": 0.0000016856390779655915,
143
+ "balance_w": -0.000004257934181265196,
144
+ "resistance_power_ohm": 0.014857806340160769,
145
+ "resistance_droop_ohm": 0.014571333285392972,
146
+ "ripple_vpp": 0.00005868304306799743,
147
+ "duty": 0.4961764254470109,
148
+ "measured_duty": [
149
+ 0.49617642544702895,
150
+ 0.49617642544708307
151
+ ],
152
+ "winding_average_a": [
153
+ 0.6200394746357759,
154
+ 0.6199615093272572
155
+ ],
156
+ "winding_rms_a": [
157
+ 0.6225252635422963,
158
+ 0.6224476012682332
159
+ ],
160
+ "winding_voltage_peak_v": [
161
+ 1.577966157209343,
162
+ 1.577967969800907
163
+ ],
164
+ "winding_min_a": [
165
+ 0.5219193478375418,
166
+ 0.5218412433449993
167
+ ],
168
+ "winding_ripple_a": [
169
+ 0.1963158339917308,
170
+ 0.1963160229724885
171
+ ],
172
+ "winding_sum_ripple_a": 0.010663416221979638,
173
+ "winding_delta_ripple_a": 0.3819915004426704,
174
+ "winding_voltage_mean_v": [
175
+ -0.0000028058149682428655,
176
+ -5.333717839772386e-7
177
+ ],
178
+ "switch_peak_v": [
179
+ 1.570772495601687,
180
+ 1.570772495601687,
181
+ 1.55530259719545,
182
+ 1.55530259719545,
183
+ 1.570771326869518,
184
+ 1.570771326869517,
185
+ 1.555303300116892,
186
+ 1.555303300116891
187
+ ],
188
+ "output_cap_rms_a": 0.0030801623154279407,
189
+ "output_cap_average_a": 9.839629561883076e-7,
190
+ "gate_overlap_fraction": [
191
+ 0,
192
+ 0
193
+ ],
194
+ "window_drift_v": 2.921751951490137e-8,
195
+ "window_drift_w": 0.0000011835857863934374
196
+ }
197
+ },
198
+ "sweep": {
199
+ "run": "e0658cce48c24b05a8982343376ac9f1",
200
+ "rows": [
201
+ {
202
+ "duty": 0.475,
203
+ "vout": 1.4639125507001383,
204
+ "status": "passed"
205
+ },
206
+ {
207
+ "duty": 0.4875,
208
+ "vout": 1.5029112624462917,
209
+ "status": "passed"
210
+ },
211
+ {
212
+ "duty": 0.5,
213
+ "vout": 1.5419081960398158,
214
+ "status": "passed"
215
+ },
216
+ {
217
+ "duty": 0.5125,
218
+ "vout": 1.5809086248649153,
219
+ "status": "passed"
220
+ },
221
+ {
222
+ "duty": 0.525,
223
+ "vout": 1.6199069273546736,
224
+ "status": "passed"
225
+ }
226
+ ]
227
+ }
228
+ },
229
+ "reload": {
230
+ "versioned": [
231
+ "/pe.js",
232
+ "/gallery.js",
233
+ "/compare/index.html",
234
+ "/compare/buck-stacked.js",
235
+ "/compare/engine.js",
236
+ "/compare/technology.js",
237
+ "/compare/recommend.js",
238
+ "/compare/scoreboard.js",
239
+ "/compare/app.js"
240
+ ]
241
+ }
242
+ }
docs/topology/2to1_buck_stacked/evidence/cache.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "currentId": "buck_stacked",
3
+ "previousBuildCards": 9,
4
+ "currentCards": 10,
5
+ "assets": [
6
+ {
7
+ "path": "/pe.js",
8
+ "url": "http://127.0.0.1:8765/pe.js?v=buck-stacked",
9
+ "cacheControl": "no-store"
10
+ },
11
+ {
12
+ "path": "/gallery.js",
13
+ "url": "http://127.0.0.1:8765/gallery.js?v=buck-stacked",
14
+ "cacheControl": "no-store"
15
+ },
16
+ {
17
+ "path": "/compare/app.js",
18
+ "url": "http://127.0.0.1:8765/compare/app.js?v=buck-stacked",
19
+ "cacheControl": "no-store"
20
+ },
21
+ {
22
+ "path": "/compare/style.css",
23
+ "url": "http://127.0.0.1:8765/compare/style.css?v=operating-conditions"
24
+ },
25
+ {
26
+ "path": "/compare/models-data.json",
27
+ "url": "http://127.0.0.1:8765/compare/models-data.json",
28
+ "cacheControl": "no-store"
29
+ },
30
+ {
31
+ "path": "/compare/switched-inductor.js",
32
+ "url": "http://127.0.0.1:8765/compare/switched-inductor.js?v=operating-conditions"
33
+ },
34
+ {
35
+ "path": "/compare/operating-point.js",
36
+ "url": "http://127.0.0.1:8765/compare/operating-point.js?v=operating-conditions"
37
+ },
38
+ {
39
+ "path": "/compare/operating-conditions.json",
40
+ "url": "http://127.0.0.1:8765/compare/operating-conditions.json",
41
+ "cacheControl": "no-store"
42
+ },
43
+ {
44
+ "path": "/compare/buck-stacked.js",
45
+ "url": "http://127.0.0.1:8765/compare/buck-stacked.js?v=buck-stacked",
46
+ "cacheControl": "no-store"
47
+ },
48
+ {
49
+ "path": "/compare/engine.js",
50
+ "url": "http://127.0.0.1:8765/compare/engine.js?v=buck-stacked",
51
+ "cacheControl": "no-store"
52
+ },
53
+ {
54
+ "path": "/compare/technology.js",
55
+ "url": "http://127.0.0.1:8765/compare/technology.js?v=buck-stacked",
56
+ "cacheControl": "no-store"
57
+ }
58
+ ],
59
+ "normalReload": true,
60
+ "freshContext": true
61
+ }
docs/topology/2to1_buck_stacked/evidence/coss-browser.json ADDED
@@ -0,0 +1,979 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "nominal": {
3
+ "payload": {
4
+ "topologies": [
5
+ "buck_stacked"
6
+ ],
7
+ "voltage_mode": "duty_cycle",
8
+ "input_voltage_v": 3,
9
+ "output_current_a": 1,
10
+ "switching_frequency_mhz": 2,
11
+ "duty": 0.5,
12
+ "inductance_nh": 1000,
13
+ "coupling": 0.6,
14
+ "dcr_mohm": 4,
15
+ "switch_ron_mohm": 12,
16
+ "low_ron_mohm": null,
17
+ "gate_cap_pf": 25,
18
+ "switch_coff_pf": 10,
19
+ "output_cap_uf": 47,
20
+ "output_esr_mohm": 5,
21
+ "stop_us": null,
22
+ "max_step_ps": null
23
+ },
24
+ "result": {
25
+ "run_id": "7b7b2ff4322d4dc1a18c59c14350f5aa",
26
+ "settings": {
27
+ "input_voltage_v": 3,
28
+ "output_current_a": 1,
29
+ "switching_frequency_mhz": 2,
30
+ "duty": 0.5,
31
+ "inductance_nh": 1000,
32
+ "coupling": 0.6,
33
+ "dcr_mohm": 4,
34
+ "switch_ron_mohm": 12,
35
+ "low_ron_mohm": null,
36
+ "gate_cap_pf": 25,
37
+ "switch_coff_pf": 10,
38
+ "output_cap_uf": 47,
39
+ "output_esr_mohm": 5,
40
+ "stop_us": null,
41
+ "max_step_ps": null,
42
+ "voltage_mode": "duty_cycle",
43
+ "topologies": [
44
+ "buck_stacked"
45
+ ],
46
+ "sweep": null
47
+ },
48
+ "metrics": {
49
+ "value": null,
50
+ "status": "passed",
51
+ "message": "",
52
+ "deck": "physical_design.cir",
53
+ "waveform": "physical_design_waveform.csv",
54
+ "deck_sha256": "77bdc1dedd8eccf19dbab9df9920758ffce3ff7c4a6f75d13f3860cfcd57f143",
55
+ "nominal_vout_v": 1.5,
56
+ "ideal_vout_v": 1.5,
57
+ "ideal_gain": 0.5,
58
+ "vin_v": 3,
59
+ "target_vout_v": null,
60
+ "analytical_vout_v": 1.486,
61
+ "analytical_gain": 0.49533333333333335,
62
+ "simulated_gain": 0.49533333333341184,
63
+ "target_error_v": null,
64
+ "operating_point": {
65
+ "schema_version": 1,
66
+ "nominal_ratio": 2,
67
+ "inputs": {
68
+ "input_voltage_v": 3,
69
+ "load": {
70
+ "kind": "current",
71
+ "value": 1
72
+ },
73
+ "switching_frequency_hz": 2000000,
74
+ "mode": "duty_cycle",
75
+ "duty": 0.5
76
+ },
77
+ "derived": {
78
+ "applied_duty": 0.5,
79
+ "ideal_output_voltage_v": 1.5,
80
+ "ideal_gain": 0.5,
81
+ "ideal_operating_ratio": 2,
82
+ "analytical_output_voltage_v": 1.486,
83
+ "loaded_gain": 0.49533333333333335,
84
+ "operating_ratio": 2.018842530282638,
85
+ "conduction_mode": "positive_current_ccm"
86
+ },
87
+ "range": {
88
+ "duty": {
89
+ "min": 0.25,
90
+ "max": 0.75
91
+ },
92
+ "conduction_modes": [
93
+ "positive_current_ccm"
94
+ ],
95
+ "loaded_voltage_v": {
96
+ "min": 0.736,
97
+ "max": 2.236
98
+ }
99
+ },
100
+ "solver": {
101
+ "status": "resolved",
102
+ "valid": true,
103
+ "diagnostics": []
104
+ },
105
+ "measurement": {
106
+ "output_voltage_v": 1.4860000000002356,
107
+ "gain": 0.49533333333341184,
108
+ "operating_ratio": 2.018842530282318
109
+ }
110
+ },
111
+ "stop_us": 126.49999999999999,
112
+ "max_step_ps": 1041.6666666666667,
113
+ "window_start_cycles": 247.826795,
114
+ "window_stop_cycles": 251.826795,
115
+ "vout_v": 1.4860000000002356,
116
+ "iout_a": 1,
117
+ "iin_a": 0.5000854395572357,
118
+ "input_w": 1.5004360960935776,
119
+ "electrical_input_w": 1.5002563186717073,
120
+ "delivered_w": 1.4860000000002356,
121
+ "stage_w": 0.014436096093341965,
122
+ "supplemental_gate_w": 0.0008987210708019572,
123
+ "coss_w": 0.00017977742187026314,
124
+ "gate_drive_v": 1.5,
125
+ "stage_efficiency": 0.9903787331357018,
126
+ "efficiency_with_gate": 0.9897858778809197,
127
+ "efficiency_includes_coss": true,
128
+ "switch_w": [
129
+ 0.0015280273225401928,
130
+ 0.0015280273225401896,
131
+ 0.001527002048296278,
132
+ 0.001527002048296278,
133
+ 0.0015279335512081813,
134
+ 0.0015279335512081815,
135
+ 0.001526908275990403,
136
+ 0.001526908275990403
137
+ ],
138
+ "esr_w": [
139
+ 3.882432009924975e-25
140
+ ],
141
+ "dcr_w": [
142
+ 0.0010183423736213496,
143
+ 0.0010182798590761914
144
+ ],
145
+ "storage_w": 1.718802983513399e-8,
146
+ "balance_w": -6.314532578050562e-8,
147
+ "resistance_power_ohm": 0.014436096093341965,
148
+ "resistance_droop_ohm": 0.013999999999764423,
149
+ "ripple_vpp": 2.5979218776228663e-14,
150
+ "duty": 0.5,
151
+ "measured_duty": [
152
+ 0.49999999999988076,
153
+ 0.5000000000001192
154
+ ],
155
+ "winding_average_a": [
156
+ 0.5000078143138162,
157
+ 0.4999921856775274
158
+ ],
159
+ "winding_rms_a": [
160
+ 0.5045647564043072,
161
+ 0.5045492689213293
162
+ ],
163
+ "winding_voltage_peak_v": [
164
+ 1.503281425519005,
165
+ 1.503281425519058
166
+ ],
167
+ "winding_min_a": [
168
+ 0.382821263489706,
169
+ 0.3828056221322905
170
+ ],
171
+ "winding_ripple_a": [
172
+ 0.2343731143693255,
173
+ 0.23437311436936847
174
+ ],
175
+ "winding_sum_ripple_a": 1.270095140171179e-13,
176
+ "winding_delta_ripple_a": 0.468746228738694,
177
+ "winding_voltage_mean_v": [
178
+ -2.374877125839877e-7,
179
+ 2.3748777207481734e-7
180
+ ],
181
+ "switch_peak_v": [
182
+ 1.507406052169711,
183
+ 1.507406052169711,
184
+ 1.495405864523097,
185
+ 1.495405864523097,
186
+ 1.507405864522849,
187
+ 1.507405864522849,
188
+ 1.495406052169959,
189
+ 1.495406052169959
190
+ ],
191
+ "output_cap_rms_a": 8.81184658278272e-12,
192
+ "output_cap_average_a": -8.81147874153936e-12,
193
+ "gate_overlap_fraction": [
194
+ 0,
195
+ 0
196
+ ],
197
+ "window_drift_v": 6.8833827526759706e-15,
198
+ "window_drift_w": 6.62651282803961e-10
199
+ }
200
+ },
201
+ "waveform_columns": [
202
+ "time_s",
203
+ "vin_v",
204
+ "vout_v",
205
+ "input_current_a",
206
+ "sw_a_v",
207
+ "sw_b_v",
208
+ "vgs_q1_v",
209
+ "vgs_q2_v",
210
+ "vgs_q3_v",
211
+ "vgs_q4_v",
212
+ "il_a_a",
213
+ "il_b_a",
214
+ "vl_a_v",
215
+ "vl_b_v",
216
+ "iq1_a",
217
+ "iq2_a",
218
+ "iq3_a",
219
+ "iq4_a",
220
+ "vcap_v",
221
+ "vds_m13_v",
222
+ "vds_m15_v",
223
+ "vds_m11_v",
224
+ "vds_m9_v",
225
+ "vds_m14_v",
226
+ "vds_m16_v",
227
+ "vds_m12_v",
228
+ "vds_m10_v",
229
+ "gate_fixture_power_w",
230
+ "coss_discharge_fixture_power_w",
231
+ "icap_a",
232
+ "output_current_a",
233
+ "input_power_w",
234
+ "delivered_power_w",
235
+ "winding_sum_a",
236
+ "winding_delta_a"
237
+ ]
238
+ },
239
+ "positive": {
240
+ "analysis": {
241
+ "coss_pf": 26,
242
+ "coss_w": 0.000468,
243
+ "efficiency": 0.9892588818338787,
244
+ "coss_included": true
245
+ },
246
+ "payload": {
247
+ "topologies": [
248
+ "buck_stacked"
249
+ ],
250
+ "voltage_mode": "duty_cycle",
251
+ "input_voltage_v": 3,
252
+ "output_current_a": 1,
253
+ "switching_frequency_mhz": 2,
254
+ "duty": 0.5,
255
+ "inductance_nh": 1000,
256
+ "coupling": 0.6,
257
+ "dcr_mohm": 4,
258
+ "switch_ron_mohm": 12.040000000000001,
259
+ "low_ron_mohm": 12.040000000000001,
260
+ "gate_cap_pf": 38.03030303030303,
261
+ "switch_coff_pf": 26,
262
+ "output_cap_uf": 47,
263
+ "output_esr_mohm": 5,
264
+ "stop_us": null,
265
+ "max_step_ps": null
266
+ },
267
+ "result": {
268
+ "run_id": "29af8867e3a84a3fb1555c5e0d96559e",
269
+ "settings": {
270
+ "input_voltage_v": 3,
271
+ "output_current_a": 1,
272
+ "switching_frequency_mhz": 2,
273
+ "duty": 0.5,
274
+ "inductance_nh": 1000,
275
+ "coupling": 0.6,
276
+ "dcr_mohm": 4,
277
+ "switch_ron_mohm": 12.040000000000001,
278
+ "low_ron_mohm": 12.040000000000001,
279
+ "gate_cap_pf": 38.03030303030303,
280
+ "switch_coff_pf": 26,
281
+ "output_cap_uf": 47,
282
+ "output_esr_mohm": 5,
283
+ "stop_us": null,
284
+ "max_step_ps": null,
285
+ "voltage_mode": "duty_cycle",
286
+ "topologies": [
287
+ "buck_stacked"
288
+ ],
289
+ "sweep": null
290
+ },
291
+ "metrics": {
292
+ "value": null,
293
+ "status": "passed",
294
+ "message": "",
295
+ "deck": "physical_design.cir",
296
+ "waveform": "physical_design_waveform.csv",
297
+ "deck_sha256": "37887d3d08acae94bc9e56feda72c1a484674e540ce8bb5e525a65f641b931af",
298
+ "nominal_vout_v": 1.5,
299
+ "ideal_vout_v": 1.5,
300
+ "ideal_gain": 0.5,
301
+ "vin_v": 3,
302
+ "target_vout_v": null,
303
+ "analytical_vout_v": 1.48596,
304
+ "analytical_gain": 0.49532,
305
+ "simulated_gain": 0.49532000000009324,
306
+ "target_error_v": null,
307
+ "operating_point": {
308
+ "schema_version": 1,
309
+ "nominal_ratio": 2,
310
+ "inputs": {
311
+ "input_voltage_v": 3,
312
+ "load": {
313
+ "kind": "current",
314
+ "value": 1
315
+ },
316
+ "switching_frequency_hz": 2000000,
317
+ "mode": "duty_cycle",
318
+ "duty": 0.5
319
+ },
320
+ "derived": {
321
+ "applied_duty": 0.5,
322
+ "ideal_output_voltage_v": 1.5,
323
+ "ideal_gain": 0.5,
324
+ "ideal_operating_ratio": 2,
325
+ "analytical_output_voltage_v": 1.48596,
326
+ "loaded_gain": 0.49532,
327
+ "operating_ratio": 2.018896874747638,
328
+ "conduction_mode": "positive_current_ccm"
329
+ },
330
+ "range": {
331
+ "duty": {
332
+ "min": 0.25,
333
+ "max": 0.75
334
+ },
335
+ "conduction_modes": [
336
+ "positive_current_ccm"
337
+ ],
338
+ "loaded_voltage_v": {
339
+ "min": 0.73596,
340
+ "max": 2.23596
341
+ }
342
+ },
343
+ "solver": {
344
+ "status": "resolved",
345
+ "valid": true,
346
+ "diagnostics": []
347
+ },
348
+ "measurement": {
349
+ "output_voltage_v": 1.4859600000002797,
350
+ "gain": 0.49532000000009324,
351
+ "operating_ratio": 2.018896874747258
352
+ }
353
+ },
354
+ "stop_us": 126.49999999999999,
355
+ "max_step_ps": 1041.6666666666667,
356
+ "window_start_cycles": 247.826795,
357
+ "window_stop_cycles": 251.826795,
358
+ "vout_v": 1.4859600000002797,
359
+ "iout_a": 1,
360
+ "iin_a": 0.50008568334754,
361
+ "input_w": 1.5007248643415778,
362
+ "electrical_input_w": 1.50025705004262,
363
+ "delivered_w": 1.4859600000002797,
364
+ "stage_w": 0.01476486434129816,
365
+ "supplemental_gate_w": 0.0013670390423962055,
366
+ "coss_w": 0.00046781429895788535,
367
+ "gate_drive_v": 1.5,
368
+ "stage_efficiency": 0.9901615114854674,
369
+ "efficiency_with_gate": 0.9892603752491099,
370
+ "efficiency_includes_coss": true,
371
+ "switch_w": [
372
+ 0.0015331191309726957,
373
+ 0.001533119130972695,
374
+ 0.0015320874904126787,
375
+ 0.0015320874904126787,
376
+ 0.0015330311892458313,
377
+ 0.0015330311892458271,
378
+ 0.0015319995746884184,
379
+ 0.0015319995746884184
380
+ ],
381
+ "esr_w": [
382
+ 4.694586506110313e-25
383
+ ],
384
+ "dcr_w": [
385
+ 0.0010183403227301863,
386
+ 0.0010182818983286344
387
+ ],
388
+ "storage_w": 1.6105487847225102e-8,
389
+ "balance_w": -6.305484563586162e-8,
390
+ "resistance_power_ohm": 0.01476486434129816,
391
+ "resistance_droop_ohm": 0.014039999999720276,
392
+ "ripple_vpp": 4.39648317751562e-14,
393
+ "duty": 0.5,
394
+ "measured_duty": [
395
+ 0.4999999999998195,
396
+ 0.5000000000001805
397
+ ],
398
+ "winding_average_a": [
399
+ 0.5000073030454115,
400
+ 0.4999926969450232
401
+ ],
402
+ "winding_rms_a": [
403
+ 0.5045642483198212,
404
+ 0.5045497741374566
405
+ ],
406
+ "winding_voltage_peak_v": [
407
+ 1.503290786457803,
408
+ 1.503290786457772
409
+ ],
410
+ "winding_min_a": [
411
+ 0.3828207587535012,
412
+ 0.3828061407146479
413
+ ],
414
+ "winding_ripple_a": [
415
+ 0.2343731005222961,
416
+ 0.23437310052227722
417
+ ],
418
+ "winding_sum_ripple_a": 5.4067861299245124e-14,
419
+ "winding_delta_ripple_a": 0.4687462010445733,
420
+ "winding_voltage_mean_v": [
421
+ -2.2253366647571375e-7,
422
+ 2.2253366625072062e-7
423
+ ],
424
+ "switch_peak_v": [
425
+ 1.507430732766297,
426
+ 1.507430732766297,
427
+ 1.495390556811717,
428
+ 1.495390556811716,
429
+ 1.507430556811456,
430
+ 1.507430556811456,
431
+ 1.495390732766557,
432
+ 1.495390732766557
433
+ ],
434
+ "output_cap_rms_a": 9.689774513486177e-12,
435
+ "output_cap_average_a": -9.689071599288718e-12,
436
+ "gate_overlap_fraction": [
437
+ 0,
438
+ 0
439
+ ],
440
+ "window_drift_v": 7.105427357601002e-15,
441
+ "window_drift_w": 6.227716311396625e-10
442
+ }
443
+ },
444
+ "waveform_columns": [
445
+ "time_s",
446
+ "vin_v",
447
+ "vout_v",
448
+ "input_current_a",
449
+ "sw_a_v",
450
+ "sw_b_v",
451
+ "vgs_q1_v",
452
+ "vgs_q2_v",
453
+ "vgs_q3_v",
454
+ "vgs_q4_v",
455
+ "il_a_a",
456
+ "il_b_a",
457
+ "vl_a_v",
458
+ "vl_b_v",
459
+ "iq1_a",
460
+ "iq2_a",
461
+ "iq3_a",
462
+ "iq4_a",
463
+ "vcap_v",
464
+ "vds_m13_v",
465
+ "vds_m15_v",
466
+ "vds_m11_v",
467
+ "vds_m9_v",
468
+ "vds_m14_v",
469
+ "vds_m16_v",
470
+ "vds_m12_v",
471
+ "vds_m10_v",
472
+ "gate_fixture_power_w",
473
+ "coss_discharge_fixture_power_w",
474
+ "icap_a",
475
+ "output_current_a",
476
+ "input_power_w",
477
+ "delivered_power_w",
478
+ "winding_sum_a",
479
+ "winding_delta_a"
480
+ ]
481
+ },
482
+ "blank": {
483
+ "analysis": {
484
+ "coss_pf": null,
485
+ "coss_w": null,
486
+ "efficiency": 0.9895671963569225,
487
+ "coss_included": false
488
+ },
489
+ "payload": {
490
+ "topologies": [
491
+ "buck_stacked"
492
+ ],
493
+ "voltage_mode": "duty_cycle",
494
+ "input_voltage_v": 3,
495
+ "output_current_a": 1,
496
+ "switching_frequency_mhz": 2,
497
+ "duty": 0.5,
498
+ "inductance_nh": 1000,
499
+ "coupling": 0.6,
500
+ "dcr_mohm": 4,
501
+ "switch_ron_mohm": 12.040000000000001,
502
+ "low_ron_mohm": 12.040000000000001,
503
+ "gate_cap_pf": 38.03030303030303,
504
+ "switch_coff_pf": null,
505
+ "output_cap_uf": 47,
506
+ "output_esr_mohm": 5,
507
+ "stop_us": null,
508
+ "max_step_ps": null,
509
+ "sweep": {
510
+ "axis": "duty",
511
+ "start": 0.475,
512
+ "stop": 0.525,
513
+ "points": 2
514
+ }
515
+ },
516
+ "result": {
517
+ "run_id": "660c459177594b698e4d25f3fe1139a4",
518
+ "settings": {
519
+ "input_voltage_v": 3,
520
+ "output_current_a": 1,
521
+ "switching_frequency_mhz": 2,
522
+ "duty": 0.5,
523
+ "inductance_nh": 1000,
524
+ "coupling": 0.6,
525
+ "dcr_mohm": 4,
526
+ "switch_ron_mohm": 12.040000000000001,
527
+ "low_ron_mohm": 12.040000000000001,
528
+ "gate_cap_pf": 38.03030303030303,
529
+ "switch_coff_pf": null,
530
+ "output_cap_uf": 47,
531
+ "output_esr_mohm": 5,
532
+ "stop_us": null,
533
+ "max_step_ps": null,
534
+ "voltage_mode": "duty_cycle",
535
+ "topologies": [
536
+ "buck_stacked"
537
+ ],
538
+ "sweep": {
539
+ "axis": "duty",
540
+ "start": 0.475,
541
+ "stop": 0.525,
542
+ "points": 2
543
+ }
544
+ },
545
+ "metrics": {
546
+ "value": null,
547
+ "status": "passed",
548
+ "message": "",
549
+ "deck": "physical_design.cir",
550
+ "waveform": "physical_design_waveform.csv",
551
+ "deck_sha256": "848000094a580f753a632f6d4bfa68e786ba9513f8ade887ef1a5a21ebbaf488",
552
+ "nominal_vout_v": 1.5,
553
+ "ideal_vout_v": 1.5,
554
+ "ideal_gain": 0.5,
555
+ "vin_v": 3,
556
+ "target_vout_v": null,
557
+ "analytical_vout_v": 1.48596,
558
+ "analytical_gain": 0.49532,
559
+ "simulated_gain": 0.49532000000007587,
560
+ "target_error_v": null,
561
+ "operating_point": {
562
+ "schema_version": 1,
563
+ "nominal_ratio": 2,
564
+ "inputs": {
565
+ "input_voltage_v": 3,
566
+ "load": {
567
+ "kind": "current",
568
+ "value": 1
569
+ },
570
+ "switching_frequency_hz": 2000000,
571
+ "mode": "duty_cycle",
572
+ "duty": 0.5
573
+ },
574
+ "derived": {
575
+ "applied_duty": 0.5,
576
+ "ideal_output_voltage_v": 1.5,
577
+ "ideal_gain": 0.5,
578
+ "ideal_operating_ratio": 2,
579
+ "analytical_output_voltage_v": 1.48596,
580
+ "loaded_gain": 0.49532,
581
+ "operating_ratio": 2.018896874747638,
582
+ "conduction_mode": "positive_current_ccm"
583
+ },
584
+ "range": {
585
+ "duty": {
586
+ "min": 0.25,
587
+ "max": 0.75
588
+ },
589
+ "conduction_modes": [
590
+ "positive_current_ccm"
591
+ ],
592
+ "loaded_voltage_v": {
593
+ "min": 0.73596,
594
+ "max": 2.23596
595
+ }
596
+ },
597
+ "solver": {
598
+ "status": "resolved",
599
+ "valid": true,
600
+ "diagnostics": []
601
+ },
602
+ "measurement": {
603
+ "output_voltage_v": 1.4859600000002275,
604
+ "gain": 0.49532000000007587,
605
+ "operating_ratio": 2.0188968747473286
606
+ }
607
+ },
608
+ "stop_us": 126.49999999999999,
609
+ "max_step_ps": 1041.6666666666667,
610
+ "window_start_cycles": 247.826795,
611
+ "window_stop_cycles": 251.826795,
612
+ "vout_v": 1.4859600000002275,
613
+ "iout_a": 1,
614
+ "iin_a": 0.5000856827065264,
615
+ "input_w": 1.5002570481195794,
616
+ "electrical_input_w": 1.5002570481195794,
617
+ "delivered_w": 1.4859600000002275,
618
+ "stage_w": 0.01429704811935184,
619
+ "supplemental_gate_w": 0.0013667666552488868,
620
+ "coss_w": null,
621
+ "gate_drive_v": 1.5,
622
+ "stage_efficiency": 0.9904702676536186,
623
+ "efficiency_with_gate": 0.989568749096491,
624
+ "efficiency_includes_coss": false,
625
+ "switch_w": [
626
+ 0.001533113827910972,
627
+ 0.0015331138279109698,
628
+ 0.0015320821941401147,
629
+ 0.0015320821941401147,
630
+ 0.00153303648620024,
631
+ 0.001533036486200241,
632
+ 0.0015320048803153464,
633
+ 0.0015320048803153464
634
+ ],
635
+ "esr_w": [
636
+ 2.8945267752046217e-25
637
+ ],
638
+ "dcr_w": [
639
+ 0.0010183368013564733,
640
+ 0.0010182854207808343
641
+ ],
642
+ "storage_w": 1.4164677867049528e-8,
643
+ "balance_w": -6.304459668009768e-8,
644
+ "resistance_power_ohm": 0.01429704811935184,
645
+ "resistance_droop_ohm": 0.014039999999772457,
646
+ "ripple_vpp": 2.398081733190338e-14,
647
+ "duty": 0.5,
648
+ "measured_duty": [
649
+ 0.4999999999998086,
650
+ 0.5000000000001914
651
+ ],
652
+ "winding_average_a": [
653
+ 0.5000064225682216,
654
+ 0.4999935774243123
655
+ ],
656
+ "winding_rms_a": [
657
+ 0.5045633759391563,
658
+ 0.5045506468088297
659
+ ],
660
+ "winding_voltage_peak_v": [
661
+ 1.50329076141758,
662
+ 1.50329076141763
663
+ ],
664
+ "winding_min_a": [
665
+ 0.3828198880701205,
666
+ 0.382807032422545
667
+ ],
668
+ "winding_ripple_a": [
669
+ 0.234373079499899,
670
+ 0.23437307949984554
671
+ ],
672
+ "winding_sum_ripple_a": 7.771561172376096e-14,
673
+ "winding_delta_ripple_a": 0.46874615899974453,
674
+ "winding_voltage_mean_v": [
675
+ -1.9570438230810508e-7,
676
+ 1.9570442741260953e-7
677
+ ],
678
+ "switch_peak_v": [
679
+ 1.507430722032988,
680
+ 1.507430722032988,
681
+ 1.495390567291985,
682
+ 1.495390567291985,
683
+ 1.50743056729175,
684
+ 1.50743056729175,
685
+ 1.495390722033223,
686
+ 1.495390722033222
687
+ ],
688
+ "output_cap_rms_a": 7.60858301552217e-12,
689
+ "output_cap_average_a": -7.60816829210874e-12,
690
+ "gate_overlap_fraction": [
691
+ 0,
692
+ 0
693
+ ],
694
+ "window_drift_v": 1.4210854715202004e-14,
695
+ "window_drift_w": 5.476170628071486e-10
696
+ }
697
+ },
698
+ "waveform_columns": [
699
+ "time_s",
700
+ "vin_v",
701
+ "vout_v",
702
+ "input_current_a",
703
+ "sw_a_v",
704
+ "sw_b_v",
705
+ "vgs_q1_v",
706
+ "vgs_q2_v",
707
+ "vgs_q3_v",
708
+ "vgs_q4_v",
709
+ "il_a_a",
710
+ "il_b_a",
711
+ "vl_a_v",
712
+ "vl_b_v",
713
+ "iq1_a",
714
+ "iq2_a",
715
+ "iq3_a",
716
+ "iq4_a",
717
+ "vcap_v",
718
+ "vds_m13_v",
719
+ "vds_m15_v",
720
+ "vds_m11_v",
721
+ "vds_m9_v",
722
+ "vds_m14_v",
723
+ "vds_m16_v",
724
+ "vds_m12_v",
725
+ "vds_m10_v",
726
+ "gate_fixture_power_w",
727
+ "icap_a",
728
+ "output_current_a",
729
+ "input_power_w",
730
+ "delivered_power_w",
731
+ "winding_sum_a",
732
+ "winding_delta_a"
733
+ ],
734
+ "sweep_csv": "value,status,message,vout_v,iout_a,input_w,delivered_w,stage_w,supplemental_gate_w,stage_efficiency,efficiency_with_gate,deck_sha256,deck,waveform,phase,target_vout_v,analytical_vout_v,target_error_v,duty,ideal_gain,analytical_gain,simulated_gain,coss_w,efficiency_includes_coss\r\n0.475,passed,,1.4109610518153586,1,1.4252704279272692,1.4109610518153586,0.014309376111910632,0.0013667666552458887,0.9899602378387095,0.98901182246847,9847541552fe5cc46bb76e796b1b67b8aa13d80229a09b5993d0a059b799e896,physical_sweep_01.cir,physical_sweep_01_waveform.csv,,,1.4109599999999998,,0.475,0.475,0.4703199999999999,0.4703203506051195,,False\r\n0.525,passed,,1.5609611533408074,1,1.575261374393645,1.5609611533408074,0.01430022105283757,0.0013667666552467292,0.9909220010816668,0.9900629785171401,3e228a43643af5c2d4e6f7402bc9d12b784a975989e015ab8ce76559863c79e8,physical_sweep_02.cir,physical_sweep_02_waveform.csv,,,1.5609600000000001,,0.525,0.525,0.52032,0.5203203844469358,,False\r\n"
735
+ },
736
+ "zero": {
737
+ "analysis": {
738
+ "coss_pf": 0,
739
+ "coss_w": 0,
740
+ "efficiency": 0.9895671963569225,
741
+ "coss_included": true
742
+ },
743
+ "payload": {
744
+ "topologies": [
745
+ "buck_stacked"
746
+ ],
747
+ "voltage_mode": "duty_cycle",
748
+ "input_voltage_v": 3,
749
+ "output_current_a": 1,
750
+ "switching_frequency_mhz": 2,
751
+ "duty": 0.5,
752
+ "inductance_nh": 1000,
753
+ "coupling": 0.6,
754
+ "dcr_mohm": 4,
755
+ "switch_ron_mohm": 12.040000000000001,
756
+ "low_ron_mohm": 12.040000000000001,
757
+ "gate_cap_pf": 38.03030303030303,
758
+ "switch_coff_pf": 0,
759
+ "output_cap_uf": 47,
760
+ "output_esr_mohm": 5,
761
+ "stop_us": null,
762
+ "max_step_ps": null
763
+ },
764
+ "result": {
765
+ "run_id": "b095cfd5c7804fef8cf1a3b965931bc9",
766
+ "settings": {
767
+ "input_voltage_v": 3,
768
+ "output_current_a": 1,
769
+ "switching_frequency_mhz": 2,
770
+ "duty": 0.5,
771
+ "inductance_nh": 1000,
772
+ "coupling": 0.6,
773
+ "dcr_mohm": 4,
774
+ "switch_ron_mohm": 12.040000000000001,
775
+ "low_ron_mohm": 12.040000000000001,
776
+ "gate_cap_pf": 38.03030303030303,
777
+ "switch_coff_pf": 0,
778
+ "output_cap_uf": 47,
779
+ "output_esr_mohm": 5,
780
+ "stop_us": null,
781
+ "max_step_ps": null,
782
+ "voltage_mode": "duty_cycle",
783
+ "topologies": [
784
+ "buck_stacked"
785
+ ],
786
+ "sweep": null
787
+ },
788
+ "metrics": {
789
+ "value": null,
790
+ "status": "passed",
791
+ "message": "",
792
+ "deck": "physical_design.cir",
793
+ "waveform": "physical_design_waveform.csv",
794
+ "deck_sha256": "9b77576c154fcb41c19d8ff767b85aff78c2ddb3e1b2fabd23b535f10c84004f",
795
+ "nominal_vout_v": 1.5,
796
+ "ideal_vout_v": 1.5,
797
+ "ideal_gain": 0.5,
798
+ "vin_v": 3,
799
+ "target_vout_v": null,
800
+ "analytical_vout_v": 1.48596,
801
+ "analytical_gain": 0.49532,
802
+ "simulated_gain": 0.49532000000008214,
803
+ "target_error_v": null,
804
+ "operating_point": {
805
+ "schema_version": 1,
806
+ "nominal_ratio": 2,
807
+ "inputs": {
808
+ "input_voltage_v": 3,
809
+ "load": {
810
+ "kind": "current",
811
+ "value": 1
812
+ },
813
+ "switching_frequency_hz": 2000000,
814
+ "mode": "duty_cycle",
815
+ "duty": 0.5
816
+ },
817
+ "derived": {
818
+ "applied_duty": 0.5,
819
+ "ideal_output_voltage_v": 1.5,
820
+ "ideal_gain": 0.5,
821
+ "ideal_operating_ratio": 2,
822
+ "analytical_output_voltage_v": 1.48596,
823
+ "loaded_gain": 0.49532,
824
+ "operating_ratio": 2.018896874747638,
825
+ "conduction_mode": "positive_current_ccm"
826
+ },
827
+ "range": {
828
+ "duty": {
829
+ "min": 0.25,
830
+ "max": 0.75
831
+ },
832
+ "conduction_modes": [
833
+ "positive_current_ccm"
834
+ ],
835
+ "loaded_voltage_v": {
836
+ "min": 0.73596,
837
+ "max": 2.23596
838
+ }
839
+ },
840
+ "solver": {
841
+ "status": "resolved",
842
+ "valid": true,
843
+ "diagnostics": []
844
+ },
845
+ "measurement": {
846
+ "output_voltage_v": 1.4859600000002464,
847
+ "gain": 0.49532000000008214,
848
+ "operating_ratio": 2.0188968747473033
849
+ }
850
+ },
851
+ "stop_us": 126.49999999999999,
852
+ "max_step_ps": 1041.6666666666667,
853
+ "window_start_cycles": 247.826795,
854
+ "window_stop_cycles": 251.826795,
855
+ "vout_v": 1.4859600000002464,
856
+ "iout_a": 1,
857
+ "iin_a": 0.5000856827044818,
858
+ "input_w": 1.5002570481134456,
859
+ "electrical_input_w": 1.5002570481134456,
860
+ "delivered_w": 1.4859600000002464,
861
+ "stage_w": 0.014297048113199207,
862
+ "supplemental_gate_w": 0.0013667666552562015,
863
+ "coss_w": 0,
864
+ "gate_drive_v": 1.5,
865
+ "stage_efficiency": 0.9904702676576806,
866
+ "efficiency_with_gate": 0.9895687491005408,
867
+ "efficiency_includes_coss": true,
868
+ "switch_w": [
869
+ 0.0015331138278973336,
870
+ 0.001533113827897334,
871
+ 0.00153208219412607,
872
+ 0.00153208219412607,
873
+ 0.0015330364861892538,
874
+ 0.0015330364861892562,
875
+ 0.0015320048803041909,
876
+ 0.0015320048803041909
877
+ ],
878
+ "esr_w": [
879
+ 6.830919726691321e-25
880
+ ],
881
+ "dcr_w": [
882
+ 0.0010183368013474297,
883
+ 0.001018285420773509
884
+ ],
885
+ "storage_w": 1.4163868103551953e-8,
886
+ "balance_w": -6.304982353398662e-8,
887
+ "resistance_power_ohm": 0.014297048113199207,
888
+ "resistance_droop_ohm": 0.014039999999753583,
889
+ "ripple_vpp": 2.3092638912203256e-14,
890
+ "duty": 0.5,
891
+ "measured_duty": [
892
+ 0.4999999999998086,
893
+ 0.5000000000001914
894
+ ],
895
+ "winding_average_a": [
896
+ 0.5000064225659601,
897
+ 0.49999357742248246
898
+ ],
899
+ "winding_rms_a": [
900
+ 0.5045633759369159,
901
+ 0.5045506468070153
902
+ ],
903
+ "winding_voltage_peak_v": [
904
+ 1.50329076141754,
905
+ 1.503290761417656
906
+ ],
907
+ "winding_min_a": [
908
+ 0.3828198880678799,
909
+ 0.3828070324207022
910
+ ],
911
+ "winding_ripple_a": [
912
+ 0.2343730794998009,
913
+ 0.2343730794999333
914
+ ],
915
+ "winding_sum_ripple_a": 2.731148640577885e-13,
916
+ "winding_delta_ripple_a": 0.4687461589997342,
917
+ "winding_voltage_mean_v": [
918
+ -1.9570433761388223e-7,
919
+ 1.95704460023378e-7
920
+ ],
921
+ "switch_peak_v": [
922
+ 1.50743072203296,
923
+ 1.50743072203296,
924
+ 1.495390567292012,
925
+ 1.495390567292012,
926
+ 1.507430567291729,
927
+ 1.507430567291729,
928
+ 1.495390722033245,
929
+ 1.495390722033244
930
+ ],
931
+ "output_cap_rms_a": 1.1688387165636943e-11,
932
+ "output_cap_average_a": -1.1687825260698341e-11,
933
+ "gate_overlap_fraction": [
934
+ 0,
935
+ 0
936
+ ],
937
+ "window_drift_v": 2.353672812205332e-14,
938
+ "window_drift_w": 5.473068664940683e-10
939
+ }
940
+ },
941
+ "waveform_columns": [
942
+ "time_s",
943
+ "vin_v",
944
+ "vout_v",
945
+ "input_current_a",
946
+ "sw_a_v",
947
+ "sw_b_v",
948
+ "vgs_q1_v",
949
+ "vgs_q2_v",
950
+ "vgs_q3_v",
951
+ "vgs_q4_v",
952
+ "il_a_a",
953
+ "il_b_a",
954
+ "vl_a_v",
955
+ "vl_b_v",
956
+ "iq1_a",
957
+ "iq2_a",
958
+ "iq3_a",
959
+ "iq4_a",
960
+ "vcap_v",
961
+ "vds_m13_v",
962
+ "vds_m15_v",
963
+ "vds_m11_v",
964
+ "vds_m9_v",
965
+ "vds_m14_v",
966
+ "vds_m16_v",
967
+ "vds_m12_v",
968
+ "vds_m10_v",
969
+ "gate_fixture_power_w",
970
+ "coss_discharge_fixture_power_w",
971
+ "icap_a",
972
+ "output_current_a",
973
+ "input_power_w",
974
+ "delivered_power_w",
975
+ "winding_sum_a",
976
+ "winding_delta_a"
977
+ ]
978
+ }
979
+ }
docs/topology/2to1_buck_stacked/evidence/coss-cache.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "currentId": "buck_stacked",
3
+ "previousBuildCards": 10,
4
+ "currentCards": 10,
5
+ "assets": [
6
+ {
7
+ "path": "/pe.js",
8
+ "url": "http://127.0.0.1:8765/pe.js?v=buck-stacked-coss",
9
+ "cacheControl": "no-store"
10
+ },
11
+ {
12
+ "path": "/gallery.js",
13
+ "url": "http://127.0.0.1:8765/gallery.js?v=buck-stacked-coss",
14
+ "cacheControl": "no-store"
15
+ },
16
+ {
17
+ "path": "/compare/app.js",
18
+ "url": "http://127.0.0.1:8765/compare/app.js?v=buck-stacked-coss",
19
+ "cacheControl": "no-store"
20
+ },
21
+ {
22
+ "path": "/compare/style.css",
23
+ "url": "http://127.0.0.1:8765/compare/style.css?v=operating-conditions"
24
+ },
25
+ {
26
+ "path": "/compare/models-data.json",
27
+ "url": "http://127.0.0.1:8765/compare/models-data.json",
28
+ "cacheControl": "no-store"
29
+ },
30
+ {
31
+ "path": "/compare/switched-inductor.js",
32
+ "url": "http://127.0.0.1:8765/compare/switched-inductor.js?v=operating-conditions"
33
+ },
34
+ {
35
+ "path": "/compare/operating-point.js",
36
+ "url": "http://127.0.0.1:8765/compare/operating-point.js?v=operating-conditions"
37
+ },
38
+ {
39
+ "path": "/compare/operating-conditions.json",
40
+ "url": "http://127.0.0.1:8765/compare/operating-conditions.json",
41
+ "cacheControl": "no-store"
42
+ },
43
+ {
44
+ "path": "/compare/buck-stacked.js",
45
+ "url": "http://127.0.0.1:8765/compare/buck-stacked.js?v=buck-stacked-coss",
46
+ "cacheControl": "no-store"
47
+ },
48
+ {
49
+ "path": "/compare/engine.js",
50
+ "url": "http://127.0.0.1:8765/compare/engine.js?v=buck-stacked-coss",
51
+ "cacheControl": "no-store"
52
+ },
53
+ {
54
+ "path": "/compare/technology.js",
55
+ "url": "http://127.0.0.1:8765/compare/technology.js?v=buck-stacked-coss",
56
+ "cacheControl": "no-store"
57
+ }
58
+ ],
59
+ "normalReload": true,
60
+ "freshContext": true,
61
+ "blankCossHandoff": true
62
+ }
docs/topology/2to1_buck_stacked/evidence/coss-regressions.json ADDED
@@ -0,0 +1,290 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "date": "2026-11-30",
3
+ "audited_commit": "b7e5560",
4
+ "baselines": {
5
+ "validated-2to1-v1.0": "659f8088111bf639bdfe2e4236cc48a66af50f28",
6
+ "local-baseline-v1.0": "4cbae7715292e963c65e12e90d13699234ab26fe"
7
+ },
8
+ "known_stacked_decks_identical": 30,
9
+ "packaged_analysis_tests_passed": 45,
10
+ "baseline_2to1": {
11
+ "matched": {
12
+ "si2": {
13
+ "cases": 33,
14
+ "bench_relative_req_error": {
15
+ "value": 0.0001262280412663852,
16
+ "case": "duty_4"
17
+ },
18
+ "bench_absolute_vo_error": {
19
+ "value": 9.940919230566614e-06,
20
+ "case": "duty_1"
21
+ },
22
+ "bench_convergence_ohm": {
23
+ "value": 9.703032875924e-07,
24
+ "case": "ccm_reject"
25
+ },
26
+ "bench_energy_residual_w": {
27
+ "value": 2.0323409635715165e-06,
28
+ "case": "unequal_switches"
29
+ },
30
+ "numeric_energy_residual_w": {
31
+ "value": 5.506762927598441e-11,
32
+ "case": "cf_2"
33
+ },
34
+ "analysis_relative_req_difference": {
35
+ "value": 3.772370049359708e-05,
36
+ "case": "unequal_symmetric_duty"
37
+ },
38
+ "analysis_output_difference_v": {
39
+ "value": 3.385607068295826e-05,
40
+ "case": "unequal_symmetric_duty"
41
+ }
42
+ },
43
+ "sp2": {
44
+ "cases": 20,
45
+ "bench_relative_req_error": {
46
+ "value": 4.761822107179903e-05,
47
+ "case": "io_1"
48
+ },
49
+ "bench_absolute_vo_error": {
50
+ "value": 3.458280290802307e-06,
51
+ "case": "fs_1"
52
+ },
53
+ "bench_convergence_ohm": {
54
+ "value": 2.689999308760904e-06,
55
+ "case": "co_1"
56
+ },
57
+ "bench_energy_residual_w": {
58
+ "value": 0.0004411606570880663,
59
+ "case": "fs_1"
60
+ },
61
+ "numeric_energy_residual_w": {
62
+ "value": 4.447195533362376e-07,
63
+ "case": "fs_1"
64
+ },
65
+ "analysis_relative_req_difference": {
66
+ "value": 0.15266292141261317,
67
+ "case": "fs_1"
68
+ },
69
+ "analysis_output_difference_v": {
70
+ "value": 0.09440669609019381,
71
+ "case": "fs_1"
72
+ },
73
+ "clamped_relative_req_error": {
74
+ "value": 0.00019448670000654644,
75
+ "case": "fs_1"
76
+ },
77
+ "stiff_analysis_relative_req_error": {
78
+ "value": 1.0491368788168032e-06,
79
+ "case": "ssl_limit"
80
+ }
81
+ },
82
+ "rsc2": {
83
+ "cases": 27,
84
+ "bench_relative_req_error": {
85
+ "value": 0.00044707001744093144,
86
+ "case": "weak_tuned"
87
+ },
88
+ "bench_absolute_vo_error": {
89
+ "value": 6.7699519501474015e-06,
90
+ "case": "cf_1"
91
+ },
92
+ "bench_convergence_ohm": {
93
+ "value": 2.2274308092401496e-05,
94
+ "case": "cf_1"
95
+ },
96
+ "bench_energy_residual_w": {
97
+ "value": 2.7397526158477866e-05,
98
+ "case": "io_2"
99
+ },
100
+ "numeric_energy_residual_w": {
101
+ "value": 8.59941517300511e-09,
102
+ "case": "overdamped_math"
103
+ },
104
+ "analysis_relative_req_difference": {
105
+ "value": 0.06154319455331281,
106
+ "case": "co_1"
107
+ },
108
+ "analysis_output_difference_v": {
109
+ "value": 0.001725527723591025,
110
+ "case": "cf_1"
111
+ },
112
+ "clamped_relative_req_error": {
113
+ "value": 3.43617421874054e-05,
114
+ "case": "width_split_equal"
115
+ },
116
+ "stiff_analysis_relative_req_error": {
117
+ "value": 1.0447304132910062e-09,
118
+ "case": "fs_1"
119
+ }
120
+ }
121
+ },
122
+ "cold_starts": [
123
+ {
124
+ "id": "si2",
125
+ "case": "nominal",
126
+ "errors": {
127
+ "baseline_voltage_v": 4.611609316640397e-09,
128
+ "baseline_resistance_ohm": 1.2890324189995805e-09,
129
+ "refinement_voltage_v": 4.027889133340068e-13,
130
+ "refinement_resistance_ohm": 3.605557406458071e-09
131
+ }
132
+ },
133
+ {
134
+ "id": "si2",
135
+ "case": "unequal_switches",
136
+ "errors": {
137
+ "baseline_voltage_v": 2.421202495161978e-06,
138
+ "baseline_resistance_ohm": 1.3946700029576764e-07,
139
+ "refinement_voltage_v": 4.966363553737807e-07,
140
+ "refinement_resistance_ohm": 1.3527678470112714e-07
141
+ }
142
+ },
143
+ {
144
+ "id": "sp2",
145
+ "case": "nominal",
146
+ "errors": {
147
+ "baseline_voltage_v": 1.9666076545021838e-08,
148
+ "baseline_resistance_ohm": 2.6735799091015533e-06,
149
+ "refinement_voltage_v": 8.432834288640834e-07,
150
+ "refinement_resistance_ohm": 1.320453879280481e-06
151
+ }
152
+ },
153
+ {
154
+ "id": "sp2",
155
+ "case": "fs_1",
156
+ "errors": {
157
+ "baseline_voltage_v": 2.6489895721404366e-08,
158
+ "baseline_resistance_ohm": 8.261655695118719e-07,
159
+ "refinement_voltage_v": 1.0837374647687525e-06,
160
+ "refinement_resistance_ohm": 1.7644583839571126e-06
161
+ }
162
+ },
163
+ {
164
+ "id": "rsc2",
165
+ "case": "nominal",
166
+ "errors": {
167
+ "baseline_voltage_v": 4.1622922886119795e-09,
168
+ "baseline_resistance_ohm": 5.441106242648486e-09,
169
+ "refinement_voltage_v": 3.1415094570164115e-06,
170
+ "refinement_resistance_ohm": 2.7725770391714977e-07
171
+ }
172
+ },
173
+ {
174
+ "id": "rsc2",
175
+ "case": "damped_tune",
176
+ "errors": {
177
+ "baseline_voltage_v": 5.544986692029852e-11,
178
+ "baseline_resistance_ohm": 1.9827707184449928e-10,
179
+ "refinement_voltage_v": 1.6516888017292786e-06,
180
+ "refinement_resistance_ohm": 8.188446290018081e-07
181
+ }
182
+ }
183
+ ],
184
+ "analysis_chrome": {
185
+ "warm": false,
186
+ "conduction_efficiency_pct": [
187
+ 93.33333333336213,
188
+ 0.6666666666666673,
189
+ null
190
+ ],
191
+ "comparison_csv": {
192
+ "Topology": "SP-SC 2:1",
193
+ "Target_ratio": "2",
194
+ "kFET_Rs": "0.6666666666666666",
195
+ "kCAP_Rc": "0.5",
196
+ "kIND_Rl": "0",
197
+ "kSSL_over_Cf_fs": "0.125",
198
+ "RFET_pu": "0.6666666666666666",
199
+ "RCAP_pu": "0.1111111111575",
200
+ "RIND_pu": "0",
201
+ "RSSL_pu": "0.6944444447325",
202
+ "Req_pu": "0.9742458406221695",
203
+ "RFSL_pu": "0.7777777778241666",
204
+ "RSSL_add_pu": "0.19646806279800288",
205
+ "Switching_loss_scope": "RFET_pu and RCAP_pu are FSL baselines. Physical finite-RC terms sum independently to Req. Separate gate and optional Coss.",
206
+ "rho_C": "0.222222222315",
207
+ "rho_L": "0.422222222398",
208
+ "rho_Q": "5.55555555786",
209
+ "Model_domain": "M = 0.5 only; finite output droop",
210
+ "SP2_RFET_fsl_pu": "0.6666666666666666",
211
+ "SP2_RCAP_fsl_pu": "0.1111111111575",
212
+ "SP2_R_finite_rc_increment_pu": "0.19646806279800288",
213
+ "SP2_RFET_finite_rc_pu": "0.8350678633406252",
214
+ "SP2_RCAP_finite_rc_pu": "0.13917797728154435"
215
+ },
216
+ "design_csv": {
217
+ "Output_current_A": "1.1404833",
218
+ "FSL_MOSFET_W": "0.07804212942232389",
219
+ "FSL_capacitor_ESR_W": "0.013007021575788901",
220
+ "Finite_RC_increment_W": "0.022999178976380208",
221
+ "Physical_MOSFET_W": "0.09775571140090882",
222
+ "Physical_capacitor_ESR_W": "0.016292618573584175",
223
+ "Series_loss_W": "0.11404832997449299"
224
+ },
225
+ "fresh_context": true
226
+ },
227
+ "si2_chrome": "Chrome SI: gallery, design controls and exports, editable starter and exports, nominal and swept jobs, recovery, and handoff passed.",
228
+ "rsc2_chrome": [
229
+ "Chrome editor verified Export SVG",
230
+ "Chrome editor verified Export Netlist",
231
+ "Chrome: Gallery, Analysis sizing and exports, editable project and undo, NGSpice default and edited 4-point sweep, artifact bytes, invalid timing recovery, handoffs, reload and fresh context"
232
+ ],
233
+ "rsc2_first_attempt": "The script clicked Simulator before the edited Analysis point reached the parent. The serial rerun waits for the focused Analysis card and updated parent point. It passed. No RSC2 runtime change."
234
+ },
235
+ "baseline_4to1": {
236
+ "simulator_chrome": [
237
+ "Tag and live 4:1 measurements match for xfly6s",
238
+ "Tag and live 4:1 measurements match for xfly8s",
239
+ "Tag and live 4:1 measurements match for c3l",
240
+ "Tag and live XFLY6S 15-point sweep charts match",
241
+ "Chrome simultaneous timing and operating controls verified",
242
+ "Chrome verified fixed gain, input/load handoff, unavailable combinations, and error recovery"
243
+ ],
244
+ "analysis_chrome": [
245
+ "XFLY6S baseline and live Chrome UI, controls, scoreboard values and all four exports match",
246
+ "SP-SC controls, loss accounting, optimum and droop-bound width, charts, comparison, exports, disclosure and local image-review checks passed",
247
+ "All other original 4:1 Analysis design exports match the tag in Chrome",
248
+ "Regular cache-enabled Chrome reload serves the rebuilt Analysis assets"
249
+ ],
250
+ "matching_xfly6s_sweep_points": 15,
251
+ "tagged_sweep_runs": [
252
+ "20261130-120714-5296d732",
253
+ "20261130-120715-0c697247",
254
+ "20261130-120715-a247f927",
255
+ "20261130-120715-a93972c8",
256
+ "20261130-120716-36e81612",
257
+ "20261130-120716-bf044a08",
258
+ "20261130-120717-25ac6038",
259
+ "20261130-120717-328273b6",
260
+ "20261130-120717-e27e4c7c",
261
+ "20261130-120718-5ba981ce",
262
+ "20261130-120718-d9653e1b",
263
+ "20261130-120719-38045764",
264
+ "20261130-120719-502abfa8",
265
+ "20261130-120719-5b4f360f",
266
+ "20261130-120720-6884b6a5"
267
+ ],
268
+ "live_sweep_runs": [
269
+ "20261130-120722-022ce702",
270
+ "20261130-120722-6feb110e",
271
+ "20261130-120723-9b9aab1f",
272
+ "20261130-120723-ce2bff86",
273
+ "20261130-120724-358f1128",
274
+ "20261130-120724-90cbac06",
275
+ "20261130-120725-39454f8d",
276
+ "20261130-120725-77c1a7a0",
277
+ "20261130-120725-cab58dea",
278
+ "20261130-120726-34c3467b",
279
+ "20261130-120726-eb7e653a",
280
+ "20261130-120727-18b9b440",
281
+ "20261130-120727-3a681ddb",
282
+ "20261130-120727-747692c8",
283
+ "20261130-120728-a06dded5"
284
+ ]
285
+ },
286
+ "candidate": {
287
+ "simulator_axes": 16,
288
+ "simulator_sweep_points": 32
289
+ }
290
+ }
docs/topology/2to1_buck_stacked/evidence/coss-sweeps.json ADDED
@@ -0,0 +1,274 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "vin": {
3
+ "run": "1a20138d89384ed2a89d0770702573d9",
4
+ "rows": [
5
+ {
6
+ "value": 2.8,
7
+ "vout_v": 1.217996672339401,
8
+ "efficiency_with_gate": 0.9876699546318513,
9
+ "deck_sha256": "7bb047254de2a3c50c291bc35f2fdf16a75b30ddaf3b86214dc9b006fc5e1e5c"
10
+ },
11
+ {
12
+ "value": 3.3,
13
+ "vout_v": 1.437995671597078,
14
+ "efficiency_with_gate": 0.9892206149387989,
15
+ "deck_sha256": "14ee01a24833eb8e30f369bb87e2ddc8bb9dfe6da11bd878469392ac1f761194"
16
+ }
17
+ ]
18
+ },
19
+ "load": {
20
+ "run": "b0428210260f428196c3dc9452bc1cf4",
21
+ "rows": [
22
+ {
23
+ "value": 0.8,
24
+ "vout_v": 1.308797285867849,
25
+ "efficiency_with_gate": 0.9902134506847732,
26
+ "deck_sha256": "bd9f5537cc948c0bb8334d9dc814e6f320809da916dd7dd7f2f1ea28d6690625"
27
+ },
28
+ {
29
+ "value": 1.25,
30
+ "vout_v": 1.3025043625572823,
31
+ "efficiency_with_gate": 0.9859222459636466,
32
+ "deck_sha256": "d049d5ad956672442e1c13cd2a8d52c9bbe665bca1791ccd1b231006fa38b1f7"
33
+ }
34
+ ]
35
+ },
36
+ "fs": {
37
+ "run": "2dfadd4f8fcc4d0eb6e49c86f80acbe7",
38
+ "rows": [
39
+ {
40
+ "value": 1.8,
41
+ "vout_v": 1.305996451210651,
42
+ "efficiency_with_gate": 0.988389622394636,
43
+ "deck_sha256": "c958f6aaba27a0300a216cdc7728bd75115dd3fca4db85880dc4fcd1add5f7e1"
44
+ },
45
+ {
46
+ "value": 2.4,
47
+ "vout_v": 1.3060047168845959,
48
+ "efficiency_with_gate": 0.988273627872244,
49
+ "deck_sha256": "9943d1eb3d0d9151c7bad34f845e244169099b154d1e29e7b52f1d325887126c"
50
+ }
51
+ ]
52
+ },
53
+ "duty": {
54
+ "run": "390377c0cd6e4f529689e1cbe528d0fb",
55
+ "rows": [
56
+ {
57
+ "value": 0.3,
58
+ "vout_v": 0.8860070892803505,
59
+ "efficiency_with_gate": 0.9827397914238437,
60
+ "deck_sha256": "290c55c36e13efb52afe6f2159a901de2139c87b2b7956e75ca171cf0ad59fd8"
61
+ },
62
+ {
63
+ "value": 0.7,
64
+ "vout_v": 2.086007242368526,
65
+ "efficiency_with_gate": 0.9925963342587494,
66
+ "deck_sha256": "bd936adfd014322a640ac78d561d22c7f1c8f478fa95679b04f9088dcc458d44"
67
+ }
68
+ ]
69
+ },
70
+ "lt": {
71
+ "run": "479b551594914122963684d8fdf08857",
72
+ "rows": [
73
+ {
74
+ "value": 800,
75
+ "vout_v": 1.3059963288644987,
76
+ "efficiency_with_gate": 0.9882287424150187,
77
+ "deck_sha256": "bbdc6aa5f481bafd08596a49f47f451caf5c1faa28f46c545b612bb43aa1a953"
78
+ },
79
+ {
80
+ "value": 1450,
81
+ "vout_v": 1.3060026058153993,
82
+ "efficiency_with_gate": 0.9884805769283901,
83
+ "deck_sha256": "1ce9081a8ef643a61d40b0d504e1f79b28d8955c0212231de52cf77b8807ec1d"
84
+ }
85
+ ]
86
+ },
87
+ "coupling": {
88
+ "run": "f319a570aa51484d92b451443e18de77",
89
+ "rows": [
90
+ {
91
+ "value": 0,
92
+ "vout_v": 1.305998024423819,
93
+ "efficiency_with_gate": 0.988104961469467,
94
+ "deck_sha256": "54760ca947c21fd752df8e800d15d54e3b1bdee33243e726ed547765d583d71a"
95
+ },
96
+ {
97
+ "value": 0.72,
98
+ "vout_v": 1.3060071186959756,
99
+ "efficiency_with_gate": 0.9883280610881346,
100
+ "deck_sha256": "e9122637dad7fcc10f03edd1265c93385c5139f24459d258257a44a4387bbc81"
101
+ }
102
+ ]
103
+ },
104
+ "dcr": {
105
+ "run": "3aef9d161d964857bf25fca002150323",
106
+ "rows": [
107
+ {
108
+ "value": 3,
109
+ "vout_v": 1.306499761701609,
110
+ "efficiency_with_gate": 0.9887530210509373,
111
+ "deck_sha256": "08ec5133e27b7ed80e2d79b1b09f77ee4961afe36f437b373d1938e15d34efe9"
112
+ },
113
+ {
114
+ "value": 9,
115
+ "vout_v": 1.303500213972039,
116
+ "efficiency_with_gate": 0.9864316428078417,
117
+ "deck_sha256": "35bd00fb0ab5d02dd9fa3e2aedf8d4222aa822d964b32629dcb5750ddc73e859"
118
+ }
119
+ ]
120
+ },
121
+ "rs": {
122
+ "run": "4ba3c4a5e4124d33a266ec2120a97a4a",
123
+ "rows": [
124
+ {
125
+ "value": 9,
126
+ "vout_v": 1.3089996928569771,
127
+ "efficiency_with_gate": 0.9906852181272401,
128
+ "deck_sha256": "c2cdd0016773c93ed135534372c5f7230b9aaaddbe3c04856d39e013a07b4f0d"
129
+ },
130
+ {
131
+ "value": 18,
132
+ "vout_v": 1.299999600156637,
133
+ "efficiency_with_gate": 0.9837290456000247,
134
+ "deck_sha256": "46cd52a75d9615a1f8760305014e17871ad8973b523fcf7334f10c273f5a061b"
135
+ }
136
+ ]
137
+ },
138
+ "rslow": {
139
+ "run": "132d00021ce94f1ea8dcd2d28959dfcb",
140
+ "rows": [
141
+ {
142
+ "value": 10,
143
+ "vout_v": 1.3071195396925013,
144
+ "efficiency_with_gate": 0.9892279973457124,
145
+ "deck_sha256": "dbf026225053f3d5e5a125a6b39b8b7f887b2e6007161e80d66fa82cffd3f632"
146
+ },
147
+ {
148
+ "value": 18,
149
+ "vout_v": 1.3026405281903994,
150
+ "efficiency_with_gate": 0.98578227721669,
151
+ "deck_sha256": "75dc94f7896b65adcef7db163a9c83708e047fbf66fa70d47885734858ae2b9f"
152
+ }
153
+ ]
154
+ },
155
+ "gatecap": {
156
+ "run": "2fbc3bd644a9428b8e1181db0a0c470c",
157
+ "rows": [
158
+ {
159
+ "value": 4,
160
+ "vout_v": 1.3059999247829628,
161
+ "efficiency_with_gate": 0.9889267859746088,
162
+ "deck_sha256": "24bf5d6e7a85817e626243c224048b2b0aacefeb6ce209aea93fd187e1cbfd93"
163
+ },
164
+ {
165
+ "value": 42,
166
+ "vout_v": 1.3059999485892015,
167
+ "efficiency_with_gate": 0.9879048313651215,
168
+ "deck_sha256": "5fa0051e1d0d71983addd732a4c5269bcb009395f0a1c9219c6d78a349a06231"
169
+ }
170
+ ]
171
+ },
172
+ "coss": {
173
+ "run": "11a75e63470a4a5489a5cd9c56ac83d7",
174
+ "rows": [
175
+ {
176
+ "value": 5,
177
+ "vout_v": 1.3060001053788908,
178
+ "efficiency_with_gate": 0.9884292247590286,
179
+ "deck_sha256": "a9a7f266b5feb8f123f51066c3ac4c6af75c455cd0524b7bbf5798d7e6c43a85"
180
+ },
181
+ {
182
+ "value": 22,
183
+ "vout_v": 1.3059994889944002,
184
+ "efficiency_with_gate": 0.9881974543078786,
185
+ "deck_sha256": "c93cbb17f08c9b7b07c099dab6937d3144b008feed8d95922121cbf785213833"
186
+ }
187
+ ]
188
+ },
189
+ "cout": {
190
+ "run": "804e48e5c84f48d4ad28389d69b3e962",
191
+ "rows": [
192
+ {
193
+ "value": 38,
194
+ "vout_v": 1.3059997831788217,
195
+ "efficiency_with_gate": 0.9883543798546242,
196
+ "deck_sha256": "9558c525997adcc5942b53e0a4379057acba8e34a6175dbfb2e9a232fe3f3978"
197
+ },
198
+ {
199
+ "value": 60,
200
+ "vout_v": 1.3059997846729678,
201
+ "efficiency_with_gate": 0.9883662902942699,
202
+ "deck_sha256": "8a46b4acc25de1f8bd55b09b66c09c4e18ac9f6eebd575d6fb9ec71113f3c49c"
203
+ }
204
+ ]
205
+ },
206
+ "esr": {
207
+ "run": "ad0ce13249244d72a8f4fd038f117e5e",
208
+ "rows": [
209
+ {
210
+ "value": 2.5,
211
+ "vout_v": 1.305999895214845,
212
+ "efficiency_with_gate": 0.9883675575795037,
213
+ "deck_sha256": "da9a3ccc200f66907c611aaf90b416d49a43627744b141779b368a3ab34c3869"
214
+ },
215
+ {
216
+ "value": 11,
217
+ "vout_v": 1.305999569128121,
218
+ "efficiency_with_gate": 0.9883475192669045,
219
+ "deck_sha256": "53bb8a193266be5eeecbf8dd02eb9a702f5ecd6e1629a8682c51b2bc0b1728de"
220
+ }
221
+ ]
222
+ },
223
+ "stop": {
224
+ "run": "941efe6ae8de47bd879d0ce310193cf6",
225
+ "rows": [
226
+ {
227
+ "value": 85,
228
+ "vout_v": 1.3060014352907352,
229
+ "efficiency_with_gate": 0.988343374822484,
230
+ "deck_sha256": "af05d8f54d0eea807e67eedef96f5c2602ed64d6a4ad8558fd2d9a7c62e1afd5"
231
+ },
232
+ {
233
+ "value": 110,
234
+ "vout_v": 1.3060002716958652,
235
+ "efficiency_with_gate": 0.9883605426260474,
236
+ "deck_sha256": "c97be21dbb6d8a5e6f10a42273568a6df8f2491d0c8086f4b901c70fd6a35a8d"
237
+ }
238
+ ]
239
+ },
240
+ "step": {
241
+ "run": "079483e832ba494ab4c2011a11a563a0",
242
+ "rows": [
243
+ {
244
+ "value": 750,
245
+ "vout_v": 1.3059995598338114,
246
+ "efficiency_with_gate": 0.9883581800358697,
247
+ "deck_sha256": "3134d4bfef17f191feffee9b11b25cf57cada68133f4154c0595d7b5370af341"
248
+ },
249
+ {
250
+ "value": 1000,
251
+ "vout_v": 1.3059996509530707,
252
+ "efficiency_with_gate": 0.9883587531665791,
253
+ "deck_sha256": "911dac7abd0d5e19046223499fa3d84fa1c9c001b59410367fa631dd20d3299d"
254
+ }
255
+ ]
256
+ },
257
+ "target": {
258
+ "run": "73c5ca5864a24ec1ae0b199d90d0ae47",
259
+ "rows": [
260
+ {
261
+ "value": 1.3,
262
+ "vout_v": 1.2999998950120346,
263
+ "efficiency_with_gate": 0.9883076785464995,
264
+ "deck_sha256": "1e9d7facea3a5796ee96cd12a4b573585a439610ce4b0d7a448df6ca79921261"
265
+ },
266
+ {
267
+ "value": 1.65,
268
+ "vout_v": 1.6499995596601131,
269
+ "efficiency_with_gate": 0.9907681581562554,
270
+ "deck_sha256": "6541e0646e229b7391306245a60d036be1d9df7d5873e9f1817c57dca467a566"
271
+ }
272
+ ]
273
+ }
274
+ }
docs/topology/2to1_buck_stacked/evidence/coss-workflow.json ADDED
@@ -0,0 +1,243 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "analysis": {
3
+ "controls": {
4
+ "utilization": ".5",
5
+ "die_mm2": "1.5",
6
+ "ron_area_mohm_mm2": "1.1",
7
+ "vout": "3.2",
8
+ "io": "1.25",
9
+ "fs_mhz": "2.4",
10
+ "cap_uf": "44",
11
+ "si_l_nh": "1180",
12
+ "si_coupling": ".56",
13
+ "si_duty": ".61",
14
+ "rc_mohm": "6",
15
+ "rl_mohm": "5"
16
+ },
17
+ "losses": {
18
+ "fet": 0.018274235898271443,
19
+ "cap": 0.000024274633725940832,
20
+ "ind": 0.003940303911711195,
21
+ "gate": 0.0019181212561983475,
22
+ "coss": 0.0006556765090909092
23
+ },
24
+ "efficiency": 0.9898425425204165,
25
+ "deviceCount": 8
26
+ },
27
+ "simulator": {
28
+ "edited": {
29
+ "run": "9573c4d8f76f42919696bfb60f9fcabd",
30
+ "settings": {
31
+ "vin": "3.12",
32
+ "load": "1.24",
33
+ "fs": "2.25",
34
+ "lt": "1150",
35
+ "coupling": ".57",
36
+ "dcr": "5.1",
37
+ "rs": "9",
38
+ "rslow": "15",
39
+ "gatecap": "29",
40
+ "coss": "12",
41
+ "cout": "44",
42
+ "esr": "5.5",
43
+ "stop": "110",
44
+ "step": "750"
45
+ },
46
+ "metrics": {
47
+ "value": null,
48
+ "status": "passed",
49
+ "message": "",
50
+ "deck": "physical_design.cir",
51
+ "waveform": "physical_design_waveform.csv",
52
+ "deck_sha256": "dad1e3d29c8156095d53a1178c168dfeef1316ebc4282f22809e7444fa2d0f35",
53
+ "nominal_vout_v": 1.548070447394674,
54
+ "ideal_vout_v": 1.548070447394674,
55
+ "ideal_gain": 0.4961764254470109,
56
+ "vin_v": 3.12,
57
+ "target_vout_v": 1.53,
58
+ "analytical_vout_v": 1.53,
59
+ "analytical_gain": 0.49038461538461536,
60
+ "simulated_gain": 0.49038525452589316,
61
+ "target_error_v": 0.0000019941207867191224,
62
+ "operating_point": {
63
+ "schema_version": 1,
64
+ "nominal_ratio": 2,
65
+ "inputs": {
66
+ "input_voltage_v": 3.12,
67
+ "load": {
68
+ "kind": "current",
69
+ "value": 1.24
70
+ },
71
+ "switching_frequency_hz": 2250000,
72
+ "mode": "output_voltage",
73
+ "target_output_v": 1.53
74
+ },
75
+ "derived": {
76
+ "applied_duty": 0.4961764254470109,
77
+ "ideal_output_voltage_v": 1.548070447394674,
78
+ "ideal_gain": 0.4961764254470109,
79
+ "ideal_operating_ratio": 2.015412157276696,
80
+ "analytical_output_voltage_v": 1.53,
81
+ "loaded_gain": 0.49038461538461536,
82
+ "operating_ratio": 2.03921568627451,
83
+ "conduction_mode": "positive_current_ccm"
84
+ },
85
+ "range": {
86
+ "duty": {
87
+ "min": 0.25,
88
+ "max": 0.75
89
+ },
90
+ "conduction_modes": [
91
+ "positive_current_ccm"
92
+ ],
93
+ "loaded_voltage_v": {
94
+ "min": 0.7600980000000002,
95
+ "max": 2.3238180000000006
96
+ }
97
+ },
98
+ "solver": {
99
+ "status": "resolved",
100
+ "valid": true,
101
+ "diagnostics": []
102
+ },
103
+ "measurement": {
104
+ "output_voltage_v": 1.5300019941207867,
105
+ "gain": 0.49038525452589316,
106
+ "operating_ratio": 2.039213028472491
107
+ }
108
+ },
109
+ "stop_us": 109.77777777777777,
110
+ "max_step_ps": 750,
111
+ "window_start_cycles": 241.826795,
112
+ "window_stop_cycles": 245.826795,
113
+ "vout_v": 1.5300019941207867,
114
+ "iout_a": 1.24,
115
+ "iin_a": 0.61531573502324,
116
+ "input_w": 1.9200478357384068,
117
+ "electrical_input_w": 1.9197850932725093,
118
+ "delivered_w": 1.8972024727097756,
119
+ "stage_w": 0.0228453630286312,
120
+ "supplemental_gate_w": 0.0012685368412732009,
121
+ "coss_w": 0.00026274246589745126,
122
+ "gate_drive_v": 1.56,
123
+ "stage_efficiency": 0.9881016698629046,
124
+ "efficiency_with_gate": 0.9874492820578386,
125
+ "efficiency_includes_coss": true,
126
+ "switch_w": [
127
+ 0.001731450427558176,
128
+ 0.0017314504275581825,
129
+ 0.0029273181100958195,
130
+ 0.0029273181100958195,
131
+ 0.0017310186699023215,
132
+ 0.0017310186699023198,
133
+ 0.0029265873948264034,
134
+ 0.0029265873948264034
135
+ ],
136
+ "esr_w": [
137
+ 5.218069939160327e-8
138
+ ],
139
+ "dcr_w": [
140
+ 0.0019764422891168656,
141
+ 0.001975949183255344
142
+ ],
143
+ "storage_w": 0.0000016856390779655915,
144
+ "balance_w": -0.000004257934181265196,
145
+ "resistance_power_ohm": 0.014857806340160769,
146
+ "resistance_droop_ohm": 0.014571333285392972,
147
+ "ripple_vpp": 0.00005868304306799743,
148
+ "duty": 0.4961764254470109,
149
+ "measured_duty": [
150
+ 0.49617642544702895,
151
+ 0.49617642544708307
152
+ ],
153
+ "winding_average_a": [
154
+ 0.6200394746357759,
155
+ 0.6199615093272572
156
+ ],
157
+ "winding_rms_a": [
158
+ 0.6225252635422963,
159
+ 0.6224476012682332
160
+ ],
161
+ "winding_voltage_peak_v": [
162
+ 1.577966157209343,
163
+ 1.577967969800907
164
+ ],
165
+ "winding_min_a": [
166
+ 0.5219193478375418,
167
+ 0.5218412433449993
168
+ ],
169
+ "winding_ripple_a": [
170
+ 0.1963158339917308,
171
+ 0.1963160229724885
172
+ ],
173
+ "winding_sum_ripple_a": 0.010663416221979638,
174
+ "winding_delta_ripple_a": 0.3819915004426704,
175
+ "winding_voltage_mean_v": [
176
+ -0.0000028058149682428655,
177
+ -5.333717839772386e-7
178
+ ],
179
+ "switch_peak_v": [
180
+ 1.570772495601687,
181
+ 1.570772495601687,
182
+ 1.55530259719545,
183
+ 1.55530259719545,
184
+ 1.570771326869518,
185
+ 1.570771326869517,
186
+ 1.555303300116892,
187
+ 1.555303300116891
188
+ ],
189
+ "output_cap_rms_a": 0.0030801623154279407,
190
+ "output_cap_average_a": 9.839629561883076e-7,
191
+ "gate_overlap_fraction": [
192
+ 0,
193
+ 0
194
+ ],
195
+ "window_drift_v": 2.921751951490137e-8,
196
+ "window_drift_w": 0.0000011835857863934374
197
+ }
198
+ },
199
+ "sweep": {
200
+ "run": "f14b3dba6f26465dad00979bf0cd484d",
201
+ "rows": [
202
+ {
203
+ "duty": 0.475,
204
+ "vout": 1.4639125507001383,
205
+ "status": "passed"
206
+ },
207
+ {
208
+ "duty": 0.4875,
209
+ "vout": 1.5029112624462917,
210
+ "status": "passed"
211
+ },
212
+ {
213
+ "duty": 0.5,
214
+ "vout": 1.5419081960398158,
215
+ "status": "passed"
216
+ },
217
+ {
218
+ "duty": 0.5125,
219
+ "vout": 1.5809086248649153,
220
+ "status": "passed"
221
+ },
222
+ {
223
+ "duty": 0.525,
224
+ "vout": 1.6199069273546736,
225
+ "status": "passed"
226
+ }
227
+ ]
228
+ }
229
+ },
230
+ "reload": {
231
+ "versioned": [
232
+ "/pe.js",
233
+ "/gallery.js",
234
+ "/compare/recommend.js",
235
+ "/compare/index.html",
236
+ "/compare/buck-stacked.js",
237
+ "/compare/technology.js",
238
+ "/compare/engine.js",
239
+ "/compare/scoreboard.js",
240
+ "/compare/app.js"
241
+ ]
242
+ }
243
+ }
docs/topology/2to1_buck_stacked/evidence/coss-workspace.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "files": [
3
+ "/pe.js",
4
+ "/gallery.js",
5
+ "/compare/app.js",
6
+ "/compare/engine.js",
7
+ "/compare/buck-stacked.js",
8
+ "/compare/technology.js",
9
+ "/compare/recommend.js",
10
+ "/compare/models-data.json",
11
+ "/compare/operating-conditions.json"
12
+ ],
13
+ "axes": [
14
+ "duty_cycle",
15
+ "output_voltage",
16
+ "input_voltage_v",
17
+ "output_current_a",
18
+ "switching_frequency_mhz"
19
+ ],
20
+ "comparison": "buck2 add/remove",
21
+ "coefficients": true
22
+ }
docs/topology/2to1_buck_stacked/evidence/duty-comparison.svg ADDED
docs/topology/2to1_buck_stacked/evidence/event-comparison.svg ADDED
docs/topology/2to1_buck_stacked/evidence/executed-decks.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49fc608ed4afff7deffa3ef1dcf1cd35cdd74f911b11fb922147b0276544eff0
3
+ size 933126
docs/topology/2to1_buck_stacked/evidence/matched-results.json ADDED
@@ -0,0 +1,1019 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "case": "d25",
4
+ "duty": 0.25,
5
+ "settings": {
6
+ "duty": 0.25
7
+ },
8
+ "analytical": {
9
+ "voltage": 0.736,
10
+ "phase_ripple": 0.35156249999999994,
11
+ "channel": 0.01232958984375,
12
+ "esr": 9.155273437499995e-05,
13
+ "dcr": 0.002054931640625,
14
+ "gate": 0.0009,
15
+ "coss": 0.00018,
16
+ "efficiency": 0.9793015122192702
17
+ },
18
+ "numerical": {
19
+ "voltage": 0.7359999999999683,
20
+ "phase_ripple": 0.3515920284398314,
21
+ "channel": 0.012329659598958497,
22
+ "esr": 9.15818865831373e-05,
23
+ "dcr": 0.002054943266493083,
24
+ "gate": 0.0009,
25
+ "coss": 0.00018,
26
+ "efficiency": 0.9793013681908986
27
+ },
28
+ "ngspice": {
29
+ "voltage": 0.7359958462138886,
30
+ "phase_ripple": 0.3516062428399312,
31
+ "channel": 0.012332827540154925,
32
+ "esr": 9.159593381356348e-05,
33
+ "dcr": 0.0020554697567145386,
34
+ "gate": 0.0008987211991537863,
35
+ "coss": 0.00017990516096501552,
36
+ "efficiency": 0.9792982114152936
37
+ },
38
+ "numerical_checks": {
39
+ "balance_w": 3.572655409359027e-12,
40
+ "charge_average_a": 8.07283545025371e-12,
41
+ "periodic_change": 3.3306690738754696e-14
42
+ },
43
+ "spice_checks": {
44
+ "balance_w": 2.9235042823126434e-06,
45
+ "window_drift_v": 4.15449192225914e-06,
46
+ "output_cap_average_a": 0.0001300472941650145,
47
+ "winding_voltage_mean_v": [
48
+ 4.62173291511062e-06,
49
+ 1.2317989095882686e-05
50
+ ],
51
+ "switch_peak_v": [
52
+ 1.508110759664893,
53
+ 1.508110759664893,
54
+ 1.496107121961005,
55
+ 1.496107121961005,
56
+ 1.508110528621556,
57
+ 1.508110528621556,
58
+ 1.496107412469407,
59
+ 1.496107412469407
60
+ ],
61
+ "winding_min_a": [
62
+ 0.324336779130373,
63
+ 0.3243125686948061
64
+ ],
65
+ "deck_sha256": "a59b7cd3fcf361c5a3d81bb980c07c3b6dae31e562f07ff2b16b8f7a7ce93046"
66
+ }
67
+ },
68
+ {
69
+ "case": "d35",
70
+ "duty": 0.35,
71
+ "settings": {
72
+ "duty": 0.35
73
+ },
74
+ "analytical": {
75
+ "voltage": 1.0359999999999998,
76
+ "phase_ripple": 0.3609374999999999,
77
+ "channel": 0.0123273046875,
78
+ "esr": 6.4599609375e-05,
79
+ "dcr": 0.00205455078125,
80
+ "gate": 0.0009,
81
+ "coss": 0.00018,
82
+ "efficiency": 0.9852343657136314
83
+ },
84
+ "numerical": {
85
+ "voltage": 1.0359999999999463,
86
+ "phase_ripple": 0.3609581739146339,
87
+ "channel": 0.012327351088595579,
88
+ "esr": 6.461908204881948e-05,
89
+ "dcr": 0.00205455851476593,
90
+ "gate": 0.0009,
91
+ "coss": 0.00018,
92
+ "efficiency": 0.985234296746824
93
+ },
94
+ "ngspice": {
95
+ "voltage": 1.0359968326358382,
96
+ "phase_ripple": 0.36094798122675376,
97
+ "channel": 0.01232716997747434,
98
+ "esr": 6.462995674787992e-05,
99
+ "dcr": 0.00205452682960005,
100
+ "gate": 0.0008987210707986543,
101
+ "coss": 0.0001797774218702631,
102
+ "efficiency": 0.9852358483156598
103
+ },
104
+ "numerical_checks": {
105
+ "balance_w": 3.058773286740424e-12,
106
+ "charge_average_a": 4.765671608427183e-12,
107
+ "periodic_change": 1.9484414082171497e-14
108
+ },
109
+ "spice_checks": {
110
+ "balance_w": -7.258395962956438e-06,
111
+ "window_drift_v": 3.6958010074528147e-07,
112
+ "output_cap_average_a": -9.198845269962882e-06,
113
+ "winding_voltage_mean_v": [
114
+ -4.208360245856767e-06,
115
+ -5.046449995134335e-06
116
+ ],
117
+ "switch_peak_v": [
118
+ 1.508163485770895,
119
+ 1.508163485770895,
120
+ 1.496166593130219,
121
+ 1.496166593130219,
122
+ 1.508163850988244,
123
+ 1.508163850988244,
124
+ 1.496166231320432,
125
+ 1.496166231320431
126
+ ],
127
+ "winding_min_a": [
128
+ 0.3194031444875688,
129
+ 0.3194332983056472
130
+ ],
131
+ "deck_sha256": "c375a309f499065072666adb008be16ebf4e134f89616e6ff5678a1d79d25928"
132
+ }
133
+ },
134
+ {
135
+ "case": "d45",
136
+ "duty": 0.45,
137
+ "settings": {
138
+ "duty": 0.45
139
+ },
140
+ "analytical": {
141
+ "voltage": 1.336,
142
+ "phase_ripple": 0.2953125,
143
+ "channel": 0.012242050781250003,
144
+ "esr": 1.1865234374999991e-05,
145
+ "dcr": 0.0020403417968750002,
146
+ "gate": 0.0009,
147
+ "coss": 0.00018,
148
+ "efficiency": 0.9886232420636851
149
+ },
150
+ "numerical": {
151
+ "voltage": 1.3360000000002137,
152
+ "phase_ripple": 0.29531598762619643,
153
+ "channel": 0.0122420575037948,
154
+ "esr": 1.1868206466705258e-05,
155
+ "dcr": 0.002040342917299133,
156
+ "gate": 0.0009,
157
+ "coss": 0.00018,
158
+ "efficiency": 0.988623234151726
159
+ },
160
+ "ngspice": {
161
+ "voltage": 1.3360006798871775,
162
+ "phase_ripple": 0.29531068290795615,
163
+ "channel": 0.012242424516772031,
164
+ "esr": 1.1872462587413124e-05,
165
+ "dcr": 0.002040402586148312,
166
+ "gate": 0.0008987210707984777,
167
+ "coss": 0.00017977742187041018,
168
+ "efficiency": 0.9886240230708394
169
+ },
170
+ "numerical_checks": {
171
+ "balance_w": -1.9554231497909136e-11,
172
+ "charge_average_a": -1.3292942389734642e-11,
173
+ "periodic_change": 2.531308496145357e-14
174
+ },
175
+ "spice_checks": {
176
+ "balance_w": -7.546971248456989e-06,
177
+ "window_drift_v": 6.860714178991145e-07,
178
+ "output_cap_average_a": 1.4213728265223589e-05,
179
+ "winding_voltage_mean_v": [
180
+ -6.225066074422151e-06,
181
+ -6.552915821840355e-06
182
+ ],
183
+ "switch_peak_v": [
184
+ 1.507769564341215,
185
+ 1.507769564341215,
186
+ 1.495772811461092,
187
+ 1.495772811461092,
188
+ 1.507769704740159,
189
+ 1.507769704740159,
190
+ 1.495772684303423,
191
+ 1.495772684303422
192
+ ],
193
+ "winding_min_a": [
194
+ 0.3522350384104974,
195
+ 0.3522456399981256
196
+ ],
197
+ "deck_sha256": "25e25b7fa07ade573ee3f4e002758d97898abb3d5e413e0fe1a894282f479671"
198
+ }
199
+ },
200
+ {
201
+ "case": "nominal",
202
+ "duty": 0.5,
203
+ "settings": {},
204
+ "analytical": {
205
+ "voltage": 1.486,
206
+ "phase_ripple": 0.234375,
207
+ "channel": 0.0122197265625,
208
+ "esr": 0.0,
209
+ "dcr": 0.00203662109375,
210
+ "gate": 0.0009,
211
+ "coss": 0.00018,
212
+ "efficiency": 0.9897848688735261
213
+ },
214
+ "numerical": {
215
+ "voltage": 1.4859999999998892,
216
+ "phase_ripple": 0.23437462616042998,
217
+ "channel": 0.012219726142322085,
218
+ "esr": 1.3314440510495465e-24,
219
+ "dcr": 0.0020366210237203475,
220
+ "gate": 0.0009,
221
+ "coss": 0.00018,
222
+ "efficiency": 0.9897848691967042
223
+ },
224
+ "ngspice": {
225
+ "voltage": 1.4860000000002356,
226
+ "phase_ripple": 0.2343731143693255,
227
+ "channel": 0.012219742396070108,
228
+ "esr": 3.882432009924975e-25,
229
+ "dcr": 0.002036622232697541,
230
+ "gate": 0.0008987210708019572,
231
+ "coss": 0.00017977742187026314,
232
+ "efficiency": 0.9897858475826276
233
+ },
234
+ "numerical_checks": {
235
+ "balance_w": 9.800977737728367e-12,
236
+ "charge_average_a": 1.6318317067979634e-11,
237
+ "periodic_change": 1.0302869668521453e-13
238
+ },
239
+ "spice_checks": {
240
+ "balance_w": -6.314532578050562e-08,
241
+ "window_drift_v": 6.8833827526759706e-15,
242
+ "output_cap_average_a": -8.81147874153936e-12,
243
+ "winding_voltage_mean_v": [
244
+ -2.374877125839877e-07,
245
+ 2.3748777207481734e-07
246
+ ],
247
+ "switch_peak_v": [
248
+ 1.507406052169711,
249
+ 1.507406052169711,
250
+ 1.495405864523097,
251
+ 1.495405864523097,
252
+ 1.507405864522849,
253
+ 1.507405864522849,
254
+ 1.495406052169959,
255
+ 1.495406052169959
256
+ ],
257
+ "winding_min_a": [
258
+ 0.382821263489706,
259
+ 0.3828056221322905
260
+ ],
261
+ "deck_sha256": "77bdc1dedd8eccf19dbab9df9920758ffce3ff7c4a6f75d13f3860cfcd57f143"
262
+ }
263
+ },
264
+ {
265
+ "case": "d55",
266
+ "duty": 0.55,
267
+ "settings": {
268
+ "duty": 0.55
269
+ },
270
+ "analytical": {
271
+ "voltage": 1.6360000000000001,
272
+ "phase_ripple": 0.29531250000000003,
273
+ "channel": 0.012242050781250001,
274
+ "esr": 1.1865234375000015e-05,
275
+ "dcr": 0.0020403417968750002,
276
+ "gate": 0.0009,
277
+ "coss": 0.00018,
278
+ "efficiency": 0.9906900221195978
279
+ },
280
+ "numerical": {
281
+ "voltage": 1.6360000000002577,
282
+ "phase_ripple": 0.2953159876261898,
283
+ "channel": 0.01224205750372313,
284
+ "esr": 1.1868206466708597e-05,
285
+ "dcr": 0.002040342917287188,
286
+ "gate": 0.0009,
287
+ "coss": 0.00018,
288
+ "efficiency": 0.9906900156314942
289
+ },
290
+ "ngspice": {
291
+ "voltage": 1.6360001344365622,
292
+ "phase_ripple": 0.29530533592264807,
293
+ "channel": 0.012242057836904859,
294
+ "esr": 1.1872557294515197e-05,
295
+ "dcr": 0.0020403414728362027,
296
+ "gate": 0.0008987210707988616,
297
+ "coss": 0.00017977742187041018,
298
+ "efficiency": 0.9906909152287433
299
+ },
300
+ "numerical_checks": {
301
+ "balance_w": -2.8973552723687845e-11,
302
+ "charge_average_a": -1.627971336635504e-11,
303
+ "periodic_change": 2.886579864025407e-14
304
+ },
305
+ "spice_checks": {
306
+ "balance_w": -7.554385348212826e-06,
307
+ "window_drift_v": 5.7104166950594504e-08,
308
+ "output_cap_average_a": -1.0648205672378264e-06,
309
+ "winding_voltage_mean_v": [
310
+ -5.938720643727032e-06,
311
+ -5.362391767980047e-06
312
+ ],
313
+ "switch_peak_v": [
314
+ 1.50777293244124,
315
+ 1.50777293244124,
316
+ 1.495769421685115,
317
+ 1.495769421685114,
318
+ 1.507772697426039,
319
+ 1.507772697426039,
320
+ 1.495769661897923,
321
+ 1.495769661897923
322
+ ],
323
+ "winding_min_a": [
324
+ 0.3524631790156436,
325
+ 0.3524431462175288
326
+ ],
327
+ "deck_sha256": "d65e4835b87e0c12e41ee97f4ee774e71452ec27bee1f03d7e2818a0d9275e56"
328
+ }
329
+ },
330
+ {
331
+ "case": "d65",
332
+ "duty": 0.65,
333
+ "settings": {
334
+ "duty": 0.65
335
+ },
336
+ "analytical": {
337
+ "voltage": 1.9360000000000002,
338
+ "phase_ripple": 0.3609374999999998,
339
+ "channel": 0.0123273046875,
340
+ "esr": 6.4599609375e-05,
341
+ "dcr": 0.00205455078125,
342
+ "gate": 0.0009,
343
+ "coss": 0.00018,
344
+ "efficiency": 0.9920439433256345
345
+ },
346
+ "numerical": {
347
+ "voltage": 1.93599999999988,
348
+ "phase_ripple": 0.360958173914613,
349
+ "channel": 0.012327351088695766,
350
+ "esr": 6.461908204881075e-05,
351
+ "dcr": 0.002054558514782627,
352
+ "gate": 0.0009,
353
+ "coss": 0.00018,
354
+ "efficiency": 0.9920439059078606
355
+ },
356
+ "ngspice": {
357
+ "voltage": 1.9359966653929472,
358
+ "phase_ripple": 0.3609463102957963,
359
+ "channel": 0.012327344853314352,
360
+ "esr": 6.462889935761336e-05,
361
+ "dcr": 0.0020545559755704218,
362
+ "gate": 0.0008987210707985463,
363
+ "coss": 0.00017977742187041018,
364
+ "efficiency": 0.9920446550649602
365
+ },
366
+ "numerical_checks": {
367
+ "balance_w": 1.2861482712178685e-11,
368
+ "charge_average_a": 8.941512704948099e-12,
369
+ "periodic_change": 2.4424906541753444e-14
370
+ },
371
+ "spice_checks": {
372
+ "balance_w": -7.259768192825726e-06,
373
+ "window_drift_v": 8.18122496415441e-08,
374
+ "output_cap_average_a": -1.8459820170789253e-06,
375
+ "winding_voltage_mean_v": [
376
+ -4.989180096263228e-06,
377
+ -4.1510461092010645e-06
378
+ ],
379
+ "switch_peak_v": [
380
+ 1.508166508977034,
381
+ 1.508166508977034,
382
+ 1.496163564149328,
383
+ 1.496163564149327,
384
+ 1.508166148561385,
385
+ 1.508166148561385,
386
+ 1.496163928207561,
387
+ 1.496163928207561
388
+ ],
389
+ "winding_min_a": [
390
+ 0.3196405975233885,
391
+ 0.3196102573851493
392
+ ],
393
+ "deck_sha256": "8736aa677e079c1246e4062ee7f3615c9a286b50b63821a14b31dfb5d7e37324"
394
+ }
395
+ },
396
+ {
397
+ "case": "d75",
398
+ "duty": 0.75,
399
+ "settings": {
400
+ "duty": 0.75
401
+ },
402
+ "analytical": {
403
+ "voltage": 2.236,
404
+ "phase_ripple": 0.3515625,
405
+ "channel": 0.01232958984375,
406
+ "esr": 9.155273437499995e-05,
407
+ "dcr": 0.002054931640625,
408
+ "gate": 0.0009,
409
+ "coss": 0.00018,
410
+ "efficiency": 0.9930909674438609
411
+ },
412
+ "numerical": {
413
+ "voltage": 2.2359999999997777,
414
+ "phase_ripple": 0.35159202843983983,
415
+ "channel": 0.012329659599353145,
416
+ "esr": 9.15818865831336e-05,
417
+ "dcr": 0.002054943266558858,
418
+ "gate": 0.0009,
419
+ "coss": 0.00018,
420
+ "efficiency": 0.9930909186908845
421
+ },
422
+ "ngspice": {
423
+ "voltage": 2.2359912481916466,
424
+ "phase_ripple": 0.35158779551665975,
425
+ "channel": 0.012330042251358262,
426
+ "esr": 9.159371983705094e-05,
427
+ "dcr": 0.002055005541909999,
428
+ "gate": 0.0008987212636494097,
429
+ "coss": 0.00017991933834196134,
430
+ "efficiency": 0.9930912899619367
431
+ },
432
+ "numerical_checks": {
433
+ "balance_w": 3.2023182716667264e-11,
434
+ "charge_average_a": 2.451656298764135e-11,
435
+ "periodic_change": 1.0835776720341528e-13
436
+ },
437
+ "spice_checks": {
438
+ "balance_w": 6.610203151180221e-06,
439
+ "window_drift_v": 7.654280795854618e-07,
440
+ "output_cap_average_a": 1.4148450626403982e-05,
441
+ "winding_voltage_mean_v": [
442
+ 4.138905951641456e-06,
443
+ 4.452893631362783e-06
444
+ ],
445
+ "switch_peak_v": [
446
+ 1.508108019731599,
447
+ 1.508108019731599,
448
+ 1.496109606214141,
449
+ 1.496109606214141,
450
+ 1.508107906537385,
451
+ 1.508107906537385,
452
+ 1.496109749445693,
453
+ 1.496109749445692
454
+ ],
455
+ "winding_min_a": [
456
+ 0.3241566547037419,
457
+ 0.3241447181931225
458
+ ],
459
+ "deck_sha256": "63c072f71496e13facf0a6465881419ecaa1cca522fbeb0ad81f3cfbf452623e"
460
+ }
461
+ },
462
+ {
463
+ "case": "unequal",
464
+ "duty": 0.64,
465
+ "settings": {
466
+ "duty": 0.64,
467
+ "switch_ron_mohm": 7.5,
468
+ "low_ron_mohm": 21,
469
+ "output_current_a": 1.35
470
+ },
471
+ "analytical": {
472
+ "voltage": 1.900614,
473
+ "phase_ripple": 0.3577500000000002,
474
+ "channel": 0.022933796895000007,
475
+ "esr": 5.9535e-05,
476
+ "dcr": 0.003698429625000001,
477
+ "gate": 0.0009,
478
+ "coss": 0.00018,
479
+ "efficiency": 0.9892921983202595
480
+ },
481
+ "numerical": {
482
+ "voltage": 1.9006163575935835,
483
+ "phase_ripple": 0.359941840046663,
484
+ "channel": 0.022932460587991147,
485
+ "esr": 6.027853953113371e-05,
486
+ "dcr": 0.0036990877981610878,
487
+ "gate": 0.0009,
488
+ "coss": 0.00018,
489
+ "efficiency": 0.9892921865123415
490
+ },
491
+ "ngspice": {
492
+ "voltage": 1.9006196705608525,
493
+ "phase_ripple": 0.3599304741887356,
494
+ "channel": 0.02293248691199308,
495
+ "esr": 6.0289042828115015e-05,
496
+ "dcr": 0.003699083923776916,
497
+ "gate": 0.0008987210977241761,
498
+ "coss": 0.00017977742184303646,
499
+ "efficiency": 0.9892927651249098
500
+ },
501
+ "numerical_checks": {
502
+ "balance_w": 7.648031513651787e-13,
503
+ "charge_average_a": -1.9822712942667645e-12,
504
+ "periodic_change": 3.93574062229618e-14
505
+ },
506
+ "spice_checks": {
507
+ "balance_w": -7.292705367450959e-06,
508
+ "window_drift_v": 1.3931857245630397e-07,
509
+ "output_cap_average_a": -1.6284256992604835e-06,
510
+ "winding_voltage_mean_v": [
511
+ -4.612682653453137e-06,
512
+ -1.995279078123196e-06
513
+ ],
514
+ "switch_peak_v": [
515
+ 1.51795894796199,
516
+ 1.51795894796199,
517
+ 1.496284757778306,
518
+ 1.496284757778306,
519
+ 1.517957008400397,
520
+ 1.517957008400397,
521
+ 1.49628543184311,
522
+ 1.49628543184311
523
+ ],
524
+ "winding_min_a": [
525
+ 0.4953002315933611,
526
+ 0.495210353048625
527
+ ],
528
+ "deck_sha256": "c6feef9477594abb6378d3583346a1d70c3fb55f278edd47e3c05c9e4fb97ff0"
529
+ }
530
+ },
531
+ {
532
+ "case": "combined",
533
+ "duty": 0.38,
534
+ "settings": {
535
+ "duty": 0.38,
536
+ "input_voltage_v": 3.8,
537
+ "output_current_a": 1.5,
538
+ "switching_frequency_mhz": 3.4,
539
+ "inductance_nh": 1500,
540
+ "coupling": 0.45,
541
+ "output_esr_mohm": 11,
542
+ "dcr_mohm": 18,
543
+ "output_cap_uf": 24,
544
+ "switch_coff_pf": 23,
545
+ "gate_cap_pf": 54
546
+ },
547
+ "analytical": {
548
+ "voltage": 1.4124999999999999,
549
+ "phase_ripple": 0.1594089372426085,
550
+ "channel": 0.027071696060432318,
551
+ "esr": 1.3992733983432939e-05,
552
+ "dcr": 0.02030377204532424,
553
+ "gate": 0.005302368,
554
+ "coss": 0.001129208,
555
+ "efficiency": 0.9752270301283088
556
+ },
557
+ "numerical": {
558
+ "voltage": 1.4125000000001842,
559
+ "phase_ripple": 0.15941079251186618,
560
+ "channel": 0.02707169748638179,
561
+ "esr": 1.3994083247136601e-05,
562
+ "dcr": 0.020303773114786344,
563
+ "gate": 0.005302368,
564
+ "coss": 0.001129208,
565
+ "efficiency": 0.9752270284025082
566
+ },
567
+ "ngspice": {
568
+ "voltage": 1.4125297417083853,
569
+ "phase_ripple": 0.15941883654573874,
570
+ "channel": 0.027071123689108474,
571
+ "esr": 1.39955727749387e-05,
572
+ "dcr": 0.020303331937065343,
573
+ "gate": 0.005294987444994335,
574
+ "coss": 0.0011286509622045354,
575
+ "efficiency": 0.9752315550014499
576
+ },
577
+ "numerical_checks": {
578
+ "balance_w": -1.4084653582324691e-14,
579
+ "charge_average_a": -1.8657156304916975e-13,
580
+ "periodic_change": 3.885780586188048e-14
581
+ },
582
+ "spice_checks": {
583
+ "balance_w": -2.708639081695835e-05,
584
+ "window_drift_v": 6.786506292488781e-07,
585
+ "output_cap_average_a": -1.7084520185152993e-05,
586
+ "winding_voltage_mean_v": [
587
+ -7.815854006675119e-07,
588
+ -4.2379733978705093e-05
589
+ ],
590
+ "switch_peak_v": [
591
+ 1.909947782225825,
592
+ 1.909947782225825,
593
+ 1.891964739402599,
594
+ 1.891964739402598,
595
+ 1.90996431875594,
596
+ 1.909964318755939,
597
+ 1.891948450714648,
598
+ 1.891948450714648
599
+ ],
600
+ "winding_min_a": [
601
+ 0.6695864968774807,
602
+ 0.6709438880049327
603
+ ],
604
+ "deck_sha256": "d5458f443e8838c2a14f49316599769271c415a9bd4bc3905d21c9c71c17a8b3"
605
+ }
606
+ },
607
+ {
608
+ "case": "no_coupling",
609
+ "duty": 0.55,
610
+ "settings": {
611
+ "duty": 0.55,
612
+ "coupling": 0,
613
+ "switching_frequency_mhz": 3.4
614
+ },
615
+ "analytical": {
616
+ "voltage": 1.6360000000000001,
617
+ "phase_ripple": 0.21838235294117653,
618
+ "channel": 0.012190763408304498,
619
+ "esr": 6.568987889273366e-07,
620
+ "dcr": 0.002031793901384083,
621
+ "gate": 0.00153,
622
+ "coss": 0.000306,
623
+ "efficiency": 0.9902792744531427
624
+ },
625
+ "numerical": {
626
+ "voltage": 1.6360000000003523,
627
+ "phase_ripple": 0.21838218237305074,
628
+ "channel": 0.012190763142526356,
629
+ "esr": 6.569221641438168e-07,
630
+ "dcr": 0.002031793857087726,
631
+ "gate": 0.00153,
632
+ "coss": 0.000306,
633
+ "efficiency": 0.9902792746249982
634
+ },
635
+ "ngspice": {
636
+ "voltage": 1.6360022545206707,
637
+ "phase_ripple": 0.21838154850100694,
638
+ "channel": 0.012190789698247339,
639
+ "esr": 6.57174810105045e-07,
640
+ "dcr": 0.0020317967830683365,
641
+ "gate": 0.001527831522881377,
642
+ "coss": 0.0003058370947274896,
643
+ "efficiency": 0.9902806675472218
644
+ },
645
+ "numerical_checks": {
646
+ "balance_w": -2.986922601616593e-11,
647
+ "charge_average_a": -1.8060777999629536e-12,
648
+ "periodic_change": 1.0191847366058937e-13
649
+ },
650
+ "spice_checks": {
651
+ "balance_w": -5.3169899617590775e-06,
652
+ "window_drift_v": 8.396012995959268e-09,
653
+ "output_cap_average_a": 3.2711265839886043e-07,
654
+ "winding_voltage_mean_v": [
655
+ 2.8901917152470084e-06,
656
+ -7.408399303329117e-06
657
+ ],
658
+ "switch_peak_v": [
659
+ 1.507307669256362,
660
+ 1.507307669256362,
661
+ 1.495312443769914,
662
+ 1.495312443769914,
663
+ 1.507312084331903,
664
+ 1.507312084331903,
665
+ 1.495308027201223,
666
+ 1.495308027201222
667
+ ],
668
+ "winding_min_a": [
669
+ 0.3906124893964677,
670
+ 0.390980536961544
671
+ ],
672
+ "deck_sha256": "91098f1c08e8e1b1c0a83bc2af4fa3c1fc30a5ee9280bb04d580cb59b976e3c3"
673
+ }
674
+ },
675
+ {
676
+ "case": "zero_events",
677
+ "duty": 0.5,
678
+ "settings": {
679
+ "switch_coff_pf": 0,
680
+ "gate_cap_pf": 0
681
+ },
682
+ "analytical": {
683
+ "voltage": 1.486,
684
+ "phase_ripple": 0.234375,
685
+ "channel": 0.0122197265625,
686
+ "esr": 0.0,
687
+ "dcr": 0.00203662109375,
688
+ "gate": 0.0,
689
+ "coss": 0.0,
690
+ "efficiency": 0.9904973922099901
691
+ },
692
+ "numerical": {
693
+ "voltage": 1.4859999999998892,
694
+ "phase_ripple": 0.23437462616042998,
695
+ "channel": 0.012219726142322085,
696
+ "esr": 1.3314440510495465e-24,
697
+ "dcr": 0.0020366210237203475,
698
+ "gate": 0.0,
699
+ "coss": 0.0,
700
+ "efficiency": 0.9904973925336337
701
+ },
702
+ "ngspice": {
703
+ "voltage": 1.4860000000001914,
704
+ "phase_ripple": 0.2343729868428185,
705
+ "channel": 0.012219742640573244,
706
+ "esr": 1.0379744393307624e-25,
707
+ "dcr": 0.002036622273447964,
708
+ "gate": 0.0,
709
+ "coss": 0.0,
710
+ "efficiency": 0.9904973808160871
711
+ },
712
+ "numerical_checks": {
713
+ "balance_w": 9.800977737728367e-12,
714
+ "charge_average_a": 1.6318317067979634e-11,
715
+ "periodic_change": 1.0302869668521453e-13
716
+ },
717
+ "spice_checks": {
718
+ "balance_w": -6.345828323646269e-08,
719
+ "window_drift_v": 9.547918011776346e-15,
720
+ "output_cap_average_a": -4.555574698634103e-12,
721
+ "winding_voltage_mean_v": [
722
+ -7.473169580975586e-08,
723
+ 7.473172615735818e-08
724
+ ],
725
+ "switch_peak_v": [
726
+ 1.507405987105269,
727
+ 1.507405987105269,
728
+ 1.495405928057631,
729
+ 1.495405928057631,
730
+ 1.507405928057434,
731
+ 1.507405928057434,
732
+ 1.495405987105467,
733
+ 1.495405987105467
734
+ ],
735
+ "winding_min_a": [
736
+ 0.3828159675508933,
737
+ 0.3828110456018166
738
+ ],
739
+ "deck_sha256": "ff233ff3dff6d3cfae63858435f9da993253f769c0624cb386e8f5a8d78cf221"
740
+ }
741
+ },
742
+ {
743
+ "case": "loaded_target",
744
+ "duty": 0.5046666666666667,
745
+ "settings": {
746
+ "voltage_mode": "output_voltage",
747
+ "target_output_v": 1.5
748
+ },
749
+ "analytical": {
750
+ "voltage": 1.5000000000000002,
751
+ "phase_ripple": 0.24085583333333327,
752
+ "channel": 0.012219970057927777,
753
+ "esr": 1.2523333796296513e-07,
754
+ "dcr": 0.002036661676321296,
755
+ "gate": 0.0009,
756
+ "coss": 0.00018,
757
+ "efficiency": 0.989878977793505
758
+ },
759
+ "numerical": {
760
+ "voltage": 1.500000000000046,
761
+ "phase_ripple": 0.24085550023614422,
762
+ "channel": 0.012219969702325667,
763
+ "esr": 1.2526041372353037e-07,
764
+ "dcr": 0.002036661617054278,
765
+ "gate": 0.0009,
766
+ "coss": 0.00018,
767
+ "efficiency": 0.9898789780468276
768
+ },
769
+ "ngspice": {
770
+ "voltage": 1.5000016328057486,
771
+ "phase_ripple": 0.24084673482964175,
772
+ "channel": 0.012219986971208498,
773
+ "esr": 1.2548983180112206e-07,
774
+ "dcr": 0.0020366629952205434,
775
+ "gate": 0.0008987210707988033,
776
+ "coss": 0.00017977742187041018,
777
+ "efficiency": 0.9898799574665064
778
+ },
779
+ "numerical_checks": {
780
+ "balance_w": -6.814584486980468e-12,
781
+ "charge_average_a": -4.414367898937892e-12,
782
+ "periodic_change": 3.3084646133829665e-14
783
+ },
784
+ "spice_checks": {
785
+ "balance_w": -7.235259074593785e-06,
786
+ "window_drift_v": 6.481172931671608e-09,
787
+ "output_cap_average_a": 2.590795328062127e-08,
788
+ "winding_voltage_mean_v": [
789
+ -6.225048645806054e-06,
790
+ -5.390029691592805e-06
791
+ ],
792
+ "switch_peak_v": [
793
+ 1.507445187259939,
794
+ 1.507445187259939,
795
+ 1.49544364512108,
796
+ 1.49544364512108,
797
+ 1.507444842501324,
798
+ 1.507444842501324,
799
+ 1.495443987203279,
800
+ 1.495443987203279
801
+ ],
802
+ "winding_min_a": [
803
+ 0.3796013542954187,
804
+ 0.3795728235846936
805
+ ],
806
+ "deck_sha256": "e2b03dc5b2e8acea259a0e6f82204b9f6a2d0b525d1f55f703b82f13604d49c9"
807
+ }
808
+ },
809
+ {
810
+ "case": "low_corner",
811
+ "duty": 0.5,
812
+ "settings": {
813
+ "stop_us": 35,
814
+ "input_voltage_v": 2.5,
815
+ "output_current_a": 0.6,
816
+ "switching_frequency_mhz": 4,
817
+ "dcr_mohm": 2,
818
+ "switch_ron_mohm": 5,
819
+ "inductance_nh": 2000,
820
+ "output_esr_mohm": 1,
821
+ "output_cap_uf": 60,
822
+ "coupling": 0.75
823
+ },
824
+ "analytical": {
825
+ "voltage": 1.2464,
826
+ "phase_ripple": 0.044642857142857116,
827
+ "channel": 0.0018033216411564624,
828
+ "esr": 0.0,
829
+ "dcr": 0.0003606643282312925,
830
+ "gate": 0.00125,
831
+ "coss": 0.00024999999999999995,
832
+ "efficiency": 0.9951244623610859
833
+ },
834
+ "numerical": {
835
+ "voltage": 1.2463999999999205,
836
+ "phase_ripple": 0.0446428564595569,
837
+ "channel": 0.001803321641096351,
838
+ "esr": 2.24176903153503e-29,
839
+ "dcr": 0.00036066432821927014,
840
+ "gate": 0.00125,
841
+ "coss": 0.00024999999999999995,
842
+ "efficiency": 0.9951244623611811
843
+ },
844
+ "ngspice": {
845
+ "voltage": 1.2464000000001427,
846
+ "phase_ripple": 0.04464179939395119,
847
+ "channel": 0.0018033280057712206,
848
+ "esr": 1.9789010757635955e-26,
849
+ "dcr": 0.00036066435115081146,
850
+ "gate": 0.0012482311879004357,
851
+ "coss": 0.00024973742883764995,
852
+ "efficiency": 0.9951271438215341
853
+ },
854
+ "numerical_checks": {
855
+ "balance_w": 1.1938908195396891e-11,
856
+ "charge_average_a": 1.494317304926193e-13,
857
+ "periodic_change": 3.907985046680551e-14
858
+ },
859
+ "spice_checks": {
860
+ "balance_w": -3.51848212774104e-07,
861
+ "window_drift_v": 4.440892098500626e-15,
862
+ "output_cap_average_a": -4.423393360966039e-12,
863
+ "winding_voltage_mean_v": [
864
+ 1.785082263300427e-07,
865
+ -1.7850842420488012e-07
866
+ ],
867
+ "switch_peak_v": [
868
+ 1.251611510200425,
869
+ 1.251611510200425,
870
+ 1.248611658966743,
871
+ 1.248611658966743,
872
+ 1.251611658966705,
873
+ 1.251611658966705,
874
+ 1.248611510200465,
875
+ 1.248611510200465
876
+ ],
877
+ "winding_min_a": [
878
+ 0.2776642235102239,
879
+ 0.2776939770909513
880
+ ],
881
+ "deck_sha256": "6f33686a751e42c91c856c013ba9adc27bc122e5397bcbf8b252125ec986c039"
882
+ }
883
+ },
884
+ {
885
+ "case": "cold_nominal",
886
+ "duty": 0.5,
887
+ "settings": {
888
+ "stop_us": 360
889
+ },
890
+ "analytical": {
891
+ "voltage": 1.486,
892
+ "phase_ripple": 0.234375,
893
+ "channel": 0.0122197265625,
894
+ "esr": 0.0,
895
+ "dcr": 0.00203662109375,
896
+ "gate": 0.0009,
897
+ "coss": 0.00018,
898
+ "efficiency": 0.9897848688735261
899
+ },
900
+ "numerical": {
901
+ "voltage": 1.4859999999998892,
902
+ "phase_ripple": 0.23437462616042998,
903
+ "channel": 0.012219726142322085,
904
+ "esr": 1.3314440510495465e-24,
905
+ "dcr": 0.0020366210237203475,
906
+ "gate": 0.0009,
907
+ "coss": 0.00018,
908
+ "efficiency": 0.9897848691967042
909
+ },
910
+ "ngspice": {
911
+ "voltage": 1.4860000455137308,
912
+ "phase_ripple": 0.23437674153784444,
913
+ "channel": 0.012219763726204232,
914
+ "esr": 1.5996427096392269e-15,
915
+ "dcr": 0.0020366257877197005,
916
+ "gate": 0.0008987210706685937,
917
+ "coss": 0.00017976258076860433,
918
+ "efficiency": 0.989785841270611
919
+ },
920
+ "numerical_checks": {
921
+ "balance_w": 9.800977737728367e-12,
922
+ "charge_average_a": 1.6318317067979634e-11,
923
+ "periodic_change": 1.0302869668521453e-13
924
+ },
925
+ "spice_checks": {
926
+ "balance_w": -6.339963970568979e-08,
927
+ "window_drift_v": 3.0967866271325306e-08,
928
+ "output_cap_average_a": 5.440632207261724e-07,
929
+ "winding_voltage_mean_v": [
930
+ -4.505789875240166e-06,
931
+ 4.399528927986223e-06
932
+ ],
933
+ "switch_peak_v": [
934
+ 1.507411467508707,
935
+ 1.507411467508707,
936
+ 1.495400508634943,
937
+ 1.495400508634942,
938
+ 1.507400513266957,
939
+ 1.507400513266957,
940
+ 1.495411458862788,
941
+ 1.495411458862788
942
+ ],
943
+ "winding_min_a": [
944
+ 0.383267703932151,
945
+ 0.3823562750412717
946
+ ],
947
+ "deck_sha256": "819e131f931260b1100e2c6a7081bc1e9455820c66d4bfe0f16c5e0319fa83a8"
948
+ }
949
+ },
950
+ {
951
+ "case": "cold_unequal",
952
+ "duty": 0.6,
953
+ "settings": {
954
+ "stop_us": 360,
955
+ "duty": 0.6,
956
+ "switch_ron_mohm": 9,
957
+ "low_ron_mohm": 20
958
+ },
959
+ "analytical": {
960
+ "voltage": 1.7845999999999997,
961
+ "phase_ripple": 0.3375,
962
+ "channel": 0.013782218750000002,
963
+ "esr": 3.749999999999997e-05,
964
+ "dcr": 0.0020478125,
965
+ "gate": 0.0009,
966
+ "coss": 0.00018,
967
+ "efficiency": 0.9905927926096731
968
+ },
969
+ "numerical": {
970
+ "voltage": 1.78460172076571,
971
+ "phase_ripple": 0.3387487500028043,
972
+ "channel": 0.013781625032392159,
973
+ "esr": 3.778607842235624e-05,
974
+ "dcr": 0.002048167851061284,
975
+ "gate": 0.0009,
976
+ "coss": 0.00018,
977
+ "efficiency": 0.9905927753603865
978
+ },
979
+ "ngspice": {
980
+ "voltage": 1.7845978882073588,
981
+ "phase_ripple": 0.3387386323759627,
982
+ "channel": 0.013781720825592113,
983
+ "esr": 3.779326059646643e-05,
984
+ "dcr": 0.0020481731170416996,
985
+ "gate": 0.0008987210706419416,
986
+ "coss": 0.0001797625807686043,
987
+ "efficiency": 0.9905935296062289
988
+ },
989
+ "numerical_checks": {
990
+ "balance_w": -7.495264825463366e-12,
991
+ "charge_average_a": -7.460548021379076e-13,
992
+ "periodic_change": 3.6415315207705135e-14
993
+ },
994
+ "spice_checks": {
995
+ "balance_w": -7.819256968275918e-06,
996
+ "window_drift_v": 2.1109053394141597e-08,
997
+ "output_cap_average_a": 3.6313797399615803e-07,
998
+ "winding_voltage_mean_v": [
999
+ -8.280434241491398e-06,
1000
+ -3.032454915985358e-06
1001
+ ],
1002
+ "switch_peak_v": [
1003
+ 1.513393170737725,
1004
+ 1.513393170737725,
1005
+ 1.497020760619197,
1006
+ 1.497020760619197,
1007
+ 1.513389794146723,
1008
+ 1.513389794146723,
1009
+ 1.497022270466196,
1010
+ 1.497022270466196
1011
+ ],
1012
+ "winding_min_a": [
1013
+ 0.3309538071125705,
1014
+ 0.3307860149519595
1015
+ ],
1016
+ "deck_sha256": "9324746c8f1279a682df85ada9e8e5e38bb20056fbef58eba7051de8ef77b331"
1017
+ }
1018
+ }
1019
+ ]
docs/topology/2to1_buck_stacked/evidence/sweeps.json ADDED
@@ -0,0 +1,274 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "vin": {
3
+ "run": "4b00556d209642c88b9d39214aeb99bf",
4
+ "rows": [
5
+ {
6
+ "value": 2.8,
7
+ "vout_v": 1.217996672339401,
8
+ "efficiency_with_gate": 0.9876699546318513,
9
+ "deck_sha256": "7bb047254de2a3c50c291bc35f2fdf16a75b30ddaf3b86214dc9b006fc5e1e5c"
10
+ },
11
+ {
12
+ "value": 3.3,
13
+ "vout_v": 1.437995671597078,
14
+ "efficiency_with_gate": 0.9892206149387989,
15
+ "deck_sha256": "14ee01a24833eb8e30f369bb87e2ddc8bb9dfe6da11bd878469392ac1f761194"
16
+ }
17
+ ]
18
+ },
19
+ "load": {
20
+ "run": "fe7c4dc5efe8447bbc565a63ee51b032",
21
+ "rows": [
22
+ {
23
+ "value": 0.8,
24
+ "vout_v": 1.308797285867849,
25
+ "efficiency_with_gate": 0.9902134506847732,
26
+ "deck_sha256": "bd9f5537cc948c0bb8334d9dc814e6f320809da916dd7dd7f2f1ea28d6690625"
27
+ },
28
+ {
29
+ "value": 1.25,
30
+ "vout_v": 1.3025043625572823,
31
+ "efficiency_with_gate": 0.9859222459636466,
32
+ "deck_sha256": "d049d5ad956672442e1c13cd2a8d52c9bbe665bca1791ccd1b231006fa38b1f7"
33
+ }
34
+ ]
35
+ },
36
+ "fs": {
37
+ "run": "55472548bd2c4ec18d3449b89fb65668",
38
+ "rows": [
39
+ {
40
+ "value": 1.8,
41
+ "vout_v": 1.305996451210651,
42
+ "efficiency_with_gate": 0.988389622394636,
43
+ "deck_sha256": "c958f6aaba27a0300a216cdc7728bd75115dd3fca4db85880dc4fcd1add5f7e1"
44
+ },
45
+ {
46
+ "value": 2.4,
47
+ "vout_v": 1.3060047168845959,
48
+ "efficiency_with_gate": 0.988273627872244,
49
+ "deck_sha256": "9943d1eb3d0d9151c7bad34f845e244169099b154d1e29e7b52f1d325887126c"
50
+ }
51
+ ]
52
+ },
53
+ "duty": {
54
+ "run": "2b11a02de8e645149507097873bf013a",
55
+ "rows": [
56
+ {
57
+ "value": 0.3,
58
+ "vout_v": 0.8860070892803505,
59
+ "efficiency_with_gate": 0.9827397914238437,
60
+ "deck_sha256": "290c55c36e13efb52afe6f2159a901de2139c87b2b7956e75ca171cf0ad59fd8"
61
+ },
62
+ {
63
+ "value": 0.7,
64
+ "vout_v": 2.086007242368526,
65
+ "efficiency_with_gate": 0.9925963342587494,
66
+ "deck_sha256": "bd936adfd014322a640ac78d561d22c7f1c8f478fa95679b04f9088dcc458d44"
67
+ }
68
+ ]
69
+ },
70
+ "lt": {
71
+ "run": "c68dd80a8c18461ebf990ff398d3ca02",
72
+ "rows": [
73
+ {
74
+ "value": 800,
75
+ "vout_v": 1.3059963288644987,
76
+ "efficiency_with_gate": 0.9882287424150187,
77
+ "deck_sha256": "bbdc6aa5f481bafd08596a49f47f451caf5c1faa28f46c545b612bb43aa1a953"
78
+ },
79
+ {
80
+ "value": 1450,
81
+ "vout_v": 1.3060026058153993,
82
+ "efficiency_with_gate": 0.9884805769283901,
83
+ "deck_sha256": "1ce9081a8ef643a61d40b0d504e1f79b28d8955c0212231de52cf77b8807ec1d"
84
+ }
85
+ ]
86
+ },
87
+ "coupling": {
88
+ "run": "89c8ac116ffe460fbefbf924dac69231",
89
+ "rows": [
90
+ {
91
+ "value": 0,
92
+ "vout_v": 1.305998024423819,
93
+ "efficiency_with_gate": 0.988104961469467,
94
+ "deck_sha256": "54760ca947c21fd752df8e800d15d54e3b1bdee33243e726ed547765d583d71a"
95
+ },
96
+ {
97
+ "value": 0.72,
98
+ "vout_v": 1.3060071186959756,
99
+ "efficiency_with_gate": 0.9883280610881346,
100
+ "deck_sha256": "e9122637dad7fcc10f03edd1265c93385c5139f24459d258257a44a4387bbc81"
101
+ }
102
+ ]
103
+ },
104
+ "dcr": {
105
+ "run": "bb0d2b9fc263420b93c9205f1b2f682b",
106
+ "rows": [
107
+ {
108
+ "value": 3,
109
+ "vout_v": 1.306499761701609,
110
+ "efficiency_with_gate": 0.9887530210509373,
111
+ "deck_sha256": "08ec5133e27b7ed80e2d79b1b09f77ee4961afe36f437b373d1938e15d34efe9"
112
+ },
113
+ {
114
+ "value": 9,
115
+ "vout_v": 1.303500213972039,
116
+ "efficiency_with_gate": 0.9864316428078417,
117
+ "deck_sha256": "35bd00fb0ab5d02dd9fa3e2aedf8d4222aa822d964b32629dcb5750ddc73e859"
118
+ }
119
+ ]
120
+ },
121
+ "rs": {
122
+ "run": "ccdde4009bd34e39909ab6feec9886b3",
123
+ "rows": [
124
+ {
125
+ "value": 9,
126
+ "vout_v": 1.3089996928569771,
127
+ "efficiency_with_gate": 0.9906852181272401,
128
+ "deck_sha256": "c2cdd0016773c93ed135534372c5f7230b9aaaddbe3c04856d39e013a07b4f0d"
129
+ },
130
+ {
131
+ "value": 18,
132
+ "vout_v": 1.299999600156637,
133
+ "efficiency_with_gate": 0.9837290456000247,
134
+ "deck_sha256": "46cd52a75d9615a1f8760305014e17871ad8973b523fcf7334f10c273f5a061b"
135
+ }
136
+ ]
137
+ },
138
+ "rslow": {
139
+ "run": "4da9d6afa64342c189993517570fcbbd",
140
+ "rows": [
141
+ {
142
+ "value": 10,
143
+ "vout_v": 1.3071195396925013,
144
+ "efficiency_with_gate": 0.9892279973457124,
145
+ "deck_sha256": "dbf026225053f3d5e5a125a6b39b8b7f887b2e6007161e80d66fa82cffd3f632"
146
+ },
147
+ {
148
+ "value": 18,
149
+ "vout_v": 1.3026405281903994,
150
+ "efficiency_with_gate": 0.98578227721669,
151
+ "deck_sha256": "75dc94f7896b65adcef7db163a9c83708e047fbf66fa70d47885734858ae2b9f"
152
+ }
153
+ ]
154
+ },
155
+ "gatecap": {
156
+ "run": "7570dfc3ffb24448ad6de43422954eda",
157
+ "rows": [
158
+ {
159
+ "value": 4,
160
+ "vout_v": 1.3059999247829628,
161
+ "efficiency_with_gate": 0.9889267859746088,
162
+ "deck_sha256": "24bf5d6e7a85817e626243c224048b2b0aacefeb6ce209aea93fd187e1cbfd93"
163
+ },
164
+ {
165
+ "value": 42,
166
+ "vout_v": 1.3059999485892015,
167
+ "efficiency_with_gate": 0.9879048313651215,
168
+ "deck_sha256": "5fa0051e1d0d71983addd732a4c5269bcb009395f0a1c9219c6d78a349a06231"
169
+ }
170
+ ]
171
+ },
172
+ "coss": {
173
+ "run": "c7e2d311cfc04f82aa79ae972a2f5f9d",
174
+ "rows": [
175
+ {
176
+ "value": 5,
177
+ "vout_v": 1.3060001053788908,
178
+ "efficiency_with_gate": 0.9884292247590286,
179
+ "deck_sha256": "a9a7f266b5feb8f123f51066c3ac4c6af75c455cd0524b7bbf5798d7e6c43a85"
180
+ },
181
+ {
182
+ "value": 22,
183
+ "vout_v": 1.3059994889944002,
184
+ "efficiency_with_gate": 0.9881974543078786,
185
+ "deck_sha256": "c93cbb17f08c9b7b07c099dab6937d3144b008feed8d95922121cbf785213833"
186
+ }
187
+ ]
188
+ },
189
+ "cout": {
190
+ "run": "ceb67d9edb1041e3b8a3365981e5190a",
191
+ "rows": [
192
+ {
193
+ "value": 38,
194
+ "vout_v": 1.3059997831788217,
195
+ "efficiency_with_gate": 0.9883543798546242,
196
+ "deck_sha256": "9558c525997adcc5942b53e0a4379057acba8e34a6175dbfb2e9a232fe3f3978"
197
+ },
198
+ {
199
+ "value": 60,
200
+ "vout_v": 1.3059997846729678,
201
+ "efficiency_with_gate": 0.9883662902942699,
202
+ "deck_sha256": "8a46b4acc25de1f8bd55b09b66c09c4e18ac9f6eebd575d6fb9ec71113f3c49c"
203
+ }
204
+ ]
205
+ },
206
+ "esr": {
207
+ "run": "34bd319f4cc84839997293ef2a708f67",
208
+ "rows": [
209
+ {
210
+ "value": 2.5,
211
+ "vout_v": 1.305999895214845,
212
+ "efficiency_with_gate": 0.9883675575795037,
213
+ "deck_sha256": "da9a3ccc200f66907c611aaf90b416d49a43627744b141779b368a3ab34c3869"
214
+ },
215
+ {
216
+ "value": 11,
217
+ "vout_v": 1.305999569128121,
218
+ "efficiency_with_gate": 0.9883475192669045,
219
+ "deck_sha256": "53bb8a193266be5eeecbf8dd02eb9a702f5ecd6e1629a8682c51b2bc0b1728de"
220
+ }
221
+ ]
222
+ },
223
+ "stop": {
224
+ "run": "4c88e2e48e724d5ba78516eedab3c436",
225
+ "rows": [
226
+ {
227
+ "value": 85,
228
+ "vout_v": 1.3060014352907352,
229
+ "efficiency_with_gate": 0.988343374822484,
230
+ "deck_sha256": "af05d8f54d0eea807e67eedef96f5c2602ed64d6a4ad8558fd2d9a7c62e1afd5"
231
+ },
232
+ {
233
+ "value": 110,
234
+ "vout_v": 1.3060002716958652,
235
+ "efficiency_with_gate": 0.9883605426260474,
236
+ "deck_sha256": "c97be21dbb6d8a5e6f10a42273568a6df8f2491d0c8086f4b901c70fd6a35a8d"
237
+ }
238
+ ]
239
+ },
240
+ "step": {
241
+ "run": "fdb9db120bfd4378b6a7ae534eedb31f",
242
+ "rows": [
243
+ {
244
+ "value": 750,
245
+ "vout_v": 1.3059995598338114,
246
+ "efficiency_with_gate": 0.9883581800358697,
247
+ "deck_sha256": "3134d4bfef17f191feffee9b11b25cf57cada68133f4154c0595d7b5370af341"
248
+ },
249
+ {
250
+ "value": 1000,
251
+ "vout_v": 1.3059996509530707,
252
+ "efficiency_with_gate": 0.9883587531665791,
253
+ "deck_sha256": "911dac7abd0d5e19046223499fa3d84fa1c9c001b59410367fa631dd20d3299d"
254
+ }
255
+ ]
256
+ },
257
+ "target": {
258
+ "run": "bcf779971e4f41179b47d2605679567a",
259
+ "rows": [
260
+ {
261
+ "value": 1.3,
262
+ "vout_v": 1.2999998950120346,
263
+ "efficiency_with_gate": 0.9883076785464995,
264
+ "deck_sha256": "1e9d7facea3a5796ee96cd12a4b573585a439610ce4b0d7a448df6ca79921261"
265
+ },
266
+ {
267
+ "value": 1.65,
268
+ "vout_v": 1.6499995596601131,
269
+ "efficiency_with_gate": 0.9907681581562554,
270
+ "deck_sha256": "6541e0646e229b7391306245a60d036be1d9df7d5873e9f1817c57dca467a566"
271
+ }
272
+ ]
273
+ }
274
+ }
docs/topology/2to1_buck_stacked/evidence/workspace.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "files": [
3
+ "/pe.js",
4
+ "/gallery.js",
5
+ "/compare/app.js",
6
+ "/compare/engine.js",
7
+ "/compare/buck-stacked.js",
8
+ "/compare/technology.js",
9
+ "/compare/recommend.js",
10
+ "/compare/models-data.json",
11
+ "/compare/operating-conditions.json"
12
+ ],
13
+ "axes": [
14
+ "duty_cycle",
15
+ "output_voltage",
16
+ "input_voltage_v",
17
+ "output_current_a",
18
+ "switching_frequency_mhz"
19
+ ],
20
+ "comparison": "buck2 add/remove",
21
+ "coefficients": true
22
+ }
docs/topology/2to1_buck_stacked/numerical.py ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Switched periodic validation with physical branch laws and no analytical loss imports."""
2
+ from pathlib import Path
3
+ import sys
4
+
5
+ import numpy as np
6
+
7
+ sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "2to1_cross_validation"))
8
+ from circuit import integrate
9
+
10
+
11
+ def commands(p):
12
+ duty = p["duty"]
13
+ transitions = sorted({0., duty, .5, (duty + .5) % 1., 1.})
14
+ for start, stop in zip(transitions, transitions[1:]):
15
+ if stop - start > 1e-12:
16
+ midpoint = (start + stop) / 2
17
+ yield start, stop, (midpoint < duty, (midpoint - .5) % 1 < duty)
18
+
19
+
20
+ def state_circuit(p, selected, stiff, ideal):
21
+ if stiff or ideal:
22
+ raise ValueError("This comparison uses finite Cout and dissipative channels")
23
+ matrix = p["lt"] * np.array([[1, -p["k"]], [-p["k"], 1]])
24
+ inverse = np.linalg.inv(matrix)
25
+ high = np.array(selected)
26
+ # Ordering follows the approved gate table: upper outer/inner, lower outer/inner.
27
+ path_members = np.array([[0, 1] if high[0] else [2, 3],
28
+ [4, 5] if high[1] else [6, 7]])
29
+ device_ron = np.array([p["high"]]*2 + [p["low"]]*2)*np.ones((2, 4))
30
+ device_ron = device_ron.ravel()
31
+ path_r = device_ron[path_members].sum(axis=1)
32
+
33
+ def evaluate(x):
34
+ current = x[:2]
35
+ vc = x[2]
36
+ cap_current = current.sum(axis=0) - p["io"]
37
+ out = vc + p["rc"] * cap_current
38
+ channel = np.zeros((8, current.shape[1]))
39
+ channel[path_members] = ((2*high-1)[:, None]*current)[:, None, :]
40
+ switch_nodes = p["vin"] * high[:, None] - current * path_r[:, None]
41
+ winding_voltage = switch_nodes - out - p["rl"] * current
42
+ derivative = np.vstack((inverse @ winding_voltage, cap_current/p["cf"]))
43
+ loss = np.stack((device_ron @ channel**2, p["rc"] * cap_current**2,
44
+ p["rl"] * np.sum(current**2, axis=0)))
45
+ pin = p["vin"] * high @ current
46
+ energy = (np.sum(current*(matrix @ current),axis=0) + p["cf"]*vc**2)/2
47
+ return derivative / p["fs"], out, channel, current, cap_current, pin, loss, energy
48
+
49
+ return evaluate, p["duty"]
50
+
51
+
52
+ def solve(p, steps=768):
53
+ result = integrate(p, steps=steps, switching_states=commands, state_circuit=state_circuit,
54
+ winding_only=True)
55
+ # Evaluate V dQ along each linear capacitor charge/discharge trajectory.
56
+ # Gate charging draws energy from the fixed half-input drive rail. Coss
57
+ # hard-turn-on loss integrates the released energy as its terminal voltage falls.
58
+ samples = np.linspace(0, p["vin"]/2, 65)
59
+ gate_charge = samples * p["gate_cap"]
60
+ output_charge = samples * p["coss"]
61
+ gate_energy = np.sum(samples[-1] * np.diff(gate_charge))
62
+ coss_energy = np.trapezoid(samples, output_charge)
63
+ result["gate_w"] = 8 * p["fs"] * gate_energy
64
+ result["coss_w"] = 8 * p["fs"] * coss_energy
65
+ return result
docs/topology/2to1_buck_stacked/package_source.py ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Keep the checked-in runtime and corresponding-source archive in sync."""
2
+ import json
3
+ from pathlib import Path
4
+ from zipfile import ZIP_DEFLATED, ZipFile
5
+
6
+ ROOT = Path(__file__).resolve().parents[3]
7
+ STATIC = ROOT/'static'
8
+ ARCHIVE = STATIC/'openpels-source.zip'
9
+ NEXT = ROOT/'.openpels-runtime'/'buck-stacked-source.zip'
10
+ SCRIPTS = 'openpels/scripts/openpels/'
11
+ ANALYSIS = 'openpels-analysis/static/'
12
+ updates = {}
13
+
14
+
15
+ def save(name, content):
16
+ updates[name] = content.encode() if isinstance(content,str) else content
17
+
18
+
19
+ def copy(name, path):
20
+ save(name,path.read_bytes())
21
+
22
+
23
+ with ZipFile(ARCHIVE) as source:
24
+ runtime, bridge = (STATIC/'compare/app.js').read_text().split(
25
+ "// Appended inside the preserved analytical UI's scope.",1)
26
+ save(ANALYSIS+'app.js',runtime.replace('picker();await update();announceAnalysisReady()}catch',
27
+ 'picker();await update()}catch').rstrip()+'\n')
28
+ save(SCRIPTS+'analysis_bridge.js',"// Appended inside the preserved analytical UI's scope."+bridge)
29
+ for name in ('engine.js','models-data.json','recommend.js','scoreboard.js','technology.js',
30
+ 'buck-stacked.js','operating-conditions.json','assets/buck-stacked.svg',
31
+ 'assets/buck-stacked-candidate.svg'):
32
+ copy(ANALYSIS+name,STATIC/'compare'/name)
33
+ original_header=source.read(ANALYSIS+'index.html').decode().split('<header>',1)[1].split('</header>',1)[0]
34
+ head, rest = (STATIC/'compare/index.html').read_text().split('<header>',1)
35
+ save(ANALYSIS+'index.html',head+'<header>'+original_header+'</header>'+rest.split('</header>',1)[1])
36
+ for name in ('index.html','pe.js','gallery.js'):
37
+ copy(SCRIPTS+name,STATIC/name)
38
+ for name in ('Dockerfile','simulator_frame.py','simulator_bridge.js','simulator_service.py',
39
+ 'sp2/sp2_preset.py','buck_stacked/__init__.py','buck_stacked/preset.py','buck_stacked/preset_contract.json',
40
+ 'buck_stacked/stacked-buck.cir','buck_stacked/NOTICE.md'):
41
+ copy(SCRIPTS+name,ROOT/name)
42
+ for extension in ('icproj.json','sp'):
43
+ name='buck_stacked.'+extension
44
+ copy(SCRIPTS+'buck_stacked/'+name,STATIC/'starters'/name)
45
+ site=source.read(SCRIPTS+'package-site.py').decode()
46
+ save(SCRIPTS+'package-site.py',site.replace("('sp2','rsc2','si2')","('sp2','rsc2','si2','buck_stacked')"))
47
+ generator=source.read(SCRIPTS+'generate-starters.mjs').decode()
48
+ marker='await writeFile(new URL("index.json", out), JSON.stringify(manifest, null, 2));'
49
+ if 'const buckStacked = ' not in generator:
50
+ starter=next(x for x in json.loads((STATIC/'starters/index.json').read_text()) if x['id']=='buck_stacked')
51
+ generator=generator.replace(marker,'''
52
+ const buckStacked = new URL("./buck_stacked/", import.meta.url);
53
+ for (const file of ["buck_stacked.icproj.json","buck_stacked.sp"])
54
+ await copyFile(new URL(file,buckStacked),new URL(file,out));
55
+ manifest.push('''+json.dumps(starter,indent=2,ensure_ascii=False)+''');
56
+ '''+marker)
57
+ save(SCRIPTS+'generate-starters.mjs',generator)
58
+ checker=source.read(SCRIPTS+'check-starters.mjs').decode()
59
+ if 'const stackedBuck = ' not in checker:
60
+ checker+='''
61
+ const stackedBuck = parseProject(await readFile(
62
+ new URL("../../apps/editor/dist-pe/starters/buck_stacked.icproj.json",import.meta.url),"utf8",
63
+ ));
64
+ assert.equal(stackedBuck.documents.length,1);
65
+ assert.equal(stackedBuck.documents[0].instances.filter(x=>x.symbolId==="nmos").length,8);
66
+ const stackedBuckNetlist = createDesignNetlistExport(stackedBuck);
67
+ assert.equal(stackedBuckNetlist.status,"ready");
68
+ assert.equal(stackedBuckNetlist.file.text,await readFile(
69
+ new URL("../../apps/editor/dist-pe/starters/buck_stacked.sp",import.meta.url),"utf8"));
70
+ console.log("buck_stacked: eight devices, inverse coupling and native netlist verified");
71
+ '''
72
+ save(SCRIPTS+'check-starters.mjs',checker)
73
+ gallery=source.read(SCRIPTS+'gallery.browser.mjs').decode()
74
+ gallery=gallery.replace('.count(), 9)', '.count(), 10)').replace('[2, 6]', '[2, 7]').replace('.count(), 6)', '.count(), 7)')
75
+ save(SCRIPTS+'gallery.browser.mjs',gallery)
76
+ tests=source.read(SCRIPTS+'test_simulator.py').decode()
77
+ save(SCRIPTS+'test_simulator.py',tests.replace("('sp2','rsc2','si2')","('sp2','rsc2','si2','buck_stacked')"))
78
+ with ZipFile(NEXT,'w',ZIP_DEFLATED) as target:
79
+ for entry in source.infolist():
80
+ target.writestr(entry,updates.pop(entry.filename,source.read(entry)))
81
+ for name,data in updates.items():
82
+ target.writestr(name,data)
83
+ NEXT.replace(ARCHIVE)
docs/topology/2to1_buck_stacked/parity.md ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 2:1 Buck_Stacked feature parity
2
+
3
+ The functional reference is XFLY6S at `local-baseline-v1.0` (`4cbae77`). The model, starter and Simulator ID is `buck_stacked`, at nominal 2:1. This record follows the [feature parity checklist](../feature_parity_checklist.md), [Analysis matrix](../analysis_feature_parity_matrix.md) and [Simulator matrix](../simulator_feature_parity_matrix.md). Design, Simulator and artifact checks use Chrome on `http://127.0.0.1:8765`. The [development report](README.md) gives the model scope and bounds.
4
+
5
+ **Disposition:** PASS for the declared ideal local scope after the `b7e5560` audit follow-up. The [closure checklist](#closure-checklist-for-stages-9-through-11) records the remaining checks and their receipts.
6
+
7
+ ## Entry point and schematic checklist
8
+
9
+ - [x] The 2:1 filter displays the eight-switch card and its Analysis and Simulator capability. The card is absent in the 4:1 filter. The original stacked buck reference retains its separate card and ID.
10
+ - [x] The starter opens in editable Canvas, reports eight devices and two windings, and supports insertion, undo, save, reload, SVG, and structural SPICE export. The checker verifies inverse coupling and round-trip netlisting. [Chrome workflow](verify_browser.mjs) · [Starter generation](build_starter.mjs)
11
+ - [x] Guarded source exports and the editable integration copy have separate hashes. [Source manifest](source/SHA256SUMS) · [Integration evidence](evidence/SHA256SUMS)
12
+
13
+ ## Analysis matrix
14
+
15
+ [Chrome verification](verify_browser.mjs) · [Sizing witness](verify_sizing.cjs) · [Three-method evidence](evidence/matched-results.json) · [Tagged comparison](../2to1_switching_capacitors/integration/verify_analysis_parity.mjs)
16
+
17
+ | Original feature or control | Stacked buck disposition |
18
+ | --- | --- |
19
+ | Gallery handoff | Pass. Focused 2:1 route receives Vin 3 V, Iout 1 A, D=0.5. |
20
+ | Family intro and scope | Pass. The focused view identifies duty-based operation, positive CCM and the eight-device budget. |
21
+ | Output voltage and current | Pass. Two modes, direct duty and loaded target, share the independent Vin and load fields. |
22
+ | Derived input voltage | N/A at fixed ratio. Vin is directly entered because duty can vary. Ideal Vout is derived from duty times Vin. |
23
+ | Load resistance and requested power | Pass. The candidate and export derive both from the requested or ideal voltage and the entered load. |
24
+ | Switching frequency | Pass. Initial 2 MHz and edited 2.4 MHz reach the ripple and energy models. |
25
+ | Silicon budget selector | Pass. Width and die-area modes use shared sizing. |
26
+ | Die area | Pass. Edited 1.5 mm² in area mode. |
27
+ | Usable transistor fraction | Pass. 1.12 is rejected and 0.5 restores sizing. |
28
+ | Ron × area | Pass. Edited 1.1 mΩ·mm² reaches the width limit. |
29
+ | Flying or clamp capacitance | N/A. The reviewed right-hand circuit has a single output cap; 44 µF reaches the edited design. |
30
+ | Main capacitor ESR | Pass for output-cap ESR. The 6 mΩ edit reaches the RMS model. |
31
+ | Maximum capacitor count | Pass. Zero excludes the design's one output capacitor. |
32
+ | Maximum estimated droop | Pass. The screen rejects zero allowed droop. The constraint uses average winding voltage balance. |
33
+ | Priority and objective | Pass. Three shared priorities select the same loss minimizer for this circuit's fixed component counts. |
34
+ | Power winding count and DCR | Pass. Count one excludes the pair. A 5 mΩ edited DCR contributes to winding loss. |
35
+ | Leakage and magnetizing input | N/A as independent duplicate controls. Equivalent modal inductances follow from separate editable self-L and k; both are tested. |
36
+ | Maximum phase ripple and cancellation | Pass. A 5% limit excludes a design; a low-current test fails the CCM valley screen. Finite phase ripple remains at 50% while ideal common-mode ripple cancels. |
37
+ | Update, validation and exclusions | Pass. Feasibility, invalid-input export gating, manual weights, reset and recovery were exercised. |
38
+ | Scoreboard and Circuit cards | Pass. Both views render the focused design and use the source drawing. |
39
+ | Candidate design and preview | Pass. Rank, resistance, loss, width, preview decode, and inspect open the advanced workbench. |
40
+ | Width sizing | Pass. The 8-device width sum matches the chosen width. The interior and bounded optima are checked against independent area/allocation samples. |
41
+ | Equivalent resistance and droop | Pass. Output power resistance and mean-channel/DCR voltage resistance have separate roles and are validated against switched results. |
42
+ | Switch and capacitor ESR | Pass. Separate per-component terms reconcile with numerical and NGSpice results. |
43
+ | Winding DCR | Pass. Separate RMS result in Analysis and NGSpice. |
44
+ | Separate charging increment | N/A. There is no flying capacitor. Hard Coss discharge appears separately and only once. |
45
+ | Gate-driving loss | Pass. Uses half-input effective swing and one equivalent event per device. Changes in Vin, fs and sized width reach the exported loss. Arbitrary gate swing/count is excluded by the approved model. |
46
+ | Coss, core and ripple corrections | Pass for editable effective Coss density and modeled finite winding/output-cap current ripple. Core and device commutation are outside the declared ideal model. |
47
+ | Total, mix and relative score | Pass. Reported component powers add to the modeled total. A singleton has no relative grade. |
48
+ | Efficiency | Pass. Derived from delivered power and the sum of modeled loss terms. |
49
+ | Inspect circuit | Pass. Opens the advanced cards and weights for the sized candidate. |
50
+ | Status, schematic and workbench | Pass. Reviewed image, eight-device area map, coefficient information and operating domain. |
51
+ | Topology toggles | Pass. Chrome adds and removes BUCK2 while retaining the stacked physical design. See [workspace checks](verify_workspace.mjs). |
52
+ | Equivalent circuit, coefficients and formulas | Pass. RMS terms, gain, and separate gate and Coss accounting. Generic flying-cap charge term is inapplicable. |
53
+ | Die allocation map | Pass. Eight labeled blocks and checked width fractions in the downloaded report. |
54
+ | Normalized weights, Apply and Reset | Pass for ESR, DCR, coupling and current scale. The legacy flying-cap weight applies to additional SC comparison curves. |
55
+ | Resistance plot, legend and cursor | Pass. Duty-dependent CCM curve, legend and hover; the second plot shows loaded output. |
56
+ | Model disclosures and finite-RC demo | Shared standalone tool preserved. Generic flying-cap RC demonstrator is outside this circuit model. |
57
+ | 180 nm frequency, width, capacitor settings | Pass. Focused model uses the Design Constraint fields once and reports corresponding technology data. |
58
+ | 180 nm winding resistance | Pass. Design DCR reaches physical result. |
59
+ | VGS and gate events | Pass. Read-only Vin/2 and one effective event. An independent fixed-voltage or event-count edit is inapplicable. |
60
+ | Effective Coss | Pass. Explicit zero and 0.52 pF/mm remain numerical values. A blank stays unknown in The Loss Lineup, Design JSON, Technology JSON and the Simulator handoff. [Receipt](evidence/coss-browser.json) |
61
+ | Technology constants | Pass. Illustrative reference reported; effective linear gate capacitance scales by physical width. |
62
+ | Design JSON | Pass. Widths, feasibility, modes, losses and efficiency checked. |
63
+ | Technology JSON | Pass. Device count, capacitances and power verified. |
64
+ | Per-unit CSV | Pass. Edited weights, coupling, ripple scale and duty verified. |
65
+ | Equivalent circuit SVG | Pass. Download verified. |
66
+ | Local image review and notes | The tagged browser regression verifies the shared local review form. External inference is outside this development. |
67
+
68
+ ## Simulator matrix
69
+
70
+ [Chrome core workflow](verify_browser.mjs) · [All-axis sweep replays](verify_sweeps.mjs) · [Tagged 4:1 and SP2 regression](../2to1_switching_capacitors/integration/verify_simulator_parity.mjs) · [Preset contract](../../../buck_stacked/preset_contract.json)
71
+
72
+ | Original feature or control | Stacked buck disposition |
73
+ | --- | --- |
74
+ | Layout and selector | Shared controls, status, topology preview, plot, summary, results and downloads. Gallery loads the correct preset. |
75
+ | Input voltage | Continuous field and two-point rail sweep. Nominal 3 V; edited 3.12 V. |
76
+ | Output target or duty | Both modes exercised. Output target solves for duty and the output remains free-running. Inactive command field is hidden. |
77
+ | Load current | Continuous true constant-current load. The equivalent load resistor serves Analysis reporting only. |
78
+ | Frequency | Continuous, measured in MHz; executed deck and sweep verify the command rate. |
79
+ | Flying capacitor and ESR | N/A. Output capacitor and its ESR are applicable and independently bound and swept. |
80
+ | Switch Ron and area | Independent per-MOSFET Ron in high and low stacks. Area sizing remains in Analysis. |
81
+ | Gate swing and gate capacitance | Half-input swing, derived and reported. Fixed swing has no separate sweep axis. Editable effective gate capacitance is measured via its rail-energy fixture. |
82
+ | Coss and Cout | Pass. Separate capacitive event and output dynamic controls. The 10 pF default, blank, zero and positive Coss are verified in real Chrome jobs. The event fixture uses half-input nominal blocking and is omitted for unknown Coss. |
83
+ | Coupling, self-L and winding DCR | Independent continuous inputs and separate sweep axes. Actual winding polarity and names are preserved. |
84
+ | Stop and max step | Automatic or entered and swept separately. The executed window uses whole periods; step request is a ceiling. |
85
+ | Gallery/Analysis/Simulator handoff | Pass. Chrome verifies command and physical-parameter transfer. Analysis forwards sized Ron and effective capacitances, including null, zero and positive Coss. Simulator returns the operating point and shared passive inputs. An Analysis sizing pass recalculates device settings, as for SI2. |
86
+ | Run, progress and job locks | Async ticket, busy status and disabled Run while executing. Success restores controls. |
87
+ | Sweep control, endpoints, count | User-facing opt-in mode, configurable endpoints and 2–15 points on one active numerical axis. The legacy fixed load percentages do not encode this model's two command modes. |
88
+ | Efficiency curves | Rendered stage and gate-inclusive curves, point rows, and download. |
89
+ | Waveforms | Switch commands, eight voltage stress traces, winding voltage and current, output and measured gate/Coss fixture traces. CSV also includes the port, channel and output-cap currents. |
90
+ | Winding sum and difference | Measured and shown in details and in downloadable data; the waveform includes both phases and summed current. |
91
+ | Summary and metrics | Ideal voltage, load, delivered output, timing, RMS and ripple data, energy balance, explicit separate gate and Coss loss. |
92
+ | Power boundaries | Electrical input, delivered power, conduction/storage closure and separately measured gate/discharge fixtures are recorded. |
93
+ | Artifacts | Executed and coarse decks/logs, waveform CSV, measurements, plot, result JSON and sweep artifacts. Deck hashes and bindings are checked by the browser scripts. |
94
+ | Input, output and recovery checks | Invalid loaded target is rejected and a corrected job completes. Standalone execution also checks CCM, numerical bounds, window drift, energy residual and step sensitivity. |
95
+ | Cache reload | Cache-enabled normal reload and a fresh context are checked in Chrome. The [previous-build transition](evidence/cache.json) confirms a same-tab normal reload from 8d4868c and checks 11 asset bodies. The changed Gallery recommendation module uses the new versioned URL. |
96
+
97
+ All 16 applicable Simulator axes returned two passed points in Chrome. The [sweep receipts](evidence/sweeps.json) give run IDs, results and executed-deck hashes. The [advanced workspace receipt](evidence/workspace.json) records five Analysis operating sweep axes, the selectable comparison and asset checks.
98
+
99
+ ## Reproduction and open scope
100
+
101
+ The SC fixture's flying-capacitor, resonant-mode and nonlinear device behavior does not apply to this stacked branch model. Hardware balancing, dynamic stress mismatch, diode commutation, gate driver circuits, and closed-loop bandwidth are outside the approved ideal scope. The [qualification record](qualification.md) records any outstanding applicable verification.
102
+
103
+ ## Closure checklist for Stages 9 through 11
104
+
105
+ | Requirement | Status | Evidence |
106
+ | --- | --- | --- |
107
+ | Exact default through the Simulator selector | PASS | [Chrome receipt](evidence/coss-browser.json). No numerical control was changed, and the submitted fields matched the preset contract. |
108
+ | Blank, explicit zero and positive Coss | PASS | The same receipt records Analysis exports, submitted payloads, executed deck hashes, waveform columns and result fields. Blank displays Unknown, omits the Coss fixture/trace and has `coss_w: null`. Explicit zero retains `0` and a zero-power trace. |
109
+ | Loss and efficiency subtotal scope | PASS | Chrome checks the scope label, energy ledger and exported flag. The blank-Coss duty sweep records empty loss cells and `efficiency_includes_coss=False`. |
110
+ | Gallery, editable starter, sizing and advanced Analysis | PASS | [Chrome workflow](evidence/coss-workflow.json) and [workspace replay](evidence/coss-workspace.json). |
111
+ | All applicable simulator sweeps and recovery | PASS | [16 axes, 32 points](evidence/coss-sweeps.json) and the edited target, invalid-target rejection and corrected run in the workflow receipt. |
112
+ | Same-tab cache transition and fresh context | PASS | [Cache replay](evidence/coss-cache.json) from the audited checkout, including blank Coss after a normal reload. |
113
+ | Existing 2:1 and 4:1 regressions | PASS | [Regression receipts](evidence/coss-regressions.json). |
114
+ | Flying and clamp controls, independent drive amplitude/count and hardware balancing | NOT APPLICABLE | The model has one output capacitor, fixed half-input swing and one ideal event per device. Hardware balancing and dynamic mismatch are outside the approved scope. |
docs/topology/2to1_buck_stacked/qualification.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 2:1 Buck_Stacked qualification record
2
+
3
+ **Status:** Locally qualified through all 11 stages for the approved ideal equal-sharing, positive-current CCM scope. The Stage 9–11 follow-up closes the audit items at `b7e5560`. Stages 1–8 retain their original evidence.
4
+
5
+ | Stage | Status and evidence |
6
+ | --- | --- |
7
+ | 1. Acquire schematic | **PASS.** Source acquired via MCP. The [Circuit Definition](circuit_definition.md) pins the reviewed revision. The [release record](source/README.md) documents authorship, public rights, and the right-hand artifacts. |
8
+ | 2. Establish states and timing | **PASS.** Reviewed. [Right-hand paths, signed currents, state table and timeline](circuit_definition.md#right-hand-circuit-and-signed-paths) are traced to the same snapshot. The [visual review packet](review/README.md) contains the manually confirmed timing and switching states. |
9
+ | 3. Approve Circuit Definition | **PASS.** Confirmed by [explicit user approval](approval.md). Reviewed input is cloud r21, `dut` r266, structure r59, with equal off-state sharing and half-input gate swing. |
10
+ | 4. Derive analytical model | **PASS.** [Derivation and loss ledger](analytical_model.md), [executable loss model](../../../static/compare/buck-stacked.js), and [sizing verification](verify_sizing.cjs). |
11
+ | 5. Verify physics and math | **PASS** in the declared ideal CCM envelope. State KCL/KVL and charge/volt-second conditions are documented in the derivation. Limits, periodic closure and units are checked by the independent fixture. |
12
+ | 6. Solve independently | **PASS.** [Periodic switched circuit](numerical.py) uses reviewed branch incidence, inverse-coupled winding laws, finite Cout and primitive charge laws. The [matched report](evidence/matched-results.json) records residuals. |
13
+ | 7. Execute independent NGSpice | **PASS** for the ideal switch and event scope. [Executed decks, logs, coarse/refined measurements and nominal waveform](evidence/executed-decks.zip) include two independent zero-state starts. Practical commutation and sharing mismatch are excluded by approval. |
14
+ | 8. Compare and qualify | **PASS** for 15 matched cases. [Validation report](README.md#results-and-ranges) records common plots, error limits, ranges, and the jointly constrained domain. |
15
+ | 9. Integrate | **PASS.** The [Chrome Coss receipt](evidence/coss-browser.json) verifies positive, blank and zero Coss across Analysis, handoff, NGSpice and exports. Corresponding source and served artifacts match. |
16
+ | 10. Verify feature parity and regressions | **PASS.** The [parity matrices](parity.md) link the untouched default run, edited workflow, all 16 sweep axes, previous-build cache transition and tagged [baseline regressions](evidence/coss-regressions.json). |
17
+ | 11. Archive and publish the local decision | **PASS.** The [development report](README.md), [regression registry](../regression_test_registry.md), [Minjie issue](../architecture_discussion.md) and [hash manifest](evidence/SHA256SUMS) document this local milestone. |
18
+
19
+ ## PR #1 publication checks
20
+
21
+ The authored right-hand circuit is released under AGPL-3.0-only. The publication SVG removes 96 out-of-scope drawing object IDs and the associated wire segments. The Gallery and state review assets contain eight transistors per circuit view. The editable starter, structural design netlist, analytical model, numerical solver, and executable NGSpice bench retain the qualified implementation. See the [release record](source/README.md).
22
+
23
+ Targeted Chrome checks passed on the PR candidate for Gallery and editable schematic entry points, sizing and Loss Lineup exports, editor edit and undo, both voltage modes, edited NGSpice execution, a duty sweep, downloads, invalid-input recovery, and warm and fresh reload. The exact default and positive, blank, and zero Coss cases passed on macOS and on the local Linux amd64 image. Original XFLY6S, XFLY8S, and C3L measurements matched the tagged Simulator, and the SP2 handoff and error recovery passed. The candidate ran on port 8768 because the existing workbench occupied port 8765.
24
+
25
+ The 45 packaged Analysis tests, baseline inventory, model contracts, sizing check, and [release archive hashes](evidence/SHA256SUMS) passed. The source ZIP served by the local Linux image matched the candidate. The frozen 15-case three-method comparison, 16-axis Simulator evidence, and earlier parity checks still apply. Hosted Hugging Face execution remains pending.
26
+
27
+ ## Checklist disposition
28
+
29
+ See the [topology validation checklist](../topology_validation_checklist.md), [technical validation report template](../technical_validation_report_template.md), [feature parity checklist](../feature_parity_checklist.md) and [regression registry](../regression_test_registry.md).
30
+
31
+ - Source revision, editable/layout evidence, provisional identity, gate mapping, path order, phase timing, overlap, windings and signed current conventions are recorded in the [Circuit Definition](circuit_definition.md). The drawn device sizes are provenance. Width allocation, periodic balance, loaded range and the executable bench are evidenced in stages 4–8. Practical balancing and mismatched dynamic sharing are excluded by the [approved scope](approval.md).
32
+ - Pre-review checks passed for the four archive hashes, SVG XML, portable project identity and revision, and the 32-device structural transcription's missing-gate placeholders. Sampling the command intervals at duties 0.01, 0.35, 0.50, 0.65 and 0.99 reproduced the documented state order and on-time for both phases. A final read confirmed the same clean Canvas revision.
33
+ - The [review figures](review/README.md) were rendered and inspected in Chrome. Structural checks covered all eight visible MOSFET labels, two signed current overlays in each state, the three timing regions, and all 32 ideal drain-to-source stress entries against the source pin order. These checks exercise the review artifacts.
34
+ - Analytical, independent, transient and integration evidence is linked above. The immutable baseline inventory check passed. The baseline analytical, numerical/NGSpice and browser regressions were rerun after the handoff fix. All 30 previously qualified Buck_Stacked decks were regenerated in memory and matched the archived bytes. Its independent solver and validated event equations were retained.
35
+ - The [Minjie review log](../minjie_confirmation_list.md) records the circuit and the legacy reference boundary. The [architecture discussion](../architecture_discussion.md) records any implications for shared contracts.
36
+
37
+ ## Limits
38
+
39
+ - Equal blocking and half-input effective drive are approved ideal assumptions. Practical voltage balancing and dynamic sharing mismatch are outside the qualification scope.
40
+ - The electrical model covers matched windings and positive CCM. The event fixtures separately count effective gate energy and hard Coss discharge. Device-level switching, diode commutation, thermal/core effects, and closed-loop behavior require a different model.
41
+ - Publication covers the authorized right-hand circuit and its derivatives under AGPL-3.0-only. Hosted execution remains pending.
42
+
43
+ ## Applicability
44
+
45
+ - **NOT APPLICABLE:** flying/clamp capacitor controls, a fixed-ratio-only workflow, independently editable gate swing or event count, and duplicate leakage/magnetizing coordinates. See the [Analysis and Simulator matrices](parity.md) for the corresponding output-capacitor, loaded-duty and winding controls.
46
+ - **NOT APPLICABLE:** practical dynamic sharing, device-level dead-time and closed-loop behavior. See the [approved scope](approval.md).
47
+ - **Open qualification items:** none within the declared local ideal scope.
docs/topology/2to1_buck_stacked/review/README.md ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 2:1 Buck_Stacked · Circuit Definition Review figures
2
+
3
+ **Reviewed and approved.** These figures refer to the right-hand circuit in Analog Canvas cloud revision 21, `dut` revision 266, structure revision 59. The [approval record](../approval.md) adds the nominal equal-sharing and half-input drive assumptions to this review packet.
4
+
5
+ ## 1. Original right-hand schematic
6
+
7
+ **From Analog Canvas.** This SVG contains the authorized right-hand drawing geometry. The eight visible schematic labels are `Q1a`, `Q1b`, `Q2a`, `Q2b`, `Q3a`, `Q3b`, `Q4a`, and `Q4b`. The gate table maps these labels to the device references. See the [release and authorship record](../source/README.md).
8
+
9
+ ![Original right-hand Analog Canvas schematic with eight MOSFET labels](original-right.svg)
10
+
11
+ ## 2. Gate assignment and expected VGS
12
+
13
+ Use ground as 0 V. `SWA` and `SWB` are the phase switch nodes. `HA` and `HB` are the upper-stack internal nodes (`hi_a`, `hi_b` in the structural deck). `LA` and `LB` are the lower-stack internal nodes (`lo_a`, `lo_b`). In this table these names stand for node voltages. `U1` and `U2` are the floating voltages of the drawn sources V1 and V2, positive at the gate. `VB` is the externally supplied shared gate bias, referenced to ground.
14
+
15
+ **From Analog Canvas.** V1 and V2 have saved DC values of 1 V and display annotations of `VIN/2`. The two gates tied to the shared port are physically connected to `Vin/2`. The labels `A`, `Ā`, `B`, and `B̄` are drawing annotations at four unwired gate pins. All eight bulk pins resolve to ground.
16
+
17
+ **Proposed for review.** Set `U1 = U2 = VB = VIN/2` according to the drawing annotations. Drive the four annotated PWM gates externally, using the reference nodes below. PWM logic high requests a positive, source-referenced `VDRV,on` sufficient to enhance the device at its actual body bias and current. Logic low requests `VDRV,off` below effective threshold, provisionally 0 V relative to its source. No on-drive amplitude or device safe operating limit is assigned at this stage.
18
+
19
+ | Canvas label / reference | Gate connection or proposed command | Gate voltage reference | Expected VGS and path condition |
20
+ | --- | --- | --- | --- |
21
+ | Q1a / M13 | V1 positive, proposed bias U1 = VIN/2 | V1 negative at SWA | `SWA + U1 − HA`. With A high, adequate positive overdrive is required to carry phase A current. With A low, HA can move and reduce VGS as the upper midpoint charges. |
22
+ | Q1b / M15 | A, proposed external high-side PWM | SWA, device source | `VDRV,on` in A-high and `VDRV,off` otherwise. Enables or interrupts the upper phase A path. |
23
+ | Q2a / M11 | Shared Vin/2 port, proposed VB = VIN/2 | Ground for the bias source, LA for VGS | `VB − LA`. With Ā high, adequate positive overdrive is required at the actual LA. With Ā low, LA can move and reduce VGS. |
24
+ | Q2b / M9 | Ā, proposed external complementary PWM | Ground, device source | `VDRV,on` in Ā-high and `VDRV,off` otherwise. Enables or interrupts the lower phase A path. |
25
+ | Q3a / M14 | V2 positive, proposed bias U2 = VIN/2 | V2 negative at SWB | `SWB + U2 − HB`. With B high, adequate positive overdrive is required to carry phase B current. With B low, HB can move and reduce VGS as the upper midpoint charges. |
26
+ | Q3b / M16 | B, proposed external high-side PWM | SWB, device source | `VDRV,on` in B-high and `VDRV,off` otherwise. Enables or interrupts the upper phase B path. |
27
+ | Q4a / M12 | Shared Vin/2 port, proposed VB = VIN/2 | Ground for the bias source, LB for VGS | `VB − LB`. With B̄ high, adequate positive overdrive is required at the actual LB. With B̄ low, LB can move and reduce VGS. |
28
+ | Q4b / M10 | B̄, proposed external complementary PWM | Ground, device source | `VDRV,on` in B̄-high and `VDRV,off` otherwise. Enables or interrupts the lower phase B path. |
29
+
30
+ In the ideal conducting plateau, the two active devices have zero channel drop, so the active biased partner's VGS is its bias voltage. In the blocked stack, the series PWM device is commanded off. The biased partner's actual VGS depends on the floating internal node. It may conduct during midpoint charging.
31
+
32
+ ## 3. Visual switching states
33
+
34
+ **Proposed for review, over the original Canvas geometry.** Dark stacks carry positive winding current in the ideal plateau. Muted stacks are outside that current path. Blue traces phase A through L3 and R1. Orange traces phase B through L4 and R2. Colors are added review overlays. The winding and resistor branches meet at VOUT, where the currents split between COUT and the load. The freewheel current passes source-to-drain through both lower channels.
35
+
36
+ ![Four annotated switching states on the right-hand schematic](switching-states.svg)
37
+
38
+ | AB | Conducting devices | Winding input levels |
39
+ | --- | --- | --- |
40
+ | 10 | M13/M15 and M10/M12 | SWA = VIN, SWB = 0 |
41
+ | 01 | M9/M11 and M14/M16 | SWA = 0, SWB = VIN |
42
+ | 00 | M9/M11 and M10/M12 | SWA = 0, SWB = 0 |
43
+ | 11 | M13/M15 and M14/M16 | SWA = VIN, SWB = VIN |
44
+
45
+ These four diagrams use positive continuous current and ideal commutation. During dead time, winding current flows through available capacitances and diode or channel paths as the node voltage evolves. The available path depends on the grounded bulks and instantaneous device voltages.
46
+
47
+ ## 4. Proposed timing diagrams
48
+
49
+ **Proposed for review.** Phase B is shifted by half the period. The figure shows the ideal logic states for each duty region. At a physical transition, turn off the outgoing PWM device before turning on the incoming device in that phase. Both commands in the phase are low during the blanking interval. State 11 powers both phases through separate stacks. Simultaneous upper and lower conduction within one phase is forbidden.
50
+
51
+ ![PWM timing for duty below, equal to, and above one half](timing.svg)
52
+
53
+ | Region | State order from t/T = 0 | Interval lengths in units of T |
54
+ | --- | --- | --- |
55
+ | 0 < D < 0.5 | 10 → 00 → 01 → 00 | D, 0.5−D, D, 0.5−D |
56
+ | D = 0.5 | 10 → 01 | 0.5, 0.5 |
57
+ | 0.5 < D < 1 | 11 → 10 → 11 → 01 | D−0.5, 1−D, D−0.5, 1−D |
58
+
59
+ The above-50% sequence is an ideal timing proposal. The minimum pulse width, dead time, device bias and CCM limits determine which duty range can be qualified.
60
+
61
+ ## 5. Winding polarity and reference directions
62
+
63
+ **From Analog Canvas.** L3 is dotted at pin 1 on the SWA side. L4 is dotted at pin 1 on the R2 side. The dots are drafting objects and the project has no electrical coupling element or coefficient.
64
+
65
+ ```text
66
+ iA →
67
+ SWA ── ● 1 [ L3 ] 2 ── R1 ── VOUT
68
+
69
+ iB →
70
+ SWB ──── 2 [ L4 ] 1 ● ── R2 ── VOUT
71
+ ```
72
+
73
+ **Proposed for review.** Use both positive phase currents toward VOUT. The phase voltage references are positive at the switch nodes and negative at the resistor-side winding terminals. Positive iA enters its dot. Positive iB leaves its dot. If the pair is coupled as drawn, it has negative mutual terms in those phase voltage and current coordinates. The magnitude of coupling remains open.
74
+
75
+ ## 6. Assumed per-device voltage stress
76
+
77
+ **Review assumptions, inferred from the Canvas connectivity.** Report signed off-state blocking voltage as `VDS = VD − VS`. Each active stack is idealized to zero channel drop. In a low plateau, define `hA = HA` and `hB = HB` for the upper midpoints. In a high plateau, define `lA = LA` and `lB = LB` for the lower midpoints. These four off-stack midpoint voltages are unspecified. The entries below use rail-clamped SWA and SWB and apply only to the four ideal plateaus. Small ON-state voltage drops and any transitions are outside this table.
78
+
79
+ | Device | 10 | 01 | 00 | 11 |
80
+ | --- | --- | --- | --- | --- |
81
+ | Q1a / M13 | 0 | VIN − hA | VIN − hA | 0 |
82
+ | Q1b / M15 | 0 | hA | hA | 0 |
83
+ | Q2a / M11 | VIN − lA | 0 | 0 | VIN − lA |
84
+ | Q2b / M9 | lA | 0 | 0 | lA |
85
+ | Q3a / M14 | VIN − hB | 0 | VIN − hB | 0 |
86
+ | Q3b / M16 | hB | 0 | hB | 0 |
87
+ | Q4a / M12 | 0 | VIN − lB | 0 | VIN − lB |
88
+ | Q4b / M10 | 0 | lB | 0 | lB |
89
+
90
+ Each blocked pair sums to VIN. If its midpoint is exactly VIN/2, each device in that pair has VIN/2 across drain to source. That is an equal-sharing illustration only. Within the ideal assumption that the midpoint stays between the rails, one device can approach the full VIN. Threshold and body effect, leakage, capacitances, drive, startup, and commutation determine actual sharing and peak stress. In particular, `VDB = VD` for the grounded bulks, so a drain tied to VIN sees VIN relative to bulk even in the illustrative equal-VDS split. The upper floating gate can also rise above VIN. The VGS expressions in the gate table are insufficient to establish oxide, junction, or transient voltage limits.
91
+
92
+ ## Provenance
93
+
94
+ The original right-hand SVG was exported directly through Analog Canvas MCP with a revision guard. The state and timing SVGs were built locally by [the figure script](build_review_figures.py). [Artifact checksums](SHA256SUMS) cover the original crop and the two review figures. The underlying circuit, layout, and labels were preserved in Canvas. The [qualification record](../qualification.md) remains at the Circuit Definition Review.
docs/topology/2to1_buck_stacked/review/SHA256SUMS ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ 0b059a6f09d8fbb4d2bed195b8a3a4b394b33df5b03ce74e6674c8fe176a979e original-right.svg
2
+ 5c43ae5da9054c794ac4a3b9fa4122eb7824761d4f6f43f31764388f9e17d7ad switching-states.svg
3
+ 516ed71c2e9db9ab0256765e910b00d9ad4d0389efcc85439469d46b825b736c timing.svg
docs/topology/2to1_buck_stacked/review/build_review_figures.py ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Create the review overlays from the released right-hand Analog Canvas geometry."""
2
+ from copy import deepcopy
3
+ from fractions import Fraction
4
+ from pathlib import Path
5
+ import xml.etree.ElementTree as ET
6
+
7
+ HERE = Path(__file__).resolve().parent
8
+ NS = "http://www.w3.org/2000/svg"
9
+ ET.register_namespace("", NS)
10
+ BLUE = "#236eaa"
11
+ ORANGE = "#ad521a"
12
+ INK = "#202835"
13
+
14
+ # These are Canvas object IDs and the visible power-wire segments from dut r266.
15
+ STACKS = {
16
+ ("A", "1"): ("M2_14", "M2_17"),
17
+ ("A", "0"): ("M2_13", "M2_15"),
18
+ ("B", "1"): ("M2_16", "M2_18"),
19
+ ("B", "0"): ("M6_13", "M6_14"),
20
+ }
21
+ STACK_LABELS = {
22
+ ("A", "1"): ("q-reference-M2_14", "q-reference-M2_16", "instance-label-M1_19"),
23
+ ("A", "0"): ("q-reference-M2_13", "q-reference-M2_15", "instance-label-M1_21"),
24
+ ("B", "1"): ("q-reference-M1_13", "q-reference-M2_18", "instance-label-M1_20"),
25
+ ("B", "0"): ("q-reference-M6_13", "q-reference-M6_14", "instance-label-M1_22"),
26
+ }
27
+ POWER_ROUTES = {
28
+ ("A", "1"): "M980 80 H900 V120 M900 160 V180 M900 220 V300",
29
+ ("A", "0"): "M980 470 H900 V450 M900 410 V380 M900 340 V300",
30
+ ("B", "1"): "M980 80 H1060 V120 M1060 160 V180 M1060 220 V250",
31
+ ("B", "0"): "M980 470 H1060 V450 M1060 410 V380 M1060 340 V250",
32
+ }
33
+ OUTPUT_ROUTES = (
34
+ "M900 300 H1100 M1140 300 H1150 M1190 300 H1200 V270 "
35
+ "M1060 250 H1100 M1140 250 H1150 M1190 250 H1200 V270 "
36
+ "M1200 270 H1300 V290 M1260 270 V290 M1260 330 V350 H1300 V330 "
37
+ "M1280 350 V360"
38
+ )
39
+ ARROWS = {
40
+ ("A", "1"): "M936 99 V316 H1193",
41
+ ("A", "0"): "M947 451 V316 H1193",
42
+ ("B", "1"): "M1096 99 V263 H1193",
43
+ ("B", "0"): "M1096 451 V263 H1193",
44
+ }
45
+
46
+
47
+ def element(parent, tag, content=None, **attrs):
48
+ node = ET.SubElement(parent, f"{{{NS}}}{tag}", {k.replace("_", "-"): str(v) for k, v in attrs.items()})
49
+ node.text = content
50
+ return node
51
+
52
+
53
+ def new_figure(width, height, title, description):
54
+ root = ET.Element(f"{{{NS}}}svg", {
55
+ "viewBox": f"0 0 {width} {height}", "width": str(width), "height": str(height),
56
+ "role": "img", "aria-labelledby": "figure-title figure-desc",
57
+ })
58
+ element(root, "title", title, id="figure-title")
59
+ element(root, "desc", description, id="figure-desc")
60
+ element(root, "rect", width=width, height=height, fill="#fff")
61
+ return root
62
+
63
+
64
+ def label(parent, x, y, content, *, size=17, color=INK, weight=400, anchor="start"):
65
+ return element(parent, "text", content, x=x, y=y, fill=color, font_size=size,
66
+ font_family="Arial, sans-serif", font_weight=weight, text_anchor=anchor)
67
+
68
+
69
+ def write_figure(root, filename):
70
+ # Canvas text uses adjacent positioned spans. Indentation adds visible whitespace.
71
+ ET.ElementTree(root).write(HERE / filename, encoding="utf-8", xml_declaration=True)
72
+
73
+
74
+ def draw_state_card(root, formal, x, y, state, caption):
75
+ card = element(root, "g", transform=f"translate({x} {y})", data_state=state)
76
+ element(card, "rect", width=604, height=504, rx=8, fill="#fff", stroke="#d9dfe8")
77
+ label(card, 16, 26, f"{state} {caption}", size=20, weight=700)
78
+ artwork = element(card, "svg", x=7, y=34, width=590, height=457, viewBox="760 43 590 457")
79
+ schematic = deepcopy(formal)
80
+ selected = tuple(zip(("A", "B"), state))
81
+ off = tuple((phase, str(1 - int(bit))) for phase, bit in selected)
82
+ muted_objects = {item for key in off for item in (*STACKS[key], *STACK_LABELS[key])}
83
+ if state == "00":
84
+ muted_objects.update({"VDD1_13", "power-label-vdd1_13", "contact-d6cc57b7521cdf67"})
85
+ if state == "11":
86
+ muted_objects.update({"g3_14", "contact-452d5f2d2e336227"})
87
+ for layer in schematic:
88
+ name = layer.get("data-layer")
89
+ if name == "routes":
90
+ layer.set("opacity", "0.34")
91
+ for d in (OUTPUT_ROUTES, *(POWER_ROUTES[key] for key in selected)):
92
+ element(artwork, "path", d=d, fill="none", stroke="#222", stroke_width=1.4)
93
+ for obj in layer:
94
+ object_id = obj.get("data-object-id")
95
+ if object_id in muted_objects:
96
+ obj.set("opacity", "0.35")
97
+ artwork.insert(0, schematic)
98
+ for phase, bit in selected:
99
+ color, x_label, y_label, text_label = (
100
+ (BLUE, 1174, 332, "iA") if phase == "A" else (ORANGE, 1195, 237, "iB")
101
+ )
102
+ d = ARROWS[phase, bit]
103
+ element(artwork, "path", d=d, fill="none", stroke="#fff", stroke_width=4.8,
104
+ stroke_linejoin="round", opacity=0.92)
105
+ element(artwork, "path", d=d, fill="none", stroke=color, stroke_width=2.15,
106
+ stroke_linejoin="round", marker_end=f"url(#arrow-{phase})")
107
+ label(artwork, x_label, y_label, text_label, size=13, color=color, weight=700)
108
+
109
+
110
+ def switching_states():
111
+ source = ET.parse(HERE / "original-right.svg").getroot()
112
+ formal = next(group for group in source if group.get("data-layer") == "formal")
113
+ root = new_figure(1260, 1166, "2:1 Buck_Stacked switching states",
114
+ "Four ideal positive-current switching states on the original Canvas geometry. "
115
+ "Blue arrows follow phase A and orange arrows follow phase B toward the output.")
116
+ defs = element(root, "defs")
117
+ for child in source:
118
+ if child.tag.endswith("}style"):
119
+ defs.append(deepcopy(child))
120
+ for phase, color in (("A", BLUE), ("B", ORANGE)):
121
+ marker = element(defs, "marker", id=f"arrow-{phase}", viewBox="0 0 10 10",
122
+ refX=9, refY=5, markerWidth=5, markerHeight=5, orient="auto-start-reverse")
123
+ element(marker, "path", d="M0 0 L10 5 L0 10 z", fill=color)
124
+ label(root, 18, 37, "2:1 Buck_Stacked — proposed switching states", size=29, weight=700)
125
+ label(root, 18, 66, "Ideal intervals, positive continuous winding current. Each arrow ends at its output branch.", size=17)
126
+ label(root, 18, 91, "Blue iA through L3", color=BLUE, weight=700)
127
+ label(root, 219, 91, "Orange iB through L4", color=ORANGE, weight=700)
128
+ label(root, 441, 91, "Dark stack carries winding current · Gray stack is outside that path", size=16)
129
+ for i, (state, caption) in enumerate((
130
+ ("10", "A powered · B freewheels"), ("01", "A freewheels · B powered"),
131
+ ("00", "Both phases freewheel"), ("11", "Both phases powered"),
132
+ )):
133
+ draw_state_card(root, formal, 18 + (i % 2) * 620, 107 + (i // 2) * 516, state, caption)
134
+ label(root, 18, 1153, "Dead time, diode commutation, and midpoint charging are outside these four plateaus.", size=15)
135
+ write_figure(root, "switching-states.svg")
136
+
137
+
138
+ def intervals(duty):
139
+ edges = sorted({0, duty, Fraction(1, 2), (Fraction(1, 2) + duty) % 1, 1})
140
+ for left, right in zip(edges, edges[1:]):
141
+ midpoint = (left + right) / 2
142
+ a = midpoint < duty
143
+ b = (midpoint - Fraction(1, 2)) % 1 < duty
144
+ yield left, right, (a, b)
145
+
146
+
147
+ def plot_timing(root, top, region, duty, edge_labels):
148
+ width = 785
149
+ x0 = 142
150
+ chunks = list(intervals(duty))
151
+ heading = region if duty == Fraction(1, 2) else f"{region} · drawn at D = {float(duty):.2f}"
152
+ label(root, 23, top + 25, heading, size=19, weight=700)
153
+ row_top = top + 69
154
+ fills = {"00": "#edf0f4", "10": "#e7f3fa", "01": "#fbede2", "11": "#ece7f7"}
155
+ for (left, right, ab), tick in zip(chunks, edge_labels):
156
+ x, end = x0 + width * float(left), x0 + width * float(right)
157
+ state = "".join(str(int(value)) for value in ab)
158
+ element(root, "rect", x=x, y=row_top, width=end - x, height=138, fill=fills[state])
159
+ element(root, "line", x1=x, x2=x, y1=row_top - 5, y2=row_top + 139,
160
+ stroke="#a2aebc", stroke_dasharray="3 3")
161
+ label(root, x, row_top - 13, tick, size=14, anchor="middle")
162
+ label(root, (x + end) / 2, row_top + 127, state, size=17, weight=700, anchor="middle")
163
+ element(root, "line", x1=x0 + width, x2=x0 + width, y1=row_top - 5, y2=row_top + 139, stroke="#a2aebc")
164
+ label(root, x0 + width, row_top - 13, "1", size=14, anchor="middle")
165
+ label(root, 74, row_top - 13, "t/T", size=14)
166
+ label(root, 74, row_top + 127, "AB", size=16, weight=700)
167
+ for i, (name, color) in enumerate((("A", BLUE), ("Ā", BLUE), ("B", ORANGE), ("B̄", ORANGE))):
168
+ high = row_top + 8 + i * 27
169
+ low = high + 13
170
+ label(root, 74, high + 13, name, color=color, weight=700)
171
+ trace = []
172
+ for j, (left, right, ab) in enumerate(chunks):
173
+ on = ab[i // 2] if i % 2 == 0 else not ab[i // 2]
174
+ y = high if on else low
175
+ left_x, right_x = x0 + width * float(left), x0 + width * float(right)
176
+ trace.append(f"{'M' if j == 0 else 'L'}{left_x} {y} H{right_x}")
177
+ element(root, "path", d=" ".join(trace), fill="none", stroke=color,
178
+ stroke_width=2.4, stroke_linejoin="round")
179
+
180
+
181
+ def timing_diagram():
182
+ root = new_figure(1000, 918, "2:1 Buck_Stacked proposed gate timing",
183
+ "Normalized phase A and B PWM commands and complements for duty below, at, and above one half.")
184
+ label(root, 23, 40, "2:1 Buck_Stacked — proposed PWM timing", size=28, weight=700)
185
+ label(root, 23, 68, "One phase period T. B starts T/2 after A. The four traces are logic commands.", size=16)
186
+ plot_timing(root, 90, "0 < D < 0.5", Fraction(7, 20), ["0", "D", "½", "½ + D"])
187
+ plot_timing(root, 321, "D = 0.5", Fraction(1, 2), ["0", "½"])
188
+ plot_timing(root, 552, "0.5 < D < 1", Fraction(13, 20), ["0", "D − ½", "½", "D"])
189
+ label(root, 24, 798, "Dead time at each phase edge", size=17, weight=700)
190
+ label(root, 24, 824, "Both commands are low during blanking.", size=15)
191
+ label(root, 24, 848, "The three panels use zero dead time.", size=15)
192
+ label(root, 24, 872, "At D = 0.5, both phases change state together.", size=15)
193
+ element(root, "rect", x=656, y=804, width=91, height=68, fill="#edf0f4")
194
+ label(root, 702, 796, "Blanking interval", size=14, anchor="middle")
195
+ label(root, 470, 827, "Outgoing", size=15)
196
+ label(root, 470, 863, "Incoming", size=15)
197
+ element(root, "path", d="M566 814 H656 V829 H925 M566 865 H747 V850 H925",
198
+ fill="none", stroke=INK, stroke_width=2.2)
199
+ write_figure(root, "timing.svg")
200
+
201
+
202
+ if __name__ == "__main__":
203
+ switching_states()
204
+ timing_diagram()
docs/topology/2to1_buck_stacked/review/original-right.svg ADDED
docs/topology/2to1_buck_stacked/review/switching-states.svg ADDED
docs/topology/2to1_buck_stacked/review/timing.svg ADDED
docs/topology/2to1_buck_stacked/source/README.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Buck_Stacked source and release scope
2
+
3
+ Fangyu Mao confirmed authorship and authority to publish and adapt the right-hand drawing in Analog Canvas cloud revision 21, `dut` revision 266, structure revision 59. The authorization covers public redistribution in OpenPELS, Hugging Face PR #1, and the downloadable corresponding-source ZIP under [AGPL-3.0-only](../../../../LICENSE.md). It applies to the right-hand circuit and its derivatives.
4
+
5
+ The [right-hand SVG](../review/original-right.svg) retains the authorized geometry. The SVG excludes the left-hand drawing objects and wire segments from the export data. The [structural transcription](buck-stacked-right.structural.sp) records only the approved connectivity, including four open PWM gates. The [editable release starter](../../../../static/starters/buck_stacked.icproj.json) adds the documented ports and coupling, and its [design netlist](../../../../static/starters/buck_stacked.sp) retains external SKY130 interface references. The executable qualification deck uses ideal channels.
6
+
7
+ The complete source snapshot remains in the local qualification milestone. Its two full exports are identified here by hash for provenance.
8
+
9
+ | Original local artifact | SHA-256 |
10
+ | --- | --- |
11
+ | Native project JSON | `d4e67c2621e0088a26c4ab7354dcb936265bed0854021509c908255bbce1cbe3` |
12
+ | Full native SVG | `f0b56b2708f7f797c592fd0316d0ae8fef1bed60d11f722b5098e8b7986cec18` |
13
+
14
+ See the [technical approval](../approval.md) and the [published source manifest](SHA256SUMS).
docs/topology/2to1_buck_stacked/source/SHA256SUMS ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ 55d8fbd82655f45ef221fecaf195b66563ea895dfea976f62086d1881189b076 buck-stacked-right.structural.sp
2
+ 0b059a6f09d8fbb4d2bed195b8a3a4b394b33df5b03ce74e6674c8fe176a979e ../review/original-right.svg
3
+ f7f5881fc34344c96c0069bfe55dc1b32643dfba8fa8a65aa3a7d83fe40bda67 ../../../../static/starters/buck_stacked.icproj.json
4
+ 0831135f2de8dc63696e502eeee848854d29d02123181c9dd6188a7c364edd14 ../../../../static/starters/buck_stacked.sp