Abstract:
An improved DDFS includes a minority-bit detector to permit a series of cascaded transformation stages to perform half or less than half of the rotational operations otherwise required by detecting whether the required rotation or non-rotation operations are in the minority and performing only the operations in the minority. This substantially reduces the number of minority-select butterfly stages that would otherwise be required. The cascaded transformation stages include a preliminary set of lookup tables in ROM memory, one of which is selected in accordance with the minority-bit detector and may include a subsequent set of butterfly stages providing the inputs to the minority-select butterfly stages.

Description:
BACKGROUND OF THE INVENTION 
   1. Field of the Invention 
   The present invention relates to digital signal generators and more particularly to improved Direct Digital Frequency Synthesizers (DDFS). 
   2. Background of the Prior Art 
   For many digital circuits, it is often necessary to generate a sequence of sample values of a sine or cosine function at a particular frequency that may be adjusted while the time interval between samples remains fixed. Circuits known as Direct Digital Frequency Synthesizers (DDFS) perform this function. Many conventional art DDFS&#39;s generate the sine and cosine values by performing a table-lookup in a read only memory (ROM) that contains the values of samples of a sine/cosine function at the required angle values, and then provide these values as the output. The sequence of desired angles is generated by a phase accumulator. More precisely, the phase accumulator produces a sequence of normalized angles that are used to address the ROM. The table-lookups are performed at a very precisely controlled rate, which is the sample rate, and the desired frequency of the generated sinusoid is determined by the rate, relative to this reference rate, at which angles generated by the phase accumulator cycle through a range of values corresponding to [0, 2π). 
   Although these prior art table-lookup DDFS&#39;s perform adequately for many purposes, the tables often are large and occupy a relatively large amount of chip area when implemented as integrated circuits. Various techniques have been developed to reduce the ROM table size, which is determined by the number of address bits (i.e., the most significant portion of the phase accumulator output) and the precision of (i.e., the number of bits representing) the sine/cosine outputs. Truncation of the phase accumulator output is usually employed in order to reduce the lookup table size, as this size will double with each additional bit in the table address word. This phase truncation, however, creates imperfections in the output sine/cosine function since a sine/cosine value corresponding to a truncated phase will correspond to an effective value that is different from the sine/cosine value at the exact angle. Furthermore, the truncated phase accumulator values can be viewed as values obtained by adding some sequence of error terms to the sequence of exact angle values. Furthermore, the finite precision of the sine/cosine outputs contributes additional error terms. Thus, the output of the table-lookup process will consist of the superposition of the sine/cosine signal at the desired frequency and various other frequencies that result from the processing of the truncated phase sequence by the table-lookup and the finite precision sine/cosine outputs. These undesired frequency components are referred to as “spurious frequencies,” or “spurs.” The amplitude of these spurs should be small, and the quality of the DDFS is often assessed by determining how small the amplitudes of the spurs are. The “spurious free dynamic range” is the difference between the amplitude of the desired sinusoid and that of the largest spur. It is usually measured in decibels (dB). 
   One prior art technique for generating trigonometric functions such as sine and cosine, developed in the 1950&#39;s and known as CORDIC, avoids ROM table-lookups. CORDIC calculates the sine and cosine values of a particular angle through a series of rotations of a point in the complex plane, initially coincident with the X-axis on the unit circle. The X-axis and the Y-axis coordinates, representing the real and imaginary parts of a complex-valued number, at the final angle are the desired cosine and sine values, respectively. 
   However, according to the conventional CORDIC methodology, at each rotation it must be determined whether to rotate clockwise or counter-clockwise, where a counter-clockwise rotation corresponds to α i =1 and a clockwise rotation corresponds to α i =−1. CORDIC tries to approximate an angle θ as a sum of subangles Σθ i . At each stage, if the approximation generated by all previous stages is larger than the desired angle θ, then the current stage decreases the value of the approximation by θ i ; otherwise the approximation is increased by θ i . Thus, at each stage the direction of the rotation is chosen such that the error between the desired angle θ and the approximation is reduced. In CORDIC, the α i  coefficients (which determine the direction of the rotation) are determined iteratively for each rotation stage and each one requires a comparator or its equivalent. 
   An improved DDFS is shown in U.S. Pat. No. 5,737,253, assigned to the assignee of the present invention, which is incorporated herein in its entirety. This improved DDFS provides a high-speed DDFS integrated circuit with high precision sine and cosine output data and a chip area smaller than could then be obtained using table-lookup-based or CORDIC approaches to the DDFS. A phase accumulator provides a sequence of angles to a sine/cosine generator that outputs a sequence of values of the sine/cosine function at a desired frequency. The sine/cosine generator includes a plurality of multiplierless butterfly and carry-save adder stages in cascade that perform angle rotations to calculate the sine and cosine values for each desired angle. The angle rotations are chosen to implement a series of transformations that result in closer and closer approximations to the sine and cosine values of the desired angle. 
   Multipliers may be eliminated from butterfly stages by taking advantage of the approximation tan θ k ≈θ k . For sufficiently small θ k  (i.e., for sufficiently large k) the approximation
 
tan θ k ≈θ k =2 −k   (1)
 
reduces the corresponding multiplications performed by the butterfly stages to simple shift operations by a fixed number of bits (k bits). This approximation causes no loss of accuracy in the tan θ k  representation so long as tan θ k  is sufficiently small that the difference (θ k −tan θ k ) is smaller than the finite-precision limits of the output data.
 
   A multiplexer provides sine and cosine values for an angle that is the algebraic sum of the first M subangles θ k  that are not sufficiently small to employ the approximation tan θ k ≈θ k . The subangles become successively smaller for each successive stage and the remaining subangles after these first M subangles satisfy the approximation tan θ k ≈θ k  to a desired accuracy. The sine and cosine values provided by the multiplexer are then input to the subsequent rotation stages, which perform the subsequent rotations to calculate the sine and cosine values for the desired angle. Rather than using a multiplexer, a small ROM table can also be used to perform the same function. 
   Only angles within a quadrant or within an octant, e.g. [0, π/4], need be provided to the rotation stages and the sine and cosine values for any angle in [0, 2π) can be computed from these angles by well-known trigonometric identities. Techniques are disclosed in U.S. Pat. No. 5,737,253 for converting an angle in [0, 2π) to a related angle in [0, π/4], performing the previously described rotations to calculate sine and cosine values for the transformed angle, and then deriving the sine and cosine values for the original angle in [0, 2π) from the sine and cosine values for the transformed angle in [0, π/4]. 
   To summarize, an angle θ=b 1 θ 1 +b 2 θ 2 + . . . +b N θ N  is generated where b k  ε {0,1} are binary bits and the θ k =2 −k  are the associated positional weights. Next, the sine and cosine values for a subangle ω, the algebraic sum of the first M rotation angles of θ, are obtained through a multiplexer or similar device (e.g., ROM table). Subangle ω may be chosen such that the remaining subangles that are processed may utilize the approximation tan θ k ≈θ k  and the binary b k  ε {0,1} are recoded into signed digits r k  ε {−1,+1} for an arbitrary angle θ by the mapping r k =2b k-1 −1. The following transformation formulae are then used:
 
 X   k   =X   k−1   −r   k 2 −k   Y   k−1  and  Y   k   =Y   k−1   +r   k 2 −k   X   k−1   (2)
 
where X k−1  is the cosine value and Y k−1  is the sine value. The determined X k  cosine value and Y k  sine value are then successively provided as the X k−1  and Y k−1  inputs to subsequent transformation formulae until the desired accuracy is reached.
 
   The number of rotation stages required by both the CORDIC and the Modified CORDIC algorithms are comparable to one another. In every butterfly stage, the CORDIC and the Modified CORDIC angle decompositions, equations (3) and (4), respectively, both require a nonzero rotation either in the positive or negative direction, 
                   ω   =       ∑     i   =   1     N     ⁢       σ   i     ⁢     ω   i           ,           (   3   )               
