Ruritania wrote on Apr 30th, 2010, 11:55am:Hi,
I'm trying to use Spectre to simulate the loop stability of the AGC shown below.
Since the loop can only work properly when a signal (sine wave) is presented at vin, is there any particular way to simulate the loop stability in such cases?
I tried PSS+PSTB, but the outputs are just two flat lines (phase margin & gain margin), which does not make any sense.
Thanks.
Hi RURITANIA,
I do not use SPECTRE. However, some general comments are to be given - independent on the simulator engine used.
Since the AGC loop is inherently non-linear it must be linearized before the rules of linear circuit theory may be applied (loop gain, phase margin,...)
At first, what kind of voltage controlled amplifier are you using?
I suppose, it will be "linear-in-dB" , correct?
In this case, you have to use the log function to linearize with the result that input/output/reference signals now are in dBV.
At second, you have to realize that the circuit only responds to
changes of the input signal. With this in mind you can create a linearized block diagram in the s-domain which leads to the following loop gain expression:
Loop gain AL=-Kd*Kc*Fd*Fr with
Kd=Vref*2.3/20 in V/dB ;
Kc=Ko*20/2.3 in dB/V (Ko=sensitivity of gain control in exp(Ko*Vcontrol) ;
Fd=transfer function of level detector
Fr=Transfer function of controller/filter (smoothing of control voltage)
This model applies only for an amplifier which is "linear-in-dB" . The model does NOT depend on the level of inpiut power, but the variations of the input signal are limited to app. +- 1.5 dB (validity of the linear model).
Hope this helps.
Good luck and regards.