Anda di halaman 1dari 4

Time Behavioral Model for Phase-Domain

ADPLL based frequency synthesizer


Cyril Joubert(1,2), Jean François Bercher(1), Geneviève Baudoin(1),
Thierry Divel(2), Serge Ramet(2), Philippe Level(2)

(1) ESIEE-ESYCOM, 2 Boulevard Blaise Pascal, 93160 Noisy-le-Grand, France.


(2) ST-MICROELECTRONICS, 12 Rue Jules Horowitz, B.P.217, 38019 Grenoble, France
joubertc@esiee.fr, jf.bercher@esiee.fr, g.baudoin@esiee.fr,
thierry.divel@st.com, serge.ramet@st.com, philippe.level@st.com

Abstract: (phase) between the RF and reference clocks directly


into a digital quantity [3], with a time resolution, noted
In this paper, we present a Time Behavioral Model of a ∆TRES, that can be equal to the elementary propagation
recently proposed Phase-Domain All-Digital Phase-Locked delay through an inverter gate.
Loop (ADPLL) for RF applications. This model can be The Frequency Command Word (FCW) is given as input
easily implemented, and results in a versatile and fast to the reference phase accumulator (RPA), and enables to
ADPLL simulator that enables to study many aspects of the tune the output frequency of the DCO.
PLL, e.g. transient responses, steady states, limit cycles, or
to perform perturbation analysis. Moreover, we present a FDCO = FCW .FREF (1)
baseband analysis that allows computing the power spectral
density from the instantaneous frequency given by the Designing a PLL requires a simulator in order to study
output of the behavioral model. Simulations illustrate the the effect of varying parameters and optimize the PLL.
effectiveness of this new behavioral model.
Analysis and simulation of the ADPLL in Fig. 1, with a
direct method requires a very high rate clock. Indeed,
1. Introduction such a clock must have a rate that is greater than the
highest frequency in the system. This requirement leads
Recently, a new All Digital Phase-Locked Loop based to an incredible simulation time and fantastic amounts of
RF frequency synthesizer was presented by Staszeswski data.
and al. [1]. A block diagram of the proposed architecture The objective of this paper is to show that it is possible
is shown in Fig 1. to simulate such a PLL at much more reasonnable rate,
FDCO without sacrifying accuracy. The limiting components
FCW RPA
ΦR [ k ] +
+ ΦE [ k ] Loop
Filter
OTW
DCO
+

are the DCO phase accumulator (at FDCO rate), and the
ε[k] TDC (with accuracy ∆TRES), because of they would need
an extremely fast sampling frequency for a correct
ΦD [k ]
Q D
ΦD [ i ]
1
representation.
TDC DPA
The key for developing new simulation model is to
express behavior of limiting components outputs directly
FS at rate FREF but independently of internal rate FDCO or
FREF DQ
time accuracy ∆TRES. This can be understood as a kind of
carrier frequency suppression.
Fig 1. ADPLL based RF frequency synthesizer [1]
In section 2 we consider the analysis of the simplest
A digitally controlled oscillator (DCO) allows for this phase comparator: a D flip-flop, and so doing we present
PLL to be implemented in a fully digital manner [2]. the basics of our behavioral model. Then, in section 3 we
Phase accumulators are used to count cycle periods of develop the closed loop model; expressions of TDC and
reference and feedback oscillators. A synchronous clock, resampled oscillator phase accumulator outputs are
FS, undersamples the output of the DCO phase derived using the analysis of section 2. Next, we show
accumulator (DPA), so that comparison of the two how to derive the Power Spectral Density (PSD) from
phases can be performed using the same clock. The the instantaneous frequency obtained at the output of the
retimed clock, FS, is achieved by oversampling the DCO. Finally, we show typical results obtained using the
reference clock, FREF, by the oscillator clock, FDCO. Note behavioral model and we make simulation comparison
that in Fig 1, index i and k do not refer to the same clock. with conventional VHDL model.

Higher ADPLL precision is obtained using fractionnal 2. Principle of behavioral model