where σ i  ε {−1,+1}, ω i =arctan 2 −i  for CORDIC and ω i =2 −1  for Modified CORDIC,
 
   
     
       
         
           
             
               
                 
                   
                     ω 
                     = 
                     
                       ϕ 
                       + 
                       
                         
                           ∑ 
                           
                             i 
                             = 
                             2 
                           
                           
                             N 
                             + 
                             1 
                           
                         
                         ⁢ 
                         
                           
                             r 
                             i 
                           
                           ⁢ 
                           
                             ω 
                             i 
                           
                         
                       
                     
                   
                   , 
                   
                     
                       with 
                       ⁢ 
                       
                           
                       
                       ⁢ 
                       
                         r 
                         i 
                       
                     
                     ∈ 
                     
                       
                         { 
                         
                           
                             - 
                             1 
                           
                           , 
                           
                             + 
                             1 
                           
                         
                         } 
                       
                       ⁢ 
                       
                           
                       
                       ⁢ 
                       and 
                     
                   
                 
                 ⁢ 
                 
                    
                 
                 ⁢ 
                 
                   ϕ 
                   = 
                   
                     
                       
                         ∑ 
                         
                           i 
                           = 
                           2 
                         
                         
                           N 
                           + 
                           1 
                         
                       
                       ⁢ 
                       
                         ω 
                         i 
                       
                     
                     = 
                     
                       
                         1 
                         2 
                       
                       - 
                       
                         
                           1 
                           
                             2 
                             
                               N 
                               + 
                               1 
                             
                           
                         
                         . 
                       
                     
                   
                 
               
             
             
               
                 ( 
                 4 
                 ) 
               
             
           
         
       
     
   
   For the CORDIC and the Modified CORDIC algorithms these nonzero rotations are necessary (i.e., σ i ≠0) to facilitate the creation of the “rotation-angle-independent-constant” 
           K   =       ∏     i   =   1     N     ⁢     cos   ⁢           ⁢     ω   i               
in equations (6) and (7) from the cos σ i ω i  terms factored out of the butterfly stages in equation (5). Equation (7) reflects the CORDIC angle decomposition ω i =arctan 2 −i .
 
   
     
       
         
           
             
               
                 
                   [ 
                   
                     
                       
                         
                           cos 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           ω 
                         
                       
                     
                     
                       
                         
                           sin 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           ω 
                         
                       
                     
                   
                   ] 
                 
                 = 
                 
                   
                     [ 
                     
                       
                         
                           
                             cos 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               σ 
                               N 
                             
                             ⁢ 
                             
                               ω 
                               N 
                             
                           
                         
                         
                           
                             
                               - 
                               sin 
                             
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               σ 
                               N 
                             
                             ⁢ 
                             
                               ω 
                               N 
                             
                           
                         
                       
                       
                         
                           
                             sin 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               σ 
                               N 
                             
                             ⁢ 
                             
                               ω 
                               N 
                             
                           
                         
                         
                           
                             cos 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               σ 
                               N 
                             
                             ⁢ 
                             
                               ω 
                               N 
                             
                           
                         
                       
                     
                     ] 
                   
                   ⁢ 
                   
                       
                   
                   ⁢ 
                   
                     … 
                     ⁢ 
                     
                         
                     
                     [ 
                     
                       
                         
                           
                             cos 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               σ 
                               i 
                             
                             ⁢ 
                             
                               ω 
                               i 
                             
                           
                         
                         
                           
                             
                               - 
                               sin 
                             
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               σ 
                               i 
                             
                             ⁢ 
                             
                               ω 
                               i 
                             
                           
                         
                       
                       
                         
                           
                             sin 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               σ 
                               i 
                             
                             ⁢ 
                             
                               ω 
                               i 
                             
                           
                         
                         
                           
                             cos 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               σ 
                               i 
                             
                             ⁢ 
                             
                               ω 
                               i 
                             
                           
                         
                       
                     
                     ] 
                   
                   ⁢ 
                   
                       
                   
                   ⁢ 
                   
                     
                       … 
                       ⁢ 
                       
                           
                       
                       [ 
                       
                         
                           
                             
                               cos 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 σ 
                                 1 
                               
                               ⁢ 
                               
                                 ω 
                                 1 
                               
                             
                           
                           
                             
                               
                                 - 
                                 sin 
                               
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 σ 
                                 1 
                               
                               ⁢ 
                               
                                 ω 
                                 1 
                               
                             
                           
                         
                         
                           
                             
                               sin 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 σ 
                                 1 
                               
                               ⁢ 
                               
                                 ω 
                                 1 
                               
                             
                           
                           
                             
                               cos 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 σ 
                                 1 
                               
                               ⁢ 
                               
                                 ω 
                                 1 
                               
                             
                           
                         
                       
                       ] 
                     
                     ⁡ 
                     
                       [ 
                       
                         
                           
                             1 
                           
                         
                         
                           
                             0 
                           
                         
                       
                       ] 
                     
                   
                 
               
             
             
               
                 ( 
                 5 
                 ) 
               
             
           
           
             
               
                 
                   [ 
                   
                     
                       
                         
                           cos 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           ω 
                         
                       
                     
                     
                       
                         
                           sin 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           ω 
                         
                       
                     
                   
                   ] 
                 
                 = 
                 
                   
                     [ 
                     
                       
                         
                           1 
                         
                         
                           
                             
                               - 
                               
                                 σ 
                                 N 
                               
                             
                             ⁢ 
                             tan 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               ω 
                               N 
                             
                           
                         
                       
                       
                         
                           
                             
                               σ 
                               N 
                             
                             ⁢ 
                             tan 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               ω 
                               N 
                             
                           
                         
                         
                           1 
                         
                       
                     
                     ] 
                   
                   ⁢ 
                   
                       
                   
                   ⁢ 
                   
                     … 
                     ⁢ 
                     
                         
                     
                     [ 
                     
                       
                         
                           1 
                         
                         
                           
                             
                               - 
                               
                                 σ 
                                 i 
                               
                             
                             ⁢ 
                             tan 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               ω 
                               i 
                             
                           
                         
                       
                       
                         
                           
                             
                               σ 
                               i 
                             
                             ⁢ 
                             tan 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               ω 
                               i 
                             
                           
                         
                         
                           1 
                         
                       
                     
                     ] 
                   
                   ⁢ 
                   
                       
                   
                   ⁢ 
                   
                     
                       … 
                       ⁢ 
                       
                           
                       
                       [ 
                       
                         
                           
                             1 
                           
                           
                             
                               
                                 - 
                                 
                                   σ 
                                   1 
                                 
                               
                               ⁢ 
                               tan 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 ω 
                                 1 
                               
                             
                           
                         
                         
                           
                             
                               
                                 σ 
                                 1 
                               
                               ⁢ 
                               tan 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 ω 
                                 1 
                               
                             
                           
                           
                             1 
                           
                         
                       
                       ] 
                     
                     ⁡ 
                     
                       [ 
                       
                         
                           
                             K 
                           
                         
                         
                           
                             0 
                           
                         
                       
                       ] 
                     
                   
                 
               
             
             
               
                 ( 
                 6 
                 ) 
               
             
           
           
             
               
                 
                   [ 
                   
                     
                       
                         
                           cos 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           ω 
                         
                       
                     
                     
                       
                         
                           sin 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           ω 
                         
                       
                     
                   
                   ] 
                 
                 = 
                 
                   
                     [ 
                     
                       
                         
                           1 
                         
                         
                           
                             
                               - 
                               
                                 σ 
                                 N 
                               
                             
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               2 
                               
                                 - 
                                 N 
                               
                             
                           
                         
                       
                       
                         
                           
                             
                               σ 
                               N 
                             
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               2 
                               
                                 - 
                                 N 
                               
                             
                           
                         
                         
                           1 
                         
                       
                     
                     ] 
                   
                   ⁢ 
                   
                       
                   
                   ⁢ 
                   
                     … 
                     ⁢ 
                     
                         
                     
                     [ 
                     
                       
                         
                           1 
                         
                         
                           
                             
                               - 
                               
                                 σ 
                                 N 
                               
                             
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               2 
                               
                                 - 
                                 i 
                               
                             
                           
                         
                       
                       
                         
                           
                             
                               σ 
                               N 
                             
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               2 
                               
                                 - 
                                 i 
                               
                             
                           
                         
                         
                           1 
                         
                       
                     
                     ] 
                   
                   ⁢ 
                   
                       
                   
                   ⁢ 
                   
                     
                       
                         … 
                         ⁢ 
                         
                             
                         
                         [ 
                         
                           
                             
                               1 
                             
                             
                               
                                 
                                   - 
                                   
                                     σ 
                                     N 
                                   
                                 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 
                                   2 
                                   
                                     - 
                                     1 
                                   
                                 
                               
                             
                           
                           
                             
                               
                                 
                                   σ 
                                   N 
                                 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 
                                   2 
                                   
                                     - 
                                     1 
                                   
                                 
                               
                             
                             
                               1 
                             
                           
                         
                         ] 
                       
                       ⁡ 
                       
                         [ 
                         
                           
                             
                               K 
                             
                           
                           
                             
                               0 
                             
                           
                         
                         ] 
                       
                     
                     . 
                   
                 
               
             
             
               
                 ( 
                 7 
                 ) 
               
             
           
         
       
     
   
   If one permits σ i  to also take on the value of zero, then the necessary condition cos σ i ω i =cos ω i  for constant K will not hold when a σ i =0. Similarly, for the Modified CORDIC algorithm, the nonzero rotations are necessary (i.e., r i ≠0) to produce the “rotation-angle-independent-constant” 
           K   =       ∏     i   =   2       N   +   1       ⁢     cos   ⁢           ⁢     ω   i               
