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
Documentation

Automatic design: from a spec to a checked converter

You type a spec, and Design › Auto Design picks a topology, draws it, sizes the parts, closes the loop, checks every corner by simulation and writes a report. Here the first run passes. You read what it did to get there, start it from another frequency and compare. About 15 minutes.

Pictures: a numbered red box is what you click or read, Run is a button, Design › Automate a menu path.

1. Open Auto Design

Step 1 of 9 · about 1 min

Start with no circuit open (a run replaces the open circuit, so save your work first). Choose Design › Auto Design.

The Design menu open at Automate, Auto Design, marked 1 to 3

  1. Design.
  2. Automate.
  3. Auto Design.

2. Type the spec

Step 2 of 9 · about 1 min

A 12 V to 3.3 V point-of-load converter for up to 5 A, which must reach 95 % efficiency at full load.

The Auto Design form with the spec filled in, marked 1 to 6

  1. Input voltage: minimum 10.8, nominal 12, maximum 13.2 V.
  2. Output voltage: 3.3 V, with an Output tolerance of 3 %.
  3. Load current: minimum 1, maximum 5 A.
  4. Ripple, peak to peak: 0.05 V.
  5. Efficiency point: at least 95 % at a load of 5 A.
  6. Design converter.

A field you leave empty is not checked, and the report says so. Save spec keeps the spec in a JSON file, and Load spec reads it back; with no circuit open the form starts empty.

The nominal input, the output voltage and the maximum load current are under Required, the other rows under Targets, and the temperature and loop-margin rows under Limits (closed until you open it). The run's own counts (tuning rounds, simulations, solver steps) are under Run limits. With a converter open, the form starts with its input voltage, output voltage and load current filled in, each marked from circuit; type over one to change it. A greyed number in an empty field is only a typical value, never sent.

3. Read the verdict

Step 3 of 9 · about 1 min

The run takes a few seconds. These are its stages, each a command you can also run alone (manual, chapter 16):

topology.suggest → circuit.template → design.converter → magnetics.design (a catalogue inductor) → voltage loop → verify → tune → parts from the catalogue → verify → efficiency, thermal, stress, worst case → gate drive, sense network, protection, firmware → conducted EMI → layout checklist → bill of materials.

A stage that fails stops the run there, and the window says which one. Here none does.