phase error correction. One can show that this fractionnal
phase error is proportionnal to a time delay. The Time to In order to understand the principle of the behavioral
Digital Converter (TDC) is used to convert the delay model, we focus on simple D flip-flop. Indeed, this
central element links asynchronous clocks FDCO and FREF In the case where N(k) take only two values, computation
because it resynchronizes them. of N(k) proceeds as follows.
First suppose that N(k)=Ni(k)+1, and compute τk+1 using
Let us consider the waveform shown in Fig 2. In this (2). Then, we have to check that (3) is satisfied. If it is,
diagram two important parameters appear: the delay τk we keep N(k)=Ni(k)+1, otherwise N(k) = Ni(k).
and the integer value N(k). τk is defined as the difference
between the kth reference rising edge and following This analysis results in the following equations:
oscillator rising edge, and N(k) is the real-value count of (Ni + 1)TD,k − TR + τ (k) if τ (k + 1) − TD,k < 0
the DCO clock periods TD,k for each cycle of the τ (k + 1) =  (5)
reference clock.  NiTD,k − TR + τ (k) otherwise .
FREF FS This can be further simplified into
D Q
τ ( k + 1) = τ ( k ) + ( N i ( k ) + 0,5 )TD , k − TR
FDCO (6)
− sgn (N i ( k )TD , k − T R + τ ( k ) )TD , k 2
τk τk+1 using sgn(x) the sign function: sgn(x)= –1 if x<0, and
TR sgn(x)=1 otherwise.
FREF Similarly, equation (2) and condition (3) leads to
TD,k TD,k+1 N ( k ) = N i ( k ) + 0 .5
− 0.5 sgn (τ ( k ) + N i ( k ) TD ,k − TR ).
(7)
FDCO
N(k).TD,k An equivalent block diagram of (6) is shown in Fig 4.
FS Ni

TD
TR TD/2
Fig 2. Inputs/output of the D flip-flop with a τk+1
τk
representative set of waveforms
The exact relation between reference and oscillator
frequencies can be deduced from the waveform in Fig 2. Sgn TD/2

We obtain the following relashionship between τk+1 and


τk: Fig 4. Equivalent block diagram of (6).
τ k +1 = τ k + N (k )TD , k − TR (2)
3. Closed Loop Model
where TR is the period of the reference clock and TD,k is
the DCO period during the kth FREF cycle. For the closed loop model we need to compute the output
An important point is that the time delay is bounded of phase accumulators and fractionnal error correction ε.
according to Expression of reference phase accumulator is simply
0 ≤ τ k +1 ≤ TD , k ∀k . (3) given by the well-known relation
Another essential remark is that the phase error in the φ R [k + 1] = (φR [k ] + FCW ) mod[2 R ] , (8)
PLL is directly proportionnal to this delay. where we take care of modulo effect resulting of the
Equation (2) is valid if TD,k remains constant during a finite width R of the reference phase accumulator.
whole cycle of FREF. Let us define by Ni(k) the integer Similarly, the undersampled output of the DCO phase
part of the ratio between the two periods defined above accumulator, RV(k) of the finite width D can be written
T 
N i (k ) =  R  . (4)
φ D [k + 1] = (φ D [k ] + N [k ]) mod[2 D ] . (9)
 TD ,k  However this expression cannot be implemented without
In (2) we have either N(k) = Ni(k) or N(k) = Ni(k) +1. knowledge of N(k). Thanks to our previous analysis, we
Hence the behavior of the D flip-flop is equivalent to a are here able to compute N(k) using (7) and, therefore
Dual Modulus Divider (DMD) controlled by the phase implement (9).
error (via the delay τ) as shown in Fig 3. In an extented
model taking into account possible variations of TD,k The fractionnal phase error ε can be simply modelized as
during FREF cycle, we may represent N(k) by N(k) = the quantified version of our previous τk+1, normalized to
Ni(k) + C(k) where C(k) is a natural number. TD , an averaged value of TD, as shown in Fig 5.
FDCO DMD FS
Ni/Ni+1 A more precise model can be derived from the analysis
of the TDC in terms of quantified delay between rising
control
and falling edges preceding the rising edge of FREF. This
FREF
τ model is not developped in this paper for sake of
simplicity.
Fig 3. Behavioral model of the D flip-flop by a DMD
controlled by the phase error
t
q
ε(k)
With the assumption that x = 2π∆f pp ∫ g (τ )dτ
0
is
τk+1
1 / TD small enough so that sin( x ) ≈ x , we obtain the first
order approximation
t
q=∆TRES/TV sˆ(t ) = cos(ω 0 t ) − 2π ∆f pp sin(ω 0 t ) ∫ g (τ ) dτ (15)
0