in equations (9), (10), and (11), by the factored out cos r i ω i  terms from the butterfly stages in equation (8) and carrying out the multiplication
 
               [           cos   ⁢           ⁢   ϕ             -   sin     ⁢           ⁢   ϕ               sin   ⁢           ⁢   ϕ           cos   ⁢           ⁢   ϕ           ]     ⁡     [         1           0         ]       =       [           cos   ⁢           ⁢   ϕ               sin   ⁢           ⁢   ϕ           ]     .           
If any r i  is allowed to take on the value of zero, then the necessary condition cos r i ω i =cos ω i  for the constant K will not hold. From these observations one may deduce that reducing the total number of rotations may be infeasible since “no rotation” corresponds to σ i =0 or r i =0.
 
   
     
       
         
           
             
               
                 
                   [ 
                   
                     
                       
                         
                           cos 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           ω 
                         
                       
                     
                     
                       
                         
                           sin 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           ω 
                         
                       
                     
                   
                   ] 
                 
                 = 
                 
                   
                     [ 
                     
                       
                         
                           
                             cos 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               r 
                               
                                 N 
                                 + 
                                 1 
                               
                             
                             ⁢ 
                             
                               ω 
                               
                                 N 
                                 + 
                                 1 
                               
                             
                           
                         
                         
                           
                             
                               - 
                               sin 
                             
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               r 
                               
                                 N 
                                 + 
                                 1 
                               
                             
                             ⁢ 
                             
                               ω 
                               
                                 N 
                                 + 
                                 1 
                               
                             
                           
                         
                       
                       
                         
                           
                             sin 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               r 
                               
                                 N 
                                 + 
                                 1 
                               
                             
                             ⁢ 
                             
                               ω 
                               
                                 N 
                                 + 
                                 1 
                               
                             
                           
                         
                         
                           
                             cos 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               r 
                               
                                 N 
                                 + 
                                 1 
                               
                             
                             ⁢ 
                             
                               ω 
                               
                                 N 
                                 + 
                                 1 
                               
                             
                           
                         
                       
                     
                     ] 
                   
                   ⁢ 
                   
                       
                   
                   ⁢ 
                   
                     
                       
                         … 
                         ⁢ 
                         
                             
                         
                         [ 
                         
                           
                             
                               
                                 cos 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 
                                   σ 
                                   2 
                                 
                                 ⁢ 
                                 
                                   ω 
                                   2 
                                 
                               
                             
                             
                               
                                 
                                   - 
                                   sin 
                                 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 
                                   r 
                                   2 
                                 
                                 ⁢ 
                                 
                                   ω 
                                   2 
                                 
                               
                             
                           
                           
                             
                               
                                 sin 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 
                                   σ 
                                   2 
                                 
                                 ⁢ 
                                 
                                   ω 
                                   2 
                                 
                               
                             
                             
                               
                                 cos 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 
                                   r 
                                   2 
                                 
                                 ⁢ 
                                 
                                   ω 
                                   2 
                                 
                               
                             
                           
                         
                         ] 
                       
                       ⁡ 
                       
                         [ 
                         
                           
                             
                               
                                 cos 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 ϕ 
                               
                             
                             
                               
                                 
                                   - 
                                   sin 
                                 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 ϕ 
                               
                             
                           
                           
                             
                               
                                 sin 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 ϕ 
                               
                             
                             
                               
                                 cos 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 ϕ 
                               
                             
                           
                         
                         ] 
                       
                     
                     ⁡ 
                     
                       [ 
                       
                         
                           
                             1 
                           
                         
                         
                           
                             0 
                           
                         
                       
                       ] 
                     
                   
                 
               
             
             
               
                 ( 
                 8 
                 ) 
               
             
           
           
             
               
                 
                   [ 
                   
                     
                       
                         
                           cos 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           ω 
                         
                       
                     
                     
                       
                         
                           sin 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           ω 
                         
                       
                     
                   
                   ] 
                 
                 = 
                 
                   
                     [ 
                     
                       
                         
                           1 
                         
                         
                           
                             
                               - 
                               
                                 r 
                                 
                                   N 
                                   + 
                                   1 
                                 
                               
                             
                             ⁢ 
                             tan 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               ω 
                               
                                 N 
                                 + 
                                 1 
                               
                             
                           
                         
                       
                       
                         
                           
                             
                               r 
                               
                                 N 
                                 + 
                                 1 
                               
                             
                             ⁢ 
                             tan 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               ω 
                               
                                 N 
                                 + 
                                 1 
                               
                             
                           
                         
                         
                           1 
                         
                       
                     
                     ] 
                   
                   ⁢ 
                   
                       
                   
                   ⁢ 
                   
                     … 
                     ⁢ 
                     
                         
                     
                     [ 
                     
                       
                         
                           1 
                         
                         
                           
                             
                               - 
                               
                                 r 
                                 i 
                               
                             
                             ⁢ 
                             tan 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               ω 
                               i 
                             
                           
                         
                       
                       
                         
                           
                             
                               r 
                               i 
                             
                             ⁢ 
                             tan 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               ω 
                               i 
                             
                           
                         
                         
                           1 
                         
                       
                     
                     ] 
                   
                   ⁢ 
                   
                       
                   
                   ⁢ 
                   
                     
                       … 
                       ⁢ 
                       
                           
                       
                       [ 
                       
                         
                           
                             1 
                           
                           
                             
                               
                                 - 
                                 
                                   r 
                                   2 
                                 
                               
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               tan 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 ω 
                                 2 
                               
                             
                           
                         
                         
                           
                             
                               
                                 r 
                                 2 
                               
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               tan 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 ω 
                                 2 
                               
                             
                           
                           
                             1 
                           
                         
                       
                       ] 
                     
                     ⁡ 
                     
                       [ 
                       
                         
                           
                             
                               K 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               cos 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               ϕ 
                             
                           
                         
                         
                           
                             
                               K 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               sin 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               ϕ 
                             
                           
                         
                       
                       ] 
                     
                   
                 
               
             
             
               
                 ( 
                 9 
                 ) 
               
             
           
           
             
               
                 
                   [ 
                   
                     
                       
                         
                           cos 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           ω 
                         
                       
                     
                     
                       
                         
                           sin 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           ω 
                         
                       
                     
                   
                   ] 
                 
                 = 
                 
                   
                     [ 
                     
                       
                         
                           1 
                         
                         
                           
                             
                               - 
                               
                                 r 
                                 
                                   N 
                                   + 
                                   1 
                                 
                               
                             
                             ⁢ 
                             tan 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               2 
                               
                                 - 
                                 
                                   ( 
                                   
                                     N 
                                     + 
                                     1 
                                   
                                   ) 
                                 
                               
                             
                           
                         
                       
                       
                         
                           
                             
                               r 
                               
                                 N 
                                 + 
                                 1 
                               
                             
                             ⁢ 
                             tan 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               2 
                               
                                 - 
                                 
                                   ( 
                                   
                                     N 
                                     + 
                                     1 
                                   
                                   ) 
                                 
                               
                             
                           
                         
                         
                           1 
                         
                       
                     
                     ] 
                   
                   ⁢ 
                   
                       
                   
                   ⁢ 
                   
                     … 
                     ⁢ 
                     
                         
                     
                     [ 
                     
                       
                         
                           1 
                         
                         
                           
                             
                               - 
                               
                                 r 
                                 i 
                               
                             
                             ⁢ 
                             tan 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               2 
                               
                                 - 
                                 i 
                               
                             
                           
                         
                       
                       
                         
                           
                             
                               r 
                               i 
                             
                             ⁢ 
                             tan 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               2 
                               
                                 - 
                                 i 
                               
                             
                           
                         
                         
                           1 
                         
                       
                     
                     ] 
                   
                   ⁢ 
                   
                       
                   
                   ⁢ 
                   
                     
                       … 
                       ⁢ 
                       
                           
                       
                       [ 
                       
                         
                           
                             1 
                           
                           
                             
                               
                                 - 
                                 
                                   r 
                                   i 
                                 
                               
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               tan 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 2 
                                 
                                   - 
                                   2 
                                 
                               
                             
                           
                         
                         
                           
                             
                               
                                 r 
                                 i 
                               
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               tan 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 2 
                                 
                                   - 
                                   2 
                                 
                               
                             
                           
                           
                             1 
                           
                         
                       
                       ] 
                     
                     ⁡ 
                     
                       [ 
                       
                         
                           
                             
                               K 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               cos 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               ϕ 
                             
                           
                         
                         
                           
                             
                               K 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               sin 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               ϕ 
                             
                           
                         
                       
                       ] 
                     
                   
                 
               
             
             
               
                 ( 
                 10 
                 ) 
               
             
           
           
             
               
                 
                   [ 
                   
                     
                       
                         
                           cos 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           ω 
                         
                       
                     
                     
                       
                         
                           sin 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           ω 
                         
                       
                     
                   
                   ] 
                 
                 = 
                 
                   
                     [ 
                     
                       
                         
                           1 
                         
                         
                           
                             
                               - 
                               
                                 r 
                                 
                                   N 
                                   + 
                                   1 
                                 
                               
                             
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               2 
                               
                                 - 
                                 
                                   ( 
                                   
                                     N 
                                     + 
                                     1 
                                   
                                   ) 
                                 
                               
                             
                           
                         
                       
                       
                         
                           
                             
                               r 
                               
                                 N 
                                 + 
                                 1 
                               
                             
                             ⁢ 
                             
                               2 
                               
                                 - 
                                 
                                   ( 
                                   
                                     N 
                                     + 
                                     1 
                                   
                                   ) 
                                 
                               
                             
                           
                         
                         
                           1 
                         
                       
                     
                     ] 
                   
                   ⁢ 
                   
                       
                   
                   ⁢ 
                   
                     … 
                     ⁢ 
                     
                         
                     
                     [ 
                     
                       
                         
                           1 
                         
                         
                           
                             
                               - 
                               
                                 r 
                                 
                                   β 
                                   + 
                                   1 
                                 
                               
                             
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               2 
                               
                                 - 
                                 
                                   ( 
                                   
                                     β 
                                     + 
                                     1 
                                   
                                   ) 
                                 
                               
                             
                           
                         
                       
                       
                         
                           
                             
                               r 
                               
                                 β 
                                 + 
                                 1 
                               
                             
                             ⁢ 
                             
                               2 
                               
                                 - 
                                 
                                   ( 
                                   
                                     β 
                                     + 
                                     1 
                                   
                                   ) 
                                 
                               
                             
                           
                         
                         
                           1 
                         
                       
                     
                     ] 
                   
                   × 
                   
                     [ 
                     
                       
                         
                           1 
                         
                         
                           
                             
                               - 
                               
                                 r 
                                 β 
                               
                             
                             ⁢ 
                             tan 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               2 
                               
                                 - 
                                 β 
                               
                             
                           
                         
                       
                       
                         
                           
                             
                               r 
                               β 
                             
                             ⁢ 
                             tan 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               2 
                               
                                 - 
                                 β 
                               
                             
                           
                         
                         
                           1 
                         
                       
                     
                     ] 
                   
                   ⁢ 
                   
                       
                   
                   ⁢ 
                   
                     
                       … 
                       ⁢ 
                       
                           
                       
                       [ 
                       
                         
                           
                             1 
                           
                           
                             
                               
                                 - 
                                 
                                   r 
                                   2 
                                 
                               
                               ⁢ 
                               tan 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 2 
                                 
                                   - 
                                   2 
                                 
                               
                             
                           
                         
                         
                           
                             
                               
                                 r 
                                 2 
                               
                               ⁢ 
                               tan 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 2 
                                 
                                   - 
                                   2 
                                 
                               
                             
                           
                           
                             1 
                           
                         
                       
                       ] 
                     
                     ⁡ 
                     
                       [ 
                       
                         
                           
                             
                               K 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               cos 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               ϕ 
                             
                           
                         
                         
                           
                             
                               K 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               sin 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               ϕ 
                             
                           
                         
                       
                       ] 
                     
                   
                 
               
             
             
               
                 ( 
                 11 
                 ) 
               
             
           
         
       
     
   
   What is needed is a DDFS design which improves on the conventional DDFS designs by, for example, reducing the number of stages requiring rotation. 
   SUMMARY OF THE DISCLOSURE 
   In accordance with a first aspect, a direct digital frequency synthesizer circuit is disclosed including a phase accumulator responsive to a frequency control word input to produce a sequence of truncated, normalized rotation angles and a mapping function circuit responsive to the phase accumulator circuit for producing one or more digital output signals including a sequence of values representing sine and/or cosine functions of the sequence of rotation angles related to the frequency control word input. The mapping function circuit includes a phase mapper and phase multiplier circuit responsive to the sequence of normalized rotation angles for producing a series of subangles, a minority-bit detector circuit responsive to the series of subangles to determine whether positive or no rotation operations, or alternately positive or negative or negative or no rotation operations, are in the minority in a subset of the series of subangles and a series of circuit stages in cascade for performing transformation operations responsive to the series of subangles to produce angle rotations corresponding to the series of subangles, the series of circuit stages including at least one minority-select rotation circuit stage for performing positive, negative or no rotation for a subset of transformation operations in response to the minority-bit detector circuit. 
   In accordance with another aspect, a method is disclosed for performing direct digital frequency synthesis by producing a sequence of truncated, normalized rotation angles in accordance with a frequency control word, producing a series of subangles from the sequence of truncated, normalized rotation angles, determining with respect to a subset of the series of subangles if positive or no rotation operations are in a minority in the subset and performing a series of transformation operations responsive to the series of subangles to produce one or more digital output signals including a sequence of values representing sine and/or cosine functions of the sequence of rotation angles related to the frequency control word input, the subset of transformations corresponding to the subset of the series of subangles being performed as positive, negative or no rotation operations in accordance with the type of rotation operations determined to be in the minority in order to reduce the total number of transformation operations required. 

   
     BRIEF DESCRIPTION OF THE DRAWINGS 
     The objects, features and advantages of the present invention will be apparent from the following detailed description of the preferred embodiment(s) of the invention with references to the drawings in which: 
       FIG. 1  is a block diagram illustration of a DDFS utilizing a minority-select algorithm. 
       FIG. 2  is a block diagram illustration of one of the minority-select butterfly stages represented in  FIG. 1 . 
       FIG. 3  is a block diagram illustration of output stage  38  shown in  FIG. 1 . 
   

   DETAILED DESCRIPTION OF THE INVENTION 
   Referring now to  FIG. 1 , an improved DDFS  10  is disclosed which takes advantage of a key property to allow “no rotation” stages and, via minority-bit detection, can completely eliminate a significant number of butterfly stages. 
   DDFS  10  includes phase accumulator  12  which receives a normalized input frequency control word, fcw  14 , and generates a sequence of samples of sine and/or cosine functions  16  and  18  having the precise frequency dictated by the input fcw  14 . Phase accumulator  12  includes overflowing adder  20  and feedback register  22 . In operation, phase accumulator  12  serves to accumulate fcw  14  to produce a normalized phase angle applied to sine/cosine mapping function SCMF  24  to produce sine/cosine outputs  16  and/or  18 , respectively. 
   A normalized rotation angle θ′, accumulator output angle  26 , is generated at the output of the phase accumulator  12  and is truncated in truncate operation  27  to provide an input angle {circumflex over (θ)}, input angle  28 , which is applied to SCMF  24 . The phase accumulator  12  may be an M-bit adder, repeatedly incrementing {circumflex over (θ)}′, output angle  26 , according to the input fcw  14 . The SCMF input {circumflex over (θ)}, input angle  28 , is obtained from θ′ by retaining the W most-significant bits of θ′. If the input fcw  14  and the output angle  26  are considered as binary purely fractional positive numbers, the normalized output angle  26  is determined by the equation: 
   
     
       
         
           
             
               
                 
                   θ 
                   ^ 
                 
                 = 
                 
                   
                     
                       
                         ⌊ 
                         
                           
                             2 
                             W 
                           
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           
                             θ 
                             ′ 
                           
                         
                         ⌋ 
                       
                       
                         2 
                         W 
                       
                     
                     . 
                   
                   ⁢ 
                   
                       
                   
                 
               
             
             
               
                 ( 
                 12 
                 ) 
               
             
           
         
       
     
   
   The SCMF  24  takes the truncated normalized phase angle {circumflex over (θ)}, as an input and generates the corresponding cos 2π{circumflex over (θ)} and sin 2π{circumflex over (θ)} at its outputs  16  and  18  which serve as approximations for their corresponding ideal values cos θ (or cos 2π{circumflex over (θ)}′) and sin θ (or sin 2πθ′), respectively. The truncation of output angle  26 , θ′, to produce the SCMF input angle  28 , {circumflex over (θ)}, commonly referred to as phase truncation, causes errors (deterministic, periodic errors, often referred to as noise) at the output of conventional DDFS devices and also manifests itself as a set of spurious frequencies or spurs (signal components at undesired frequencies) at the outputs of conventional DDFS devices. 
   In a DDFS configured in accordance with the conventional modified CORDIC approach, as shown for example in U.S. Pat. No. 5,737,253 discussed above, regardless of the overall rotation angle amount ω, the rotation stages always perform rotations (either positive or negative). In DDFS  10 , however, the final stages may perform a positive or negative rotation, as shown in rotational butterfly stages  30 , or no rotation as shown in minority-select butterfly stages  32 , in which the butterfly stage conditionally collapses to a trivial pass-through function as discussed below and with regard to  FIG. 2 . 
   In SCMF  24 , SCMF input angle  28  is applied as an input to phase mapper  36  and output swap and/or negate stage  38 . Phase mapper  36  and phase multiplier stage  40  produce the overall (un-normalized) rotation angle ω which is applied to minority-bit detector  34 , minority-select butterfly stages  32 , rotational butterfly stages  30  (if needed) as well as ROM stages  42 . In operation, phase mapper  36  and phase multiplier stage  40  can be used to provide sine and cosine values of any angle in the range in [0,2π) from the sine and cosine values of a related angle in the range [0,π/4] by the use of the interchange and negate operations performed in output stage  38 . For example, if θ=4π/3, then 
             sin   ⁢           ⁢   θ     =         -       3     2       ⁢           ⁢   and   ⁢           ⁢   cos   ⁢           ⁢   θ     =     -       1   2     .               