The result: PASS, efficiency 97.6 % against 95 %, marked 1 to 3

  1. The headline names the converter and says all checks pass. All 14 gates ran, from verify to the bill of materials. The run started at 100 kHz, but its voltage-loop step moved the switch to 315 kHz (PWM in the report's values).
  2. Checks: Efficiency at 5 A and 12 V is 97.64 % against the 95 % limit, PASS. Regulation (0.10 %), ripple (655 µV) and the dip after the load step and its release (5.78 % and 5.77 % against 10 %) pass too; the spec gives no load step, so the run assumes one from 2.5 A to 5 A. The recovery time (133 µs) is only shown, INFO, because the spec sets no limit for it. Above the checks, the cards give the efficiency, the ripple, the loop's phase margin and the hottest part, and Parts lists the parts the run picked.
  3. Design report: Open report shows the full report in your browser (below); Export report saves it.

Not checked lists what nobody checked, such as start-up and EMI here: a pass is only as wide as the spec.

4. Read the report

Step 4 of 9 · about 1 min

Design report › Open report opens it in your browser, outside the app, so it has no picture here. It starts with the reason and the changes to try, then the spec, the topology ranking, the gates, the schematic, the values with their formulas, the stages and the open items. To get the files too (.json, .md, .html, .svg), give Report path under More options.

The report's loss table shows where the power goes: of 0.40 W simulated, Q1 takes 0.20 W and Q2 0.16 W, and L1 only 0.03 W (0.018 W of copper and 0.008 W of core). Two remedies explain that. The voltage loop was redesigned over every tolerance corner, which raised the switching frequency from 100 kHz to 315 kHz and set C1 to 270 µF. And no catalogue inductor meets its ratings at 24 µH, so L1 is a custom design on an ETD 39/20/13 3C95 core, rewound for 24 µH: fewer turns on the same core give a lower winding resistance and a higher saturation current. Its numbers are in the circuit.

One open item remains: the output mean had not settled at 4 of the worst case's 8 corners. Those corners are left out of the output mean's minimum and maximum; lengthen the end time in Simulation Settings to read them.

5. Look at the design

Step 5 of 9 · about 1 min

Close the window and press ⌘0.

The designed synchronous buck: power stage, voltage loop and dead-time blocks, marked 1 to 4

  1. Q1, the high-side MOSFET, a real part (Infineon BSC0906NS); Q2 below it is an Infineon BSC0902NS.
  2. L1: 24 µH, the custom ETD 39/20/13 3C95 inductor. Its DCR, 0.72 mΩ, and its 10.5 A saturation current are in the circuit: 0.72 mΩ × (5 A)² is the 0.018 W of copper loss.
  3. PI: the voltage loop, joined to the power stage by the net labels vfb, g1 and g2.
  4. DT1 (and DT2): 18 ns of dead time for each gate, sized from what the gate driver and the switches' turn-off edge need (14.2 ns) plus 25 %, rounded up.

6. Start from another frequency

Step 6 of 9 · about 1 min

The starting frequency is only a first guess: the loop step moves it. Open Design › Auto Design again. The form remembers the spec of the last run, so it is already filled in. Click More options and set the frequency.

More options: Switching frequency 200e3, marked 1 to 2

  1. Switching frequency: 200e3 (200 kHz).
  2. Design converter.

7. Compare the second run

Step 7 of 9 · about 1 min

The result: PASS, efficiency 96.6 %, marked 1 to 2

  1. The headline: all checks pass again, and every gate after verify ran.
  2. Efficiency at 5 A and 12 V: 96.58 %, 1.58 % to spare.

This start ends elsewhere: the switch at 500 kHz, L1 a custom 12 µH winding on the same core, C1 180 µF, a recovery of 82 µs instead of 133 µs, and the same open item, here at all 8 corners. The efficiency is lower than the first run's 97.64 %, because the switches lose more at the higher frequency. So the design that passes is not unique: read the values and the losses of each run, and pick on what your board needs. A pass is a starting point: read the open items before you order parts.

8. Choose analog control

Step 8 of 9 · about 1 min

The design above ends in firmware. To build the loop from parts instead, add a control object to the spec in the form and Design converter again:

"control": { "implementation": "analogOpAmp" }
  1. analogOpAmp: the compensator becomes a network around an LM358B op-amp, here a Type III, with E96 resistors and E12 capacitors. controllerIc uses the error amplifier of a controller IC instead (the LM5145 for this buck). On a boost or a flyback controllerIc puts the UCx843 itself in the circuit in peak-current mode: it drives the switch, reads the sense resistor Rcs through a small RC filter, and above 50 % duty adds slope compensation (Cramp, Rramp) from its oscillator ramp. The report's Control section then lists the sense parts, the pulse-by-pulse current limit and each corner's margins.
  2. The gates list analogControl in place of digitalize and codegen. Its row gives the network's gain and phase change at the crossover and the op-amp's gain-bandwidth, slew and swing checks.
  3. On the schematic the PI is gone: the subsystem XCOMP takes the output and drives the PWM. Double-click it to see the divider, the op-amp and the network inside.

Inside XCOMP, marked 1 to 6

  1. Rtop: the divider from the output (Rbot below it).
  2. Rz and Cz, with Cp above them: the integrator and first zero of the Type III network. Its second zero is Rff and Cff, in series across Rtop.
  3. UEA: the LM358B op-amp.
  4. Vea: the reference.
  5. Vaux: the 5 V supply of the op-amp.
  6. The PWM modulator: the comparison with the Valley ramp, the ramp gain Kramp and the duty limit Dlim.

The last verify row runs after analogControl, so the pass is the analog loop's. Its corners run on the switching circuit: the averaged model's step is too coarse for the op-amp. This spec passes at all six corners.

When you ask the AI assistant for a design without saying how the loop is built, it asks you which of the three you want.

9. Export the BOM and the KiCad project

Step 9 of 9 · about 1 min

A passing design goes to the board. Choose File › Export › Bill of materials: the form shows the price source and the preferences, and Run writes the list, one catalogue part per component with its data sheet. Then choose File › Export › KiCad project and give a folder: it writes a KiCad 8 schematic with those parts, net classes sized for each net's voltage and current, and a design-rules file. Open it in KiCad and draw the board. Both are also in Design › Manufacturing; once the board is routed, Manufacturing Outputs there makes the Gerbers and the assembly files.

The lesson in Help › Tutorials ends with the same two steps.

The same steps from a script

SPEC='{"vin":{"min":10.8,"nom":12,"max":13.2},"vout":{"nom":3.3,"tolPct":3},"iout":{"min":1,"max":5},"ripple":{"maxPp":0.05},"efficiency":[{"iout":5,"minPct":95}]}'
mkdir -p work
powercraft-cli run --new '{}' --root work --cmd design.auto --params "{\"spec\":$SPEC,\"reportPath\":\"first\"}"
powercraft-cli run --new '{}' --root work --cmd design.auto --params "{\"spec\":$SPEC,\"fsw\":200000,\"reportPath\":\"second\"}" --out work/pol.voltecx

The reply's pass, verify.rows and finalValues say the same as the window. powercraft-cli run exits 0 even when the design fails, so a script reads pass.

Back to the learning path.