The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 27th, 2024, 4:19am
Pages: 1 2 
Send Topic Print
Beat frequency for a dual modulus divider (Read 19429 times)
panditabupesh
Community Member
***
Offline



Posts: 36
Toronto
Beat frequency for a dual modulus divider
Mar 18th, 2010, 8:23pm
 
Hi,
I have a 2/3 dual modulus prescaler based divider. How do I decide the beat frequency for PSS simulations. I am facing convergence issues while doing PSS.

Thanks,
Bupesh
Back to top
 
 
View Profile   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2384
Silicon Valley
Re: Beat frequency for a dual modulus divider
Reply #1 - Mar 19th, 2010, 12:55am
 
The term 'beat frequency' is a misnomer. It really should be termed the 'fundamental frequency', which in this case is the output frequency. If you divider is in 'divide by 2 mode', then the fundamental frequency is half the input frequency. If it is divider by 3 model, it is one third the input frequency.

-Ken
Back to top
 
 
View Profile WWW   IP Logged
panditabupesh
Community Member
***
Offline



Posts: 36
Toronto
Re: Beat frequency for a dual modulus divider
Reply #2 - Mar 19th, 2010, 5:11am
 
Ken,
The dual modulus prescaler (dmp)  is part of a P and S counter divider. While the S counter is decrementing the dmp is in divide by 3 mode, and for the rest P-S decrement it goes into divide by 2 mode. That means if I look at the dmp output, it keeps on changing from divide by 3 to divide by 2 mode. The output of the complete counter is periodic defined by NP+S divide.

I read somewhere that beat frequency is a  greatest common divisor of all the frequencies in the block.  However, with a shifting frequency I can not really say that the dmp is periodic.

Thanks,
Bupesh
Back to top
 
 
View Profile   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2384
Silicon Valley
Re: Beat frequency for a dual modulus divider
Reply #3 - Mar 19th, 2010, 10:24am
 
The fact that you are changing the divide ratio on the fly is an important fact. You'd get a usable answer more quickly and cause less frustration if you state the important facts up front. Another important fact is how the ratio is changing. Without knowing these things it is impossible to answer your question except in very non-specific ways, and so most people will not bother to respond because they know they will have to go through a long process of grilling you for the important facts, which you are not volunteering.

Here is what you do. Determine the period of your circuit. Take the reciprocal. Put that number into the Beat Frequency field. If your circuit is not periodic, you cannot use RF simulation. In this case, you will have to explain what it is you are trying to accomplish. And if you do, please think about your question carefully and make sure you have given enough information so it can be answered as is.
-Ken
Back to top
 
 
View Profile WWW   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: Beat frequency for a dual modulus divider
Reply #4 - Mar 19th, 2010, 10:53am
 