The same results can be computed from the angle
 
           ϕ   =     π   6           
through interchange and negate operations since
 
             sin   ⁢           ⁢       4   ⁢   π     3       =       -   cos     ⁢           ⁢     π   6             
and
 
             cos   ⁢           ⁢       4   ⁢   π     3       =       -   sin     ⁢           ⁢       π   6     .             
The phase mapper  36  performs the mapping of the SCMF input angle  28 , {circumflex over (θ)}, into the first-octant normalized angle φ representing the range [0, π/4]. The normalized angle {circumflex over (θ)} is remapped into a normalized angle φ by performing a conditional subtract operation as follows: First, the top two bits of {circumflex over (θ)} are stripped off (which removes the quadrant information) to create the temporary angle τ. Next, if the angle {circumflex over (θ)} is in an odd octant (its third MSB bit is ‘1’) then τ is subtracted from 0100 . . . 00 (the normalized value representing π/2) to produce the desired remapped angle φ. If the angle {circumflex over (θ)} is in an even octant (its third MSB bit is ‘0’) then τ simply becomes φ. In this embodiment the SCMF input angle  28  is mapped into an octant, but it may similarly be mapped into any other desired fixed angular range, such as a quadrant. Alternately, other mappings of [0,2π) into [0, π/4], along with other corresponding output-stage conditioned interchange and/or conditional negation operations can be employed to provide equivalent functionality, as would be evident to one skilled in the art.
 
   Minority-bit detector  34  makes the elimination of at least half the total number of final rotation stages always possible by the following observation. The overall rotation angle ω may be represented as the two summations 
                 ω   =         ∑     i   =   1       γ   -   1       ⁢       b   i     ⁢     ω   i         +       ∑     i   =   γ     N     ⁢       b   i     ⁢     ω   i                   (   13   )               
