Abstract:
A method for calculating frequency offset using arc tangent calculations according to real part and imaginary part input values received externally. The method includes converting arc tangent equations for determining frequency offset into equations to perform log calculations; calculating frequency offset using linear approximation and the converted log equations; and dividing the real part input value to bit values of a predetermined size to realize a size similar to that of the imaginary part input value if a range of the frequency offset value to be calculated is small. With the use of the method, hardware area and power consumption may be reduced, and precise frequency offset may be calculated.

Description:
BACKGROUND OF THE INVENTION  
         [0001]    (a) Field of the Invention  
           [0002]    The present invention relates to a method for calculating frequency offset in an orthogonal frequency division multiplexing system, and more particularly, to a frequency offset calculation method that uses log transforms and linear approximation.  
           [0003]    (b) Description of the Related Art  
           [0004]    If in orthogonal frequency division multiplexing an offset occurs between transmission and reception frequencies by the imprecision in an oscillator and a difference in carrier wave frequencies of a transmission side and a receiving side, interference between channels results. Also, if this offset accumulates, precise fast Fourier transform (FFT) is unable to be performed on the receiving side to thereby prevent the ability to demodulate data.  
           [0005]    Therefore, frequency offset must be obtained by only a short training sequence in an orthogonal frequency division multiplexing system. At this time, frequency offset may be obtained using two or more consecutive and identical training sequence phase differences.  
           [0006]    In more detail, if a period of the training sequence Y[n] is N, two training sequence samples received in an interval of N samples are as shown in the following equations.  
                 Y        [   n   ]       =       1   N            ∑     k   =   0       N   -   1                         X        [   k   ]       ·          j2π                     n        (     k   +   ɛ0     )       /   N                      
            Y        [     n   +   N     ]       =       1   N            ∑     k   =   0       N   -   1                         X        [   k   ]       ·          j2π                     n        (     k   +   ɛ1     )       /   N                         [     Equation                 1     ]                               
 
           [0007]    where X[k] is an Nth carrier wave channel, ε0 is the frequency offset normalized in Y[n], and ε1 is the frequency offset normalized in Y[n+N]. At this time, the phase difference in the received two training sequence samples is calculated using the following equation.  
           2πε=2π(ε0−ε1)=∠{ Y[n]*·Y[n+N]}   [Equation 2] 
           [0008]    where Y[n]* indicates the conjugate value of Y[n], and ∠ is the phase angle calculated using tan −1 .  
           [0009]    Next, if over the entire length the affect of noise is eliminated by obtaining the integral by as many as N samples, the frequency offset is obtained as follows.  
             ɛ   =       1     2      π            ∠        [       ∑     n   =   0       N   -   1            {         Y        [   n   ]       *     ·     Y        [     n   +   N     ]         }       ]                 [     Equation                 3     ]                               
 
           [0010]    In the case where the frequency offset is obtained using this method, an approximate frequency offset is found using a short training sequence, which has a short length and is repeated many times, or a precise frequency offset is obtained using a long training sequence, which has a long length and is only repeated two times. The former case is referred to as coarse frequency offset searching, while the latter case is referred to as fine frequency offset searching.  
           [0011]    Such a method has been used in conventional orthogonal frequency division multiplexing systems and adopted in standards. An example of this method will be described with reference to FIG. 1.  
           [0012]    [0012]FIG. 1 is a drawing of a training sequence structure according to the IEEE 802.11a standard. An equation for calculating frequency offset when the two training sequences are Y[n]=I 1 +jQ 1  and Y[n]=I 2 +jQ 2  is as follows.  
             ɛ   =         1     2      π                 N            ∠        (         Y        [   n   ]       *     ·     Y        [     n   +   N     ]         )         =         1     2      π                 N            ∠        (         I   1          I   2       +       Q   1          Q   2       +     j        (         I   1          Q   2       -       I   2          Q   1         )         )         =         1     2      π                 N            ∠        (       E   I     +     j                   E   Q         )         =       1     2      π                 N              tan     -   1            (       E   Q       E   I       )                       [     Equation                 4     ]                               
 
           [0013]    An example of logic used to perform this calculation is shown in FIG. 2.  
           [0014]    [0014]FIG. 2 is a drawing showing a structure of logic used to obtain a frequency offset value in an orthogonal frequency division multiplexing system. When calculating frequency offset using the illustrated logic, it is necessary to use the arc tangent (tan −1 ), and this is performed using a look-up table as shown in FIG. 3.  
           [0015]    As shown in the drawings, the arc tangent look-up table receives the real part E 1  and the imaginary part E Q , and outputs the value of  
         1     2      π                 N                tan     -   1            (       E   Q       E   I       )       .                           
 
           [0016]    In the case where each of the inputs of the real part E 1  and the imaginary part E Q  is 4 bits, 16×16=256 bits are needed for the arc tangent look-up table.  
           [0017]    Further, if the number of bits of each the real part E 1  and the imaginary part E Q  is increased to enhance the precision in the resulting value, the size of the look-up table is exponentially increased. This is particularly problematic in fine frequency offset searching in which the difference in the real part and imaginary part values is large and precise calculations are required. For example, if each of the real part and imaginary part is 8 bits, a look-up table of 2 8 ×2 8 =65,536 bits is needed.  
           [0018]    An increase in the size of the arc tangent table as a result of more bits for the real part and imaginary part of training sequences results in an increase in hardware area and power consumption.  
           [0019]    In a related patent, Samsung Electro Mechanics disclosed Korean Patent Publication No. 10-2000-17523 entitled Frequency Offset Precision Compensation Method for High-Speed Wireless LAN. In this patent, efforts are made to enhance the performance of the high-speed wireless LAN by reducing the size of the arc tangent look-up table used to calculate frequency offset. However, a separate, additional logic is required in this patent to reduce the size of the arc tangent look-up table.  
           [0020]    Accordingly, there is a need for a simple logic calculation method for the calculation of frequency offset that minimizes hardware area and power consumption.  
         SUMMARY OF THE INVENTION  
         [0021]    It is one object of the present invention to provide a method for use in an orthogonal frequency division multiplexing system that uses log transforms and linear approximation to perform arc tangent calculations for determining frequency offset, thereby reducing hardware area and power consumption.  
           [0022]    In one embodiment, the present invention provides a method for calculating frequency offset using arc tangent calculations according to real part and imaginary part input values received externally. The method includes a) converting arc tangent equations for determining frequency offset into equations to perform log calculations; b) calculating frequency offset using linear approximation and the converted log equations; and c) dividing the real part input value to bit values of a predetermined size to realize a size similar to that of the imaginary part input value if a range of the frequency offset value to be calculated is small.  
           [0023]    The converted log equations is,  
           tan     -   1            (       E   Q       E   I       )       =       tan     -   1            (            log                   E   Q       -     log                   E   I           )                             
 
           [0024]    where E I  is the real part input value and E Q  is the imaginary part input value. 
       
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0025]    The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate an embodiment of the invention, and, together with the description, serve to explain the principles of the invention:  
         [0026]    [0026]FIG. 1 is a drawing showing an IEEE 802.11a training sequence structure;  
         [0027]    [0027]FIG. 2 is a drawing showing an entire structure of logic used to obtain a frequency offset value in an orthogonal frequency division multiplexing system;  
         [0028]    [0028]FIG. 3 is a drawing showing a structure of logic used calculate a frequency offset value using an arc tangent look-up table;  
         [0029]    [0029]FIG. 4 is a drawing showing a structure of logic used to calculate a frequency offset using log transforms and linear approximation according to a preferred embodiment of the present invention;  
         [0030]    [0030]FIG. 5 is a graph comparing real values with approximation values when calculating arc tangent values using linear approximation according to a preferred embodiment of the present invention;  
         [0031]    [0031]FIG. 6 is a drawing showing a structure of logic used to calculate a frequency offset using log transforms and linear approximation in the case where a difference between real part and imaginary part input values is large according to a preferred embodiment of the present invention; and  
         [0032]    [0032]FIG. 7 is a drawing showing a structure of logic used to perform division or multiplication using log transforms and linear approximation according to a preferred embodiment of the present invention. 
     
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS  
       [0033]    Preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings.  
         [0034]    [0034]FIG. 4 is a drawing showing a structure of logic used to calculate a frequency offset using log transforms and linear approximation according to a preferred embodiment of the present invention.  
         [0035]    With respect to two sequences having a length L and that are repeated, the first sequence is stored in a shift register and when the second sequence arrives, a correlation value of the two sequences is obtained in a correlator that is to a rear of the shift register to determine the degree of correlation between the two sequences. The correlator performs the calculation of Equation 4 presented above through hardware. Accumulators perform an accumulation calculation for a sufficient duration of time on I and Q results of the correlator to obtain average values of the I and Q results. These average values are used to perform arc tangent calculations to obtain frequency offset.  
         [0036]    Conversion is performed through log calculations using the following equation such that log transforms are used to calculate frequency offset. Such conversion into a log format is done to allow for calculations using an adder instead of a divider since a divider requires more time to perform its operations than an adder.  
                 tan     -   1            (       E   Q       E   I       )       =       tan     -   1            (            log                   E   Q       -     log                   E   I           )               [     Equation                 5     ]                               
 
         [0037]    The log transforms are calculated using a look-up table. In the preferred embodiment of the present invention, a single look-up table is used for both the real part E I  and the imaginary part E Q . As a result, the size of the table (i.e., log look-up table) used in calculating frequency offset may be significantly decreased.  
         [0038]    That is, if a number of bits of the real part input E I  and the imaginary part input E Q  is N, unlike the 2 N ×2 N  number of bits needed in the conventional arc tangent table, the number of bits required in the log look-up table in the preferred embodiment of the present invention is 2 N  bits. With such a reduction in the size of the log look-up table, decreases in hardware area and power consumption may be realized.  
         [0039]    When performing log transforms, because of the non-linear characteristic of log functions, if the input value is small an extremely small value will result, while if the input value is large a state of saturation is approached so that it is difficult to determine what the actual resulting value is. Because of this characteristic, the number of bits for the input is described as being 4 bits in the preferred embodiment of the present invention. However, the present invention is not limited to this value and it is possible to use more or less bits for the input.  
         [0040]    In particular, in the coarse frequency offset calculation method, the desired level of precision may be obtained by using an input of 4 bits. However, in the fine frequency offset calculation method where a greater degree of precision is required, since the real part input of E I  is bigger than the imaginary part input of E Q , Equation 5 is changed as follows using log function characteristics and the calculation is performed using this equation.  
                 tan     -   1            (       E   Q       E   I       )       =         tan     -   1            (            log                   E   Q       -     {       log                   (     0.1   *     E   I       )       +     log        (   10   )         }         )       =       tan     -   1            (     0.1   *            log                   E   Q       -     log                   (     0.1   *     E   I       )             )                 [     Equation                 6     ]                               
 
         [0041]    Since with this equation the value of the large real part input E I  is divided into suitable values and compared with the imaginary part input E Q , the same log transform table may be used in the offset calculation when there is a big difference in the two values.  
         [0042]    After calculating the exponent using log calculations in tan −1 (e log E     Q     −log E     I   ), the remaining tan −1 (e x ) is calculated using the log look-up table. In this case, since the value of the base-e exponent is extremely large, linear approximation is used in the preferred embodiment of the present invention.  
         [0043]    Describing linear approximation of the non-linear function in more detail, the graph of tan −1 (e x ) is relatively linear in between +π and −π, and this may be approximated with a certain number of straight lines. For example, in the case of an input of 4 bits (having values from 1 to 15), approximation may be performed using three straight lines. The equation used for this process is as follows.  
                         log        (     E   Q     )       -     log        (     E   I     )         ≤       -   1.5                     :        y       =     0.3667   +     0.1000   *     (       log        (     E   Q     )       -     log        (     E   I     )         )                         -   1.5     &lt;       log        (     E   Q     )       -     log        (     E   I     )         ≤       -   1.5                     :        y       =     0.7854   +     0.4329   *     (       log        (     E   Q     )       -     log        (     E   I     )         )                       1.5   &lt;       log        (     E   Q     )       -       log        (     E   I     )                       :        y         =     1.2667   +     0.1000   *     (       log        (     E   Q     )       -     log        (     E   I     )         )                       [     Equation                 7     ]                               
 
         [0044]    If this function is approximated using five lines, the following equation is used.  
                         log        (     E   Q     )       -     log        (     E   I     )         ≤       -   2                     :        y       =     0.2837   +     0.0780   *     (       log        (     E   Q     )       -     log        (     E   I     )         )                         -   2     &lt;       log        (     E   Q     )       -     log        (     E   I     )         ≤       -   1                     :        y       =     0.5397   +     0.2059   *     (       log        (     E   Q     )       -     log        (     E   I     )         )                         -   1     &lt;       log        (     E   Q     )       -     log        (     E   I     )         ≤     1                   :        y       =     0.7854   +     0.4329   *     (       log        (     E   Q     )       -     log        (     E   I     )         )                       1   &lt;       log        (     E   Q     )       -     log        (     E   I     )         ≤     2                   :        y       =     1.0003   +     0.2180   *     (       log        (     E   Q     )       -     log        (     E   I     )         )                       2   &lt;       log        (     E   Q     )       -       log        (     E   I     )                       :        y         =     1.2667   +     0.0848   *     (       log        (     E   Q     )       -     log        (     E   I     )         )                       [     Equation                 8     ]                               
 
         [0045]    Results of a simulation using this process were as follows. In the case where three straight lines are used for approximation, a maximum error of 15% and an average error of 4% result. If five straight lines are used for approximation, a maximum error of 7% and an average error of 0.5% results. Such errors become greater when the desired resulting values are within a small frequency range. This is because the same error represents a larger percentage of a number that is small.  
         [0046]    Further, when more precise calculations are required, either a greater number of straight lines may be used for approximation or an interval of the frequency offset to be obtained is estimated and approximation is performed in that area using more straight lines. That is, the degree of complication of the linear approximation may be varied according to the range of permissible error.  
         [0047]    [0047]FIG. 5 is a graph comparing a trace of tan −1  (e x ) approximated using five straight lines and a trace of tan −1  (e x ) using real values. As shown in the graph, the difference between the two traces is extremely small.  
         [0048]    Accordingly, with the use of the log look-up table when calculating frequency offset, the preferred embodiment of the present invention not only reduces the overall area of hardware but also increases the precision in the resulting values by utilizing linear approximation.  
         [0049]    As described briefly above, if the real part input E I  is significantly greater than the imaginary part input E Q , the real part input value E I  is divided into suitable bit values M to allow for the log function to be calculated in a relatively linear region. Logic that performs this process is shown in FIG. 6.  
         [0050]    [0050]FIG. 6 is a drawing showing a structure of logic used to calculate a frequency offset using log transforms and linear approximation in the case where a difference between real part and imaginary part input values is large according to a preferred embodiment of the present invention.  
         [0051]    As shown in FIG. 6, the real part input value E I  is divided into bit values M of a predetermined size to allow for calculation in a relatively linear region.  
         [0052]    In the case where a log transform table, an adder, and linear approximation as described above are used, a general multiplier and divider as shown in FIG. 7 may also be realized. FIG. 7 is a drawing showing a structure of logic used to perform division or multiplication using log transforms and linear approximation according to a preferred embodiment of the present invention.  
         [0053]    The logic of FIG. 7 may be used in place of a log look-up table in the case where the region of the input values is small and there is a certain permissible error level. Further, even with such application, if the difference in the input values is large, a suitable value is used for multiplication or division of the real part or imaginary part as shown in FIG. 6 so that the log function is calculated in a relatively linear region.  
         [0054]    In the method for calculating frequency offset using log transforms and linear approximation of the present invention, when calculating frequency offset, which requires multiplication, division, and non-linear calculations with respect to two or more inputs, a small log look-up table for log transforms, an adder, and linear approximation equations are used such that hardware area and power consumption are reduced, and precision in the resulting values is obtained.  
         [0055]    Although preferred embodiments of the present invention have been described in detail hereinabove, it should be clearly understood that many variations and/or modifications of the basic inventive concepts herein taught which may appear to those skilled in the present art will still fall within the spirit and scope of the present invention, as defined in the appended claims.