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
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.
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
(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.