and, by applying the Modified CORDIC angle recoding r k =2b k−1 −1 only to the first of these summations, one obtains
 
                 ω   =       ϕ   1     +       ∑     i   =   2     γ     ⁢       r   i     ⁢     ω   i         +       ∑     i   =   γ     N     ⁢       b   i     ⁢     ω   i                   (   14   )               
with ω i =2 −i , r i  ε {−1,+1}, and b i  ε {0,+1} . The φ 1  and r i  in equation (14) are
 
                   r   i     =     {                 -   1     ⁢           ⁢   if   ⁢           ⁢     b     i   -   1         =   0                   +   1     ⁢           ⁢   if   ⁢           ⁢     b     i   ⁢           -           ⁢   1         =   1           ⁢     
     ⁢   and               (   15   )                 ϕ   1     =         ∑     i   =   2     γ     ⁢     ω   i       =       1   2     -       1     2   γ       .                 (   16   )               
Applying the angle decomposition in equation (14) to the butterfly stages  30  and  32  with the initial vector X 0 =1 and Y 0 =0 one obtains
 
                   [           cos   ⁢           ⁢   ω               sin   ⁢           ⁢   ω           ]     =       [           cos   ⁢           ⁢     b   N     ⁢     ω   N               -   sin     ⁢           ⁢     b   N     ⁢     ω   N                 sin   ⁢           ⁢     b   N     ⁢     ω   N             cos   ⁢           ⁢     b   N     ⁢     ω   N             ]     ⁢           ⁢     …   ⁢           [           cos   ⁢           ⁢     b   γ     ⁢     ω   γ               -   sin     ⁢           ⁢     b   γ     ⁢     ω   γ                 sin   ⁢           ⁢     b   γ     ⁢     ω   γ             cos   ⁢           ⁢     b   γ     ⁢     ω   γ             ]     ×     [           cos   ⁢           ⁢     r   γ     ⁢           ⁢     ω   γ               -   sin     ⁢           ⁢     r   γ     ⁢           ⁢     ω   γ                 sin   ⁢           ⁢     r   γ     ⁢           ⁢     ω   γ             cos   ⁢           ⁢     r   γ     ⁢           ⁢     ω   γ             ]     ⁢           ⁢           …   ⁢           [           cos   ⁢           ⁢     r   2     ⁢           ⁢     ω   2               -   sin     ⁢           ⁢     r   2     ⁢           ⁢     ω   2                 sin   ⁢           ⁢     r   2     ⁢           ⁢     ω   2             cos   ⁢           ⁢     r   2     ⁢           ⁢     ω   2             ]     ⁡     [           cos   ⁢           ⁢     ϕ   1               -   sin     ⁢           ⁢     ϕ   1                 sin   ⁢           ⁢     ϕ   1             cos   ⁢           ⁢     ϕ   1             ]       ⁡     [         1           0         ]       .               (   17   )               
Factoring cos r i ω i  and cos b i ω i  out of all butterfly stages, applying tan r i ω i =r i  tans ω i , and combining
 
                 [           cos   ⁢           ⁢     ϕ   1               -   sin     ⁢           ⁢     ϕ   1                 sin   ⁢           ⁢     ϕ   1             cos   ⁢           ⁢     ϕ   1             ]     ⁡     [         1           0         ]       =     [           cos   ⁢           ⁢     ϕ   1                 sin   ⁢           ⁢     ϕ   1             ]       ,         
equation (17) can be rewritten as
 
                   [           cos   ⁢           ⁢   ω               sin   ⁢           ⁢   ω           ]     =       [         1           -     b   N       ⁢   tan   ⁢           ⁢     ω   N                   b   N     ⁢   tan   ⁢           ⁢     ω   N           1         ]     ⁢           ⁢     …   ⁢           [         1           -     b   γ       ⁢   tan   ⁢           ⁢     ω   γ                   b   γ     ⁢   tan   ⁢           ⁢     ω   γ           1         ]     ×     [           ⁢         1           -     r   γ       ⁢   tan   ⁢           ⁢     ω   γ                   r   γ     ⁢   tan   ⁢           ⁢     ω   γ           1         ]     ⁢           ⁢       …   ⁢           [         1           -     r   2       ⁢   tan   ⁢           ⁢     ω   2                   r   2     ⁢   tan   ⁢           ⁢     ω   2           1         ]     ⁡     [           K   c               K   s           ]                 (   18   )               
where
 
             K   c     =     cos   ⁢           ⁢     ϕ   1     ⁢       ∏     i   =   γ     N     ⁢     cos   ⁢           ⁢     b   i     ⁢     ω   i     ⁢       ∏     i   =   2     γ     ⁢     cos   ⁢           ⁢     ω   i                             K   s     =     sin   ⁢           ⁢     ϕ   1     ⁢       ∏     i   =   γ     N     ⁢     cos   ⁢           ⁢     b   i     ⁢     ω   i     ⁢       ∏     i   =   2     γ     ⁢     cos   ⁢           ⁢     ω   i                     
We also observe that, for the product of all cosine terms
 
             ∏     i   =   γ     N     ⁢     cos   ⁢           ⁢     b   i     ⁢     ω   i     ⁢       ∏     i   =   2     γ     ⁢     cos   ⁢           ⁢     r   i     ⁢           ⁢     ω   i                 
since r i  ε {−1,+1} then cos r i ω i =cos ω i , but since b i  ε {0,+1} cos b i ω i ≠cos ω i , and
 
             ∏     i   =   γ     N     ⁢           ⁢     cos   ⁢           ⁢     b   i     ⁢     ω   i     ⁢       ∏     i   =   2     γ     ⁢           ⁢     cos   ⁢           ⁢     ω   i                 
is no longer a constant, but rather depends on the set {b N , . . . , b γ }. Nevertheless, with the appropriate choice of γ from inequality (20), where B indicates the desired accuracy of the approximation in equation (19) in terms of the number of fractional bits, applying the approximation equation (19) produces the constants
 
             K   c     =     cos   ⁢           ⁢     ϕ   1     ⁢       ∏     i   =   2     γ     ⁢           ⁢     cos   ⁢           ⁢     ω   i                     and               K   s     =     sin   ⁢           ⁢     ϕ   1     ⁢       ∏     i   =   2     γ     ⁢           ⁢     cos   ⁢           ⁢     ω   i                 
while preserving adequate precision.
 
   
     
       
         
           
             
               
                 
                   
                     K 
                     s 
                   
                   
                     sin 
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     
                       ϕ 
                       1 
                     
                   
                 
                 = 
                 
                   
                     
                       K 
                       c 
                     
                     
                       cos 
                       ⁢ 
                       
                           
                       
                       ⁢ 
                       
                         ϕ 
                         1 
                       
                     
                   
                   ≈ 
                   
                     
                       ∏ 
                       
                         i 
                         = 
                         2 
                       
                       γ 
                     
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     
                       cos 
                       ⁢ 
                       
                           
                       
                       ⁢ 
                       
                         2 
                         
                           - 
                           i 
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 19 
                 ) 
               
             
           
           
             
               
                 γ 
                 ≥ 
                 
                   ⌈ 
                   
                     
                       B 
                       - 
                       1 
                     
                     2 
                   
                   ⌉ 
                 
               
             
             
               
                 ( 
                 20 
                 ) 
               
             
           
         
       
     
   
   Similar to the Modified-CORDIC DDFS algorithm, a ROM provides sine and cosine values for the various algebraic sums of the first β subangles ±ω k  that are not sufficiently small to employ the approximation tan ω k ≈ω k . The angles become successively smaller for each successive stage and the remaining angles after these first β angles satisfy the approximation tan ω k ≈ω k  to a desired accuracy. The sine and cosine values provided by the multiplexer are then input to the subsequent rotation stages, which perform the above rotations to calculate the sine and cosine values for the desired angle. Rather than using a multiplexer, a small ROM table can also be used to perform the same function. 
   The introduced angle decomposition in equation (21) 
                   ω   =       ϕ   1     +       ∑     i   =   2     γ     ⁢       r   i     ⁢     ω   i         +       ∑     i   =   γ     N     ⁢       b   i     ⁢     ω   i             ,           (   21   )               
