a_k
Junior Member
Offline
Posts: 17
|
Hi ALL,
I am trying to find the open loop pole-zeros of Boost converter (which operates in Boundary condition mode [BCM]) using PSS and PAC analysis. The Boost converter is made to work in BCM by turning the MOSFET on whenever the inductor current goes to zero and turning off the MOSFET whenever the inductor current reaches some peak current. This inductor peak current is determined by an external current source. The control circuit has been implemented using VerilogA block. There are two transfer functions, one from input voltage(Vi) to output voltage(Vo) and another one from control input (which is the external current source[I_ext]) to output voltage, you can refer the circuit attached.
I was able to run the transient analysis and the result were satisfactory. I used the frequeny of MOSFET control signal obtained from transient analysis as the beat frequency for PSS and PAC analysis.
// VerilogA for verilog_a, Comparators1, veriloga
`include "constants.vams" `include "disciplines.vams"
module Comparators1(vp,vn,r,s,iin,iout);
input vp,vn,iin; output r,s,iout;
electrical vp,vn,r,s,iin,iout; parameter real vdc = 0.995; real vs,vr;
analog begin
@(initial_step) begin V(r) <+ 1; V(s) <+ 0; end;
@(cross(V(vp) - V(vn),0)); @(cross(V(vn) - vdc,0));
// set logic if(V(vp) - V(vn) < 100n) vs = 5; else vs = 0;
// reset logic if(V(vp) - V(vn) > I(iin,iout)) vr = 5; else vr = 0;
// set and reset signals V(r) <+ transition(vr,0,1n); V(s) <+ transition(vs,0,1n);
end
endmodule
After running the PSS and PAC analysis, I was able to plot the magnitude and phase for Vo/Vi but not for Vo/I_ext.
1. Could anyone please tell what am I doing wrong in this analysis and why I am not getting the magnitude and phase plot for Vo/I_ext ? 2. Does PAC analysis work for veriloga block?
Please let me know if any further information is needed.
Below lines give the simulation details:
Global user options: reltol = 0.0001 vabstol = 1e-06 iabstol = 1e-12 homotopy = 7 limit = delta scalem = 1 scale = 1 compatible = spice2 gmin = 1e-12 rforce = 1 maxnotes = 5 maxwarns = 5 digits = 5 cols = 80 pivrel = 0.001 sensfile = ../psf/sens.output checklimitdest = psf save = allpub tnom = 27 scalem = 1 scale = 1
Circuit inventory: nodes 13 bsim3v3 8 Comparators1 1 capacitor 1 inductor 1 isource 1 my_working_diode 1 relay 1 resistor 3 vsource 2
Notice from spectre during initial setup. Fast APS Enabled ( cktpreset=sampled ).
******************************************************* Periodic Steady-State Analysis `pss': fund = 210.25 kHz ******************************************************* Bad pivoting is found during DC analysis. Option dc_pivot_check=yes is recommended for possible improvement of convergence. L0: Initial condition computed for node L0:1 is in error by 1 nA. Decrease `rforce' to reduce error in computed initial conditions. However, setting rforce too small may result in convergence difficulties or in the matrix becoming singular.
DC simulation time: CPU = 2 ms, elapsed = 2.50387 ms.
================================= `pss': time = (0 s -> 250.005 ms) =================================
Important parameter values in tstab integration: start = 0 s outputstart = 0 s stop = 250.005 ms period = 4.75624 us maxperiods = 50 step = 250.005 us maxstep = 190.25 ns ic = all useprevic = no skipdc = no reltol = 100e-06 abstol(V) = 1 uV abstol(I) = 1 pA temp = 27 C tnom = 27 C tempeffects = all method = gear2only lteratio = 3.5 relref = sigglobal cmin = 1 fF gmin = 1 pS rabsshort = 1 mOhm
Important parameter values in pss iteration: start = 2.59215 ms outputstart = 0 s stop = 2.59691 ms period = 4.75624 us maxperiods = 50 steadyratio = 10e-03 step = 250.005 us maxstep = 23.7812 ns ic = all useprevic = no skipdc = no reltol = 100e-06 abstol(V) = 1 uV abstol(I) = 1 pA temp = 27 C tnom = 27 C tempeffects = all errpreset = conservative method = gear2only lteratio = 3.5 relref = alllocal cmin = 1 fF gmin = 1 pS rabsshort = 1 mOhm
pss: The steady-state solution was achieved in 8 iterations.
MultiThread info: 3 new work threads created
**************************************************** Periodic AC Analysis `pac': freq = (1 mHz -> 20 MHz) ****************************************************
Warning from spectre during PAC analysis `pac'. WARNING (SPCRTRF-15029): The following results might not be accurate due to undersampling of the actual frequencies above 21.025 MHz: Upper side band of 5th harmonic for stimulus frequencies above 19.9738 MHz. Upper side band of 6th harmonic for stimulus frequencies above 19.7635 MHz. Upper side band of 7th harmonic for stimulus frequencies above 19.5533 MHz. spectre completes with 0 errors, 2 warnings, and 4 notices.
|