Documente Academic
Documente Profesional
Documente Cultură
www.ltxc.com
1
divider are replaced with a frequency multiplier. While this equivalent diagram does not describe the
behavior of the PLL under all conditions, it is a useful description of the PLL when the PLL is in lock.
Programming the PLL in Figure 2 requires choosing values for D and N that produce the desired
frequency output. Simple algebraic techniques cannot yield the best values for D and N. The reason is
that algebra used for most engineering computation is based on real numbers which can have
either whole number or fractional values. Standard algebraic techniques do not offer methods for
imposing the integer constraint, when the solution to a set of equations must all be whole numbers.
Compute an integer, i1, equal to the desired or target ratio, r0, rounded to the nearest whole
number.
Subtract i1 from the target ratio, r0. This difference,d1=r0-i1, should be a fractional part in the range
between -.5 and +.5.
Compute the reciprocal r1 of d1 (r1=1/d1).
Compute an integer, i2, equal to the reciprocal r1, rounded to the nearest whole number.
Subtract i2 from r1. This difference, d2=r1-i2, should be a fractional part in the range between -.5
and +.5.
Compute the reciprocal r2 of d2 (r2=1/d2).
and so on.
Once the sequence of integers {i1,i2...in} has been computed, the numerator Nn corresponding to the
integer sequence can be generated recursively2,3 from the numerators Nn-1 and Nn-2 by the recursive
equation:
Nn=in * Nn-1 + Nn-2 where N0=1 and N-1=0.
Similarly, the denominator Dn can be generated by the recursion:
Dn=in * Dn-1 + Dn-2 where D0=0 and D-1=1.
It should be noted that some of the pairs Nn/Dn generated by the recursion will contain integers that
are both negative. Since the minus sign will appear in both the numerator and denominator, the ratio
still has the correct sign. However, care must be exercised to use the signed value of numerator and
www.ltxc.com
2
LTX-Credence
Delivering Value Through Innovation
Ratio
Error
{3}
3/1
0.141592654
{3,7}
22/7
-0.001264489
{3,7,16}
355/113
-2.66764E-07
{3,7,16,-294}
104348/33215
-3.31628E-10
LTX-Credence
Delivering Value Through Innovation
www.ltxc.com
3
Factor
355
113
1775
565
2130
678
2485
791
2840
904
Integer ratios that may produce a better approximation error than the closest denominator that is less
than the desired range can sometimes be obtained by reducing the absolute value of the last integer (294 in the approximation for ) used to generate the denominate that is higher than the desired range.
This can be done using the recursions presented in the previous section to generate intermediate
integer ratios that have accuracy that is intermediate between two ratios generated by the continued
fraction method.
The third integer ratio is the result of using a sequence {in}={3,7,16}. The fourth ratio is generated from
the sequence {in}={3,7,16,-294}. A sequence of intermediate ratios can be computed as follows:
Integer Series
Error
{3,7,16,-146}
51808
16491
2.699E-07
{3,7,16,-146}
51808
16491
2.699E-07
{3,7,16,-147}
52163
16604
2.662E-07
{3,7,16,-148}
52518
16717
2.626E-07
{3,7,16,-149}
52873
16830
2.591E-07
{3,7,16,-150}
53228
16943
2.555E-07
Note that the table jumps from a ratio of 355/113 to a ratio of 51808/16491. This is because all
intermediate ratios have no better error than the ratio 355/113. Since all the ratios that have errors
better than the ratio 355/113 are in the range of 52163/16604 or higher, none of them are useful for
the specific PLL constraints in this example. However, with other conditions, intermediate ratios such
as these could be useful.
www.ltxc.com
4
LTX-Credence
Delivering Value Through Innovation
Flow Graphs
A flow graph is a graphical means of representing the frequency constraints within a tester's
instruments as well as within a DUT and the intended test technique. Each component within a given
test setup can be represented by zero or more inputs and one or more outputs. The flow diagram
shows the source of each input, as well as the relationship between the inputs and each output. Figure 2
and Figure 3 are examples of flow graphs for a PLL.
Store a sample sequence equal in length to the total sample set needed to generate the signal for
the required duration of time.
Store a shorter sample set sufficient to create one or more complete cycles of the signal. During
playback of the sample sequence. When the sample set playback is completed and the last
sample is applied to the D/A, the memory address is looped back to the beginning of the stored
sequence, and the stored sequence is repeated.
LTX-Credence
Delivering Value Through Innovation
www.ltxc.com
5
The first technique is useful for generating non-repetitive signals that have a finite duration. Generally,
this type of operation does not place any precise constraints on sample rate. Generally, the sample rate
will be selected to reproduce the desired waveform with a minimum of undesired artifact, or to allow
easy computation of the sample sequence.
The second technique is useful whenever a repetitive signal is needed. It is especially appropriate
when the signal must be of long or indefinite duration . To successfully apply this technique, the
sample rate and number of samples in the sample set must be carefully selected. If the number of
samples in the sample set times the sampling period (the reciprocal of the sampling rate) is not exactly
equal to the duration of a whole number of repetitions of the desired signal, a discontinuity will occur at
the point during signal generation where the memory loops back from the last sample to the first.
LTX-Credence
Delivering Value Through Innovation
multiples of a single Fourier frequency (reciprocal of UTP), the output frequencies will also be integer
multiples of the same frequency.
Application Constraints
In many test applications, the settings of various integer values within the tester's timing generation
system are not governed by internal instrument constraints alone. In fact, device, test technique, and
instrument constraints must all be considered together to obtain an acceptable set of integer values.
To illustrate how all these constraints can work together, the specific case of coherent testing is
examined.
LTX-Credence
Delivering Value Through Innovation
www.ltxc.com
7
As has been shown in the preceding sections, most elements in the timing architecture of a test are
either rate multipliers or dividers. As a result, the relationship between the input and output of any one
path in the graph will usually be a ratio of integers. When there are multiple paths from one frequency to
another in a flow graph, then the frequency ratios must be the same through each path.
If two pairs of numbers are in the same ratio, need the numbers themselves be the same? No.
However, when all common factors from the numerator and denominator of each ratio are removed,
www.ltxc.com
8
LTX-Credence
Delivering Value Through Innovation
both ratios should contain exactly the same integers. Often times it is difficult spotting the common
factors in the numerator and denominator of a ratio. There is a very simple technique for removing
common factors from the numerator and denominator. Perform the division indicated by the ratio to
obtain a single number with fractional part. Then use the method of continued fractions to convert it
back to a ratio of integers. The resulting ratio will have no common factors shared in the numerator and
denominator.
From a design perspective this yields a strong constraint between the paths in the flow graph of a
coherent test:
The numerator of the reduced frequency ratio of one path must equal the numerator of the
reduced frequency ratio of a parallel path in a flow graph in parallel paths in a flow graph and
the denominator of the reduced frequency ratio of one path must equal the denominator of the
reduced frequency ratio of a parallel path in a flow graph in parallel paths in a flow graph
(17*13*3) or 663
(7*3*3) or 63
Grouping 2
(17*13) or 221
(7*3*3*3) or 189
Grouping 3
(17*7*3) or 359
(13*3*3) or 117
It would be very difficult identifying these factors directly. Only through the use of prime factors is it
easy to spot these alternative combinations.
Conclusions
Through the application of several different techniques, including flow graphs, continued fraction
expansion, and prime number factorization, the integer selection process for DSP testing applications
can be greatly simplified.
1 Matthew Mahoney, "DSP-Based Testing of Analog and Mixed-Signal Circuits", The Computer Society of
the IEEE, ISBN 0-8186-0785-8
2 Stark,
3 G.
Moraes, In-House Paper:"Digital Signal Processing: Calculating Floating Point Rates for DSP Tester
Architectures"
LTX-Credence
Delivering Value Through Innovation
www.ltxc.com
9