therefore, gives rise to equation (22)
 
   
     
       
         
           
             [ 
             
               
                 
                   
                     cos 
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     ω 
                   
                 
               
               
                 
                   
                     sin 
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     ω 
                   
                 
               
             
             ] 
           
           = 
           
             
               [ 
               
                 
                   
                     1 
                   
                   
                     
                       
                         - 
                         
                           b 
                           N 
                         
                       
                       ⁢ 
                       
                         2 
                         
                           - 
                           N 
                         
                       
                     
                   
                 
                 
                   
                     
                       
                         b 
                         N 
                       
                       ⁢ 
                       
                         2 
                         
                           - 
                           N 
                         
                       
                     
                   
                   
                     1 
                   
                 
               
               ] 
             
             ⁢ 
             
                 
             
             ⁢ 
             
               
                 … 
                 ⁢ 
                 
                     
                 
                 [ 
                 
                   
                     
                       1 
                     
                     
                       
                         
                           - 
                           
                             b 
                             γ 
                           
                         
                         ⁢ 
                         
                           2 
                           
                             - 
                             γ 
                           
                         
                       
                     
                   
                   
                     
                       
                         
                           b 
                           γ 
                         
                         ⁢ 
                         
                           2 
                           
                             - 
                             γ 
                           
                         
                       
                     
                     
                       1 
                     
                   
                 
                 ] 
               
               ⨯ 
               
                   
               
               ⁢ 
               
                 [ 
                 
                   
                     
                       1 
                     
                     
                       
                         
                           - 
                           
                             r 
                             γ 
                           
                         
                         ⁢ 
                         
                           2 
                           
                             - 
                             γ 
                           
                         
                       
                     
                   
                   
                     
                       
                         
                           r 
                           γ 
                         
                         ⁢ 
                         
                           2 
                           
                             - 
                             γ 
                           
                         
                       
                     
                     
                       1 
                     
                   
                 
                 ] 
               
             
             ⁢ 
             
               
                 … 
                 ⁡ 
                 
                   [ 
                   
                     
                       
                         1 
                       
                       
                         
                           
                             - 
                             
                               r 
                               
                                 β 
                                 + 
                                 1 
                               
                             
                           
                           ⁢ 
                           
                             2 
                             
                               - 
                               
                                 ( 
                                 
                                   β 
                                   + 
                                   1 
                                 
                                 ) 
                               
                             
                           
                         
                       
                     
                     
                       
                         
                           
                             r 
                             
                               β 
                               + 
                               1 
                             
                           
                           ⁢ 
                           
                             2 
                             
                               - 
                               
                                 ( 
                                 
                                   β 
                                   + 
                                   1 
                                 
                                 ) 
                               
                             
                           
                         
                       
                       
                         1 
                       
                     
                   
                   ] 
                 
               
               ⨯ 
             
           
         
       
     
   
                   [         1           -     r   β       ⁢   tan   ⁢           ⁢     2     -   β                     r   β     ⁢   tan   ⁢           ⁢     2     -   β             1         ]     ⁢           ⁢       …   ⁢           [         1           -     r   2       ⁢   tan   ⁢           ⁢     2     -   2                     r   2     ⁢   tan   ⁢           ⁢     2     -   2             1         ]     ⁡     [           K   c               K   s           ]               (   22   )               
