Voltecx is in beta. The macOS build comes first; Windows and Linux packages are still being tested.Beta. macOS comes first; Windows and Linux are still in testing. What's new

A power supply on a datasheet looks like a few numbers: 12 V in, 3.3 V out, 5 A, 93 % efficient. Behind those numbers sit a dozen design steps, each with its own decisions and its own classic mistakes. Skip one and it comes back later, on the bench, in the EMI chamber or on the production line, where it costs far more to fix.

This article walks through the whole flow in order. For each step it says what you decide, the mistake people usually make, and the Voltecx command that does the step. To keep it concrete, every number comes from one automatic design run (design.auto) of a real spec, so you can see what each step produced.

The intuition: building a house

Designing a power supply is like building a house:

  • The spec is the client's brief: how many rooms, what climate, what budget.
  • The topology is the floor plan.
  • Sizing, magnetics and parts are the structure: beams, walls and wiring, sized for the loads.
  • The control loop is the heating thermostat: it must react quickly without oscillating.
  • Losses, thermal, protection and EMI are the building codes: fire safety, insulation and noise.
  • Tolerances, test plan, layout, prototypes and compliance are inspections, before and after the walls go up.

A change on paper costs an eraser. The same change after the walls are up costs a wrecking crew. That is why the flow front-loads checks: every hour spent simulating corners saves a board spin.

The example spec

Every number below comes from one run of this spec, a 12 V to 3.3 V point-of-load converter:

Requirement Value
Input 10.8 to 13.2 V (12 V ± 10 %)
Output 3.3 V ± 2 %
Load 0.5 to 5 A
Output ripple at most 33 mV peak to peak
Efficiency at least 90 % at 5 A
Junction temperature at most 125 °C

In Voltecx the spec is a small JSON object that spec.verify, spec.feasibility and design.auto all read:

{ "vin": { "min": 10.8, "nom": 12, "max": 13.2 }, "vout": { "nom": 3.3, "tolPct": 2 },
  "iout": { "min": 0.5, "max": 5 }, "ripple": 0.033, "efficiency": 90, "tjMax": 125, "loadStep": false }

The run took 77 simulations and passed all its gates. It passed in Voltecx's models: that is a starting point for a prototype, not a safety or compliance result.

Step 1: requirements

What you decide. Every number the product must meet, at every corner: input range, output tolerance, load range, ripple, load steps, start-up, efficiency points, ambient temperature, and the standards it must pass.

The typical mistake. A spec with only the nominal point. A converter that works at 12 V and 5 A may fail at 13.2 V and 0.5 A, or at 50 °C. A missing requirement is never checked.

In Voltecx. spec.feasibility checks the spec against physics bounds before anything is sized. For this spec it found every requirement within reach. At the end of the run, the report lists everything it did not check, with the reason. Here that list included start-up, load and line steps, the ambient range and Monte Carlo, all because the spec did not ask for them. Read that list: it is the to-do list for the spec's next revision.

Step 2: topology

What you decide. The power stage: buck, boost, flyback, LLC and so on.

The typical mistake. Picking the topology you used last time, or the one with the fewest parts, without checking stress and efficiency at your numbers.

In Voltecx. topology.suggest ranks the candidates and design.compare tabulates their efficiency, stress and part count. For 12 V to 3.3 V at 5 A both pick the synchronous buck. Which converter topology for my spec? covers this step in detail.

Step 3: power-stage sizing

What you decide. The switching frequency, the inductor and the capacitors.

The inductor follows from the ripple current you allow. With a ripple of 20 % of the 5 A load, ΔI=1\Delta I = 1 A:

L=(Vin−Vout) Dfsw ΔI=(12−3.3)×0.275100 kHz×1 A=23.9 μHL = \frac{(V_{in} - V_{out})\,D}{f_{sw}\,\Delta I} = \frac{(12 - 3.3) \times 0.275}{100\ \text{kHz} \times 1\ \text{A}} = 23.9\ \mu\text{H}

The output capacitor follows from the ripple voltage. design.auto aims at 70 % of the spec's 33 mV, ΔV=23.1\Delta V = 23.1 mV, to keep margin:

C=ΔI8 fsw ΔV=1 A8×100 kHz×23.1 mV=54.1 μFC = \frac{\Delta I}{8\,f_{sw}\,\Delta V} = \frac{1\ \text{A}}{8 \times 100\ \text{kHz} \times 23.1\ \text{mV}} = 54.1\ \mu\text{F}

The typical mistake. Sizing for the nominal input. The inductor ripple is largest at the highest input, so the output ripple is too. Here the verification measured 24.7 mV at 13.2 V and full load, inside the 33 mV limit.

In Voltecx. design.converter (Design › Design Steps › Converter) computes these values from the template equations and can write them into the circuit.

