+ Post New Thread
Results 1 to 7 of 7

8th January 2020, 12:26 #1
 Join Date
 Oct 2019
 Posts
 15
 Helped
 0 / 0
 Points
 154
 Level
 2
PLL gain and phase margin
Hello guys,
I have a PLL design in VerilogA, and I did an 'ams' simulation in cadence that shows that the PLL reaches locking state within 4us]:
how do I plot the Phase margin and Gain of PLL? i'm trying to do an ac simulation but got confused what to put at the inputs and what signals should I picked to draw the plot.
when I tried to pick vout/fdiv or vout/fref I got a constant frequency. I couldn't explain the result.
I have 30Mhz reference clock with N=64 dividing ratio, and locking frequency: 1.9Ghz.
these are the options that I see in the ADE simulation analysis:
thanks,
firas

Advertisement

8th January 2020, 15:41 #2
 Join Date
 Sep 2008
 Location
 Scania
 Posts
 115
 Helped
 32 / 32
 Points
 2,699
 Level
 12
Re: PLL gain and phase margin
I guess some more information is needed ... do you break the loop when you do the tests and have you designed the phase detector and charge pump such that they are linearized around the stable operating point?

8th January 2020, 16:01 #3
 Join Date
 Oct 2019
 Posts
 15
 Helped
 0 / 0
 Points
 154
 Level
 2
Re: PLL gain and phase margin
Hi,
how do I check if they are linearized around a stable operating point? and why reaching a locking state is not equivalent to reaching this point? can you please what does this operation point mean in terms of PLL component output signals?
and no I don't break the loop, I'm trying first to calculate the closed loop gain, but also open loop is on the list.
my problem is that I don't know how to technically apply this in Cadence (on transistor level amplifiers for example I know how to do it, there are alot Youtube videos that explain how to calculate Phase and Gain Margin, but since this simulation involves VerilogA 'ams simulation' , it is something new for me ).

Advertisement

9th January 2020, 11:55 #4
 Join Date
 May 2008
 Location
 Germany
 Posts
 5,794
 Helped
 1730 / 1730
 Points
 40,548
 Level
 49
Re: PLL gain and phase margin
The PLL is a strong nonlinear device.
It can be seen as a linearized circuit under lockedconditions only  and only under these conditiones you can determin the phase/gain margins.
However, I am afraid this will be rather complicated for the real circuit.....
My recommendation: It is rather easy to make a linear MODEL for the locked PLL for performing measurements under openloop conditions.

9th January 2020, 15:00 #5
 Join Date
 Nov 2001
 Location
 Turkey
 Posts
 4,564
 Helped
 1375 / 1375
 Points
 31,080
 Level
 43
Re: PLL gain and phase margin
If you are able to use MatLab , you can replace PLL blocks with their mathematicaly linear models.Otherwise Nonlinear elements won't give you any insight.

9th January 2020, 16:09 #6
 Join Date
 May 2008
 Location
 Germany
 Posts
 5,794
 Helped
 1730 / 1730
 Points
 40,548
 Level
 49
Re: PLL gain and phase margin
There are many other programs (other than MATLAB) which can perform such analyses  like allSpicebased packages or VISSIM (just blockoriented).
I have used the VISSIM simulator with great success for simulating the lockin process in the time domain.

Advertisement

14th January 2020, 13:10 #7
 Join Date
 Jan 2019
 Location
 Ireland
 Posts
 220
 Helped
 91 / 91
 Points
 1,588
 Level
 9
Re: PLL gain and phase margin
With the PFD in there, you cannot do it. Period.
What I used to do was create a linear model for the components.
PFD ==> VCVS with a gain of 1. The positive input is the refclock input and the negative input is the feedback clock.
Charge pump ==> A current source of value Icp/2pi
Loop filter ==> this is straight forward and is just RC components.
VCO ==> integrator. I used to realize this using an ideal current source and a capacitor. The current source/cap value must be equal to the KVCO of the VC0. Make sure to use the correct units (Not Hz/V but rads/sV).
Feedback divider ==> another VCVS of a gain 1/N.
Hope this helps.
+ Post New Thread
Please login