which can be interpreted as follows.
 
   The constants 
             K   c     =     cos   ⁢           ⁢     ϕ   1     ⁢       ∏     i   =   2     γ     ⁢           ⁢     cos   ⁢           ⁢     ω   i                     and               K   s     =     sin   ⁢           ⁢     ϕ   1     ⁢       ∏     i   =   2     γ     ⁢           ⁢     cos   ⁢           ⁢     ω   i                 
provide appropriate scaling
 
           ∏     i   =   2     γ         
cos ω i  and rotation of the initial vector (1,0) by an angle φ 1 . This angle φ 1  corresponds to the sum of all half-angle values associated with the first γ−1 rotation stages. Each of the first γ−1 rotation stages either rotates positive (counter-clockwise) by the remaining half-angle amount to complete the full angle rotation or rotates negative (clockwise) by the already rotated half-angle amount to “derotate” the initial rotation and provide an overall rotation of zero. Since φ 1  provides the half-angle rotations for only the initial γ−1 stages, the following rotation stages, such as minority select butterfly stages  32 , either rotate by the full angle amount or perform no rotations.
 
   In the Modified CORDIC approach, regardless of the overall rotation angle amount ω, the rotation stages always perform rotations (either positive or negative). 
   Unlike in the Modified CORDIC approach, with the angle decomposition equation (21) providing an initial rotation φ 1 , the final stages may perform a positive rotation or no rotation. In the case of no rotation the butterfly stage collapses to a trivial pass-through. For example, in a DDFS implementation where the final five rotation stages correspond to i≧γ, then depending on ω, either all of these five stages, some of the five stages, or none of the stages may need to perform rotations. Most frequently there will be a stage that need not perform a rotation and it may be collapsed to a pass through. Unfortunately, none of these final five stages can be eliminated to reduce the overall hardware since all of them will be required to perform nonzero rotations for some ω (i.e., when b γ b γ+1 , . . . b N−1 b N =‘11 . . . 11’.) Stages corresponding to i≧γ will be referred to as the final rotation stages. 
   The minority-select approach makes the elimination of at least half the total number of final rotation stages always possible by the following observation. The angle decomposition in equation (21) allows “no rotation” for each final rotation stage corresponding to a bit b i =0. On the other hand, when b i =1 the rotation stage performs the full rotation by the angle ω i =2 −i . One may modify the initial angle φ 1  to include the sum of all full angle amounts corresponding to the final rotation stages. This modified initial angle will be denoted as φ 0  to distinguish it from φ 1 . With 
             ϕ   0     =         ∑     i   =   2     γ     ⁢     ω   i       +       ∑     i   =   γ     N     ⁢     ω   i               
as the initial rotation angle, when b i =1 the rotation has already been done with φ 0  and the corresponding final rotation stage need not perform any rotation. In case b i =0 the corresponding final rotation stage needs to perform a negative (clockwise) rotation by the full angle amount to cancel out that initial rotation component introduced by φ 0 . Therefore, there may be values of ω that require all final rotation stages to perform nonzero rotations (i.e., when b γ b γ+1 , . . . b N−1 b N =‘00 . . . 00’.)
 
   The angle decomposition with φ 0  is 
                 ω   =       ϕ   0     +       ∑     i   =   2     γ     ⁢       r   i     ⁢     ω   i         -       ∑     i   =   γ     N     ⁢         b   _     i     ⁢     ω   i                   (   23   )               
