1. Field of the Invention
The present invention relates to the field of digital signal processing. More particularly the invention relates to an improved FFT/IFFT processor.
2. Background of the Invention
The class of Fourier transforms that refer to signals that are discrete and periodic in nature are known as Discrete Fourier Transforms (DFT). The discrete Fourier transform (DFT) plays a key role in digital signal processing in areas such as spectral analysis, frequency domain filtering and poly-phase transformations.
The DFT of a sequence of length N can be decomposed into successively smaller DFTs. The manner in which this principle is implemented falls into two classes. The first class is called a “decimation in time” approach and the second is called a “decimation in frequency” method. The first derives its name from the fact that in the process of arranging the computation into smaller transformations the sequence “x(n)” (the index ‘n’ is often associated with time) is decomposed into successively smaller subsequences. In the second general class the sequence of DFT coefficients “x(k)” is decomposed into smaller subsequences (k denoting frequency). The present concept of the invention applies to both “decimation in time” as well as “decimation in frequency”.
Since the amount of storing and processing of data in numerical computation algorithms is proportional to the number of arithmetic operations, it is generally accepted that a meaningful measure of complexity, or of the time required to implement a computational algorithm, is the number of multiplications and additions required. The direct computation of the DFT requires “4N2” real multiplications and “N(4N−2)” real additions. Since the number of computations and thus the computation time is approximately proportional to “N2” it is evident that the number of arithmetic operations required to compute the DFT by the direct method becomes very large for large values of “N”. For this reason, computational procedures that reduce the number of multiplications and additions are of considerable interest. The Fast Fourier Transform (FFT) is an efficient algorithm for computing the DFT.
The basic computational block is called a “butterfly” a name derived from the appearance of flow of the computations involved in it.
X[k]=x[n]+x[n+N/2]WNk
X[k+N/2]=x[n]−x[n+N/2]WNk
An FFT butterfly calculation is implemented by a z-point data operation wherein “z” is referred to as the “radix”. An “N” point FFT employs “N/z” butterfly units per stage (block) for “logz N” stages. The result of one butterfly stage is applied as an input to one or more subsequent butterfly stages.
The conventional method of implementing an FFT or Inverse Fourier Transform (IFFT) uses a radix-2/radix-4/mixed-radix approach with either “decimation in time (DIT)” or a “decimation in frequency (DIF)” approach.
Computational complexity for an N-point FFT calculation using the radix-2 approach=O(N/2 * log2N) where “N” is the length of the transform. There are exactly “N/2 * log2N” butterfly computations, each including 3 complex loads, 1 complex multiply, 2 complex adds and 2 complex stores. A full radix-4 implementation on the other hand requires several complex load/store operations.
With the advancement of VLSI technology, it has become possible to incorporate several execution units like ALUs (Arithmetic and Logic unit) and multipliers in the processor cores, thereby permitting computational throughput to be increased. All these advancements may be utilized to enhance the performance of FFT/IFFT in terms of total time required to complete a FFT/IFFT of a given size. If we look at the basic butterfly structure of
U.S. Pat. No. 5,293,330 describes a pipelined processor for mixed size FFT. These and many more works have dealt with enhancement of the performance of FFT/IFFT. The performance can further be improved with the implementation of the present invention.
Our co-pending application reference number 127/Del/2003, which is incorporated herein by reference, describes an algorithm, which is suitable for use with the proposed architecture for loading/storing inputs/outputs of multiple consecutive butterflies with only one load/store instruction.
An object of the present invention is to overcome the bottleneck of memory load/store and provide a device and method for implementing FFT/IFFT with improved performance using less silicon area and hence cost.
To achieve this and other objects, the present invention provides an improved FFT/IFFT processor comprising:
computation means capable of processing butterfly operations;
storage means for storing the operands of butterfly operations;
a mechanism for storing the operands of multiple consecutive butterfly operations in contiguous storage locations and wherein the computation means is capable of simultaneously accessing and processing said multiple butterfly operations.
The mechanism can be an address generator that constructs the addresses of the operands of multiple consecutive butterfly operations by introducing a ‘0’ and/or ‘1’ at a predetermined bit location in the addresses of the operands of consecutive butterflies of the same stage.
The predetermined location for introducing a bit for constructing the addresses of the operands of multiple consecutive butterfly operation depends upon the number of the FFT/IFFT stage which is being computed.
The simultaneous accessing and processing of said multiple butterfly operations is achieved by providing augmentation of data buses and registers.
The twiddle factors of the butterfly are computed by initializing a counter and then incrementing it by a value corresponding to the number of contiguous butterflies which are to be computed simultaneously and appending the result with a specified number of “0”s.
The invention further provides an improved method for FFT/IFFT processing comprising:
providing computation means capable of processing butterfly operations;
storing the operands of multiple consecutive butterfly operations in contiguous storage locations, and;
simultaneously accessing and processing said multiple butterfly operations.
The operands of multiple consecutive butterfly operations are stored in contiguous memory locations by constructing the addresses of the operands of multiple consecutive butterfly operations by introducing a ‘0’ and/or ‘1’ at a predetermined bit location in the addresses of the operands of consecutive butterflies of the same stage.
The multiple consecutive butterfly operations are simultaneously processed by providing augmented data buses and registers in the computation unit.
The present invention will now be explained with reference to the accompanying drawings.
In one implementation (a two processor system) of the invention each processor comprises of one or more ALUs (Arithmetic Logic unit), multiplier units, data cache, and load/store units. Each processor has an autnomous memory and the distribution of butterflies is such that there is no inter-processor communication required after the distribution of data. The distributions of data into different memory blocks take place after “log2P” stages where “P” is the number of processors.
According to the invention, the addresses of inputs to the multiple contiguous butterflies in a stage (ith stage) of an FFT/IFFT of size N having number of stages (Log2N) K is generated by initiating a counter that counts from ‘0’ to ‘N/2−1’ and then constructing the input address of the first input of each butterfly by introducing ‘0’ at (i+1)th location from the Least Significant Bit (LSB) of the counter value and the second input addresses are constructed by introducing ‘1’ at (i+1)th location from the Least Significant Bit (LSB) of the counter value as shown in
Further, for generating addresses of the twiddle factor in a stage ‘i’, for each processor j(where j=0,1,2, . . . (P−1)) another counter is initiated with values from ‘0’ to ‘P−1’ wherein ‘P’ is the total number of the processor in the system, then the address of twiddle factor is constructed by appending {(K−1)−(i+2)} number of zeroes to the additional counter value. For generating twiddle factor address of the next butterfly in same stage ‘i’ the additional counter value is incremented by number of contiguous butterflies which are to be computed simultaneously and subsequently appending {(K−1)−(i+2)} zeroes to get the new additional counter value.
Inter-processor communication takes place only before and after all the computations have been completed. The amount of data communication overhead does not increase with an increase in the number of processors.
It will be apparent to those with ordinary skill in the art that the foregoing is merely illustrative and not intended to be exhaustive or limiting, having been presented by way of example only and that various modifications can be made within the scope of the above invention.
Accordingly, this invention is not to be considered limited to the specific examples chosen for purposes of disclosure, but rather to cover all changes and modifications, which do not constitute departures from the permissible scope of the present invention. The invention is therefore not limited by the description contained herein or by the drawings, but only by the claims.
Number | Date | Country | Kind |
---|---|---|---|
1520/DEL/2003 | Dec 2003 | IN | national |