The present invention is related to digital processing techniques and, more particularly, to techniques for digital processing of complex exponential functions.
Digital signal processors (DSPs) are special-purpose processors utilized for digital processing. Signals are often converted from analog form to digital form, manipulated digitally, and then converted back to analog form for further processing. Digital signal processing algorithms typically require a large number of mathematical operations to be performed quickly and efficiently on a set of data.
DSPs thus often incorporate specialized hardware to perform software operations that are often required for math-intensive processing applications, such as addition, multiplication, multiply-accumulate (MAC), and shift-accumulate. A Multiply-Accumulate architecture, for example, recognizes that many common data processing operations involve multiplying two numbers together, adding the resulting value to another value and then accumulating the result. Such basic operations can be efficiently carried out utilizing specialized high-speed multipliers and accumulators.
A vector processor implements an instruction set containing instructions that operate on vectors (i.e., one-dimensional arrays of data). The scalar DSPs, on the other hand, have instructions that operate on single data items. Vector processors offer improved performance on certain workloads.
DSPs and vector processors, however, generally do not provide specialized instructions to support complex exponential functions. Increasingly, however, there is a need for complex exponential operations in processors. For example, complex exponential operations are needed when a first complex number is multiplied by a second complex number. The complex exponential function is important as it provides a basis for periodic signals as well as being able to characterize linear, time-invariant signals.
A need therefore exists for digital processors, such as DSPs and vector processors, having an instruction set that supports a complex exponential function.
Generally, a digital processor is provided having an instruction set with a complex exponential function. According to one aspect of the invention, the disclosed digital processor evaluates a complex exponential function for an input value, x, by obtaining one or more complex exponential software instructions having the input value, x, as an input; and in response to at least one of the complex exponential software instructions, perform the following steps: invoking at least one complex exponential functional unit that implements the one or more complex exponential software instructions to apply the complex exponential function to the input value, x; and generating an output corresponding to the complex exponential of the input value, x.
According to another aspect of the invention, the disclosed digital processor evaluates a complex exponential function for an input value, x by wrapping the input value to maintain a given range; computing a coarse approximation angle using a look-up table using a number of most significant bits (MSBs) of the input value; scaling the coarse approximation angle to obtain an angle from 0 to ∂; and computing a fine corrective value using a polynomial approximation. The polynomial approximation comprises, for example, a Taylor Series, such as a cubic approximation.
The digital processor executes software instructions from program code and can be, for example, a vector processor or a scalar processor. In one variation, symmetry properties are used to reduce a size of the look-up table. In addition, an angle can optionally be accumulated within the complex exponential function and a complex exponential of an argument and/or a current accumulation value can be returned. In another variation, an input signal is multiplied by an exponential of an argument of the complex exponential function.
A more complete understanding of the present invention, as well as further features and advantages of the present invention, will be obtained by reference to the following detailed description and drawings.
Aspects of the present invention provide a digital processor that supports a complex exponential function using a two-step coarse and fine estimate approach. Generally, one or more look-up tables store coarse estimate values for at least a portion of the computation of a complex exponential function, such as exp (j*2*π*x). Further aspects of the present invention recognize that a Taylor series approximation can be employed to compute a fine correction for the complex exponential function when the dynamic range of the input value is limited, as discussed further below.
As used herein, the term “digital processor” shall be a processor that executes instructions in program code, such as a DSP or a vector processor. It is further noted that the disclosed complex exponential function can be applied for values of x that are scalar or vector inputs.
The present invention can be applied in handsets, base stations and other network elements.
Generally, if the digital processor 100 is processing software code that includes a predefined instruction keyword corresponding to a complex exponential function and any appropriate operands for the function, the instruction decoder must trigger the appropriate complex exponential functional units 110 that is required to process the instruction. It is noted that a complex exponential functional unit 110 can be shared by more than one instruction.
Generally, aspects of the present invention extend conventional digital processors to provide an enhanced instruction set that supports complex exponential functions using one or more look-up tables. The digital processor 100 in accordance with aspects of the present invention receives at least one real number as an input, applies a complex exponential function to the input and generates an output value.
The disclosed digital processors 100 may have a scalar architecture, as shown in
The disclosed complex exponential functions may be employed, for example, for digital up-conversion or modulation of baseband signals and other signal processing requiring the multiplication of two numbers, such as Fast Fourier Transform (FFT) algorithms.
As shown in
During step 230, the complex exponential function computation process 200 scales the angular result of step 220 to obtain an angle from 0 to θ, where θ is a small value. Finally, during step 240, the complex exponential function computation process 200 computes a fine corrective exp(j*2π*ε) value using a Taylor Series, as discussed further below. It has been found that a quadratic Taylor Series expansion gives sufficient accuracy compared to a 2K table.
Mathematically, the operations performed by the complex exponential function computation process 200 can be expressed as follows:
2π·x←2π·x mod [2π] (1)
x=x0+ε (2)
The first term in equation (2) provides a value in the range 0 to 15/16 and the second term in equation (2) provides a value that is below 1/16. Equation (2) can be expressed as follows:
exp(j2π·x)=exp(j2π·x0)·exp(j2π·ε) (3)
The first term in equation (3) is the coarse phase estimate obtained from the look-up table 120, as discussed further below in conjunction with
Polynomial Approximation of Complex Exponential Functions
Aspects of the present invention recognize that a fine correction for the complex exponential function can be approximated using a Taylor series. Thus, a complex exponential function, exp(j*2*pi*x), can be expressed as:
In addition, the present invention recognizes that a cubic approximation (i.e., including up to x3 in the Taylor series) or a quadratic approximation (i.e., including up to x4 in the Taylor series) typically provides sufficient accuracy. The following table illustrates the exemplary error for cubic and quadratic approximations, in comparison to a 2K look-up table:
Generally, the vector-based digital processor 400 processes a vector of inputs x and generates a vector of outputs, exp(j·2π·x) The exemplary vector-based digital processor 400 is shown for a 16-way vector processor expj instruction implemented as:
vec_expj(x1, x2, . . . , x16), range of x[k] from 0 to 1
In one variation, the size of the look-up table can be reduced by making use of symmetry. For example, a sine wave oscillates up and down, so top and bottom symmetry can be leveraged to reduce the look-up table in half (0 to π/2) or even using quarter symmetry (0 to π/4). In yet another variation, the complex exponential function can accumulate an angle within the function (i.e., the function also performs an increment of the angle that is applied to the input data, by a fixed amount or an angular amount passed with the function call). The complex exponential function with angular accumulation can return two results, the argument of the exponential and the current accumulation.
In another variation, the disclosed complex exponential (j−Θ) function can also be employed for modulation to multiply an input signal x by the exponential of the argument j−Θ. This operation can optionally be performed by the complex exponential instruction (or a Complex Multiply-Accumulate (CMAC) unit) so that the exponential of the argument is computed and the result is multiplied by the input signal x.
While exemplary embodiments of the present invention have been described with respect to digital logic blocks and memory tables within a digital processor, as would be apparent to one skilled in the art, various functions may be implemented in the digital domain as processing steps in a software program, in hardware by circuit elements or state machines, or in combination of both software and hardware. Such software may be employed in, for example, a digital signal processor, application specific integrated circuit or micro-controller. Such hardware and software may be embodied within circuits implemented within an integrated circuit.
Thus, the functions of the present invention can be embodied in the form of methods and apparatuses for practicing those methods. One or more aspects of the present invention can be embodied in the form of program code, for example, whether stored in a storage medium, loaded into and/or executed by a machine, wherein, when the program code is loaded into and executed by a machine, such as a processor, the machine becomes an apparatus for practicing the invention. When implemented on a general-purpose processor, the program code segments combine with the processor to provide a device that operates analogously to specific logic circuits. The invention can also be implemented in one or more of an integrated circuit, a digital processor, a microprocessor, and a micro-controller.
It is to be understood that the embodiments and variations shown and described herein are merely illustrative of the principles of this invention and that various modifications may be implemented by those skilled in the art without departing from the scope and spirit of the invention.
The present application claims priority to U.S. Patent Provisional Application Ser. No. 61/552,242, filed Oct. 27, 2011, entitled “Software Digital Front End (SoftDFE) Signal Processing and Digital Radio,” incorporated by reference herein. The present application is related to U.S. patent application Ser. No. 12/324,926, entitled “Digital Signal Processor Having Instruction Set with One or More Non-Linear Complex Functions;” and U.S. patent application Ser. No. 12/362,879, entitled “Digital Signal Processor Having Instruction Set With An Exponential Function Using Reduced Look-Up Table,” each filed Nov. 28, 2008 and incorporated by reference herein.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/US2012/062191 | 10/26/2012 | WO | 00 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2013/063447 | 5/2/2013 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
5276633 | Fox et al. | Jan 1994 | A |
5864689 | Tran | Jan 1999 | A |
5926406 | Tucker et al. | Jul 1999 | A |
5990894 | Hu et al. | Nov 1999 | A |
6018556 | Janesch et al. | Jan 2000 | A |
6038582 | Arakawa | Mar 2000 | A |
6128638 | Thomas | Oct 2000 | A |
6151682 | Van Der Wal et al. | Nov 2000 | A |
6446193 | Alidina et al. | Sep 2002 | B1 |
6529992 | Thomas | Mar 2003 | B1 |
6741662 | Francos et al. | May 2004 | B1 |
6844880 | Lindholm et al. | Jan 2005 | B1 |
7110477 | Suissa et al. | Sep 2006 | B2 |
7441105 | Metzgen | Oct 2008 | B1 |
7461116 | Allen | Dec 2008 | B2 |
7715656 | Zhou | May 2010 | B2 |
7752419 | Plunkett et al. | Jul 2010 | B1 |
7912883 | Hussain | Mar 2011 | B2 |
8783140 | Dick | Jul 2014 | B2 |
20030041083 | Jennings, III et al. | Feb 2003 | A1 |
20030154226 | Khmelnik | Aug 2003 | A1 |
20040073588 | Jennings, III | Apr 2004 | A1 |
20050008096 | Iwasaki et al. | Jan 2005 | A1 |
20050065990 | Allen | Mar 2005 | A1 |
20050108002 | Nagai et al. | May 2005 | A1 |
20050177605 | Sudhakar | Aug 2005 | A1 |
20050182811 | Jennings et al. | Aug 2005 | A1 |
20070112902 | Dance et al. | May 2007 | A1 |
20090006514 | Kountouris | Jan 2009 | A1 |
20090037504 | Hussain | Feb 2009 | A1 |
20090079599 | McGrath | Mar 2009 | A1 |
20100138468 | Azadet et al. | Jun 2010 | A1 |
20100198893 | Azadet et al. | Aug 2010 | A1 |
20100198894 | Azadet et al. | Aug 2010 | A1 |
20110055303 | Slavin | Mar 2011 | A1 |
20110056344 | Dick | Mar 2011 | A1 |
20110302230 | Ekstrand | Dec 2011 | A1 |
20130211576 | Dick | Aug 2013 | A1 |
20150073579 | Dick | Mar 2015 | A1 |
Number | Date | Country |
---|---|---|
2000-200261 | Jul 2000 | JP |
Entry |
---|
Haber, “The complex logarithm, exponential and power functions”, Winter 2011, http://scipp.ucsc.edu/˜haber/ph116A/clog—11.pdf. |
Walter Penney, A ‘Binary’ System for Complex Numbers, Nov. 29, 2011, NSA, https://www.nsa.gov/public—info/—files/tech—journals/A—Binary—System.pdf. |
Office action with summarized English translation from Japanese Patent Application No. 2014-539061, mailed May 24, 2016, 6 pages. |
Number | Date | Country | |
---|---|---|---|
20140075162 A1 | Mar 2014 | US |
Number | Date | Country | |
---|---|---|---|
61552242 | Oct 2011 | US |