Fig 5. Simple model of the fractionnal phase error after developing the cosine in (14).
correction The Fourier Transform of sˆ(t ) is
 t  1 
Sˆ( f ) = (δ f 0 + δ− f 0 ) − 2π ∆f pp TF ∫ g(τ )dτ  ⊗ (δ f 0 − δ− f 0 )
Other elements involved in the ADPLL are the phase 1
  (16)
error computation, the loop filter and the DCO. They are 2  0  2j 
briefly described now. ∆f  G( f − f0 ) G( f + f0 ) 
Sˆ ( f ) = (δ f 0 + δ − f 0 ) + pp 
1
−  (17)
2 2  f − f0 f + f0 
The phase error is not just realized by an arithmetic
additionner, which can be realised by a linear equation: where G ( f ) = TF [g (t )]
For f = ±f0, the weight can also be computed by
φ E [k ] = φ R [k ] − φ D [k ] + ε [k ]
(10) 1 tmax t
g (τ )dτ dt .
t max ∫0 ∫0
1 2 − π∆f pp
but by an adder with a limited width that take into
account the binary-signed format and modulo effect. Thereby, with (17), we can directly compute the PSD
transform of the instantaneous frequency using solely the
The digital loop filter is implemented by its difference lowpass signal g(t). The analysis above is continuous,
equation. but an exactly similar analysis can be done in the discrete
case. For implementation of a simulator based on our
The DCO is modelized by equations given in [2]. For a behavioral model, care must be taken on spectral
small deviation ∆f, we can use simple linearized model aliasing, and a zeroth-order interpolation have to be used
in order to increase the sampling period.
f DCO (k ) = f 0 + ∆f (k ) = f 0 + OTW (k ) K DCO (11)
where f0 is the central frequency, OTW is the oscillator 5. Simulations
tuning word at the input of the DCO, and KDCO the gain
of the DCO. The new behavioral model was implemented in
Note that the real output of our model is directly the MATLAB. Another conventional model was realized in
instantaneous frequency, delivered at rate FREF, and not a VHDL and simulated in MODELSIM.
time signal with that instantaneous frequency. However, Simulations were done with two objectives to achieve:
we may compute the PSD of such virtual signal in 1. Validation of the time behavioral model by
baseband. comparison with results obtains with a VHDL
model.
4. Spectral density computation 2. Study of spurs linked to limit cycles and noise level
due to quantization (TDC).
The objective of this section is to show how to compute Examples reported below are typical results obtained
the PSD from the instantaneous frequency given by the using the behavioral model. Statistical analysis of
output of the behavioral model. performances and sensibility of the PLL will be
Let us consider fi(t) the instantaneous frequency of an developed elsewhere.
oscillator
5.1 Time behavioral model validation
f i (t ) = f 0 + ∆f i (t ) = f 0 + ∆f pp .g (t ) (12) For both models with same set of parameters, we
where f0 is the mean frequency, ∆fpp is the peak-to-peak compare the transient behavior of the DCO output
deviation from f0 and g(t) is a normalized frequency frequency when we change the frequency command
modulation pattern (-1<g(t)<1) with zero mean. word.
We define the instantaneous phase by
t t Fig 6 show the transient reponse of the output frequency
θ i (t ) = ∫ 2πf i (τ )dτ = 2πf 0 t + 2π∆f pp ∫ g (τ )dτ (13) of the ADPLL, when FCW is out of synthesizable range
0 0
of the DCO (T1) and next (T2), when FCW changes
The output signal s(t) of the oscillator is given by between minimum and maximum synthesizable value of
the DCO. We observe the same behavior and settling
 t
 time.