The designed converter at 12 V and 5 A in steady state: output voltage with 23.7 mV of ripple, the inductor current with 1.03 A of ripple, and the switch node.

The dips below 0 V on the switch node are the dead time: for 18 ns at each edge the low-side MOSFET's body diode carries the current. The run sizes it from the gate drive: the driver's delay matching and the turn-off edge need 14.2 ns, plus 25 % margin.

Step 4: magnetics

What you decide. A catalogue inductor or a custom one, the core, the turns and the wire.

The typical mistake. Checking the inductance and forgetting the rest: saturation at the worst-case peak current, and the winding resistance (DCR), which sets the copper loss.

In Voltecx. magnetics.design designs a custom inductor from a core catalogue; the run then looks for a catalogue part that meets the same ratings. Here it chose two Coilcraft XAL8080-123MEC (12 µH each) in series for 24 µH, saturating at 8.6 A, and kept a custom ETD 39/20/13 design, wound on its coil former, as the alternative.

That choice has a cost the loss breakdown shows at once: the two parts together have 36.4 mΩ of DCR, and at 5 A their copper loses 0.91 W of the converter's 1.10 W. If you need more efficiency, the inductor is the first place to look, not the MOSFETs.

Step 5: semiconductors and gate drive

What you decide. The MOSFETs (or diodes), the gate driver, the gate resistors and the bootstrap capacitor.

The typical mistake. Choosing a switch by its on-resistance alone. A part far over-rated in voltage has more capacitance and switches slower; a part with too little margin fails on the first input surge.

In Voltecx. design.parts (Design › Design Steps › Parts) rates every switch and diode against its simulated stress at the input and load corners and proposes the lowest-loss library device that carries it. The run chose an Infineon BSC0906NS for the high side and a BSC0902NS for the low side, with no part beyond its derated rating. The ranking counts each part's gate-drive loss with its conduction and switching loss, so a part with a large gate charge does not win on its on-resistance alone. design.gateDrive then picked a UCC27282 half-bridge driver and sized the gate resistors and the bootstrap capacitor. With these MOSFETs the driver's output and each part's own gate resistance already keep the gate current inside the driver's peak rating, so the external gate resistors are 0 Ω. It also reports the gate-drive power, 0.037 W, which design.efficiency counts as a fixed loss, so it is in the efficiency figures below. The controller's own supply is not.

Step 6: the control loop

What you decide. The control method, the compensator and its crossover frequency and margins.

The typical mistake. Designing the loop at one operating point and never checking the others, or chasing phase margin while the gain near the LC resonance is barely above 0 dB.

In Voltecx. design.voltageLoop (Design › Design Steps › Voltage Loop) designs a PI, Type II or Type III compensator for the power stage in the circuit. The run designs it at the nominal input and full load first, then reads that loop at 13.2 V and 0.5 A, where the light load leaves the output filter least damped: the LC resonance at 4.42 kHz has a Q of 9.9 there, and the loop designed at 12 V and 5 A loses its margins. So the run designs the loop at that corner instead. A PI cannot cross above the resonance with 60° of margin there, so it uses a Type III, and the highest crossover that keeps 60° of phase margin and 6 dB of gain margin is 222 Hz. The loop crosses over at 222 Hz with 90.5° of phase margin and 6.1 dB of gain margin.

Bode plot of the designed loop at 13.2 V and 0.5 A: the plant Gvd peaks at the 4.42 kHz resonance, and the loop gain T crosses 0 dB at 222 Hz with 90.5° of phase margin.

Look at the shape of TT, not just the margins: above the crossover it stays under 0 dB, and at the resonance, where the plant peaks, it is still more than 6 dB under. Crossing far below the resonance is what keeps the light-load corner from ringing. The price is speed: with the crossover at 222 Hz, far below the resonance, the output capacitor, not the loop, has to absorb fast disturbances. The report flags what was not checked: the loop was designed at one point, and the check over every corner was not run, because the spec switched the load step off ("loadStep": false; without that field a run checks a default 50 to 100 % step).

Add a load step to the spec (2.5 to 5 A, at most 5 % droop) and the run changes course. The PI cannot hold the droop, so design.robustLoop takes over: it raises the switching frequency to 315 kHz and the output capacitor to 470 µF, and closes a Type III loop at 6.93 kHz, designed for 70° of phase margin and checked at every input, load and tolerance corner. The faster switching costs efficiency, 92.8 % instead of 93.7 %. The spec drives the design: a requirement you leave out is a cost you never see.

Step 7: losses and efficiency

What you decide. Whether the efficiency target is met over the load range, and where the losses go.

The typical mistake. Quoting the full-load efficiency only. Many products spend most of their life at light load.

