Documente Academic
Documente Profesional
Documente Cultură
Frequency Synthesizers
Ref
1. INTRODUCTION Vref (t)
PFD
Control ICP (t) Vcontrol (t)
VCO
VV CO (t)
CP
Verification is becoming a key task in todays design of com- LPF
Divider
quency (RF) circuit blocks. Since the digital calibrated ana- N
N+X
log building blocks need a huge number of digital connec-
tions and programming routines, a verification of the com-
plex interaction between all of them is inevitable. The mis- - M odulator Input
sion of so called functional verification prior to tape-out is M odulator
2. SIMULATION DOMAINS
Current simulators offer two simulation domains: analog and
digital. In each of those domains specific restrictions ap-
ply. The question is - which domain to choose for a specific
building block? It is therefore important at this point not
to get confused and todistiguish between signal values and
simulation domains. While signals in the analog domain are
continuous time and continuous value, signals in the digital
domain are discrete time and (depending on the type) con- consuming block in the PLL, since it was implemented in
tinuous value or digital value. For the analog domain the the analog domain. In [4] and [6], the model of divider has
simulator generates a matrix of differential equations, based been merged into the VCO model in order to increase the
on Kirchhoffs flow and potential laws, which are solved by simulation efficiency. While this modeling approach is well
the Newton-Raphson-Method. Any signal change leads to suited for the start of design circle to estimate the overall
slightly different elements in the node admittance matrix, noise of the PLL system, it has some drawbacks when it
which has to be solved in an iterative fashion to meet the comes to the verification for given design. On the one hand
desired convergence criteria (accuracy). Advanced simula- the realization of merged VCO+divider doesnt correspond
tion methods optimized for the high frequency analog por- to the block level circuit structure, which makes the veri-
tion, such as Periodic Steady State (PSS) or Harmonic Bal- fication of connectivities and debugging of single blocks on
ance (HB), are always taking special requirements on the transistor level almost impossible. One the other hand, us-
test case into account, so that they are not suitable for a ing analog statements like @cross() or transition in the
mixed-level or mixed-domain simulation, which especially VCO model is not efficient enough as we will see late in
integrates digital algorithms into analog signals. The digi- section (4.2). 2.)The event driven approach [7] is originally
tal domain simulation uses an event-driven (also known as developed for pure digital circuits. It formulates the phase
data-flow) approach, which leads to a sensitivity list, where noise into its equivalent jitter in the time domain. Compare
each signal change triggers new calculations at the connected to the phase-domain models, the digital models have higher
nodes, but not for the whole system as the analog simula- simulation efficiency, but it is also not well suited for the
tor. It is obvious, that the digital domain uses the aspect verification of analog frequency synthesis due to the pure
of time (data-flow : one calculation after the other) and digital implementation. Our approach combines the advan-
therefore does only provide transient simulation possibili- tages of the aforementioned methods. On the one hand it
ties. For mixed-signal systems, which consist of analog as is possible to model each of the blocks in the event driven
well as digital elements, both solvers are necessary - each domain in order to increase the simulation efficiency. On the
one to simulate its own portion of the system and continu- other hand the models can be embedded into test benches on
ously synchronizing with the other domain. One important transistor level for a mixed-level simulation, since the wreal
aspect here is to mention, that digital solvers are not capa- data type enables analog precision in the event driven do-
ble of iterating backward in time to our knowledge. Digital main. However, special calculation has to be done in order
concepts therefore cant handle iterative features as used in to accurately map the block-specification from frequency-
backward euler or trapezoidal formulas. Since the signal of into time-domain while keeping the simulation efficiency as
the Modulator in s fractional-N PLL system is random high as possible, as we will see in this section.
and it therefore doesnt provide the basic, periodic condi-
tions for the PSS analysis [2]. The only simulation method 4.1 Nonuniform sampled loop filter
that is currently implemented in an acceptable fashion for One consideration should be made when using the event-
the verification of such kind of mixed-signal circuits is still driven approach with frequency domain filters: While con-
transient. tinuous time calculations are obviously not applicable, one
might argue to go for standard discrete time filter methods.
3. EVENT-DRIVEN ANALOG MODELING Sadly, these would require fixed sampling time instances, so
Event-driven analog modeling [3] leads to an approach ex- that the main benefit of the event-driven approach would
cluding the high frequency signal path from the analog do- be lost [3]. Since the time in simulation of the discrete time
main, e.g. using the wreal data type introduced by Verilog- kernel can only be increased (theres no iterative possibility
AMS. To our knowledge, approaches to partition the analog like in the analog domain), the only possible method to do
signals into loosely coupled sub-matrices have not been very a discrete time filtering is using a Forward Euler approxi-
successful up to now. Using the wreal data type the high fre- mation as shown in [8]. A first order filter having a transfer
quency signal path can be extracted from the analog matrix function of:
and put into the digital, event-driven domain, while keeping Y (s) b0 + b1 s
analog behavioral models or circuits for low frequency like H(s) = = , (1)
X(s) a0 + a1 s
biasing concepts(e.g. current mirrors), bandgaps and analog
filters. In the event driven approach, the size of the equation can be transferred into the time domain as:
systems that has to be solved for each of these time steps a0 y(t) + a1 y(t) = b0 x(t) + b1 x(t). (2)
will be reduced dramatically, since only isolated portions are
calculated but not the whole analog matrix. This leads to Using the mentioned Forward Euler approximations:
a much shorter simulation time, but also to the necessity x(t) = x(t t) + x(t t) t (3)
to map every block-specification into time-domain, which
is difficult for specifications that require precise frequency and
domain data. y(t) = y(t t) + y(t t) t (4)
obtained: 100
Gain (dB)
60
Substituting y(t) = u(t), x(t) = u(t) and integrating on
both sides leads to: 40
i n i t i a l begin According to [9] and [6], the variance for a timing jitter
. . i n i t i a l i z e the coefficients ...
end can be calculated from phase noise measurements based on
a s s i g n o ut=yn ; following equations:
P N dBc
always@ ( i n ) b e g i n
xn=i n ;
10 10 f 2
c= (10)
a c t t i m e=$ r e a l t i m e ; f02
hn =1.0 f ( a c t t i m e p r e v t i m e ) ; s
P N dBc
dxn=(xnxn1 ) / hn ; f 2
r
c 10 10
vn=vn1+hn xn1 ; J == = (11)
un=un1+hn yn1 ; f0 f03
yn =(( z0 vn+z1 xn+z2 dxnp0 un ) / p1
+ p2 / p1 yn1 /hn ) / ( 1 . 0 + p2 / ( p1 hn ) ) ;
p r e v t i m e=a c t t i m e ; This can be proven as shown in [6] and by transient simula-
dyn1<=(ynyn1 ) / hn ;
dxn1<=dxn ; xn1<=xn ; tion result from the wreal VCO model in figure 5.
yn1<=yn ; un1<=un ;
vn1<=vn ; hn1<=hn ; 20
end
endmodule 40
60
Listing 1: Example source code for the 2nd order
L(f) (dBc/Hz)
30 dB/dec
nonuniform sampled loop filter. 80
20 dB/dec
100
80
end
90
always@ ( p o s e d g e v i n t e r n o r n e g e d g e v i n t e r n ) b e g i n
100 i f ( c o u n t e r == d r a t i o 1) b e g i n
110 dT=s y n c j i t t e r $ d i s t n o r m a l ( dSeed , 0 , 1 ) ;
counter = 0 ;
120
#(( td+dT) / 1 f ) v i n t e r n = v i n t e r n ;
130 end
5 6 7
else
10 10 10
Offset Frequency (Hz) counter = counter + 1 ;
end
Figure 6 clearly demonstrates that the wreal model can Listing 3: Part of the divider source code.
archive higher simulation efficiency while keeping sufficient
accuracy for verification purpose. Using wreal event driven
simulations to speed up simulation leads to another impor- The output signal of the divider serves also as clock signal
tant consideration: the random delay of the timing jitter is for the modulator which changes the divider ratio in
quantized to the timing accuracy settings of the digital sim- order to produce its fractional part.
4.4 modulator 90
The modulator used in the fractional-N PLL minimizes 100
the phase noise close-by the center frequency by pushing 110
the phase error towards higher frequency bands. Due to its
L(f) (dB/Hz)
120
MSBs of the quantizer output are used to set the divider 160
5 6 7 8
10 10 10 10
Offset Frequency (Hz)
2-Bit
Quantizer
Figure 9: Phase noise contribution of the 2nd order
k-Bit z
1
z
1
q B_out
Input K a + 1
b + 1
d modulator used in the PLL.
1 z 1 z
1 UP
D Q
Figure 8: 2nd order modulator used in the PLL.
REF
CK R
0.14
Listing 4: Example source code for the 2nd order
0.12
modulator.
0.1
0.08
V
0.02
100
[7] R.B. Staszewski, C. Fernando, and P.T. Balsara.
110
Event-driven simulation and modeling of phase noise
120 of an RF oscillator. Circuits and Systems I: Regular
130
Papers, IEEE Transactions on, 52(4):723733, 2005.
[8] R.A. Cottrell. Event-driven behavioural simulation of
140 3
10
4
10
5
10
6
10
7
10 10
8
10
9
analogue transfer functions. In Design Automation
Offset Frequency (Hz)
Conference, 1990. EDAC. Proceedings of the
European, pages 240243, 1990.
Figure 13: The overall phase noise of the PLL sys-
[9] A.A. Abidi. Phase Noise and Jitter in CMOS Ring
tem based on model simulation.
Oscillators. Solid-State Circuits, IEEE Journal of,
While the top level simulation on circuit level could take 41:18031816, 2006.
more than a week to complete, without the consideration of [10] Jongsun Park, K. Muhammad, and K. Roy. Efficient
convergence and memory problems, the verification based modeling of 1/f noise using multirate process.
on the wreal models took less than one hour to complete Computer-Aided Design of Integrated Circuits and
the phase noise simulation and configuration check. Systems, IEEE Transactions on, 25(7):12471256,
July 2006.
6. CONCLUSION [11] Y. Wang, S. Joeres, R. Wunderlich, and S. Heinen.
In this paper, we have presented the event driven analog Modeling approaches for functional verification of
modeling approach for the fractional N frequency synthesiz- RF-SoCs: limits and future requirements.
ers. The models provide a noticeable speedup even against Computer-Aided Design of Integrated Circuits and
the widely used phase domain models. The explicit mapping Systems, IEEE Transactions on, 28(5):769773, 2009.
of the single block specification leads to a parameterizable [12] Cadence. Cadence verilog-ams language reference.
top level PLL test bench. This provides the possibility to volume 8.1, May 2008.
verify and optimize routines and distributions of specifica- [13] Kun-Seok Lee, Byeong-Ha Park, Han il Lee, and
tions, based upon an identical test bench throughout the Min Jong Yoh. Phase frequency detectors for fast
whole design and verification process. During the simula- frequency acquisition in zero-dead-zone cpplls for
tion, the complete mapping of phase noise, nonlinearity and mobile communication systems. pages 525528, Sept.
digital controlling have been taken into account. The imple- 2003.
mentation of the proposed approach into an available design
flow can lead to a fast and reliable functional verification
process.