s(t ) = cos(θ i (t ) ) = cos 2πf 0 t + 2π∆f pp ∫ g (τ )dτ  . (14)
 0 
Different frequency steps and gains for the DCO
characterize these three modes.

The behavioral model enables measure and analysis of


the locking sequence: transient parts and fluctuations
(a) during steady states as shown in Fig 8.
T1 T2
5.3 Spectral density computation
(b) With the spectral density computation analysis in section
4, we easily compute the PSD of the instantaneous
frequency of the DCO.
0

Fig 6. Simulation comparison of instantaneous frequency -2 0


X: 0
Y : -6.021

between new behavioral model (a) and VHDL model (b) -4 0

20log|S(f)| [dB]
-6 0 X: 2.401e+006
X: 9.572e+004 Y : - 80.66
Y : - 86.2
-8 0
0

-1 0 0

-1 2 0
(FDCO - f0)/FREF

-1/400

-1 4 0
-1/200

-1 6 0

-3/400 -5 -2 .5 0 2 .5 5
f-f 0 [M H z]
-1/100
300 400 500 600 700 800 900 300 400 500 600 700 800 900

t/Tref
Fig 9. PSD of the locking sequence when PLL is settled
(a) (b)
In Fig 9, we show an example of PSD when the PLL is
Fig 7. Limit cycle comparison between new behavioral
locked. We can see amplitude and frequency of spurs,
model (a) and VHDL model (b)
due to accuracy of TDC and precision of DCO.
In Fig 7, we show the ADPLL locked behavior for both
models (with the same scale). We note the same general 6. Conclusion
behavior (frequency deviation, patterns), but also
observe little differences in limit cycle sequence because We have presented a simple and effective behavioral
of TDC modelisation and accuracy limitation of VHDL model for an all-digital phase locked loop. This model,
simulator (1 femtosecond). based on a simple expression of the delay that is an
5.2 ADPLL Locking sequence image of phase error, enables simulating the PLL at low
rate (independently of carrier frequency) instead of
Convergence of the ADPLL is achieved using three conventional high rate simulator.
different modes [2]: first, a calibration (CAL) mode Simulation comparisons with traditionnal VHDL
intitiates the TDC and the central frequency of the PLL, simulator confirm the validity of this new model.
independantly of frequency command word. Second, an Such a model will be used to analyse several aspects of
acquisition (ACQ) mode acquires channel selected by this ADPLL and select a set of parameters optimizing its
FCW. Third, a tracking (TRK) mode achieves the performance.
required performances (use of a Sigma Delta modulator Results including the effect of the Sigma Delta
can further refine this last mode). modulator and adaptation of the behavior model will be
1
presented at the conference.
CAL ACQ TRK
3/4

1/2
References:
(FDCO - f0)/FREF

(a) 1/4

-1/4 (b) [1] R. B. Staszeswski and P. T. Balsara, Phase-Domain All-


(c)
-1/2 Digital Phase-Locked Loop, IEEE trans. on circuits and
-3/4
System, Vol 52, n°3, March 2005, pp 159-163.
-1
0 2000 4000 6000 8000
t/Tref
10000 12000 14000 16000 [2] R. B. Staszewski, C.-M. Hung, D. Leipold and P. T.
1/10
0 Balsara, A first Multigigahertz Digitally Controlled
3/40 Oscillator for Wireless Applications, IEEE Trans. on
(c)
(FDCO - f0)/FREF

(FDCO - f0)/FREF

(b) 1/20 Microwave Theory and Techniques, Vol 51, n°11, Nov
2003, pp 2154-2164.
-1/80

1/40

0
[3] R. B. Staszewski, D. Leipold, C.-M. Hung and P. T.
-1/40 -1/40
Balsara, TDC-Based Frequency Synthesizer for Wireless
1920 1930 1940 1950 1960 1970 1980 1990
t/Tref
4000 4500 5000 5500 6000 6500 7000 7500 8000
t/Tref
Applications, IEEE RFIC Symposium, 2004, pp 215-218.

Fig 8. Locking sequence (a) and zoom (b, c) on transient


at the modes shifts

Anda mungkin juga menyukai