In Voltecx. design.efficiency (Design › Design Steps › Efficiency) sweeps the load, one simulation per point, and splits the full-load loss by component.

Efficiency of the designed converter at 12 V against load current, from 95.9 % at 0.5 A to a peak of 96.6 % at 1.5 A and 93.7 % at 5 A.

The curve starts at 95.9 % at 0.5 A, peaks at 96.6 % near 1.5 A and falls to 93.7 % at 5 A. At light load the fixed gate-drive loss (0.037 W) weighs most; at heavy load the copper loss, which grows as I2I^2, does. The figure covers the power stage and the gate drive: switches, inductor, capacitors and gate power. The controller's supply and the board copper come on top, and they weigh most at light load, so a real board measures lower there.

Step 8: thermal

What you decide. How each hot part gets rid of its heat: board copper, a heatsink or airflow.

The typical mistake. Checking the junction temperature at 25 °C ambient, or assuming a heatsink that is not on the board.

In Voltecx. design.thermal (Design › Design Steps › Thermal) turns each device's simulated loss into a junction temperature and picks the cooling from cited catalogues: for an SMD part, the copper area its data sheet rates it on. At 40 °C ambient, both MOSFETs reach 44 °C, on the copper area each data sheet specifies. Both are far below 125 °C, but the spec gave no ambient range, so 40 °C is a default, not your enclosure.

Step 9: protection

What you decide. Current limit, over-voltage and under-voltage thresholds, and how they are sensed.

The typical mistake. A current limit set from the nominal inductor current. With the inductor 20 % low and the input at its maximum, the normal peak is higher, and a limit set too close trips in normal operation.

