Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
A METHOD FOR USE IN A DIGITAL FREQUENCY SYNTHESIZER
Document Type and Number:
WIPO Patent Application WO/2008/115107
Kind Code:
A1
Abstract:
A method for use in a digital frequency synthesizer (100), the method comprising phase to amplitude conversion (120) of an output value of a phase accumulator (110) in said synthesizer (100), said conversion being carried out as an approximation (y) of a phase value (x) which corresponds to said output amplitude value, the method being characterized in that the approximation comprises a combination of a linear interpolation value and a second order sinusoidal value, the second order sinusoidal value being used as an error term to correct for errors in the linear interpolation value.

Inventors:
ZHANG YANG (CN)
Application Number:
PCT/SE2007/050174
Publication Date:
September 25, 2008
Filing Date:
March 20, 2007
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
ERICSSON TELEFON AB L M (SE)
ZHANG YANG (CN)
International Classes:
G06F1/035
Foreign References:
US20030062929A12003-04-03
EP1469373A12004-10-20
US5999581A1999-12-07
Other References:
DE CARO D. ET AL.: "High-Performance Direct Digital Frequency Synthesizers Using Piecewise-Polynomial Approximation", IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS I: FUNDAMENTAL THEORY AND APPLICATIONS, IEEE INC. NEW YORK, US, vol. 52, no. 2, February 2005 (2005-02-01), pages 324 - 337, XP011126841
See also references of EP 2126659A4
Attorney, Agent or Firm:
NILSSON, Charlotte (Patent Unit 3G, Stockholm, SE)
Download PDF:
Claims:
CLAIMS

1. A method for use in a digital frequency synthesizer (100), the method comprising phase to amplitude conversion (120) of an output value of a phase accumulator (110) in said synthesizer, said conversion (120) being carried out as an approximation of an amplitude which corresponds to an output phase value of the phase accumulator, the method being characterized in that the approximation comprises a combination of a linear interpolation value and a second order sinusoidal term, the second order sinusoidal term being used as an error term to correct for errors in the linear interpolation value.

2. The method of claim 1 , according to which the error term comprises a weighting function which can be adjusted to optimize the approximation.

3. The method of claim 1 or 2, in which the approximation is expressed as y(x) * Y(k) +

> -lil where:

d=2-τr/2 N , with N being a natural number, and

Y(k)= sin (k-d), and

k = means that k is the integer part of x/d.

4. The method of any of the previous claims, according to which 1- cos(d/2) is used as the weighting factor.

5. A phase to amplitude converter (120) for use in a digital frequency synthesizer, the converter comprising means (LUT 1-3, 130, 140, 150) for phase to amplitude conversion of an output value of a phase accumulator (110) in said synthesizer, said conversion means comprising means for approximating an amplitude which corresponds to an output phase value of the phase accumulator, the converter being characterized in that the approximation means use a combination of a linear interpolation value and a second order sinusoidal term, and in that the second order sinusoidal term is used by the approximation means as an error term to correct for errors in the linear interpolation value.

6. The converter (120) of claim 5, in which the error term comprises a weighting function which is used by the conversion means to optimize the approximation.

7. The converter (120) of claim 5 or 6, in which the approximation means use the following expression in order to arrive at the approximation:

y (x) , γ (k) + Y < k + 1 > Y(k) - (x - kd) + Y(k) ■ Y([ • 2 N -' J)-[I - cosφ].

where:

d=2-ττ/2 N , with N being a natural number, and

Y(k)= sin (k-d), and

k = - means that k is the integer part of x/d.

8. The converter (120) of any of claims 5-7, in which the conversion means use the term [1- cos(d/2)] as the weighting factor.

9. The converter (120) of any of claims 7 or 8, which uses a separate look up table, LUT, for at least one of the following terms:

• Y(k) (LUT 1)

• Y(k+1)-Y(k) (LUT 2) n x- kd

r" ) (LUT 3)

Description:

TITLE

A method for use in a digital frequency synthesizer.

TECHNICAL FIELD The present invention discloses a method and a device for use in a digital frequency synthesizer, particularly in a direct digital frequency synthesizer, DDFS.

BACKGROUND In many modern electronic systems, such as, for example, communication transceivers, radar systems, test instrumentation and broadcasting systems, Direct Digital Frequency Synthesizers, DDFS, are an important component.

DDFSs can provide rapid frequency switching in small frequency steps, and can also provide linear phase and frequency shifting with a high degree of spectral purity.

A common DDFS architecture is one which is based on a phase accumulator in series with a phase-to-sinusoid amplitude converter. Such a DDFS usually uses two inputs: a clock reference and a frequency control word, FCW. The phase accumulator in the DDFS integrates the value of the FCW on every clock cycle, producing a ramp whose slope is directly proportional to the FCW.

The frequency of this ramp, which is also the output frequency of the synthesizer, is given by the expression:

_f f ou , = FCW " 2> W (D where: • fo is the frequency of the clock reference, and

• UVis the width of the accumulator in bits.

The phase accumulator contents can be interpreted as a portion of rotation around a unit circle, and an approximate sinusoid amplitude of the corresponding angle is produced by the phase-to-sinusoid amplitude converter.

One way of implementing the phase-to-sinusoid amplitude converter is as a ROM look up table, an LUT. In order to satisfy frequency resolution requirements in the DDFS, a wide phase accumulator is often desired. However, this leads to a very large LUT as a converter, since the number of bits the LUT contains is equal to2 λ χ (L + \) , where L + 1 is the output word length of the converter, including a "sign bit".

One step towards reducing the LUT size is to reduce the number of entries in the table by exploiting the quadrant symmetry of the sine function. For further reduction, there are several alternatives to the ROM LUT 1 such as angular decomposition, sine amplitude compression, and the use of Coordinate

Rotation Digital Computers, CORDIC, as well as polynomial approximations.

The principle of these techniques is to trade computational complexity for ROM storage.

One of the main performance parameters for the phase to amplitude converter of the DDFS is the so called Spurious Free Dynamic Range, the SFDR. In the frequency domain, the SFDR represents the difference in amplitude or power between the generated sinusoid and the greatest undesired spectral component.

SFDR can also be a significant parameter for sensitivity and anti- interference performance in many applications. However, in known systems, a satisfactory SFDR is obtained at the price of high circuit complexity, for

example in terms of storage need and the amount of computational power needed.

SUMMARY As explained above, there is a need in Direct Digital Frequency Synthesizers, DDFS, for obtaining a good SFDR with a high degree of storage efficiency and also for implementation efficiency in terms of the amount of computational power needed.

This need is addressed by the present invention in that it discloses a method for use in a digital frequency synthesizer, which method comprises phase to amplitude conversion of an output value of a phase accumulator in the synthesizer.

The conversion according to the invention is carried out as an approximation of an amplitude which corresponds to an output phase value of the phase accumulator, the approximation comprising a combination of a linear interpolation value and a second order sinusoidal term, the second order sinusoidal term being used as an error term to correct for errors in the linear interpolation value.

By means of the invention, as will be seen more closely from the following detailed description, a very good SFDR performance can be obtained without a high degree of hardware complexity.

The invention also discloses a digital direct frequency synthesizer, DDFS, with means for carrying out the method of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS The invention will be described in more detail with reference to the appended drawings, in which

Fig 1 shows a frequency synthesizer in which the invention can be applied, and

Fig 2 shows a principle of linear interpolation, and

Fig 3 shows an error diagram, and Fig 4 shows an example of an embodiment of a phase to amplitude converter of the invention, and

Fig 5 shows a residual error diagram, and

Fig 6 shows a close up of a section of the diagram of fig 5, and

Fig 7 shows a power spectrum of the diagram of fig 5.

DETAILED DESCRIPTION

Fig 1 shows an example of a typical Direct Digital Frequency Synthesizer

100, DDFS, to which the invention may be applied. The architecture of the

DDFS 100 in fig 1 is based on two main blocks: a phase accumulator 110 and a phase-to-sinusoid amplitude converter 120.

The phase accumulator 110 comprises an adder 140, the output of which is fed to a register 150.

A digital-to-analog converter, DAC, and a low-pass filter, LPF, both shown as 130 in fig 1 , can be connected to the output of the converter 120 if an analog output is desired from the DDFS 100. The DDFS 100 has two inputs: a clock reference fo, 160, and a frequency control word, FCW, 170. The phase accumulator 110 integrates the value of the FCW on every clock cycle, and in doing so, produces a ramp whose slope is directly proportional to the FCW.

The frequency of this ramp, which is also the output frequency f ou t of the synthesizer 100, is given by the following expression:

r , = FCW - f <) where:

• fo is the frequency of the clock reference, and

• W is the width of the accumulator in bits.

The phase accumulator contents are interpreted as a portion of rotation around the unit circle, and an approximated sinusoid amplitude of the equivalent angles is produced by the phase-to-sinusoid amplitude converter. The performance of the phase-to-sinusoid amplitude converter 120 is thus of central interest to the performance of the entire DDFS 100, both when it comes to performance and to complexity.

As explained previously in this text, one way of designing a phase-to-sinusoid amplitude converter is as a lookup table, LUT 1 usually as a ROM. As also explained previously, a LUT has certain disadvantages which it is desired to overcome with the present invention.

Thus, according to the present invention, a new method of performing the function of the phase-to-sinusoid amplitude converter is disclosed. Basically, the method of the invention can be explained as an approximation which involves a linear interpolation and a second order sinusoidal approximation to the ideal sinusoid.

It can be mentioned that bit-true simulation of the invention shows a 112.5dB SFDR at 16 bit output, which is only 1.9 dB lower than the theoretically possible value.

Turning now to how the approximation of the current invention is carried out, it can be seen that one way of carrying out a phase to amplitude conversion is by means of polynomial approximation, of which one subset is so called linear interpolation.

Fig 2 illustrates a straightforward linear interpolation approximation method: y is a function of x, in the example shown y is a sine function of x. In fig 2, a

linear interpolation 210 of the sine function is also shown. As can be realized, and as will also be seen from fig 2, this interpolation method is not a particularly accurate one.

With continued reference to fig 2, for an ideal sinusoid y, which is defined as y=sin(x), (1)

with x ranging from 0 to 2π radians,

if the sequence Y(n):

Y(n)=sin (n*d), 0< n< 2 N -1, d = -jp , (2)

is known, then the linear interpolation in fig 2 can be expressed as

Y(k + 1)- Y(Ic) y,men,(x) = Y ( k ) + (x-kd) k =

(3)

where denotes the "integer part". d

The interpolation error δ(x) of expression (3) can be written as:

δ(x) = sin (x) - y ιn ,erp (x) (4)

The peak error on each interpolation segment can be obtained via partial derivation. Assume that

dS(x)

= 0 (5) dx I = J0

Now, substituting equations (3) and (4) into (5), we see that:

Y(k + \)-Y(k) cos( x 0 ) = (6)

and thus:

r Y(k + I)-Y(IC) 1 . sin(kd +d)-sin(kd) η

X 0 = arccos[ — ^— L ] = arccos[ — — -] d d

Accordingly, for small values of d, X 0 = kd + d/2 will maximize δ(x). The maximum value of δ(x) can be expressed as the difference between sin(x 0 ) and the linear interpolation, thus:

c- / λ • , λ r sin(fø/ + d) - sin( kd) d . , , ,,■. δ mM (x) * sm( x 0 ) - [ — - j * '- — + sin( kd )]

* sin( kd + — ) [sin( kd +d) + sin( kd)]

2 2 (8)

. ... d . d d

- sin( kd H — ) - sin( kd + — ) • cos( — ) 2 2 2

= [1 - cos( — )] • sin( kd + — )

Fig 3 shows the amplitude in error for a linear interpolation of an ideal sinusoid, the error amplitude being shown as a function of phase, with the phase expressed in radians, from 0 to 2τr.

Thus, from fig 3 in combination with equation (8) above, we can see that S max (x) holds a quasi-sinusoidal envelope. It should be noted that l-cos(— ) is a constant for a given d.

If the interpolation error err(x) of each interpolation segment in fig 3, i.e. the "teeth-like" wavelets inside the envelope, one of which, 310, is shown in fig 3 for the sake of clarity, is approximated by the first-half cycle of sinusoid with the amplitude δ max (x), we find:

x - kd err(x) = δ mκx (x)-sm(— — π) (9)

By combining equations (8) and (9), we find that:

=r(ll) 3±l. ( , B1 (10) d

+ [1 - cos(— )] • sin(kd + — ) • sin( π)

2 I d

For small values of d, sin (kd+d/2) can be approximated by sin (kd), and with reference to equation (2) above, sin (kd) can be replaced with Y(k). Also, x-kd x-kd sin( π) can be approximated by Y( •2 ) as well. So equation d

(11) below can be seen as:

y(x) * Y(k) + Y i ^(k + f o'r-Y 1 (Wk) ( ,„x- _kd) +._ Y(k)- JY( x-W H 11 l-cos(- ^)].

(11) d

where:

X k = — means that k is the integer part of x/d, and

Y(k)= sin (k-d), and

d=2-τr/2 N , with N being a natural number

It can be seen that for a given d, only x and Y(k) are necessary inputs for approximating y(x) in Equation (11).

Equation (11) above can also be expressed in words as follows: y(x) is approximated by means of a combination of a linear interpolation value and a term which is an approximation of the residual error of the linear interpolation value, said residual error being expressed as a second order sinusoidal function, and used as an error term to correct for errors in the linear interpolation value.

For the sake of clarity, the linear interpolation value will be shown again, as:

Y ( k + 1 ) - Y ( k )

Y ( * ) + ( x - kd ) (12)

and the second order sinusoidal term is thus:

x - kd

Y(k) - Y( 2 > NN --''J))-•[[l!--ccoos A(| ] (13)

Equation (11) above can then be used to describe the desired function of a phase-to-amplitude converter of the invention.

Turning now to an example of a possible implementation of a phase to amplitude converter of the invention, one example of such an embodiment 120 is shown in fig 4. In order to arrive at a suitable implementation of the

method of the invention, only one LUT would in theory be necessary. However, due to practical considerations, such as, for example, obtaining an increased operating frequency, three different LUTs are used to in the circuit

120 to obtain the terms Y(k), Y(k+1)-Y(k), and r(| — — - 2 λ' -' I) as follows,

with reference to fig 4:

LUT1 : Y(k)

LUT2: Y(k+1)-Y(k)

x - kd

LUT3: Y( λ'-

2

Taking d = — as an example, it can be realized that due to the symmetry of the sinusoid function, 2 7"1 =64 and 2 6"1 =32 entries are needed for obtaining Y(k) and Y(k+1) -Y(k), for LUT1 and LUT2 respectively.

Also, LUT 2 contains Y(k+1)-Y(k), but the term in equation (11) above is Y(Ic + I)- Y(k) , (χ _ kd)

The total function of the expression given immediately above may be addressed as follows: The division by d does not need to be carried out since d is a power of 2. Instead, only a "right shift" is needed at the output of the multiplier to which the output of LUT 2 is connected , which can for example, be done by selecting the appropriate bits of the multiplier output.

As for the multiplication by (x-kd), there is actually no need to calculate x-kd, since k is the integer part of (x/d), and the value of x-kd is the value of (bit8~bit32), which we can truncate into 12 bits. The bit width used here will

be a trade off between the balance between complexity and performance, but in one embodiment, we select 12 bits (in the case of N=7) as bit8~bit19.

Since LUT2 in fig 4 only covers V* period, function blocks 130 and 150 have been introduced into the circuit diagram in fig 4, block 130 being Ts complement" and block 150 being a "sign inverse" function. Both of these function blocks 130, 150, will be enabled when Bit 2=1 , otherwise the data will just bypass these functions.

The word length of Y (k) is 16 bits, which explains the size of LUT1 as 64 * 16. This implies that the maximum value of Y (k+1) - Y (k) will be 2 16 * sin (d) = 3216, and thus Y (k+1) - Y (k) can be fitted into 12 bits, which is the bitwidth of the output of LUT 2 in Fig 4.

The maximum value of 3216 is arrived at in the following way: Looking at the shape of sin(x), it can be realized that the slope of the curve when x is small (say, for example, 0) is larger than when x is large (say pi/2). Actually, Y(k+1)-Y(k) is a description of the slope. So for small values of k, Y(k+1)-Y(k) will be comparatively greater. When k=1 , the maximum is reached by Y(I)- Y(0)=sin(d), and for d=2π/128, the result will be 3216.

This is due to the fact that if 16 bits are used, then we get:

Y(k + 1) - Y(k) = 2 16 • [sin( kd + d) - sin( kd )] = 2 16 • 2 • sin( -) cos( kd + -)

Obviously, for a given d, since LUT2 only needs to cover V* period, the maximum value of Y(k+1)-Y(k) will be obtained when k=0, corresponding to 2 16 sin(d) = 2 16 sin(2ττ/128) = 3215.7, which can be rounded off to 3216.

The term 1-cos (d/2) in equation (11) can be seen as a weighting factor in equation (11), and can be calculated on or off-line. However, particularly in

view of the bit-truncation effect in a design such as that of fig 4, the optimum weighting factor can also be determined by searching in the neighbourhood of 1-cos (d/2).

A properly chosen value for the weighting factor will bring the design in fig 4 to give an SFDR as close as possible to an SFDR calculated in a simulation, which in the case of equation (11 ) is 112.5 dB.

Fig. 5 shows the residual error of the approximation of equation (11) by means of the design of fig 4 in the case of 112.5 dB SFDR, with the amplitude of the ideal sinusoid having been set to 1. Fig 6 shows a "close up" of an arbitrarily chosen interval (0.79-0.84) from fig 5, included here in order to further show the property of residual error. From fig 6, we can see that the error is well randomized, which corresponds to a very flat power spectrum.

Fig 7 shows the power spectrum corresponding to fig 5, which underscores the fact that the time domain error is quite random.

In addition, it can be pointed out, with renewed reference to fig 4, that only 19 bits are used, and an SFDR of 112.5 dB is still reached, which is only about 1.9 dB below the theoretical limit of SFDR, defined as: SFDR ≤ 6.02 x M, with M being the input bitwidth of the phase to amplitude converter shown in fig 1. Thus, with 19 bits, M=19, and 6.02 * 19= 114.38 dB, which is only 1.88 dB above the value obtained by the present invention, i.e. 112.5 dB.

Returning now to the design shown in fig 4, bit-true simulations have shown some simplifications which can be used without an unacceptable degradation of the function. It should be pointed out that the simplifications shown below can be used each on its own, or in combination with each other:

• The first multiplication (linear interpolation) in equation (11) can be simplified to 12bit x 12bit=13 bit in bitwidth. This is the multiplication

y <* + 1 > - y <*> .(X -M) d

• The second multiplication in equation (11) can be 4bit x 4bit =6 bit in x - kd bit width, which implies that Y(\ , W-I ) can be obtained via a 64 d entry, 4bit width LUT as LUT3 in Fig 4. Thus, the 4 MSB of LUT 1 can be used as the data in LUT3 in fig 4. The multiplication in question is

• The third multiplication in Equation (11) can be carried out using adders, since 1-cos (d/2) is a constant. This is the multiplication

In fig 4, the introduction of the weighting factor is indicated by means of the function block 140.

The invention is not limited to the examples of embodiments described above and shown in the drawings, but may be freely varied within the scope of the appended claims.

For example, the linear interpolation shown in fig 2 and used in the examples above is merely one example of a linear interpolation, namely a first degree linear interpolation, which may be used according to the invention in order to achieve the desired result. In principle, other kinds of linear interpolation may also be used to achieve the result of the invention.

Also, regarding the number of bits used in the LUTs above as inputs, outputs and width of the LUTs, it should be understood that these numbers of bits are merely examples, other amounts of bits may also be used in the LUTs.