Or (still assuming it's periodic, as Ken said), you can enter the period rather than the frequency (to avoid having to take the reciprocal) - useful if the period is a nicer number than the frequency (e.g. 30ns is better than 33.333333333333333MHz).

Regards,

Andrew.
Back to top
 
 
View Profile WWW   IP Logged
panditabupesh
Community Member
***
Offline



Posts: 36
Toronto
Re: Beat frequency for a dual modulus divider
Reply #5 - Mar 19th, 2010, 2:01pm
 
Ken,
The divider is a standard dual modulus prescaler (dmp) based divider. The dmp is a synchronous counter. The dmp for an input control signal (MC) high  divides by 3 and when the signal is low divides by 2.
The output clock from dmp clocks two decrementing counters- call them P and S counters. When the S counter reaches zero it lowers the MC signal and dmp switches to divide by 2. When the P counter reaches zero it resets the S and P counters and the counters are reloaded. Resetting S raises MC signal.

What it means is that for S value dmp is dividing by 3 (N+1)  and for  P-S by 2 (N).
This gives the full counter a divide ratio of (N+1)*S + N (P-S) = NP+S.
Why I did not mention this whole theory earlier was because I assumed that it was known (guess I was wrong).

Now the fact is that dmp though clocked by an external clock,  has a divide output that shifts from divide by 3 for S periods to divide by 2 for P-S periods. It is because of this reason that I am unsure about the beat frequency.


Thanks,
Bupesh
Back to top
 
 
View Profile   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2384
Silicon Valley
Re: Beat frequency for a dual modulus divider
Reply #6 - Mar 19th, 2010, 5:16pm
 
The forum is not that large to start with, and if you restrict the question so that only people that have intimate knowledge of fractional-N synthesizers, you are talking to a very small number.

So, from your answer it is still not clear what the period is. Is it S clock cycles? I cannot tell because I don't know if the state of the divider is the same after a set of S cycles.

It is not clear if any of this is necessary. Perhaps if you explained what you are trying to do ...

-Ken
Back to top
 
 
View Profile WWW   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: Beat frequency for a dual modulus divider
Reply #7 - Mar 20th, 2010, 5:18am
 
Ken Kundert wrote on Mar 19th, 2010, 5:16pm:
The forum is not that large to start with,
and if you restrict the question so that only people that have intimate knowledge of fractional-N synthesizers
panditabupesh does not mean Fractional-N synthesizer.

He means conventional Integer-N frequency divider using dual modulus prescaler(1/M and 1/(M+1)) and pulse swallowing counter(A).
http://en.wikipedia.org/wiki/Dual-modulus_prescaler

panditabupesh wrote on Mar 18th, 2010, 8:23pm:
How do I decide the beat frequency for PSS simulations.
panditabupesh wrote on Mar 19th, 2010, 5:11am:
I read somewhere that beat frequency is a  greatest common divisor of all the frequencies in the block.
panditabupesh wrote on Mar 19th, 2010, 2:01pm:
It is because of this reason that I am unsure about the beat frequency.

panditabupesh, what EDA vendor's simulator do you mean as "PSS" ?
There are many simulators which have analysis called as PSS.
Always describe vendor's name which you use as tool or simulator.

Don't use a term of "beat", if you mean PSS of Cadence Spectre.

See "spectre -h pss", if you mean PSS of Cadence Spectre.
There is no "beat" in analysis statement for PSS of Cadence Spectre.
"beat frequency" of PSS setting UI is not beat frequency. It is a "fundamental frequency" not beat frequency.

I can't understand why Cadence has kept to use this expression of "beat" in PSS's setting UI.
http://www.designers-guide.org/Forum/YaBB.pl?num=1232036048/4#4

I think fundamental period is (M*N+A)*Tin since all signals behave periodically with this period time.
So fundamental frequency is fin/(M*N+A).
Back to top
 
« Last Edit: Mar 20th, 2010, 6:22am by pancho_hideboo »  
View Profile WWW Top+Secret Top+Secret   IP Logged
panditabupesh
Community Member
***
Offline



Posts: 36
Toronto
Re: Beat frequency for a dual modulus divider
Reply #8 - Mar 20th, 2010, 4:35pm
 
Hi pancho_hideboo,
Yes the divider is a common integer N divider based on a pulse swallowing and dual modulus prescaler architecture. The final frequency is given by fclk/(NP+S).
Now assume we are using a 2/3  (N/N+1) prescaler, and NP+S has configured to, for example, 7. That means the output frequency is fclk/7. But, if we look at the prescaler output, the frequency is changing between fclk/2 and fclk/3. Can we say that it is periodic with respect to fclk/7. Yes the shift from fclk/2 to fclk/3 is related to fclk/7, but at any time the output frequency of prescaler is no way related to fclk/7.

I am using PSS from Cadence, and the UI  declares it as 'Beat Frequency'.  I am not facing any convergence issues (I have declared the beat/fund frequency = fclk/(NP+S) ), but I just want to be sure  that in pnoise analysis I am not underestimating noise.

Thanks,
Bupesh
Back to top
 
 
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: Beat frequency for a dual modulus divider
Reply #9 - Mar 21st, 2010, 12:01am
 
panditabupesh wrote on Mar 20th, 2010, 4:35pm:
But, if we look at the prescaler output, the frequency is changing between fclk/2 and fclk/3.
Can we say that it is periodic with respect to fclk/7.
Observe time domain waveforms considerably.
They behave periodically with time period of 7*Tclk, even if the frequency of prescaler output is changing between fclk/2 and fclk/3.

panditabupesh wrote on Mar 20th, 2010, 4:35pm:
but at any time the output frequency of prescaler is no way related to fclk/7.
"at any time"???
It seems you can't understand very basic theory of modulation and working mechanism of this prescaler at all.

Even simple 2-FSK signal modulated by periodic signal synchronous to carrier is also periodic.

All signals including the output of prescaler behave periodically with time period of 7*Tclk.

panditabupesh wrote on Mar 20th, 2010, 4:35pm:
I am using PSS from Cadence, and the UI  declares it as 'Beat Frequency'.
I am not facing any convergence issues (I have declared the beat/fund frequency = fclk/(NP+S) )
Again, don't use a term of "beat".
You can get convergencve with fundamental frequency=fclk/(NP+S). So fundamental period is surely (NP+S)*Tclk.

panditabupesh wrote on Mar 18th, 2010, 8:23pm:
I am facing convergence issues while doing PSS.
In your first post, you said you can't get convergence in PSS.
What value did you set as fundamental frequency of PSS ?

panditabupesh wrote on Mar 20th, 2010, 4:35pm:
but I just want to be sure  that in pnoise analysis I am not underestimating noise.
Show me netlists regarding signal sources, analysis statements and options statements.
Show me logfile of simulation.
Back to top
 
« Last Edit: Mar 21st, 2010, 2:32pm by pancho_hideboo »  
View Profile WWW Top+Secret Top+Secret   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2384
Silicon Valley
Re: Beat frequency for a dual modulus divider
Reply #10 - Mar 21st, 2010, 12:06am
 
If it converges you should be okay.

-Ken
Back to top
 
 
View Profile WWW   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: Beat frequency for a dual modulus divider
Reply #11 - Mar 21st, 2010, 12:13am
 
Ken Kundert wrote on Mar 21st, 2010, 12:06am:
If it converges you should be okay.
I don't think so.
I have to confirm "maxstep" or "maxacfreq" in PSS setting and "maxsideband" in Pnoise setting.
Back to top
 
 
View Profile WWW Top+Secret Top+Secret   IP Logged
panditabupesh
Community Member
***
Offline



Posts: 36
Toronto
Re: Beat frequency for a dual modulus divider
Reply #12 - Mar 22nd, 2010, 7:34am
 
Hi pancho_hideboo,
Thanks for the 2-FSK suggestion. I was intuitively expecting a fclk/3 component at the output of the prescaler.  To convince myself I did a fourier series expansion of the prescaler output, and yes the output is periodic with fclk/7 (in general with fclk/(NP+S)).

My convergence issues were due to some other trivial reasons- I had missed analysis=pss in a Verilog-a block.

Thanks,
Bupesh




Back to top
 
 
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: Beat frequency for a dual modulus divider
Reply #13 - Mar 22nd, 2010, 7:40am
 
panditabupesh wrote on Mar 22nd, 2010, 7:34am:
To convince myself I did a fourier series expansion of the prescaler output.
If you confirm periodicity, fourier series expansion is not proper.

Evaluate auto-correlation function.
http://www.designers-guide.org/Forum/YaBB.pl?num=1239938942/2#2

Back to top
 
 
View Profile WWW Top+Secret Top+Secret   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: Beat frequency for a dual modulus divider
Reply #14 - Mar 22nd, 2010, 8:29am
 
I was a bit confused by your response, Pancho Hideboo. Did you mean "In order to confirm periodicity, you should use the auto-correlation function rather than the Fourier transform"?

From what you said, it sounded as if using a Fourier transform on something that is periodic is not correct - but I'm sure that's not what you meant (if you did, perhaps you can explain why?).

It's probably just an ambiguity due to English not being your first language (which I can entirely forgive; the vast majority of English spoken/written here is hugely better than I am in any other language!)

Regards,

Andrew.
Back to top
 
 
View Profile WWW   IP Logged
Pages: 1 2 
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.