In Voltecx. design.protection (Design › Design Steps › Protection) sizes the sense shunt and amplifier and the thresholds with their tolerances. Here: a 5.69 A peak-current trip, an over-voltage trip at 3.80 V (set above a 10 % start-up overshoot, the default allowance; the start-up simulation overshot 5.5 % at most) and an input under-voltage start at 10.38 V (below the 10.58 V the converter's input sags to at 10.8 V and full load).

Peak inductor current against input voltage with the nominal inductance and with the inductance 20 % low, and the current-limit trip at 5.69 A.

The trip sits on the highest normal peak, reached at 13.2 V with the inductance 20 % low: no false trip at any normal corner, and no more headroom than that. For the input side, design.inputProtection sizes the fuse, inrush limiting, the surge TVS and reverse-polarity protection, and design.fmea injects open, short and drift faults into every part and records which ones the protection catches.

Step 10: EMI

What you decide. The input filter, so that conducted emission stays under the limit of the standard your product must meet.

The typical mistake. Leaving the filter for the end, then finding it resonates with the converter's negative input impedance and makes the loop unstable.

In Voltecx. emi.conducted estimates the conducted spectrum at the input against the CISPR 32 class B limit, sizes a damped LC filter when the margin is short and measures again.

Estimated conducted emission (average detector) without and with the input filter, and the CISPR 32 class B average limit.

Without a filter the second harmonic, at 200 kHz, is 26.7 dB over the average limit (the 100 kHz fundamental is below the 150 kHz start of the band). With the damped filter the run added from catalogue parts (a 15 µH inductor, a 10 µF ceramic capacitor that keeps 8.2 µF at 12 V, and an RC damping branch), the worst point is 19 dB under it, and the filter passes the Middlebrook impedance check. This is an estimate for planning; only a measurement on the real board in a test lab counts for compliance. Conducted EMI pre-compliance and Input filter stability go deeper.

Step 11: tolerances

What you decide. Whether the design still meets the spec when every part is at the edge of its tolerance.

The typical mistake. Signing off the nominal design.

In Voltecx. The worst-case stage of design.auto runs the corners of a ±20 % tolerance box on the inductor and capacitor at the input extremes. Here it found something: with the output capacitor 20 % low and the inductor 20 % low at 13.2 V, the ripple reaches 38.6 mV, over the 33 mV limit. The nominal design passes, the worst case does not, and the report lists it as an open item: raise the capacitor or buy tighter parts. analysis.monteCarlo turns the same question into a yield; see Monte Carlo tolerance analysis.

Step 12: test plan

What you decide. How each requirement will be measured on the bench and on the production line, with which limit.

The typical mistake. Writing the test plan after the prototype arrives, so the board has no test points and the limits have no source.

In Voltecx. design.testPlan (Design › Design Steps › Test Plan) writes the procedure from the spec and the protection design, each limit with its source. For this design it has 18 steps: 2 inspections, 1 input test (reverse polarity), 10 power tests (output at each input and load corner, ripple, efficiency) and 5 protection tests (current limit, over-voltage trip and release, under-voltage start and stop).

Step 13: layout, KiCad and BOM

What you decide. The board: placement, the hot loop, ground, track widths and clearances, and the parts list.

The typical mistake. A long hot loop. In a buck, the loop of the input capacitor and the two MOSFETs carries current that switches in nanoseconds; every nanohenry in it becomes a voltage spike and radiated noise.

In Voltecx. The layout stage gives a checklist with numbers. Here it asks to keep the hot loop of Cin, Q1 and Q2 under 15.6 nH. bom.export picks a catalogue part for every component, each line citing its data sheet; this design has 18 lines, including the gate driver and its parts, one line per part. file.exportKicad (File › Export › KiCad project) writes a KiCad 8 project with the parts, footprints where known, and net classes sized for the current: 2.77 mm tracks on outer layers for the 5 A nets. Layout hints are not a board design; you still route the board.

Step 14: prototypes and bring-up

What you decide. How you will power up the first board safely and measure what the simulation predicted.

The typical mistake. A board with no way to break the loop, no way to measure the inductor current and no way to power the stages one at a time.

In Voltecx. design.debugAids (Design › Automate › Debug Aids) adds to the schematic what bring-up needs: 0 Ω links between the source and the input and between the output and the load, a loop-injection resistor with test points for a bench loop-gain measurement, and test points; all as DNP parts or links that leave the simulation unchanged. After routing, layout.extract reads the board, computes the inductance of each power loop and can put those parasitics back into the circuit, so you can simulate the spikes before the first board is built.

Step 15: compliance

What you decide. Which standards apply: safety (insulation, clearance and creepage), EMC (conducted and radiated emission, immunity) and, for an external power supply, efficiency regulations.

The typical mistake. Treating a simulation as a certificate.

In Voltecx. design.safety computes the clearance and creepage IEC 62368-1 asks for across each isolation barrier. design.compliance (Design › Design Steps › Compliance) builds one row per requirement for the US or EU market, each with its clause, and marks it pass, fail or not checked from what was simulated. Our 12 V module has no mains input, so all eight EU rows (efficiency, harmonics, EMC and safety for mains equipment) come back not checked, which is correct: they apply to the system it goes into. Either way, only an accredited lab can say a product complies.

Step 16: production test

What you decide. What every unit off the line is tested for, and the limits.

The typical mistake. Production limits copied from the spec, with no guard band for the tester's own accuracy, or a test that needs equipment the factory does not have.

In Voltecx. The design.testPlan procedure lists the equipment and fixtures each step needs, and exports as CSV for a test station. file.manufacturingOutputs runs KiCad's own command-line tool on your routed board to make the design-rule report, Gerbers, drill files, the placement file, the BOM and an assembly drawing.

The whole flow on one page

Step What you decide Typical mistake Voltecx
Requirements every number at every corner nominal point only spec.verify, spec.feasibility
Topology the power stage habit instead of numbers topology.suggest, design.compare
Sizing fsw, L, C sized at nominal input design.converter
Magnetics core, turns, part ignoring DCR and saturation magnetics.design
Semiconductors switches, driver on-resistance only design.parts, design.gateDrive
Control compensator, crossover one operating point design.voltageLoop, design.robustLoop
Losses efficiency over load full load only design.efficiency
Thermal cooling 25 °C ambient design.thermal
Protection trips and sensing limit from nominal current design.protection, design.inputProtection, design.fmea
EMI input filter filter added last emi.conducted
Tolerances worst case, yield nominal sign-off worst-case stage, analysis.monteCarlo
Test plan measurements and limits written after the prototype design.testPlan
Layout and BOM board, parts list long hot loop layout checklist, bom.export, file.exportKicad
Bring-up debug access no way to measure design.debugAids, layout.extract
Compliance standards simulation as certificate design.safety, design.compliance
Production unit test, outputs no guard band design.testPlan, file.manufacturingOutputs

How the converter is controlled (a controller IC, an analog compensator or firmware on a microcontroller) is a decision of its own; Digital, analog or controller IC covers it.

Try it in Voltecx

  • Design › Auto Design runs design.auto on your spec: it chains the steps above, checks each one by simulation, leaves a checkpoint after every stage and writes a report with the open items and everything it did not check. report.export writes that report as a PDF or HTML page. See Automatic design.
  • Each step is also its own command under Design, so you can run one step on a circuit you drew yourself.
  • Paste the spec above, run it, then replace "loadStep": false with "loadStep": { "from": 2.5, "to": 5, "maxDroopPct": 5 } and run it again to watch the switching frequency, the capacitor and the loop change.

The sizing equations follow R. W. Erickson and D. Maksimović, Fundamentals of Power Electronics, 3rd ed., ch. 2 and 9; the input-filter check follows R. D. Middlebrook, "Input filter considerations in design and application of switching regulators", IEEE IAS Annual Meeting, 1976.