And in this case here, since there is going to be an AC simulation
that is based on the SPICE ability to solve for an operating point first,
that can have convergence problems, especially if the circuit is complex and
includes a number of control loops around.
What may help in the process of going around convergence problems
is to set the voltage values to something that is known.
There is a command that's called .nodeset that can be used to
set node voltages to known values.
In this example here, we have set the output voltage to 20 volts,
and the input to 9.3 volts,
but you can add additional voltages, depending on the type of your circuit.
Typically, the voltages across capacitors or
other voltages that you know the steady state value of.
And then finally, at the bottom are the commands that control simulation.
You should not change those except that you should have activated
either the transient simulation or the AC simulation.
There's going to be two simulation runs performed to verify your design.
The control signals look exactly the same as in Milestone 1.
Again, those are the control signals that, in this case since you have control
loops designed, you're operating the converter in closed loop,
you can use these control signals to set the references for your control loops.
The measurement commands, there's no need to change those.
They're set up to measure the values that are going to be checked in the rubrics for
Milestone 2.
Here's an example of a simulation, a Milestone 2 simulation of a design.
An example of a transient simulation that shows
that indeed at t1, that's going to be right here,
our converter is at the operating point 2 and
producing 20 volt at 3 amps.