with ω i =2 −i , r i  ε {−1,+1}, and  b   i  ε {0,+1}. The φ 0 , r i  and  b   i  in equation (23) are
 
                   ϕ   0     =           ∑     i   =   2     γ     ⁢     ω   i       +       ∑     i   =   γ     N     ⁢     ω   i         =       1   2     -     1     2   N       +     1     2   γ                   (   24   )                 r   i     =     {           -   1             if   ⁢           ⁢     b     i   -   1         =   0               +   1             if   ⁢           ⁢     b     i   -   1         =   1                     (   25   )                     b   _     ⁢             i     =     {         1           if   ⁢           ⁢     b   i       =   0             0           if   ⁢             ⁢             ⁢     b   i       =   1.                     (   26   )               
A derivation similar to the one that leads from equations (21) to (22) will produce
 
                   [           cos   ⁢           ⁢   ω               sin   ⁢           ⁢   ω           ]     =       [         1             b   _     N     ⁢     2     -   N                     -       b   _     N       ⁢     2     -   N             1         ]     ⁢           ⁢       …   ⁢           [         1             b   _     γ     ⁢     2     -   γ                     -       b   _     γ       ⁢     2     -   γ             1         ]     ⨯     [         1           -     r   γ       ⁢     2     -   γ                     r   γ     ⁢     2     -   γ             1         ]       ⁢           ⁢       …   ⁢           [         1           -     r     β   +   1         ⁢     2     -     (     β   +   1     )                       r     β   +   1       ⁢     2     -     (     β   +   1     )               1         ]     ⨯     [         1           -     r   β       ⁢   tan   ⁢           ⁢     2     -   β                     r   β     ⁢   tan   ⁢           ⁢     2     -   β             1         ]       ⁢           ⁢       …   ⁢           [         1           -     r   2       ⁢   tan   ⁢           ⁢     2     -   2                     r   2     ⁢   tan   ⁢           ⁢     2     -   2             1         ]     ⁡     [           K   c               K   s           ]                 (   27   )               
from equation (23) where
 
   
     
       
         
           
             K 
             c 
           
           = 
           
             cos 
             ⁢ 
             
                 
             
             ⁢ 
             
               ϕ 
               0 
             
             ⁢ 
             
               
                 ∏ 
                 
                   i 
                   = 
                   2 
                 
                 γ 
               
               ⁢ 
               
                   
               
               ⁢ 
               
                 cos 
                 ⁢ 
                 
                     
                 
                 ⁢ 
                 
                   ω 
                   i 
                 
               
             
           
         
       
     
     
       
         and 
       
     
     
       
         
           
             K 
             s 
           
           = 
           
             sin 
             ⁢ 
             
                 
             
             ⁢ 
             
               ϕ 
               0 
             
             ⁢ 
             
               
                 ∏ 
                 
                   i 
                   = 
                   2 
                 
                 γ 
               
               ⁢ 
               
                   
               
               ⁢ 
               
                 cos 
                 ⁢ 
                 
                     
                 
                 ⁢ 
                 
                   
                     ω 
                     i 
                   
                   . 
                 
               
             
           
         
       
     
   
   The critical observation that leads to the elimination of at least half of the final rotation stages is that, given a sequence of b i  corresponding to the final rotation stages for any ω, the number of b i =1 and b i =0 are either equal to one another, or there are more ones than zeros, or there are more zeros than ones. Therefore, if there are more ones than zeros (i.e., if the minority bit is a ‘0’), then the initial angle can be made φ 0  and more than half of the final rotation stages will always perform “no rotations” since more than half of the b i  are ‘1’. If there are more zeros than ones (i.e., if the minority bit is a ‘1’), then the initial angle can be made φ 1  and, again, more than half of the final rotation stages will always perform “no rotations” since more than half of the b i  are ‘0’. In the event that the number of zeros and ones are equal, which is only possible if there is an even number of final rotation stages (i.e., if N−γ is odd), then the initial angle can be made φ 0  or φ 1  and exactly half of the final rotation stages will always perform “no rotations”. Therefore, by making the initial rotation angle φ depend on the minority bit, half or more than half of the final rotation stages can be completely eliminated. 
   In operation, minority-bit detector  34  receives the b γ b γ+1  . . . b N−1 b N  least-significant portion of the angle at the output of the phase multiplier stage  40 , and generates a minority bit signal depending on whether the minority of the b γ b γ+1  . . . b N−1 b N  bits are ‘1’ or ‘0’ bits. The minority-bit detector  34  also generates shift and zero signals for the minority-select stages from the input b γ b γ+1  . . . b N−1 b N  bits. 
   The ability to perform a variable shift instead of a fixed shift operation in the final rotation stages may be necessary to facilitate the elimination of at least half of the rotation stages. For example, if there is a total of N=13 rotation stages and γ=7, then the final seven rotation stages corresponding to bits {b 7 ,b 8 ,b 9 ,b 10 ,b 11 ,b 12 ,b 13 } of ω can be reduced to only three rotation stages by appropriately choosing the initial angle φ 0  or φ 1  depending on the Minority-bit corresponding to the set {b 7 ,b 8 , b 9 , b 10 , b 11 ,b 12 ,b 13 } at hand With the Minority-bit selection one will, in this case, require at most three rotations, but in general 
           ⌊       N   -   γ   +   1     2     ⌋         
rotations will be required. In the conventional CORDIC and Modified CORDIC butterfly stages, the amount of rotation is fixed (i.e., the off-diagonal elements in the 2×2 matrices of equations (22) and (27) are fixed shifts to implement a multiplication by 2 −i .) With the Minority-bit selection one knows the maximum number of possible rotations but that does not specify the rotation amounts. For the above discussed example, if there are two b i =1 and five b i =0 in the set {b 7 ,b 8 ,b 9 ,b 10 ,b 11 ,b 12 ,b 13 }, then the minority bit is a ‘1’ and, with an initial angle of φ 1 , only two rotations are necessary. One of the three rotation stages will need to perform no rotation. The other two stages will perform non-zero rotations but these rotation amounts depend on the specific indices i for which the two b i =1. To accommodate this, the final
 
           ⌊       N   -   γ   +   1     2     ⌋         
butterfly stages may employ an ability to perform a variable shift to appropriately control the rotation amount. Furthermore, they also need the ability to zero-out the multiplication terms to collapse into a pass-through for the no-rotation cases.
 
   The selection of the initial rotation angle φ 0  or φ 1  can be done by constructing two lookup tables, such as minority  0  ROM  46  and minority  1  ROM  48  in rotation ROM stages  42  for the initial β−1 rotation stages. Minority  0  ROM  46  has contents corresponding to φ 0  and minority  1  ROM  48  has contents corresponding to φ 1 . The Minority bit from minority-bit detector  34  may then be used to select the appropriate lookup table output from ROMs  46  or  48 . Usually a lookup table such as ROM  46  or  48  is small in size and the area penalty for duplicating it is smaller than the area savings gained from the complete elimination of at least half of the final rotation stages. Furthermore, since, depending on the Minority bit, only one of the lookup tables is utilized at a particular time, the Minority bit itself can also be used to disable the toggling of the unused lookup table address bits to further decrease power consumption. 
   The desirable DDFS performance specification (i.e., DDFS output accuracy) is determined by a variety of DDFS design parameters such as, for example, the number of DDFS output bits. The required accuracy of approximation (19), which dictates a certain achievable DDFS performance level, is captured by B in inequality (20). The appropriate choice of B, in turn, impacts the minimum value of DDFS design parameter γ via the inequality (20). The practical implications of the value of γ is the boundary point between the rotational butterfly stages  30  and the minority select butterfly stages  32 . Similarly, the choice of β for ROM  46  and ROM  48  dictates the boundary point between the ROM stages  42  and the rotational butterfly stages  30 . Therefore, the choice of β=γ makes the boundary point between the ROM stages  42  and the rotational butterfly stages  30  and the boundary point between the rotational butterfly stages  30  and the minority select butterfly stages  32  become coincidental, hence, completely eliminating the existence of rotational butterfly stages  30 . Given a desirable DDFS performance specification, the choice of β=γ may or may not be feasible, which means that the necessity for the absence or presence of rotational butterfly stages  30 , respectively, is also dictated by the target DDFS performance specification. 
   The butterfly stages  30  may be implemented in accordance with the embodiments shown in U.S. Pat. No. 5,737,253 referenced above. For example, each butterfly stage may include a pair of multipliers and a pair of adder/subtractors. In operation, the multipliers determine the amount of rotation and the adder/subtractors determine the direction of the rotation. When the rotation is positive, the adder/subtractor producing the X output performs a subtraction operation and the adder/subtractor producing the Y output perform an addition operation. When the rotation is negative, on the other hand, the adder/subtractor producing the X output performs an addition operation while the adder/subtractor producing the Y output perform a subtraction operation. 
   Referring now to  FIG. 3 , output stage  38  receives cos ω and/or sin ω from the output of the last minority-select butterfly stage  32  as well as the MSB bits  51  of the mapping function input angle  28 , {circumflex over (θ)}, from truncate stage  27  to produce outputs  18 , cos 2π{circumflex over (θ)}, and/or  16 , sin 2π{circumflex over (θ)}. In an embodiment using an octant configuration, output stage  38  performs the necessary conditional exchange and conditional negate operations at the output. The interchange and negate functions are a function of the top three MSB bits of the angle {circumflex over (θ)} (the octant information). The input cos ω and since are interchanged when the exclusive-OR function  50  on the second MSB  54  and 3rd MSB  56  is ‘1’, otherwise the inputs are not interchanged. If the exclusive-OR functions on the first MSB  58  and second MSB  54  is ‘1’, the cosine output  18  is generated by negating, in conditional negate  60 , the corresponding output from the conditional interchange function  55 . Alternatively, if the exclusive-OR function  52  on the first MSB  58  and second MSB  54  is ‘0’, the cosine output  18  is simply the corresponding output from the conditional interchange function  55 . The sine output  16  is produced from the corresponding output of the conditional interchange function  55  by performing a negation in conditional negation  62  only when the first MSB  58  is a ‘1’. 
   Referring now to  FIG. 2 , the ability to perform positive or negative rotation, which is also a function of the Minority bit, can be simply controlled by adder/subtractors  44  and  46  in minority-select butterfly stage  32   a , depicted in more detail. In operation, minority bit flag  64  is applied to adder/subtractors  44  and  46  to dictate the direction of rotation. A positive rotation corresponds to a subtraction at adder/subtractor  44  and an addition at adder/subtractor  46  if the flag is set. A negative rotation corresponds to an addition at adder/subtractor  44  and a subtraction at adder/subtractor  46  if the flag is not set. Shift value  68  is applied to shifters  70 , the outputs of which are applied to non-inverted inputs of AND gates  66  and  69 . The inverted inputs to AND gates  66  and  69  are provided by Zero Rotation Flag  72  which, if set, effectively passes the input signals through Minority-select butterfly stage  32   a  without rotation.