US20030120692A1 - Real-time method and apparatus for performing a large size fast fourier transform - Google Patents

Real-time method and apparatus for performing a large size fast fourier transform Download PDF

Info

Publication number
US20030120692A1
US20030120692A1 US10/025,870 US2587001A US2003120692A1 US 20030120692 A1 US20030120692 A1 US 20030120692A1 US 2587001 A US2587001 A US 2587001A US 2003120692 A1 US2003120692 A1 US 2003120692A1
Authority
US
United States
Prior art keywords
data points
stage
data
sub
sets
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
US10/025,870
Other versions
US6963892B2 (en
Inventor
Dongxing Jin
Ping Wan
Leonard Marziliano
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nokia Canada Inc
Original Assignee
Tropic Networks Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tropic Networks Inc filed Critical Tropic Networks Inc
Priority to US10/025,870 priority Critical patent/US6963892B2/en
Assigned to TROPIC NETWORKS INC. reassignment TROPIC NETWORKS INC. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: JIN, DONGXING, MARZILIANO, LEONARD, WAN, PING WAI
Priority to CA002386711A priority patent/CA2386711A1/en
Publication of US20030120692A1 publication Critical patent/US20030120692A1/en
Application granted granted Critical
Publication of US6963892B2 publication Critical patent/US6963892B2/en
Assigned to 6467253 CANADA INC. reassignment 6467253 CANADA INC. CHANGE OF NAME (SEE DOCUMENT FOR DETAILS). Assignors: TROPIC NETWORKS INC.
Assigned to 6467253 CANADA INC. reassignment 6467253 CANADA INC. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: TROPIC NETWORKS INC.
Assigned to ALCATEL-LUCENT CANADA INC. reassignment ALCATEL-LUCENT CANADA INC. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: TROPIC NETWORKS INC.
Assigned to TROPIC NETWORKS INC. reassignment TROPIC NETWORKS INC. CORRECTIVE ASSIGNMENT TO CORRECT THE ASSIGNEE AND ASSIGNOR FIELDS PREVIOUSLY RECORDED ON REEL 021127 FRAME 0665. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNOR IS TO BE 6467253 CANADA INC. AND THE ASSIGNEE IS TO BE TROPIC NETWORKS INC.. Assignors: 6467253 CANADA INC.
Adjusted expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/14Fourier, Walsh or analogous domain transformations, e.g. Laplace, Hilbert, Karhunen-Loeve, transforms
    • G06F17/141Discrete Fourier transforms
    • G06F17/142Fast Fourier transforms, e.g. using a Cooley-Tukey type algorithm

Definitions

  • This invention relates to signal processing, and more particularly to frequency analysis of signals.
  • a common task in signal processing is to determine a frequency spectrum of a received signal, given a signal sampling in the time domain.
  • Digital Signal Processing discrete samples of the signal are taken in time.
  • a Discrete Fourier Transform is applied to the samples, and the frequency spectrum is calculated.
  • the frequency spectrum is also discrete, each value indicating the contribution of a different frequency bin to the signal.
  • the execution time of the Discrete Fourier Transform for N frequency domain samples is on the order of N 2 .
  • the determination of the frequency spectrum can be vastly accelerated using a Fast Fourier Transform (FFT).
  • the execution time of the FFT is proportional to N log 2 N.
  • the proportionality factors are of the same order of magnitude, so even for a sample size as low as 1000 samples the FFT is about 100 times faster than the Discrete Fourier Transform. For this reason, the FFT is a critical tool in determining the frequency spectrum of most practical signals.
  • the FFT achieves this speed advantage by effectively breaking the analysis down into a series of smaller analyses, and reconstructing the results.
  • the FFT is faster because n analyses of two samples is faster than one analysis of 2 n samples.
  • the FFT is performed in two steps: decomposition and synthesis. (There is a third, intermediate step of frequency determination, but nothing is done at this step other than realizing that each time sample now represents a frequency sample. No calculations are carried out.)
  • the signal of N samples is then decimated repeatedly, leaving N signals of one sample each. As part of the decimation, the samples are reordered in a particular manner.
  • the N signals of one sample (which now represent frequencies) are repeatedly combined in pairs until a single signal of N frequency samples is obtained.
  • the resulting single signal is the frequency spectrum of the original signal.
  • the combination of frequency signals occurs in stages.
  • the number of signals is halved and the number of samples in each signal is doubled, so a signal having N samples will require log 2 N stages during the synthesis step.
  • larger size signals (called blocks) are generated in turn.
  • new frequency samples are generated in turn from two frequency samples, one from each of two lower size signals, using a butterfly calculation. All frequency samples within a block are generated from frequency samples from the same two lower size blocks.
  • the N signals of one frequency sample will have been combined into a single signal of N frequency samples.
  • a processor performing the FFT must import a limited amount of data across a bus into internal memory, perform part of the FFT to produce new data, and export the new data to external memory.
  • the processor performs one butterfly calculation at a time to generate one new frequency sample. This requires one import and one export of data per butterfly calculation, or (N log 2 N)/2 imports and exports per synthesis.
  • N log 2 N)/2 imports and exports per synthesis.
  • the memory access time will constrain the speed of the FFT for large sample sizes in which much data must be exchanged between external and internal memory.
  • Various methods and apparatus for performing a fast Fourier transform (FFT) computation on large data sizes in real time are provided.
  • the speed at which a FFT is performed is increased by reducing the number of times a Direct Memory Access (DMA) unit must transfer data between an internal memory and an external memory.
  • DMA Direct Memory Access
  • This is achieved through an algorithm in which data is imported from the external memory into the internal memory and having the CPU perform several calculations on the imported data before it is exported back to the external memory.
  • the imported data in the internal memory has a structure that results in a reduction of the number of times the imported data is swapped between different layers of the internal memory during the FFT computation.
  • the DMA unit import/exports data between the internal memory and the external memory while at the same time having the CPU perform calculations on other data in the internal memory.
  • a method of performing a k-stage FFT computation of N data points wherein k and N are integers includes performing a number of operations upon the N data points. For each one of the operations, respective sets of data points of the N data points are imported from an external memory into an internal memory. A FFT computation of the k-stage FFT computation is then performed upon each one of the respective sets of data points in the internal memory. The respective sets of data points of the N data points are then exported from the internal memory into the external memory. This is done to update the respective sets of data points of the N data points in the external memory.
  • a method of performing a k-stage FFT computation of N data points wherein k and N are integers.
  • the k-stages are grouped into a number of stage groupings of at least one stage.
  • For each one of the stage groupings a number of respective operations are performed on the N data points.
  • For each operation respective sets of data points of the N data points are imported from an external memory into an internal memory.
  • a FFT computation is then performed upon each one of the respective sets of data points of the N data points in the internal memory.
  • the respective sets of data points of the N data points are then exported from the internal memory into the external memory. This is done to update the respective sets of data points of the N data points in the external memory.
  • other sets of data points of the N data points for a next iteration may be imported into the internal memory while FFT computations are being performed upon each one of the respective sets of data points of the N data points in the internal memory.
  • sets of data points of the N data points from a previous iteration may be exported from the internal memory while FFT computations are being performed upon each one of the respective sets of data points of the N data points in the internal memory.
  • I of the Q stage groupings wherein I may be an integer satisfying 0 ⁇ I ⁇ Q ⁇ 1, the N data points may be grouped into 2 IS blocks of data of N/2 IS respective data points.
  • the N/2 IS respective data points may also be grouped into 2 S sub-blocks of data of N/2 IS+S respective data points.
  • the N/2 IS+S respective data points may be grouped into M 1 sub-sub-blocks of data of N/(2 IS+S M 1 ) respective data points wherein M 1 may be an integer.
  • a respective sub-sub-block of data of the M 1 sub-sub-blocks of data may be taken from each one of the 2 S sub-blocks of data to maybe form a set of 2 S sub-sub-blocks of data of N/(2 IS M 1 ) data points. This may be done a total of M 1 times to produce M 1 sets of 2 S sub-sub-blocks of data of N/(2 IS M 1 ) data points.
  • a respective data point may be taken from each one of the 2 S sub-blocks of data to maybe form a set of 2 S data points. This may be done a total of N/(2 IS+S M 1 ) times to maybe produce N/(2 IS+S M 1 ) sets of 2 S data points.
  • M 1 of the operations may be performed for each one of the 2 IS blocks of data within the stage grouping, I. Furthermore, for each one of the M 1 of the operations, respective N/(2 IS+S M 1 ) sets of 2 S data points may be imported from the external memory into the internal memory. An S-stage FFT computation of the k-stage FFT computation may then be performed upon each set of 2 S data points of the respective N/(2 IS+S M 1 ) sets of 2 S data points in the internal memory. The respective N/(2 IS+S M 1 ) sets of 2 S data points may then be exported from the internal memory into the external memory to update the respective N/(2 IS+S M 1 ) sets of 2 S data points in the external memory.
  • the internal memory may have a buffer, for storing data points, with a capacity to hold M I data points and D may satisfy D ⁇ log 2 (M I ).
  • the internal memory may have a double buffer having two buffers for storing data points. Each one of two buffers may have a capacity to hold M I /2 data points and D may satisfy D ⁇ log 2 (M I /2).
  • a processor has an internal memory used to store data.
  • the processor also has a DMA (direct memory access) unit and a central processor unit (CPU).
  • the DMA unit is used to import data into the internal memory and to export data from the internal memory.
  • the k-stages of the of the k-stage FFT computation are grouped into a number of stage groupings of at least one stage and for each one of the stage groupings the CPU is used to perform a number of respective operations on the N data points.
  • the CPU is used to: 1) provide instructions to the DMA unit for importing respective sets of data points, of N data points, into the internal memory; 2) perform a FFT computation upon each one of the respective sets of data points, of the N data points, in the internal memory; and 3) provide instructions to the DMA unit for exporting the respective sets of data points, of the N data points, from the internal memory. This may be done to update the respective sets of data points of the N data points.
  • the processor may have an external memory that may be used to store the N data points.
  • the processor may also have one or more buses. In such embodiments, any data may be imported and exported through the buses.
  • the processor may have a double buffer having two buffers and the processor may also have two buses, one for each of the two buffers.
  • the CPU may instruct the DMA unit to import a set of data points which will be operated on in a next iteration while the CPU performs FFT computations on other sets of data points.
  • the CPU may instruct the DMA unit to export a set of data points from a previous iteration while the CPU performs FFT computations on other sets of data points.
  • an article of manufacture has a computer usable medium having computer readable program code for performing a k-stage FFT computation of N data points.
  • k and N are integers and k stages of the k-stage stage FFT computation are grouped into a plurality of stage groupings each having at least one stage.
  • the computer readable program code is used to perform, for each one of the stage groupings, a number of respective operations on the N data points.
  • the computer readable program code has further computer readable program code used to: 1) provide instructions for importing respective sets of data points of the N data points from an external memory into an internal memory; 2) perform a FFT computation upon each one of the respective sets of data points of the N data points in the internal memory; and 3) provide instructions for exporting the respective sets of data points of the N data points from the internal memory into the external memory.
  • FIG. 1A is a diagram of a conventional 3-stage FFT (fast Fourier transform) computation using decimation in frequency (DIF);
  • FIG. 1B is diagram of a butterfly computation performed upon two data points X(k) and X(l) of FIG. 1A;
  • FIG. 1C is a diagram of bit reversal operations for data points of FIG. 1A;
  • FIG. 1D is a diagram of a k-stage FFT computation of N data points using DIF;
  • FIG. 1E is a flow chart of a method used to perform the k-stage FFT computation of N data points of FIG. 1D;
  • FIG. 2A is a block diagram of a processing platform used to perform the k-stage FFT computation of FIGS. 1D and 1E;
  • FIG. 2B is another block diagram of a processing platform used to perform the k-stage FFT computation of FIGS. 1D and 1E;
  • FIG. 3A is a block diagram of a processing platform used to perform a FFT computation, provided by an embodiment of the invention.
  • FIG. 3B is a block diagram of a processing platform used to perform a FFT computation, provided by another embodiment of the invention.
  • FIG. 3C is a flow chart of a method used by the processing platforms of FIGS. 3A and 3B to perform the FFT computations;
  • FIG. 4A is a flow chart of a method used to perform sets of 3-stage FFT computations used in the FFT computations of FIG. 3C;
  • FIG. 4B is a diagram of the 3-stage FFT computations of FIG. 4A;
  • FIG. 4C is a flow chart of a method of performing the 3-stage FFT computations of FIG. 4B;
  • FIG. 4D is a flow chart of a method of performing the 3-stage FFT computations of FIG. 4B, provided by another embodiment of the invention.
  • FIG. 5A is a diagram of one of the 3-stage FFT computations of FIG. 4B using DIF;
  • FIG. 5B is a diagram of one of 12 butterfly computations of the 3-stage FFT computation of FIG. 5A;
  • FIG. 6A is a diagram of sub-sub-blocks of data being of imported into an internal memory form an external memory and being exported from the internal memory back to the external memory, for one of two sets of 3-stage FFT computations of FIG. 3C;
  • FIG. 6B is a diagram of sub-sub-blocks of data being of imported into the internal memory form the external memory and being exported from the internal memory back to the external memory, for another one of two sets of 3-stage FFT computations of FIG. 3C;
  • FIG. 7A is a flow chart of a method used to perform a set of 12-stage FFT computations of FIG. 3C;
  • FIG. 7B is a diagram of sub-blocks of data being of imported into the internal memory form the external memory and being exported from the internal memory back to the external memory, for the set of 12-stage FFT computations of FIG. 7A;
  • FIG. 8A is a diagram of one of the 3-stage FFT computations of FIG. 4B using decimation in time (DIT);
  • FIG. 8B is a diagram of one of 12 butterfly computations of the 3-stage FFT computation of FIG. 8A.
  • FIG. 9 is a flow chart of a method of performing Q sets of S-stage FFT computations, in another embodiment of the invention.
  • FIG. 1A shown is a diagram of a conventional 3-stage FFT (fast Fourier transform) computation using decimation in frequency (DIF).
  • a FFT computation includes several computation over one or more stages.
  • a number of computations are performed at each one of three stages to produce the 3-stage FFT computation.
  • butterfly computations are performed at 410 for four butterflies 405 and new values for the data points X(i) result at 415 .
  • a computation is performed for each one of two points. As shown in FIG.
  • a butterfly computation is performed on two data points X(k) and X(l) (in the first stage 0 ⁇ k ⁇ 3 and 4 ⁇ l ⁇ 7) at 480 and 485 , respectively.
  • Two computations are performed at 481 and 486 and new values of X(k) and X(l) result at 490 and 495 , respectively.
  • the data points X(i) are re-ordered by applying a bit reversal algorithm on the index i.
  • a data point X(p) (0 ⁇ p ⁇ 7) of the data points X(i) requires to be mapped, using a bit reversal operation, onto a data point X(q) (0 ⁇ q ⁇ 7) of the data points X(i) wherein q corresponds to the bit reversal of p.
  • the N/2 butterflies are grouped into 2 r blocks of data 434 .
  • the N/2 butterflies are grouped into 2 r blocks of data 434 .
  • the N/2 butterflies are grouped into 2 r blocks of data 434 .
  • the N/2 butterflies are grouped into 2 r blocks of data 434 .
  • the N/2 butterflies are grouped into 2 r blocks of data 434 .
  • Computations for all butterflies within the blocks of data 434 must be done and a conventional method used to iterate through the butterflies of the k-stage FFT computation will now be described with reference to FIG. 1E.
  • FIG. 2A shown is a block diagram of a processing platform, used to perform the k-stage FFT computation of FIGS. 1D and 1E.
  • the processing platform generally indicated by 10 , includes a CPU (central processor unit) 12 , an internal memory 14 , a bus 16 , an external memory 18 , and a Direct Memory Access (DMA) unit 20 .
  • the internal memory 14 includes layers 24 and 26 wherein layer 24 corresponds to a high speed cache. As shown in FIG. 2B, in some cases the internal memory 14 includes only layer 26 and no high speed cache (the layer 24 is not present). In other cases, the internal memory may have one or more layers.
  • the internal memory 14 is directly accessible by the CPU 12 .
  • the CPU 12 When the CPU 12 needs to operate on data stored in layer 24 of the internal memory 14 , the CPU 12 retrieves the data directly from layer 24 . However, when the CPU 12 needs to operate on data stored in layer 26 the data is first moved into layer 24 before being retrieved by the CPU 12 . To free up memory in layer 24 in the event that layer 24 does not have enough memory to store both the data being retrieved and existing data residing in layer 24 , the existing data may be transferred to layer 26 before the data is moved to layer 24 . As such, the CPU 12 retrieves data stored in layer 24 faster than data stored in layer 26 . When the CPU 12 is finished processing the data, the CPU 12 overwrites the data stored in layer 24 with output data.
  • Data may also be stored in the external memory 18 but the external memory 18 is not directly accessible by the CPU 12 .
  • the CPU 12 issues a command to the DMA unit 20 to retrieve the data.
  • the DMA unit 20 accesses the data in the external memory 18 , and imports it across the bus 16 into the internal memory 14 , where the processor 12 can process the data.
  • memory must be freed up. To do so the DMA unit 20 accesses the existing data in the internal memory 14 , and exports it across the bus 16 into the external memory 18 before any data is moved into the internal memory 14 .
  • the processor 12 may generate output data.
  • the CPU 12 passes the output data back into the internal memory 14 .
  • the internal memory 14 may have 64K bytes of memory available for data storage whereas the external memory 18 may have, for example, 2.5M bytes of memory available for storage.
  • the memory available for storing data in the internal memory 14 is much smaller than the memory available in the external memory 18 . Therefore in performing a FFT computation of N data points the memory available in the external memory 18 may be large enough to store the N data points. However, the memory available in the internal memory 14 may be large enough to store only a small fraction of the N data points.
  • a data point in FFT computations is complex having a real and imaginary part each requiring 4 Bytes of memory for storage.
  • the speed at which a FFT computation is performed is increased by reducing the number of times the DMA unit 20 must transfer data between the internal memory 14 and the external memory 18 and by reducing the number of times the CPU 12 must instruct the internal memory 14 to swap data between the layers 24 , 26 .
  • This is achieved by providing an algorithm in which data are imported from the external memory 18 to the internal memory 14 and having the CPU 12 perform several calculations on all the imported data before they are exported back to the external memory 18 .
  • the algorithm is structured so that it provides locality within the internal memory 14 .
  • the algorithm provides a method which enables the DMA unit 20 to store the data being imported into the internal memory 14 with a structure that results in a reduction in the number of times the imported data is swapped between layers 24 , 26 of the internal memory 14 during the FFT computation.
  • This is achieved while keeping the complexity of the algorithm relatively low and therefore providing a method in which the regularity of computer code used to implement the algorithm is not significantly compromised.
  • the speed of the FFT computation of N data points is increased by having the DMA unit 20 import/export data between the internal memory 14 and the external memory 18 while at the same time having the CPU 12 perform calculations on other data in the internal memory 14 .
  • overhead due to data transfer times associated with import/export of data between the internal memory 14 and the external memory 18 is reduced resulting in real-time evaluation of the FFT computation.
  • FIG. 3A shown is a block diagram of a processing platform used to perform a FFT computation, provided by an embodiment of the invention.
  • the processing platform is generally indicated by 11 and is similar to the processing platform 10 of FIG. 2A except that the internal memory 14 of the processing platform 10 has been replaced with an internal memory 330 in the processing platform 11 .
  • the internal memory 330 has a high-speed cache 917 , a buffer 918 and a double buffer 914 . Two buffers 915 and 916 make up the double buffer 914 .
  • the processing platform 11 has two buses 17 , 19 , through which the DMA unit 20 each one of the two buffers 915 and 916 has a respective bus 16 , 17 which is used to import and export data between the external memory 18 and a respective one of the two buffers 915 and 916 .
  • the internal memory 330 does not have a high-speed cache 917 . This is shown in FIG. 3B where the internal memory 330 does not have a high speed cache 917 .
  • the buffer 918 has 32 Kbytes of memory available in which twiddle factors used to perform FFT computations are stored throughout the k-stage FFT computation.
  • the double buffer 914 is used to store set of data point of the N data points which will be imported from the external memory 18 .
  • FIG. 3C is a flow chart of a method used by the processing platforms of FIGS. 3A and 3B to perform the FFT computations.
  • the 18-stage FFT computation is performed in a sequence of four steps (steps 3 C- 1 , 3 C- 2 , 3 C- 3 and 3 C- 4 ).
  • step 3 C- 1 the first three stages of the 18-stage FFT computation are performed in a set of 3-stage FFT computations. Details of the set of 3-stage FFT computations of step 3 C- 1 are given below with reference to FIGS. 4A to 4 D, 5 A, 5 B and 6 A.
  • step 3 C- 2 three stages following the first three stages of the 18-stage FFT computation are performed in another set of 3-stage FFT computations. Details of the 3-stage FFT computations of step 3 C- 2 are given below with respect to FIGS. 4A to 4 D, 5 A, 5 B and 6 B.
  • step 3 C- 3 12 final stages of the 18-stage FFT computation are performed in a set of 12-stage FFT computations.
  • FIG. 4A shown is a flow chart of a method used to perform the sets of 3-stage FFT computations used in the FFT computations of FIG. 3C (steps 3 C- 1 and 3 C- 2 ).
  • the method according to FIG. 4A is now described for the set of 3-stage FFT computations of step 3 C- 1 .
  • Step 4 A- 1 is only used to show how the N data points will be imported and exported into and from the internal memory 330 and no operations are performed on anyone of the N data points at step 4 A- 1 .
  • FIG. 6A The way by which the data points will be imported and exported into and from the internal memory 330 , respectively, is shown in FIG. 6A.
  • FIG. 6A on the left-hand side generally indicated by 301 a read access to the external memory 18 is shown, and on the right-hand side generally indicated by 302 a write access to the external memory 18 is also shown.
  • the internal memory 330 with the high-speed cache 917 , the two buffers 915 , 916 and the buffer 918 .
  • M 2 is selected as a function of the memory available in the buffers 915 , 916 . This is shown in FIG. 6A wherein a set of 8 sub-sub-blocks of data comprising the sub-sub-blocks of data 300 will be imported from the read access to the external memory 18 on the left-hand side 301 into the buffer 915 and then exported to the write access to the external memory 18 on the right-hand side 302 after being operated on.
  • step 4 A- 2 iterations are performed for all blocks of data (step 4 A- 2 ) by performing step 4 A- 3 for each block of data 309 . In this case, there is only one block of data 309 and step 4 A- 3 is executed only once. Iterations are also performed for the M 1 sets of 8 sub-sub-blocks of data (step 4 A- 3 ) by performing steps 4 A- 4 , 4 A- 5 and 4 A- 6 for each one of the M 1 sets of 8 sub-sub-blocks of data.
  • M 2 0.5K 3-stage FFT computations are performed on data points, which have been imported into one of the buffers 915 , 916 , within a set of 8 sub-sub-blocks of data, M, (0 ⁇ M ⁇ M 1 ), of the M 1 sets of 8 sub-sub-blocks of data.
  • step 4 A- 5 While the 3-stage FFT computations of step 4 A- 4 are being performed, at step 4 A- 5 , a set of 8 sub-sub-blocks of data, M ⁇ 1, from a previous iteration of step 4 A- 3 are exported from one of the buffers 915 , 916 that is not being used in the 3-stage FFT computations of step 4 A- 4 . Furthermore, at step 4 A- 6 a set of 8 sub-sub-blocks of data, M+1, of a next iteration of step 4 A- 3 are imported from the external memory 18 into one of the buffers 915 , 916 that is not being used in the 3-stage FFT computations of step 4 A- 4 .
  • step 4 A- 3 the 3-stage FFT computations of step 4 A- 4 are being performed on data points of the set of 8 sub-sub-blocks of data comprising the sub-sub-blocks of data 300 which have been imported into the buffer 915 in a previous iteration of step 4 A- 3 . Furthermore, while the 3-stage FFT computations of step 4 A- 3 are being performed upon data points of the sub-sub-blocks of data 300 , the set of 8 sub-sub-blocks of data comprising the sub-sub-blocks of data 305 are being imported into the buffer 916 at step 4 A- 6 for a next iteration of step 4 A- 3 .
  • Performing exports and imports of steps 4 A- 5 and 4 A- 6 , respectively, in parallel with the 3-stage FFT computations of step 4 A- 4 reduces overhead in data transfer times between the external memory 18 and the internal memory 330 .
  • the reduction in data transfer times depends on the ratio of the time required to perform the 3-stage FFT computations of step 4 A- 4 to data transfer times associated with steps 4 A- 5 and 4 A- 6 .
  • the overhead decreases with increasing ratio and in cases when the ratio is greater or equal to 1 the overhead is reduced to zero.
  • a first 3-stage FFT computation is performed on data points 351 wherein each one of the data points 351 is a first data point from a respective one of the sub-sub-blocks of data 300 .
  • a second 3-stage FFT computation is performed on data points 352 wherein each one of the data points 352 is a second data point in a respective one of the sub-sub-blocks of data 300 .
  • the 3-stage FFT computations of step 4 A- 4 as described with reference to FIG. 4B can be performed using a number of methods. Two methods are described below with reference to FIG. 4C and FIG. 4D.
  • the method according FIG. 4C will be described with respect to an embodiment of the invention in which the internal memory 330 has a high-speed cache 917 as shown in FIG. 3A whereas the method according FIG. 4D will be described with respect to an embodiment of the invention in which the internal memory 330 does not have a high-speed cache 917 as shown in FIG. 3B.
  • step 4 C- 2 For a 3-stage FFT computation, m, wherein MM 2 ⁇ m ⁇ (M+1)M 2 ⁇ 1, the 8 data points are imported from a respective one of the buffers 915 , 916 into the high-speed cache 917 and existing data in the high-speed cache 917 , from a previous one of the iterations of step 4 C- 1 is exported back to the external memory 18 (step 4 C- 2 ).
  • a 3-stage FFT computation is then performed on the 8 data points of the 3-stage FFT computation, m (step 4 C- 3 ).
  • the 3-stage FFT computation, m, of step 4 C- 3 is described with reference to FIG. 5A. In FIG.
  • butterflies 700 there are four butterflies 700 for each stage of the 3-stage butterfly arrangement of FIG. 5A.
  • the values of i 0 , i 1 , i 2 and i 3 are given by
  • i 1 N/ (2 S w )+ i 0
  • i 2 2 N /(2 S w )+ i 0
  • i 3 3 N /(2 S w )+ i 0
  • FIG. 4D shown is a flow chart of a method of performing the 3-stage FFT computations of FIG. 4B, provided by another embodiment of the invention.
  • the 3-stage FFT computations of step 4 A- 4 require butterfly computations in a first stage 705 , a second stage 706 and a third stage 707 .
  • the second stage 706 and the third stage 707 are blocks of butterflies 436 .
  • Beginning with the first stage 705 iterations are performed for all stages (step 4 D- 1 ) by repeating step 4 D- 2 .
  • step 4 D- 2 iteration are performed for all blocks of butterflies 436 (step 4 D- 2 ) by repeating step 4 D- 3 . Iterations are also performed for all butterflies within a respective one of the blocks of butterflies 436 (step 4 D- 3 ) by repeating step 4 D- 4 . For a particular butterfly within the respective one of the blocks of butterflies 436 a butterfly computation is performed (step 4 D- 4 ).
  • step 3 C- 1 Referring back to FIG. 3C, after the set of 3-stage FFT computations of step 3 C- 1 has been done, the set of 3-stage FFT computations of step 3 C- 2 is performed. Step 3 C- 2 will now be described in detail with reference to FIGS. 4A to 4 D, 5 A, 5 B and 6 B.
  • step 4A The method according to FIG. 4A for performing the set of the 3-stage FFT computations of step 3 C- 1 is also applied to the set of the 3-stage FFT computations of step 3 C- 2 except that the N data points must be grouped into a different number of blocks of data, sub-blocks of data and sub-sub-blocks of data at step 4 A- 1 to properly evaluate the following three stages of the 18-stage FFT computation.
  • the block of data 801 corresponds to a respective one of the sub-blocks of data 310 as shown in FIG. 6A.
  • Steps 4 A- 4 to 4 A- 6 are the same as described above with reference to the set of 3-stage FFT computations of step 3 C- 1 .
  • FIG. 7A shown is a flow chart of a method used to perform the set of 12-stage FFT computations of FIG. 3 (step 3 C- 3 ).
  • step 7 A- 2 Iterations are performed for all 64 sub-blocks of data (step 7 A- 2 ) by repeating steps 7 A- 3 , 7 A- 4 and 7 A- 5 .
  • a 12-stage FFT computation is performed on 4K data points in a respective one of the sub-blocks of data (step 7 A- 3 ).
  • the 12-stage FFT computation is any suitable conventional 12-stage FFT computation using DIF as described with reference to FIGS. 1D and 1E.
  • the 12-stage FFT computation is optimized for a specific architecture of the internal memory 330 . This will be described in more detail below.
  • a previous sub-block of data is exported from one of the buffers 915 , 916 which is not being used to the external memory 18 (step 7 A- 4 ).
  • a next sub-block of data is imported from the external memory 18 into one of the buffers 915 , 916 that is not being used (step 7 A- 5 ).
  • a 12-stage FFT computation of step 7 A- 3 is performed on data points within the sub-block of data 905 residing in the buffer 916 while the sub-block of data 900 is being exported from the buffer 915 (step 7 A- 4 ) and the sub-block of data 910 is being imported into the buffer 915 (step 7 A- 5 ).
  • the 12-stage FFT computation of step 7 A- 3 is optimized for a specific architecture of the internal memory 330 .
  • the high-speed cache 917 has 16 Kbytes of memory and an FFT computation of N′ data point requires N′/2 twiddle Factors.
  • the number of required twiddle factors is decreased at the expense of more sophisticated programming code.
  • a portion of the memory in the high-speed cache 917 must be reserved to store the N′/2 twiddle factors and another portion of the memory in the high-speed cache 917 must be reserved for an operating system.
  • the invention has been described with respect to an 18-stage FFT computation that uses decimation in frequency.
  • the sets of 3-stage FFT computations of steps 3 C- 1 and 3 C- 2 and the set of 12-stages FFT computations of step 3 C- 3 are performed using decimation in time (DIT).
  • DIT decimation in time
  • the butterflies 700 of FIG. 5A are computed using DIT as shown in FIGS.
  • the k stages of the k-stage FFT computation are grouped into Q stage groupings of S stages and one stage grouping of D stages.
  • the set of D-stage FFT computations includes N/2 D D-stages FFT computations and the D-stage FFT computations are any suitable conventional DIF or DIT D-stage FFT computations optimized for a specific architecture of the internal memory 330 .
  • values of Q and D are chosen such that D and S are integers and such that D is as close as possible to log 2 (M I /2) with D ⁇ log 2 (M I /2).
  • the internal memory 330 has a single buffer for storing data points values of Q and D are chosen such that D and S are integers and such that D is as close as possible to log 2 (M I ) with D ⁇ log 2 (M I ).
  • D and S are integers and such that D is as close as possible to log 2 (M I ) with D ⁇ log 2 (M I ).
  • M I log 2
  • M I log 2
  • M I log 2
  • M I log 2
  • the N data points are grouped into blocks of data, sub-blocks of data, sub-sub-blocks of data and the sub-sub-blocks of data are combined into M 1 sets of 2 S sub-sub-blocks of data (step 9 - 2 ). More particularly, within the set of S-stage FFT computations, I, the N data points are grouped into 2 IS blocks of data, J (0 ⁇ J ⁇ 2 IS ⁇ 1), wherein each block of data, J, contains N/2 IS data points. Within each one of the blocks of data, J, the N/2 IS data are grouped into 2 S sub-blocks of data wherein each sub-block of data contains N/2 IS+S data points.
  • Respective ones of the sub-sub-blocks of data from within each one of 2 S the sub-blocks of data are combined to form the M 1 sets of 2 S sub-sub-blocks of data of N/(2 IS M 1 ) data points.
  • step 9 - 6 sub-sub-blocks of data from a previous iteration of step 9 - 4 are exported (step 9 - 6 ) from the internal memory 330 to the external memory 18 from one of the buffers 915 , 916 that is not being used in step 9 - 5 .
  • Embodiments of the invention are not limited to embodiments in which imports and exports of data points of steps 9 - 7 and 9 - 6 , respectively, are performed while the S-stage FFT computations of step 9 - 5 are being performed.
  • the internal memory 330 has a single buffer for storing imported data points and prior to performing S-stage FFT computations on a set of 2 S sub-sub-blocks of data, M, respective data points are imported into the internal memory 330 and after performing the S-stage FFT computations the respective data points are exported back to the external memory 18 .
  • the D-stage FFT computations are any suitable conventional D-stage FFT computation using DIF or DIT as described with reference to FIGS. 1D and 1E.
  • the D-stage FFT computation are optimized for a specific architecture of the internal memory 330 .
  • the high-speed cache 917 has a capacity to M C data points including respective twiddle factors for a k′-stage FFT computation.
  • the number of stages, k′, in which all data points and respective twiddle factor can be simultaneously loaded into the high-speed cache 917 must satisfy k′ ⁇ log 2 (2M C /3) wherein k′ is an integer.
  • stages of the D stages of each of the D-stage FFT computations are grouped into sub-stage groupings of at least one stage but less than or equal to k′ stages and a respective set of sub-stage FFT computation are performed for each one of the sub-stage groupings.
  • the factor of 2 ⁇ 3 in k′ ⁇ log 2 (2M C /3) is limited by the algorithm used to perform the FFT computations and in other embodiments, in which a different algorithm is used to perform the FFT computations, a different factor is used.

Landscapes

  • Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Discrete Mathematics (AREA)
  • Algebra (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Complex Calculations (AREA)

Abstract

A method and apparatus for performing a fast Fourier transform (FFT) computation on large data sizes in real time is provided. The speed at which a FFT is performed is increased by reducing the number of times a Direct Memory Access (DMA) unit must transfer data between an internal memory and an external memory. This is achieved through an algorithm in which data is imported from the external memory into the internal memory and having the CPU perform several calculations on the imported data before it is exported back to the external memory. The imported data in the internal memory has a structure that results in a reduction of the number of times the imported data is swapped between different layers of the internal memory during the FFT computation. Furthermore, the DMA unit import/exports data between the internal memory and the external memory while at the same time having the CPU perform calculations on other data in the internal memory.

Description

    FIELD OF THE INVENTION
  • This invention relates to signal processing, and more particularly to frequency analysis of signals. [0001]
  • BACKGROUND OF THE INVENTION
  • A common task in signal processing is to determine a frequency spectrum of a received signal, given a signal sampling in the time domain. In Digital Signal Processing, discrete samples of the signal are taken in time. A Discrete Fourier Transform is applied to the samples, and the frequency spectrum is calculated. The frequency spectrum is also discrete, each value indicating the contribution of a different frequency bin to the signal. [0002]
  • For N time domain samples, the execution time of the Discrete Fourier Transform for N frequency domain samples is on the order of N[0003] 2. The determination of the frequency spectrum can be vastly accelerated using a Fast Fourier Transform (FFT). The execution time of the FFT is proportional to N log2 N. The proportionality factors are of the same order of magnitude, so even for a sample size as low as 1000 samples the FFT is about 100 times faster than the Discrete Fourier Transform. For this reason, the FFT is a critical tool in determining the frequency spectrum of most practical signals.
  • The FFT achieves this speed advantage by effectively breaking the analysis down into a series of smaller analyses, and reconstructing the results. The FFT is faster because n analyses of two samples is faster than one analysis of 2 n samples. The FFT is performed in two steps: decomposition and synthesis. (There is a third, intermediate step of frequency determination, but nothing is done at this step other than realizing that each time sample now represents a frequency sample. No calculations are carried out.) In the decomposition step additional samples having a value of 0 are added to the signal as necessary in order that the resulting signal has N=2[0004] k samples, with k being a whole number. The signal of N samples is then decimated repeatedly, leaving N signals of one sample each. As part of the decimation, the samples are reordered in a particular manner.
  • In the synthesis step, the N signals of one sample (which now represent frequencies) are repeatedly combined in pairs until a single signal of N frequency samples is obtained. The resulting single signal is the frequency spectrum of the original signal. The combination of frequency signals occurs in stages. At each stage, the number of signals is halved and the number of samples in each signal is doubled, so a signal having N samples will require log[0005] 2 N stages during the synthesis step. During each stage, larger size signals (called blocks) are generated in turn. Within each block, new frequency samples are generated in turn from two frequency samples, one from each of two lower size signals, using a butterfly calculation. All frequency samples within a block are generated from frequency samples from the same two lower size blocks. After log2 N stages, the N signals of one frequency sample will have been combined into a single signal of N frequency samples.
  • Unfortunately, for large data sizes even the FFT may be too slow, especially for real-time applications. With the rapid increase in processor speed, multiprocessor platforms using parallel processing to achieve sufficient speed for real-time applications can in theory be replaced with less expensive single processor platforms. However single processor platforms are still limited by the speed of peripherals, such as a Direct Memory Access (DMA) unit. The slowness arises not from the number of calculations, but from communication bottlenecks within the platform. The large number of samples can not all be stored in internal memory (such as IDRAM (Internal Dynamic Random Access Memory)), but rather must be stored in external memory (such as SDRAM (Synchronous Dynamic Random Access Memory)). [0006]
  • A processor performing the FFT must import a limited amount of data across a bus into internal memory, perform part of the FFT to produce new data, and export the new data to external memory. Typically, the processor performs one butterfly calculation at a time to generate one new frequency sample. This requires one import and one export of data per butterfly calculation, or (N log[0007] 2 N)/2 imports and exports per synthesis. Despite the speed of the processor, the memory access time will constrain the speed of the FFT for large sample sizes in which much data must be exchanged between external and internal memory.
  • SUMMARY OF THE INVENTION
  • Various methods and apparatus for performing a fast Fourier transform (FFT) computation on large data sizes in real time are provided. The speed at which a FFT is performed is increased by reducing the number of times a Direct Memory Access (DMA) unit must transfer data between an internal memory and an external memory. This is achieved through an algorithm in which data is imported from the external memory into the internal memory and having the CPU perform several calculations on the imported data before it is exported back to the external memory. The imported data in the internal memory has a structure that results in a reduction of the number of times the imported data is swapped between different layers of the internal memory during the FFT computation. Furthermore, the DMA unit import/exports data between the internal memory and the external memory while at the same time having the CPU perform calculations on other data in the internal memory. [0008]
  • In accordance with a first broad aspect of the invention, provided is a method of performing a k-stage FFT computation of N data points wherein k and N are integers. The method includes performing a number of operations upon the N data points. For each one of the operations, respective sets of data points of the N data points are imported from an external memory into an internal memory. A FFT computation of the k-stage FFT computation is then performed upon each one of the respective sets of data points in the internal memory. The respective sets of data points of the N data points are then exported from the internal memory into the external memory. This is done to update the respective sets of data points of the N data points in the external memory. [0009]
  • In accordance with another broad aspect of the invention, provided is a method of performing a k-stage FFT computation of N data points wherein k and N are integers. The k-stages are grouped into a number of stage groupings of at least one stage. For each one of the stage groupings, a number of respective operations are performed on the N data points. For each operation respective sets of data points of the N data points are imported from an external memory into an internal memory. A FFT computation is then performed upon each one of the respective sets of data points of the N data points in the internal memory. The respective sets of data points of the N data points are then exported from the internal memory into the external memory. This is done to update the respective sets of data points of the N data points in the external memory. [0010]
  • In some embodiments, other sets of data points of the N data points for a next iteration may be imported into the internal memory while FFT computations are being performed upon each one of the respective sets of data points of the N data points in the internal memory. Furthermore, sets of data points of the N data points from a previous iteration may be exported from the internal memory while FFT computations are being performed upon each one of the respective sets of data points of the N data points in the internal memory. [0011]
  • In some embodiments, N may satisfy N=2[0012] k. In such embodiments, there may be Q stage groupings each having S stages wherein Q and S may be integers with integers with Q≧1, S≧1 and k≧QS. Furthermore, within a stage grouping, I, of the Q stage groupings wherein I may be an integer satisfying 0≦I≦Q−1, the N data points may be grouped into 2IS blocks of data of N/2IS respective data points. Within each one of the 2IS blocks of data, the N/2IS respective data points may also be grouped into 2S sub-blocks of data of N/2IS+S respective data points. Within each one of the 2S sub-blocks of data, the N/2IS+S respective data points may be grouped into M1 sub-sub-blocks of data of N/(2IS+S M1) respective data points wherein M1 may be an integer. Within each one of the 2IS blocks of data, a respective sub-sub-block of data of the M1 sub-sub-blocks of data may be taken from each one of the 2S sub-blocks of data to maybe form a set of 2S sub-sub-blocks of data of N/(2ISM1) data points. This may be done a total of M1 times to produce M1 sets of 2S sub-sub-blocks of data of N/(2ISM1) data points. Within each one of the M1 sets of 2S sub-sub-blocks of data, a respective data point may be taken from each one of the 2S sub-blocks of data to maybe form a set of 2S data points. This may be done a total of N/(2IS+SM1) times to maybe produce N/(2IS+SM1) sets of 2S data points.
  • Within each stage grouping, I, M[0013] 1 of the operations may be performed for each one of the 2IS blocks of data within the stage grouping, I. Furthermore, for each one of the M1 of the operations, respective N/(2IS+SM1) sets of 2S data points may be imported from the external memory into the internal memory. An S-stage FFT computation of the k-stage FFT computation may then be performed upon each set of 2S data points of the respective N/(2IS+SM1) sets of 2S data points in the internal memory. The respective N/(2IS+SM1) sets of 2S data points may then be exported from the internal memory into the external memory to update the respective N/(2IS+SM1) sets of 2S data points in the external memory.
  • In other embodiments of the invention, one of the stage groupings may have D stages wherein D may be an integer and k may satisfy k=QS+D. In such embodiments, the internal memory may have a buffer, for storing data points, with a capacity to hold M[0014] I data points and D may satisfy D≦log2 (MI). Furthermore, the internal memory may have a double buffer having two buffers for storing data points. Each one of two buffers may have a capacity to hold MI/2 data points and D may satisfy D≦log2 (MI/2).
  • In accordance with another broad aspect of the invention, provided is a processor. The processor has an internal memory used to store data. The processor also has a DMA (direct memory access) unit and a central processor unit (CPU). The DMA unit is used to import data into the internal memory and to export data from the internal memory. The k-stages of the of the k-stage FFT computation are grouped into a number of stage groupings of at least one stage and for each one of the stage groupings the CPU is used to perform a number of respective operations on the N data points. Furthermore, for each one of the respective operations the CPU is used to: 1) provide instructions to the DMA unit for importing respective sets of data points, of N data points, into the internal memory; 2) perform a FFT computation upon each one of the respective sets of data points, of the N data points, in the internal memory; and 3) provide instructions to the DMA unit for exporting the respective sets of data points, of the N data points, from the internal memory. This may be done to update the respective sets of data points of the N data points. [0015]
  • The processor may have an external memory that may be used to store the N data points. In some embodiments, the processor may also have one or more buses. In such embodiments, any data may be imported and exported through the buses. Furthermore, in some embodiments, the processor may have a double buffer having two buffers and the processor may also have two buses, one for each of the two buffers. The CPU may instruct the DMA unit to import a set of data points which will be operated on in a next iteration while the CPU performs FFT computations on other sets of data points. In addition, the CPU may instruct the DMA unit to export a set of data points from a previous iteration while the CPU performs FFT computations on other sets of data points. [0016]
  • In accordance with yet another broad aspect of the invention, provided is an article of manufacture. The article of manufacture has a computer usable medium having computer readable program code for performing a k-stage FFT computation of N data points. k and N are integers and k stages of the k-stage stage FFT computation are grouped into a plurality of stage groupings each having at least one stage. The computer readable program code is used to perform, for each one of the stage groupings, a number of respective operations on the N data points. Furthermore, for each one of the operations, the computer readable program code has further computer readable program code used to: 1) provide instructions for importing respective sets of data points of the N data points from an external memory into an internal memory; 2) perform a FFT computation upon each one of the respective sets of data points of the N data points in the internal memory; and 3) provide instructions for exporting the respective sets of data points of the N data points from the internal memory into the external memory.[0017]
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • The invention will now be described in greater detail with reference to the accompanying diagrams, in which: [0018]
  • FIG. 1A is a diagram of a conventional 3-stage FFT (fast Fourier transform) computation using decimation in frequency (DIF); [0019]
  • FIG. 1B is diagram of a butterfly computation performed upon two data points X(k) and X(l) of FIG. 1A; [0020]
  • FIG. 1C is a diagram of bit reversal operations for data points of FIG. 1A; [0021]
  • FIG. 1D is a diagram of a k-stage FFT computation of N data points using DIF; [0022]
  • FIG. 1E is a flow chart of a method used to perform the k-stage FFT computation of N data points of FIG. 1D; [0023]
  • FIG. 2A is a block diagram of a processing platform used to perform the k-stage FFT computation of FIGS. 1D and 1E; [0024]
  • FIG. 2B is another block diagram of a processing platform used to perform the k-stage FFT computation of FIGS. 1D and 1E; [0025]
  • FIG. 3A is a block diagram of a processing platform used to perform a FFT computation, provided by an embodiment of the invention; [0026]
  • FIG. 3B is a block diagram of a processing platform used to perform a FFT computation, provided by another embodiment of the invention; [0027]
  • FIG. 3C is a flow chart of a method used by the processing platforms of FIGS. 3A and 3B to perform the FFT computations; [0028]
  • FIG. 4A is a flow chart of a method used to perform sets of 3-stage FFT computations used in the FFT computations of FIG. 3C; [0029]
  • FIG. 4B is a diagram of the 3-stage FFT computations of FIG. 4A; [0030]
  • FIG. 4C is a flow chart of a method of performing the 3-stage FFT computations of FIG. 4B; [0031]
  • FIG. 4D is a flow chart of a method of performing the 3-stage FFT computations of FIG. 4B, provided by another embodiment of the invention; [0032]
  • FIG. 5A is a diagram of one of the 3-stage FFT computations of FIG. 4B using DIF; [0033]
  • FIG. 5B is a diagram of one of 12 butterfly computations of the 3-stage FFT computation of FIG. 5A; [0034]
  • FIG. 6A is a diagram of sub-sub-blocks of data being of imported into an internal memory form an external memory and being exported from the internal memory back to the external memory, for one of two sets of 3-stage FFT computations of FIG. 3C; [0035]
  • FIG. 6B is a diagram of sub-sub-blocks of data being of imported into the internal memory form the external memory and being exported from the internal memory back to the external memory, for another one of two sets of 3-stage FFT computations of FIG. 3C; [0036]
  • FIG. 7A is a flow chart of a method used to perform a set of 12-stage FFT computations of FIG. 3C; [0037]
  • FIG. 7B is a diagram of sub-blocks of data being of imported into the internal memory form the external memory and being exported from the internal memory back to the external memory, for the set of 12-stage FFT computations of FIG. 7A; [0038]
  • FIG. 8A is a diagram of one of the 3-stage FFT computations of FIG. 4B using decimation in time (DIT); [0039]
  • FIG. 8B is a diagram of one of 12 butterfly computations of the 3-stage FFT computation of FIG. 8A; and [0040]
  • FIG. 9 is a flow chart of a method of performing Q sets of S-stage FFT computations, in another embodiment of the invention.[0041]
  • DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
  • Referring to FIG. 1A, shown is a diagram of a conventional 3-stage FFT (fast Fourier transform) computation using decimation in frequency (DIF). In general, a FFT computation includes several computation over one or more stages. In the 3-stage FFT computation of FIG. 1A, a number of computations are performed at each one of three stages to produce the 3-stage FFT computation. The 3-stage FFT computation is performed on eight data points X(i) (i=0 to 7) at [0042] 400. Within a first stage 401, butterfly computations are performed at 410 for four butterflies 405 and new values for the data points X(i) result at 415. In a butterfly computation, a computation is performed for each one of two points. As shown in FIG. 1B, a butterfly computation is performed on two data points X(k) and X(l) (in the first stage 0≦k≦3 and 4≦l≦7) at 480 and 485, respectively. Two computations are performed at 481 and 486 and new values of X(k) and X(l) result at 490 and 495, respectively. The new values X(k) and X(l) are given by X(k)=X(k)+X(l) and X(l)=(X(k)−X(l))Wf, respectively, where Wf is a twiddle factor with Wf=e−2jf, wherein j={square root}{square root over (−1)} and f is a phase factor. In a second stage 402, new values for the data points X(i) at 415 are computed at 425 for butterflies 420 resulting in new values of the data points X(i) being input into a third stage 403 at 430 (in the second stage k=0, 1, 4, 5 and l=2, 3, 6, 7). In the third stage 403 new values for the data points X(i) at 430 are computed at 435 for butterflies 440 resulting in new values of the data points X(i) being output at 445 (in the third stage k=0, 2, 4, 6 and l=1, 3, 5, 7). At 445 the data points X(i) are re-ordered by applying a bit reversal algorithm on the index i. More particularly, after having undergone butterfly computations through the first stage 401, the second stage 402 and the third stage 403, a data point X(p) (0≦p≦7) of the data points X(i) requires to be mapped, using a bit reversal operation, onto a data point X(q) (0≦q≦7) of the data points X(i) wherein q corresponds to the bit reversal of p. Bit reversal operations 496 for p=0 to 7 are shown in FIG. 1C. For example, a value of p=1 is expressed as three bits 001 in base-2 notation and a bit reversal operation 497 maps the three bits 001 onto 100 in base-2 which corresponds to q=4 in decimal notation and, consequently, X(l) is mapped onto X(4).
  • Referring to FIG. 1D, shown is a diagram of a k-stage FFT computation of N data points using DIF. More particularly, shown are a [0043] first stage 412, a second stage 414, a k−1th stage 416 and a kth stage 418 of the k-stage FFT computation of N data points X(n) (0≦n≦N−1). Other stages are not shown for clarity. Furthermore, for clarity, only 16 of the N data points X(n) are shown at 424. The number of stages, k, is given by k=log2(N). Within each one of the k-stages, are N/2 butterflies. Only one butterfly 432 is identified for clarity. More particularly, within a stage, r (0≦r≦k−1), the N/2 butterflies are grouped into 2r blocks of data 434. For example, in the first stage 412 where r=0 there are 20=1 blocks of data 434 and in the second stage 414 where r=1 there are 21=2 blocks of data 434. Furthermore, within any one of the blocks of data 434 of a stage, r, there are N/2r+1 butterflies. For example in the k−1th stage 416 where r=k−2 respective ones of the blocks of data 434 have N/2r=2k/2k−2+1=2 butterflies 436. Computations for all butterflies within the blocks of data 434 must be done and a conventional method used to iterate through the butterflies of the k-stage FFT computation will now be described with reference to FIG. 1E.
  • Referring to FIG. 1E, shown is a flow chart of a method used to perform the k-stage FFT computation of N data points of FIG. 1D. Beginning with a stage, r with r=0, iterations are performed for k stages, r, with 0≦r≦k−1 (step [0044] 1E-1). Iterations are performed for each one of the blocks of data 434 within the stage, r (step 1E-2). Within a respective block of data 434 of the stage, r, iterations are performed for all butterflies within the respective block of data 434 (step 1E-3). For a butterfly within the respective block of data 434 of the stage, r, a butterfly computation is performed (step 1E-4). As discussed above, within a stage, r, there are 2r blocks of data 434 and within each one of the blocks 343 there are N/2r+1 butterflies for a total of (2r) (N/2r+1)=N/2 butterflies per stage. Therefore the k-stage FFT computation requires k(N/2)=(N/2) log2(N) butterfly computations.
  • Referring to FIG. 2A, shown is a block diagram of a processing platform, used to perform the k-stage FFT computation of FIGS. 1D and 1E. The processing platform, generally indicated by [0045] 10, includes a CPU (central processor unit) 12, an internal memory 14, a bus 16, an external memory 18, and a Direct Memory Access (DMA) unit 20. The internal memory 14 includes layers 24 and 26 wherein layer 24 corresponds to a high speed cache. As shown in FIG. 2B, in some cases the internal memory 14 includes only layer 26 and no high speed cache (the layer 24 is not present). In other cases, the internal memory may have one or more layers. The internal memory 14 is directly accessible by the CPU 12. When the CPU 12 needs to operate on data stored in layer 24 of the internal memory 14, the CPU 12 retrieves the data directly from layer 24. However, when the CPU 12 needs to operate on data stored in layer 26 the data is first moved into layer 24 before being retrieved by the CPU 12. To free up memory in layer 24 in the event that layer 24 does not have enough memory to store both the data being retrieved and existing data residing in layer 24, the existing data may be transferred to layer 26 before the data is moved to layer 24. As such, the CPU 12 retrieves data stored in layer 24 faster than data stored in layer 26. When the CPU 12 is finished processing the data, the CPU 12 overwrites the data stored in layer 24 with output data.
  • Data may also be stored in the [0046] external memory 18 but the external memory 18 is not directly accessible by the CPU 12. When the CPU 12 needs to operate on data stored in the external memory 18, the CPU 12 issues a command to the DMA unit 20 to retrieve the data. The DMA unit 20 accesses the data in the external memory 18, and imports it across the bus 16 into the internal memory 14, where the processor 12 can process the data. In the event that the internal memory 14 does not have enough memory to store both the data being retrieved and existing data residing in internal memory 14, memory must be freed up. To do so the DMA unit 20 accesses the existing data in the internal memory 14, and exports it across the bus 16 into the external memory 18 before any data is moved into the internal memory 14. As part of processing the data, the processor 12 may generate output data. When the CPU 12 is finished processing the data, the CPU 12 passes the output data back into the internal memory 14. There are several additional steps in accessing data from the external memory 18 when compared to the number of steps required to access data from the internal memory 14 and therefore accessing data residing in the external memory 18 is much slower than accessing data residing in internal memory 14.
  • Typically, the [0047] internal memory 14 may have 64K bytes of memory available for data storage whereas the external memory 18 may have, for example, 2.5M bytes of memory available for storage. The memory available for storing data in the internal memory 14 is much smaller than the memory available in the external memory 18. Therefore in performing a FFT computation of N data points the memory available in the external memory 18 may be large enough to store the N data points. However, the memory available in the internal memory 14 may be large enough to store only a small fraction of the N data points.
  • In an illustrative example, a FFT computation is performed for N=256K=256×1024 data points. A data point in FFT computations is complex having a real and imaginary part each requiring 4 Bytes of memory for storage. Thus each one of the data points requires 2×4 Bytes=8 Bytes of memory for storage. Assuming that the [0048] external memory 18 has 2.5M Bytes of memory available it can store 2.5M Bytes/8 Bytes=312.5K data points which is more than the number N=256K of data points in the example. However, assuming that the internal memory 14 has 64K Bytes of memory available it can store 64K Bytes/8 Bytes=8K data points which is a small fraction of the number, N=256K of data points. Consequently, in performing a FFT computation the CPU 12 can only instruct the DMA unit 20 to import at most 8K data points into the internal memory 14 at one time. Therefore, data in the external memory 18 need to be imported into the internal memory 14 and data in the internal memory 14 must be exported to the external memory 18, through the bus 16, several times during the FFT computation. As discussed above with reference to FIGS. 1D and 1E, there are (N/2) log2(N)=k(N/2) butterfly computations required and therefore there can be up to k(N/2) imports/exports of data between the external memory 18 and the internal memory 14. Furthermore, data in the internal memory 14 also need to be swapped, between layers 24 and 26, several times during the calculation. Despite the speed of the CPU 12 in performing calculations, memory access times will constrain the speed of the FFT computation due to the large number of data exchanges between the internal memory 14 and the external memory 18, and between layers 24 and 26 of the internal memory 18.
  • In one embodiment of the invention, the speed at which a FFT computation is performed is increased by reducing the number of times the [0049] DMA unit 20 must transfer data between the internal memory 14 and the external memory 18 and by reducing the number of times the CPU 12 must instruct the internal memory 14 to swap data between the layers 24, 26. This is achieved by providing an algorithm in which data are imported from the external memory 18 to the internal memory 14 and having the CPU 12 perform several calculations on all the imported data before they are exported back to the external memory 18. Furthermore, the algorithm is structured so that it provides locality within the internal memory 14. More particularly, the algorithm provides a method which enables the DMA unit 20 to store the data being imported into the internal memory 14 with a structure that results in a reduction in the number of times the imported data is swapped between layers 24, 26 of the internal memory 14 during the FFT computation. This is achieved while keeping the complexity of the algorithm relatively low and therefore providing a method in which the regularity of computer code used to implement the algorithm is not significantly compromised. Furthermore, in some embodiments, the speed of the FFT computation of N data points is increased by having the DMA unit 20 import/export data between the internal memory 14 and the external memory 18 while at the same time having the CPU 12 perform calculations on other data in the internal memory 14. As a result, overhead due to data transfer times associated with import/export of data between the internal memory 14 and the external memory 18 is reduced resulting in real-time evaluation of the FFT computation.
  • Referring to FIG. 3A, shown is a block diagram of a processing platform used to perform a FFT computation, provided by an embodiment of the invention. The processing platform is generally indicated by [0050] 11 and is similar to the processing platform 10 of FIG. 2A except that the internal memory 14 of the processing platform 10 has been replaced with an internal memory 330 in the processing platform 11. The internal memory 330 has a high-speed cache 917, a buffer 918 and a double buffer 914. Two buffers 915 and 916 make up the double buffer 914. Furthermore, the processing platform 11 has two buses 17, 19, through which the DMA unit 20 each one of the two buffers 915 and 916 has a respective bus 16, 17 which is used to import and export data between the external memory 18 and a respective one of the two buffers 915 and 916. In some embodiments of the invention, the internal memory 330 does not have a high-speed cache 917. This is shown in FIG. 3B where the internal memory 330 does not have a high speed cache 917. In one embodiment of the invention, the buffer 918 has 32 Kbytes of memory available in which twiddle factors used to perform FFT computations are stored throughout the k-stage FFT computation. Furthermore, the double buffer 914 is used to store set of data point of the N data points which will be imported from the external memory 18.
  • Referring to FIG. 3C, is a flow chart of a method used by the processing platforms of FIGS. 3A and 3B to perform the FFT computations. The method will be illustrated by way of example to conduct a FFT computation of a sample of N=256K data points. A FFT computation of N data points corresponds to a k=log[0051] 2(N) stage FFT computation. Therefore, the FFT computation of N=256K data points requires an 18-stage FFT computation wherein k=log2(256K)=log2(256×1024)=18. The 18-stage FFT computation is performed in a sequence of four steps (steps 3C-1, 3C-2, 3C-3 and 3C-4). At step 3C-1, the first three stages of the 18-stage FFT computation are performed in a set of 3-stage FFT computations. Details of the set of 3-stage FFT computations of step 3C-1 are given below with reference to FIGS. 4A to 4D, 5A, 5B and 6A. At step 3C-2, three stages following the first three stages of the 18-stage FFT computation are performed in another set of 3-stage FFT computations. Details of the 3-stage FFT computations of step 3C-2 are given below with respect to FIGS. 4A to 4D, 5A, 5B and 6B. At step 3C-3, 12 final stages of the 18-stage FFT computation are performed in a set of 12-stage FFT computations. Details of the set of 12-stage FFT computations of step 3C-3 are given below with respect to FIGS. 7A and 7B. After the set of 12-stage FFT computations of step 3C-3 has been done, bit reversal operations are performed on the N=256K data points (step 3C-4) as described with reference to FIG. 1C except that in this case the bit reversal operations are performed upon the N=256K data points each carrying 18 bits as opposed to 3 bits.
  • Referring to FIG. 4A, shown is a flow chart of a method used to perform the sets of 3-stage FFT computations used in the FFT computations of FIG. 3C ([0052] steps 3C-1 and 3C-2). The method according to FIG. 4A is now described for the set of 3-stage FFT computations of step 3C-1. The N data points (N=256K) are grouped logically into blocks of data, sub-blocks of data and sub-sub-blocks of data (step 4A-1). Step 4A-1 is only used to show how the N data points will be imported and exported into and from the internal memory 330 and no operations are performed on anyone of the N data points at step 4A-1. The way by which the data points will be imported and exported into and from the internal memory 330, respectively, is shown in FIG. 6A. In FIG. 6A, on the left-hand side generally indicated by 301 a read access to the external memory 18 is shown, and on the right-hand side generally indicated by 302 a write access to the external memory 18 is also shown. Also shown in FIG. 6A is the internal memory 330 with the high-speed cache 917, the two buffers 915, 916 and the buffer 918. The external memory 18 carries the N data points with the N data points grouped into 2IS=2(0) (3)=1 block of data 309 of N/2IS=N data points wherein for step 3C-1, I=0 and for a 3-stage FFT computation S=3. The N data points within the block of data 309 are grouped into 2S=23=8 sub-blocks of data 310 and each sub-block of data 310 has M1 sub-sub-blocks of data (only two sub-sub-blocks of data 300, 305 for each one of the sub-blocks of data 310 are shown for clarity). The sub-sub-blocks of data 300 form a set of 23=8 sub-sub-blocks of data and the sub-sub-blocks of data 305 form another set of 23=8 sub-sub-blocks of data. Combining all the sub-sub-blocks of data in this way results in M1 sets of 8 sub-sub-blocks of data. Each one of the sub-blocks of data 310 contains N/2S=256K/8=64K data points and each one of the sub-sub-blocks of data contains M2 data points. M1 is given by M1=N/(2IS+SM2)=N/(8M2). M2 is selected as a function of the memory available in the buffers 915, 916. This is shown in FIG. 6A wherein a set of 8 sub-sub-blocks of data comprising the sub-sub-blocks of data 300 will be imported from the read access to the external memory 18 on the left-hand side 301 into the buffer 915 and then exported to the write access to the external memory 18 on the right-hand side 302 after being operated on. In the example, the double buffer 914 has 64K bytes of memory available for data points, or equivalently, it can hold MI=64K bytes/8 bytes=8K data points. The memory available is logically divided between the buffers 915 and 916 each capable of storing MI/2=8K/2=4K data points. As shown in FIG. 6A there are 8 of the sub-sub-blocks 300 being imported into the buffer 915 at one time and each one of the sub-sub-blocks contains M2=4K/8=0.5K data points and M1=N/(2IS+SM2)=256K/(8×0.5K)=64.
  • In the method of FIG. 4A, iterations are performed for all blocks of data ([0053] step 4A-2) by performing step 4A-3 for each block of data 309. In this case, there is only one block of data 309 and step 4A-3 is executed only once. Iterations are also performed for the M1 sets of 8 sub-sub-blocks of data (step 4A-3) by performing steps 4A-4, 4A-5 and 4A-6 for each one of the M1 sets of 8 sub-sub-blocks of data. At step 4A-4, M2=0.5K 3-stage FFT computations are performed on data points, which have been imported into one of the buffers 915, 916, within a set of 8 sub-sub-blocks of data, M, (0≦M≦M1), of the M1 sets of 8 sub-sub-blocks of data. The M2=0.5K 3-stage FFT computations of step 4A-4 are described below with reference to FIGS. 4B to 4D, 5A and 5B. While the 3-stage FFT computations of step 4A-4 are being performed, at step 4A-5, a set of 8 sub-sub-blocks of data, M−1, from a previous iteration of step 4A-3 are exported from one of the buffers 915, 916 that is not being used in the 3-stage FFT computations of step 4A-4. Furthermore, at step 4A-6 a set of 8 sub-sub-blocks of data, M+1, of a next iteration of step 4A-3 are imported from the external memory 18 into one of the buffers 915, 916 that is not being used in the 3-stage FFT computations of step 4A-4. For example, in one iteration of step 4A-3, the 3-stage FFT computations of step 4A-4 are being performed on data points of the set of 8 sub-sub-blocks of data comprising the sub-sub-blocks of data 300 which have been imported into the buffer 915 in a previous iteration of step 4A-3. Furthermore, while the 3-stage FFT computations of step 4A-3 are being performed upon data points of the sub-sub-blocks of data 300, the set of 8 sub-sub-blocks of data comprising the sub-sub-blocks of data 305 are being imported into the buffer 916 at step 4A-6 for a next iteration of step 4A-3.
  • Performing exports and imports of [0054] steps 4A-5 and 4A-6, respectively, in parallel with the 3-stage FFT computations of step 4A-4 reduces overhead in data transfer times between the external memory 18 and the internal memory 330. The reduction in data transfer times depends on the ratio of the time required to perform the 3-stage FFT computations of step 4A-4 to data transfer times associated with steps 4A-5 and 4A-6. The overhead decreases with increasing ratio and in cases when the ratio is greater or equal to 1 the overhead is reduced to zero.
  • Referring to FIG. 4B, shown is a diagram of the 3-stage FFT computations of FIG. 4A (step [0055] 4A-4). More particularly, as an example, the 3-stage FFT computations of step 4A-4 are performed on data points from the set of 8 sub-sub-blocks of data comprising the sub-sub-blocks of data 300 (M=0). A first 3-stage FFT computation is performed on data points 351 wherein each one of the data points 351 is a first data point from a respective one of the sub-sub-blocks of data 300. A second 3-stage FFT computation is performed on data points 352 wherein each one of the data points 352 is a second data point in a respective one of the sub-sub-blocks of data 300. Other 3-stage FFT computations are performed for other data points within the sub-sub-blocks of data 300, for a total of M2=0.5K 3-stage FFT computations, but they are not shown in the interest of clarity. In embodiments of the invention, the 3-stage FFT computations of step 4A-4 as described with reference to FIG. 4B can be performed using a number of methods. Two methods are described below with reference to FIG. 4C and FIG. 4D. The method according FIG. 4C will be described with respect to an embodiment of the invention in which the internal memory 330 has a high-speed cache 917 as shown in FIG. 3A whereas the method according FIG. 4D will be described with respect to an embodiment of the invention in which the internal memory 330 does not have a high-speed cache 917 as shown in FIG. 3B.
  • Referring to FIG. 4C, shown is a flow chart of a method of performing the 3-stage FFT computations of FIG. 4B. More particularly, shown is a flow chart of a method of performing 3-stage FFT computations for the set of 8 sub-sub-blocks of data, M, wherein 0≦M≦M[0056] 1−1. Iterations are performed (step 4C-1) for each one of M2 3-stage FFT computations of 2S=23=8 data points by repeating steps 4C-2 and 4C-3. For a 3-stage FFT computation, m, wherein MM2≦m≦(M+1)M2−1, the 8 data points are imported from a respective one of the buffers 915, 916 into the high-speed cache 917 and existing data in the high-speed cache 917, from a previous one of the iterations of step 4C-1 is exported back to the external memory 18 (step 4C-2). A 3-stage FFT computation is then performed on the 8 data points of the 3-stage FFT computation, m (step 4C-3). The 3-stage FFT computation, m, of step 4C-3 is described with reference to FIG. 5A. In FIG. 5A, the data points 351 correspond to data points X0(m, S, I), X1(m, S, I), X2(m, S, I), X3(m, S, I), X4(m, S, I), X5(m, S, I), X6(m, S, I) and X7(m, S, I) of FIG. 5A where m is satisfies MM2≦m≦(M+1)M2−1, S=3 for a 3-stage FFT computation and I is a whole number associated with the set of 3-stage FFT computations of step 3C-1. For the data points 351, m=0 and for the set of 3-stage FFT computations of step 3C-1, I=0.
  • There are four [0057] butterflies 700 for each stage of the 3-stage butterfly arrangement of FIG. 5A. The butterflies 700 are computed using DIF as shown in FIG. 5B where new values of two data points Xk(m, S, I) and Xl(m, S, I) are given by Xk(m, S, I)=Xk(m, S, I)+Xl(m, S, I) and Xl(m, S, I)=(Xk(m, S, I)−Xl(m, S, I) Wi where i=i0, i1, i2 or i3 and MM2≦m≦(M+1)M2−1. The values of i0, i1, i2 and i3 are given by
  • i0=m2w   (1)
  • i 1 =N/(2S w)+i 0
  • i 2=2N/(2S w)+i 0
  • i 3=3N/(2S w)+i 0
  • where w=IS+1. As discussed above, the twiddle factors, W[0058] i, are stored in the buffer 918.
  • After having performed a 3-stage FFT computation upon the data points [0059] 351 (step 4C-3), the index m is increased to m+1 (step 4C-1) and again with I=0 steps 4C-2 and 4C-3 are repeated for data points 352. Step 4C-2 and 4C-3 are repeated (step 4C-1) until all data points in sub-blocks 300 have undergone a 3-stage FFT computation.
  • Referring to FIG. 4D, shown is a flow chart of a method of performing the 3-stage FFT computations of FIG. 4B, provided by another embodiment of the invention. As shown in FIG. 4B the 3-stage FFT computations of [0060] step 4A-4 require butterfly computations in a first stage 705, a second stage 706 and a third stage 707. Within each one of the first stage 705, the second stage 706 and the third stage 707 are blocks of butterflies 436. Beginning with the first stage 705 iterations are performed for all stages (step 4D-1) by repeating step 4D-2. Within a respective one of the first stage 705, the second stage 706 and the third stage 707, iteration are performed for all blocks of butterflies 436 (step 4D-2) by repeating step 4D-3. Iterations are also performed for all butterflies within a respective one of the blocks of butterflies 436 (step 4D-3) by repeating step 4D-4. For a particular butterfly within the respective one of the blocks of butterflies 436 a butterfly computation is performed (step 4D-4).
  • Referring back to FIG. 3C, after the set of 3-stage FFT computations of [0061] step 3C-1 has been done, the set of 3-stage FFT computations of step 3C-2 is performed. Step 3C-2 will now be described in detail with reference to FIGS. 4A to 4D, 5A, 5B and 6B.
  • The method according to FIG. 4A for performing the set of the 3-stage FFT computations of [0062] step 3C-1 is also applied to the set of the 3-stage FFT computations of step 3C-2 except that the N data points must be grouped into a different number of blocks of data, sub-blocks of data and sub-sub-blocks of data at step 4A-1 to properly evaluate the following three stages of the 18-stage FFT computation. At step 4A-1, the N data points are grouped into 2IS=2(1) (3)=8 blocks of data wherein I=1 for the set of 3-stage FFT computations of step 3C-2 and S=3 again for 3-stage FFT computations. In FIG. 6B, the external memory 18 carries the N data points with the N data points grouped into 8 blocks of data each carrying N/2IS=N/8 data points. Only one block of data 801 is shown for clarity. The block of data 801 corresponds to a respective one of the sub-blocks of data 310 as shown in FIG. 6A. Within the block of data 801 the N/8 data points are grouped into 8 sub-blocks of data 810 of N/2IS+S=N/2(1) (3)+3=N/64 data points and each sub-block of data 810 has M1 sub-sub-blocks of data of M2=0.5K data points (Only two sub-sub-blocks of data 800, 805 for each one of the sub-blocks of data 810 are shown for clarity). The sub-sub-blocks of data 800 form a set of 2S=23=8 sub-sub-blocks of data and the sub-sub-blocks of data 805 form another set of 2S=23=8 sub-sub-blocks of data. Combining all the sub-sub-blocks of data in this way results in M1 sets of 8 sub-sub-blocks of data. Each one of the sub-blocks of data 810 contains N/2IS+S=256K/2(1) (3)+3=4K data points, each one of the sub-sub-blocks of data 800, 805 contains M2=0.5K data points and M1=(N/82)/(0.5K)=8.
  • In the method of FIG. 4A, iterations are performed for all 8 blocks of data ([0063] step 4A-2) by repeating step 4A-3. Iterations are also performed (step 4A-3) for all M1=8 sets of 8 sub-sub-blocks of data by repeating steps 4A-4 to 4A-6. Steps 4A-4 to 4A-6 are the same as described above with reference to the set of 3-stage FFT computations of step 3C-1. Furthermore, the methods of performing the 3-stage FFT computations of step 4A-4 as described above with reference to FIGS. 4B to 4D, 5A and 5B also apply in this case except that in equation (1), I=1.
  • Referring back to FIG. 3C, a set of 12-stage FFT computations of [0064] step 3C-3 will now be described with reference to FIGS. 7A and 7B. Referring to FIG. 7A, shown is a flow chart of a method used to perform the set of 12-stage FFT computations of FIG. 3 (step 3C-3). The N=256K data points are grouped into N/212=64 sub-blocks of data of N/64=256K/64=4K data points (step 7A-1). This is shown in FIG. 7B where only three sub-blocks of data 900, 905 and 910 are shown for clarity. Iterations are performed for all 64 sub-blocks of data (step 7A-2) by repeating steps 7A-3, 7A-4 and 7A-5. For each iteration of step 7A-2, a 12-stage FFT computation is performed on 4K data points in a respective one of the sub-blocks of data (step 7A-3). In some embodiments of the invention, the 12-stage FFT computation is any suitable conventional 12-stage FFT computation using DIF as described with reference to FIGS. 1D and 1E. In other embodiments of the invention, the 12-stage FFT computation is optimized for a specific architecture of the internal memory 330. This will be described in more detail below. While the 12-stage FFT computations of step 7A-3 are being performed, a previous sub-block of data is exported from one of the buffers 915, 916 which is not being used to the external memory 18 (step 7A-4). A next sub-block of data is imported from the external memory 18 into one of the buffers 915, 916 that is not being used (step 7A-5). As an example, in one iteration, a 12-stage FFT computation of step 7A-3 is performed on data points within the sub-block of data 905 residing in the buffer 916 while the sub-block of data 900 is being exported from the buffer 915 (step 7A-4) and the sub-block of data 910 is being imported into the buffer 915 (step 7A-5).
  • As discussed above, in some embodiments of the invention, the 12-stage FFT computation of [0065] step 7A-3 is optimized for a specific architecture of the internal memory 330. For example, in one embodiment of the invention, the high-speed cache 917 has 16 Kbytes of memory and an FFT computation of N′ data point requires N′/2 twiddle Factors. In some embodiments of the invention, the number of required twiddle factors is decreased at the expense of more sophisticated programming code. A portion of the memory in the high-speed cache 917 must be reserved to store the N′/2 twiddle factors and another portion of the memory in the high-speed cache 917 must be reserved for an operating system. In some embodiments of the invention, the operating system requires 4 Kbytes of memory therefore the high speed cache 917 has a capacity to hold MC=12 Kbytes/8 bytes=3/2K=3/2 (1024) data points and twiddle factors of 8 bytes. To perform a FFT computation of N′ data points so that the N′ data points and the N′/2 twiddle factors all fit in the high-speed cache MC≧(N′+N′/2)=3N′/2 and therefore at most N′≦2MC/3=2(3/2) (1024)/3=210. Consequently, the high-speed cache 917 can only fit data points and respective twiddle factors for a k′-stage FFT computation with k′≦log2(N′)=log2(210)=10. Therefore, the high-speed cache cannot hold all 212 data points of a 12-stage FFT computation. Consequently, the 12 stages of the 12-stage FFT computation of step 7A-3 are grouped into two sub-stage groupings of 6 stages. More particularly, the 12-stage FFT computation of step 7A-3 is performed by performing a set of 6-stage FFT computations for the first 6 stages of the 12-stage FFT computation and then performing another set of 6-stage FFT computations for the final 6 stages of the 12-stage FFT computation.
  • The invention has been described with respect to an 18-stage FFT computation that uses decimation in frequency. In other embodiments of the invention the sets of 3-stage FFT computations of [0066] steps 3C-1 and 3C-2 and the set of 12-stages FFT computations of step 3C-3 are performed using decimation in time (DIT). In DIT, the butterflies 700 of FIG. 5A are computed using DIT as shown in FIGS. 8A and 8B where the new values of Xk(m, S, I) and Xl(m, S, I) (k,l=0 to 7) are given by Xk(m, S, I)=Xk(m, S, I)+Xl(m, S, I) Wib(i′) and Xl(m, S, I)=Xk(m, S, I)−Xl(m, S, I) Wib(i′) where ib(i′) is the bit reversal of i′ where ib (i′)=bit_reversal (i′) and i′=i′0, i′1, i′2, i′3, i′4, i′5 and i′6. The values of i′0, i′1, i′2, i′3, i′4, i′5 and i′6 are given by
  • i′0=w
  • i′1=2w
  • i′ 2=2w+1
  • i′3=4w   (2)
  • i′ 4=4w+1
  • i′ 5=4w+2
  • i′ 6=4w+3
  • where w=IS+1, S=3 for 3-stage FFT computations, I=0 for the set of 3-stage FFT computations of [0067] step 3C-1 and I=1 for the set of 3-stage FFT computations of step 3C-2.
  • Embodiments of the invention are not limited to embodiments in which N=256K and to an internal memory that has a double buffer of 64 Kbytes of memory for storing imported data points. Furthermore, embodiments of the invention are not limited to performing two sets of 3-stage FFT computations ([0068] steps 3C-1 and 3C-2) and then performing a set of 12-stage FFT computation (step 3C-3). In other embodiments of the invention N is an integral multiple of 2 and the internal memory holds MI data points. A N data point FFT computation requires a k-stage FFT computation with k=log2 (N). In such embodiments, Q sets of S-stage FFT computations are performed and then a set of D-stage FFT computations are performed wherein k=QS+D with 0≦D≦k−1. In such an embodiment, the k stages of the k-stage FFT computation are grouped into Q stage groupings of S stages and one stage grouping of D stages. The set of D-stage FFT computations includes N/2D D-stages FFT computations and the D-stage FFT computations are any suitable conventional DIF or DIT D-stage FFT computations optimized for a specific architecture of the internal memory 330. In some embodiments, the internal memory 330 has a double buffer for storing imported data points and D=log2(MI/2) whereas in other embodiments the internal memory 330 has a single buffer for storing imported data points and D=log2(MI). Embodiments are not limited to D=log2(MI/2) or D=log2(MI). As discussed above k=QS+D and this equation is re-arranged as S=(k−D)/Q. In embodiments where the internal memory 330 has a double buffer for storing data points, values of Q and D are chosen such that D and S are integers and such that D is as close as possible to log2(MI/2) with D≦log2(MI/2). In other embodiments where the internal memory 330 has a single buffer for storing data points values of Q and D are chosen such that D and S are integers and such that D is as close as possible to log2 (MI) with D≦log2(MI). Furthermore, the ratio of CPU processing times to data transfer times increases with increasing value of S and therefore performance increases with increasing value of S. However, when the ratio reaches a value of close to 1 the CPU processing times are comparable to the data transfer times and further increases in performance are no longer achieved with increasing value of S. The value for S is therefore preferably chosen to be large enough so that the CPU processing times are comparable to the data transfer times. Furthermore, in some embodiments of the invention there are no D-stage FFT computations being performed, D=0 and S=(k−D)/Q=k/Q. Consequently, in some embodiments of the invention 0≦D≦log2(MI) and in other embodiments 0≦D≦log2(MI/2). Limitations on Q and S are given by 1≦Q≦k−1 and 1≦S≦k−1. In another example, N=2k=213 and the internal memory 330 has a single buffer for storing imported data points and has a capacity to hold MI=212 data points. In this example, D=log2(MI)=log2(212)=12 and from k=SQ+D, SQ=1 resulting in Q=1 and S=1.
  • Referring to FIG. 9 shown is a flow chart of a method of performing Q sets of S-stage FFT computations in another embodiment of the invention. Beginning with a set of S-stage FFT computations, I, with I=0, of the Q sets of S-stage FFT computations, iterations are performed for all the Q sets of S-stage FFT computations (0≦I≦Q−1) (step [0069] 9A-1) by repeating a step 9-2. Within the set of S-stage FFT computations, I, the N data points are grouped into blocks of data, sub-blocks of data, sub-sub-blocks of data and the sub-sub-blocks of data are combined into M1 sets of 2S sub-sub-blocks of data (step 9-2). More particularly, within the set of S-stage FFT computations, I, the N data points are grouped into 2IS blocks of data, J (0≦J≦2IS−1), wherein each block of data, J, contains N/2IS data points. Within each one of the blocks of data, J, the N/2IS data are grouped into 2S sub-blocks of data wherein each sub-block of data contains N/2IS+S data points. Within each one of 2S the sub-blocks of data of N/2IS+S data points, data points are grouped into M1 sub-sub-blocks of data, M (0≦M≦M1), wherein each one of the sub-sub-block of data, M, contains M2=N/(2IS+SM1) data points. In embodiments of the invention where the internal memory 330 has a double buffer for storing imported data points, M2=MI/2S+1 and M1=N/(2IS+SM2)=N/(MI2IS−1). In other embodiments of the invention where the internal memory 330 has a single buffer for storing data points, M2=MI/2S and M1=(N/2IS+SM2)=N/(MI2IS). Respective ones of the sub-sub-blocks of data from within each one of 2S the sub-blocks of data are combined to form the M1 sets of 2S sub-sub-blocks of data of N/(2ISM1) data points. For example, as shown in FIG. 6B, the sub-sub-blocks of data 800 are combined into a set of 2S=23 sub-sub-blocks of data.
  • Iterations are then performed for each one of the 2[0070] IS blocks of data, J (step 9-3) by repeating a step 9-4. Iterations are also performed for each one of the M1 sets of 2S sub-sub-blocks of data (step 9-4) by repeating steps 9-5, 9-6 and 9-7. M2=(N/2IS+SM1) S-stage FFT computations are then performed for data points within a set of 2S sub-sub-blocks of data, M, as discussed above with reference to FIGS. 4B to 4D (step 9-5). While the S-stage FFT computations of step 9-5 are being performed, sub-sub-blocks of data from a previous iteration of step 9-4 are exported (step 9-6) from the internal memory 330 to the external memory 18 from one of the buffers 915, 916 that is not being used in step 9-5. A set of 2S sub-sub-blocks of data, for a next iteration, is then imported (step 9-7) from the external memory 18 into one of the buffers 915, 916 that is not being used in step 9-5.
  • Embodiments of the invention are not limited to embodiments in which imports and exports of data points of steps [0071] 9-7 and 9-6, respectively, are performed while the S-stage FFT computations of step 9-5 are being performed. For example, in one embodiment of the invention, the internal memory 330 has a single buffer for storing imported data points and prior to performing S-stage FFT computations on a set of 2S sub-sub-blocks of data, M, respective data points are imported into the internal memory 330 and after performing the S-stage FFT computations the respective data points are exported back to the external memory 18.
  • In some embodiments of the invention, the D-stage FFT computations are any suitable conventional D-stage FFT computation using DIF or DIT as described with reference to FIGS. 1D and 1E. In other embodiments of the invention, the D-stage FFT computation are optimized for a specific architecture of the [0072] internal memory 330. For example, in one embodiment of the invention, the high-speed cache 917 has a capacity to MC data points including respective twiddle factors for a k′-stage FFT computation. In one embodiment, the number of stages, k′, in which all data points and respective twiddle factor can be simultaneously loaded into the high-speed cache 917 must satisfy k′≦log2(2MC/3) wherein k′ is an integer. Therefore, stages of the D stages of each of the D-stage FFT computations are grouped into sub-stage groupings of at least one stage but less than or equal to k′ stages and a respective set of sub-stage FFT computation are performed for each one of the sub-stage groupings. The factor of ⅔ in k′≦log2(2MC/3) is limited by the algorithm used to perform the FFT computations and in other embodiments, in which a different algorithm is used to perform the FFT computations, a different factor is used.
  • Numerous modifications and variations of the present invention are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims, the invention may be practiced otherwise than as specifically described herein. [0073]

Claims (42)

We claim:
1. A method of performing a k-stage FFT (fast Fourier transform) computation of N data points wherein k and N are integers, the method comprising:
performing a plurality of operations upon the N data points, each one of the plurality of operations comprising;
performing an import of a respective plurality of sets of data points of the N data points from an external memory into an internal memory;
performing a FFT computation of the k-stage FFT computation upon each one of the sets of data points in the internal memory; and
performing an export of the respective plurality of sets of data points of the N data points from the internal memory into the external memory to update the respective sets of data points of the N data points in the external memory.
2. A method of performing a k-stage FFT computation of N data points wherein k and N are integers, the method comprising:
for each one of a plurality of stage groupings of at least one stage of k stages of the k-stage FFT computation wherein the plurality of stage groupings of at least one stage collectively comprise the k stages, performing a respective plurality of operations on the N data points, each one of the respective plurality of operations comprising:
performing an import of a respective plurality of sets of data points of the N data points from an external memory into an internal memory;
performing a FFT computation upon each one of the respective plurality of sets of data points of the N data points in the internal memory; and
performing an export of the respective plurality of sets of data points of the N data points from the internal memory into the external memory to update the respective plurality of sets of data points of the N data points in the external memory.
3. A method of performing a k-stage FFT computation according to claim 2 comprising performing an import of a next respective plurality of sets of data points of the N data points for a next one of the respective plurality of operations while the performing a FFT computation upon each one of the respective plurality of sets of data points of the N data points in the internal memory.
4. A method of performing a k-stage FFT computation according to claim 2 comprising performing an export of a previous respective plurality of sets of data points of the N data points for a previous one of the respective plurality of operations while the performing a FFT computation upon each one of the respective plurality of sets of data points of the N data points in the internal memory.
5. A method of performing a k-stage FFT computation according to claim 2 wherein the FFT computation is performed using decimation in frequency (DIF).
6. A method of performing a k-stage FFT computation according to claim 2 wherein the FFT computation is performed using decimation in time (DIT).
7. A method of performing a k-stage FFT computation according to claim 2 wherein N substantially satisfies N=2k.
8. A method of performing a k-stage FFT computation according to claim 7 wherein the stage groupings of at least one stage comprise Q stage groupings each comprising S stages, said Q and said S being integers with Q≧1, S≧1 and k≧QS.
9. A method of performing a k-stage FFT computation according to claim 8 comprising:
grouping, within a stage grouping, I, of the Q stage groupings wherein I is an integer satisfying 0≦I≦Q−1, the N data points into 2IS blocks of data of N/2IS respective data points;
grouping, within each one of the 2IS blocks of data, the N/2IS respective data points into 2S sub-blocks of data of N/2IS+S respective data points;
grouping, within each one of the 2S sub-blocks of data, the N/2IS+S respective data points into M1 sub-sub-blocks of data of N/(2IS+S M1) respective data points wherein M1 is an integer;
taking, within each one of the 2IS blocks of data, a respective sub-sub-block of data of the M1 sub-sub-blocks of data from each one of the 2S sub-blocks of data to form a set of 2S sub-sub-blocks of data of N/(2ISM1) data points a total of M1 times to produce M1 sets of 2S sub-sub-blocks of data of N/(2ISM1) data points; and
taking, within each one of the M1 sets of 2S sub-sub-blocks of data, a respective data point from each one of the 2S sub-blocks of data to form a set of 2S data points a total of N/(2IS+SM1) times to produce N/(2IS+SM1) sets of 2S data points.
10. A method of performing a k-stage FFT computation according to claim 9 wherein, for the stage grouping, I, of the of the Q stage groupings of the plurality of stage groupings, the performing a respective plurality of operations on the N data points comprises performing M1 of the plurality of operations for each one of the 2IS blocks of data within the stage grouping, I, each one of the M1 of the plurality operations comprising:
performing an import of respective N/(2IS+SM1) sets of 2S data points from the external memory into the internal memory;
performing an S-stage FFT computation of the k-stage FFT computation upon each set of 2S data points of the respective N/(2IS+SM1) sets of 2S data points in the internal memory; and
performing an export of the respective N/(2IS+SM1) sets of 2S data points from the internal memory into the external memory to update the respective N/(2IS+SM1) sets of 2S data points in the external memory.
11. A method of performing a k-stage FFT computation according to claim 10 wherein M1 substantially satisfies M1=N/(2ISMI) wherein MI corresponds to the number of data points the internal memory can hold.
12. A method of performing a k-stage FFT computation according to claim 10 wherein M1 substantially satisfies M1=N/(2IS−1MI) wherein MI corresponds to the number of data points a buffer in the internal memory can hold.
13. A method of performing a k-stage FFT computation according to claim 10 wherein the performing an S-stage FFT computation of the k-stage FFT computation upon each set of 2S data points of the respective N/(2IS+SM1) sets of 2S data points results in N/(2IS+S M1) S-stage FFT computations, the N/(2IS+S M1) S-stage FFT computations comprising performing one stage of S stages for each one of the N/(2IS+S M1) S-stage FFT computations and iterating through the S stages.
14. A method of performing a k-stage FFT computation according to claim 10 wherein the performing an S-stage FFT computation of the k-stage FFT computation upon each set of 2S data points of the respective N/(2IS+SM1) sets of 2S data points results in N/(2IS+S M1) S-stage FFT computations, the N/(2IS+S M1) S-stage FFT computations comprising performing computations for S stages of an S-stage FFT computation of one of the N/(2IS+S M1) S-stage FFT computations before another S-stage FFT computation is performed on another of one of the N/(2IS+S M1) S-stage FFT computations.
15. A method of performing a k-stage FFT computation according to claim 8 wherein the stage groupings of at least one stage comprise a stage grouping comprising D stages wherein D is an integer and k=QS+D.
16. A method of performing a k-stage FFT computation according to claim 15 wherein the performing an import comprises importing the plurality of sets of data points into a buffer in the internal memory, the buffer having a capacity to hold MI data points and D being an integer substantially satisfying D≦log2 (MI).
17. A method of performing a k-stage FFT computation according to claim 15 wherein the performing an import comprises importing the plurality of sets of data points into one of two buffers of a double buffer in the internal memory, each one of the two buffers having a capacity to hold MI/2 data points and D being an integer substantially satisfying D≦log2 (MI/2).
18. A method of performing a k-stage FFT computation according to claim 15 comprising, for each one of a plurality of sub-stage groupings of at least one stage of the stage grouping of D stages wherein the plurality of sub-stage groupings of at least one stage collectively comprise the D stages, performing a set of sub-stage FFT computations wherein for each one of the sub-stage FFT computations respective data points and respective twiddle factors are loaded into a high-speed cache.
19. A processing platform implementing the method of claim 2.
20. A processor comprising:
an internal memory adapted to store data;
a DMA (direct memory access) unit adapted to import data into the internal memory and to export data from the internal memory; and
a central processor unit (CPU) adapted to perform, for each one of a plurality of stage groupings of at least one stage of k stages of the k-stage FFT computation wherein the plurality of stage groupings of at least one stage collectively comprise the k stages, a respective plurality of operations on the N data points, for each one of the respective plurality of operations the CPU is adapted to:
provide instructions to the DMA unit for performing an import of a respective plurality of sets of data points, of N data points, into the internal memory;
perform a FFT computation upon each one of the respective plurality of sets of data points, of the N data points, in the internal memory; and
provide instructions to the DMA unit for performing an export of the respective plurality of sets of data points, of the N data points, from the internal memory to update the respective plurality of sets of data points of the N data points.
21. A processor according to claim 20 further comprising an external memory adapted to store the N data points.
22. A processor according to claim 21 comprising at least one bus wherein the DMA unit is further adapted to import the respective plurality of sets of data points, of the N data points, from the external memory and to export the respective plurality of sets of data points, of the N data points, into the external memory through the at least one bus.
23. A processor according to claim 20 wherein the internal memory comprises:
a double buffer comprising two buffers each adapted to stored data points;
two buses each adapted to provide a channel for importing the data points into a respective one of the two buffers and for exporting the data points from the respective one of the two buffers; and
the CPU being further adapted to provide instructions to the DMA unit for importing a respective plurality of sets of data points, of the N data points, into one of the two buffers while the CPU performs FFT computations upon another respective plurality of sets of data points, of the N data points, stored in another one of the two buffers.
24. A processor according to claim 20 wherein the internal memory comprises:
a double buffer comprising two buffers each adapted to stored data points;
two buses each adapted to provide a channel for importing the data points into a respective one of the two buffers and for exporting the data points from the respective 1one of the two buffers; and
the CPU being further adapted to provide instructions to the DMA unit for exporting respective sets of data points from one of the two buffers while the CPU performs FFT computations upon other respective sets of data points stored in another one of the two buffers.
25. A processor according to claim 20 wherein N substantially satisfies N=2k with k being an integer and wherein the stage groupings of at least one stage comprise Q stage groupings each comprising S stages, said Q and said S being integers with Q≧1, S≧1 and k≧QS.
26. A processor according to claim 20 wherein the CPU is adapted to:
group, within a stage grouping, I, of the Q stage groupings wherein I is an integer satisfying 0≦I≦Q−1, the N data points into 2IS blocks of data of N/2IS respective data points;
group, within each one of the 2IS blocks of data, the N/2IS respective data points into 2S sub-blocks of data of N/2IS+S respective data points;
group, within each one of the 2S sub-blocks of data, the N/2IS+S respective data points into M1 sub-sub-blocks of data of N/(2IS+S M1) respective data points wherein M1 is an integer;
take, within each one of the 2IS blocks of data, a respective sub-sub-block of data of the M1 sub-sub-blocks of data from each one of the 2S sub-blocks of data to form a set of 2S sub-sub-blocks of data of N/(2ISM1) data points a total of M1 times to produce M1 sets of 2S sub-sub-blocks of data of N/(2ISM1) data points; and
take, within each one of the M1 sets of 2S sub-sub-blocks of data, a respective data point from each one of the 2S sub-blocks of data to form a set of 2S data points a total of N/(2IS+SM1) times to produce N/(2IS+SM1) sets of 2S data points.
27. A processor according to claim 26 wherein, for the stage grouping, I, of the of the Q stage groupings of the plurality of stage groupings, the CPU is adapted to perform M1 of the plurality operations for each one of the 2IS blocks of data within the stage grouping, I, and for each one of the M1 of the plurality operations the CPU is adapted to:
provide instructions to the DMA unit for performing an import of respective N/(2IS+SM1) sets of 2S data points into the internal memory;
performing an S-stage FFT computation of the k-stage FFT computation upon each set of 2S data points of the respective N/(2IS+SM1) sets of 2S data points in the internal memory; and
provide instructions to the DMA unit for performing an export of the respective N/(2IS+SM1) sets of 2S data points from the internal memory to update the respective N/(2IS+SM1) sets of 2S data points.
28. A processor according to claim 27 wherein the internal memory comprises a buffer adapted to store the plurality of sets of data points, wherein the buffer has a capacity to hold MI data points and M1 substantially satisfies M1=N/(2ISM1) wherein MI in an integer.
29. A processor according to claim 27 wherein the internal memory comprises a double buffer adapted to store the plurality of sets of data points, wherein the double buffer comprises two buffers each capable of storing MI/2 data points and wherein said M1 substantially satisfies M1=N/(2IS−1MI), MI being an integer.
30. A processor according to claim 29 wherein while the CPU performs the S-stage FFT computation of the k-stage FFT computation upon each set of 2S data points of the respective N/(2IS+SM1) sets of 2S data points, the respective N/(2IS+SM1) sets of 2S data points being stored in one of the two buffers, the CPU is adapted to provide instructions to the DMA unit to import, into another one of the two buffers, respective N/(2IS+SM1) sets of 2S data points of a next one of the each one of the M1 of the plurality operations.
31. A processor according to claim 29 wherein while the CPU performs the S-stage FFT computation of the k-stage FFT computation upon each set of 2S data points of the respective N/(2IS+SM1) sets of 2S data points, the respective N/(2IS+SM1) sets of 2S data points being stored in one of the two buffers, the CPU is adapted to provide instructions to the DMA unit to export, from another one of the two buffers, respective N/(2IS+SM1) sets of 2S data points from previous one of the each one of the M1 of the plurality operations.
32. A processor according to claim 27 wherein the performing an S-stage FFT computation of the k-stage FFT computation upon each set of 2S data points of the respective N/(2IS+SM1) sets of 2S data points results in N/(2IS+S M1) S-stage FFT computations, the CPU being further adapted to evaluate the N/(2IS+S M1) S-stage FFT computations at one stage of S stages for each one of the N/(2IS+S M1) S-stage FFT computations and iterate through the S stages.
33. A processor according to claim 27 wherein the internal memory comprises a high-speed cache.
34. A processor according to claim 33 wherein the performing an S-stage FFT computation of the k-stage FFT computation upon each set of 2S data points of the respective N/(2IS+SM1) sets of 2S data points results in N/(2IS+S M1) S-stage FFT computations, the CPU being further adapted to perform computations for S stages of an S-stage FFT computation of one of the N/(2IS+S M1) S-stage FFT computations before performing another S-stage FFT computation of another one of the N/(2IS+S M1) S-stage FFT computations.
35. A processor according to claim 28 wherein the stage groupings of at least one stage comprise a stage grouping of D stage wherein D is an integer, said k substantially satisfying k=QS+D and said D substantially satisfying D≦log2(MI).
36. A processor according to claim 29 wherein the stage groupings of at least one stage comprise a stage grouping of D stage wherein D is an integer, said k substantially satisfying k=QS+D and said D substantially satisfying D≦log2(MI/2).
37. A processor according to claim 20 wherein the CPU is adapted to produce the k-stage FFT computation in real-time.
38. A processor according to claim 20 wherein the internal memory comprises a buffer adapted to store twiddle factors used in the FFT computations.
39. An article of manufacture comprising:
a computer usable medium having computer readable program code means embodied therein for performing a k-stage FFT computation of N data points wherein k and N are integers, the computer readable code means in said article of manufacture comprising:
computer readable code FFT means for performing, for each one of a plurality of stage groupings of at least one stage of k stages of the k-stage FFT computation wherein the plurality of stage groupings of at least one stage collectively comprise the k stages, a respective plurality of operations on the N data points, for each one of the respective plurality of operations the computer readable code FFT means comprising:
computer readable code means for providing instructions for performing an import of a respective plurality of sets of data points of the N data points from an external memory into an internal memory;
computer readable code means for performing a FFT computation upon each one of the respective plurality of sets of data points of the N data points in the internal memory; and
computer readable code means for providing instructions for performing an export of the respective plurality of sets of data points of the N data points from the internal memory into the external memory to update the respective plurality of sets of data points of the N data points in the external memory.
40. An article of manufacture according to claim 39 wherein the stage groupings of at least one stage comprise a stage grouping of D stage and Q stage groupings of S stages M wherein D, Q and S are integers and wherein said k substantially satisfies k=QS+D and k=log2 (N).
41. An article of manufacture according to claim 40 comprising further computer readable code means for:
grouping, within a stage grouping, I, of the Q stage groupings wherein I is an integer satisfying 0≦I≦Q−1, the N data points into 2IS blocks of data of N/2IS respective data points;
grouping, within each one of the 2IS blocks of data, the N/2IS respective data points into 2S sub-blocks of data of N/2IS+S respective data points;
grouping, within each one of the 2S sub-blocks of data, the N/2IS+S respective data points into M1 sub-sub-blocks of data of N/(2IS+S M1) respective data points wherein M1 is an integer;
taking, within each one of the 2IS blocks of data, a respective sub-sub-block of data of the M1 sub-sub-blocks of data from each one of the 2S sub-blocks of data to form a set of 2S sub-sub-blocks of data of N/(2ISM1) data points a total of M1 times to produce M1 sets of 2S sub-sub-blocks of data of N/(2ISM1) data points; and
taking, within each one of the M1 sets of 2S sub-sub-blocks of data, a respective data point from each one of the 2S sub-blocks of data to form a set of 2S data points a total of N/(2IS+SM1) times to produce N/(2IS+SM1) sets of 2S data points.
42. An article of manufacture according to claim 41 wherein, for the stage grouping, I, of the of the Q stage groupings of the plurality of stage groupings, the computer readable code FFT means is further adapted to perform M1 of the plurality operations for each one of the 2IS blocks of data within the stage grouping, I, and for each one of the M1 of the plurality operations the computer readable code FFT means further comprising:
computer readable code means for providing instructions for performing an import of respective N/(2IS+SM1) sets of 2S data points from the external memory into the internal memory;
computer readable code means for performing an S-stage FFT computation of the k-stage FFT computation upon each set of 2S data points of the respective N/(2IS+SM1) sets of 2S data points in the internal memory; and
computer readable code means for providing instructions for performing an export of the respective N/(2IS+SM1) sets of 2S data points from the internal memory into the external memory to update the respective N/(2IS+SM1) sets of 2S data points in the external memory.
US10/025,870 2001-12-26 2001-12-26 Real-time method and apparatus for performing a large size fast fourier transform Expired - Lifetime US6963892B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US10/025,870 US6963892B2 (en) 2001-12-26 2001-12-26 Real-time method and apparatus for performing a large size fast fourier transform
CA002386711A CA2386711A1 (en) 2001-12-26 2002-05-17 Real-time method and apparatus for performing a large size fast fourier transform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US10/025,870 US6963892B2 (en) 2001-12-26 2001-12-26 Real-time method and apparatus for performing a large size fast fourier transform

Publications (2)

Publication Number Publication Date
US20030120692A1 true US20030120692A1 (en) 2003-06-26
US6963892B2 US6963892B2 (en) 2005-11-08

Family

ID=21828496

Family Applications (1)

Application Number Title Priority Date Filing Date
US10/025,870 Expired - Lifetime US6963892B2 (en) 2001-12-26 2001-12-26 Real-time method and apparatus for performing a large size fast fourier transform

Country Status (2)

Country Link
US (1) US6963892B2 (en)
CA (1) CA2386711A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070106718A1 (en) * 2005-11-04 2007-05-10 Shum Hoi L Fast fourier transform on a single-instruction-stream, multiple-data-stream processor
CN105527609A (en) * 2015-12-02 2016-04-27 西安电子工程研究所 PD radar system matrix transposition method based on DSP

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4698394B2 (en) * 2005-11-25 2011-06-08 パナソニック株式会社 Fast Fourier transform circuit
US8014668B2 (en) * 2007-01-21 2011-09-06 Alcatel Lucent Method and system for distributed measurement and compensation of chromatic dispersion in an optical network
US7675847B2 (en) 2007-07-10 2010-03-09 Wipro Limited Hardware implementation of a programmable FFT based on a half length FFT core

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3617720A (en) * 1967-09-12 1971-11-02 Bell Telephone Labor Inc Fast fourier transform using hierarchical store
US5029079A (en) * 1988-08-04 1991-07-02 Array Microsystems, Inc. Apparatus and method for flexible control of digital signal processing devices
US5091875A (en) * 1990-03-23 1992-02-25 Texas Instruments Incorporated Fast fourier transform (FFT) addressing apparatus and method
US6115728A (en) * 1997-01-22 2000-09-05 Matsushita Electric Industrial Co., Ltd. Fast fourier transforming apparatus and method, variable bit reverse circuit, inverse fast fourier transforming apparatus and method, and OFDM receiver and transmitter
US6356926B1 (en) * 1996-10-21 2002-03-12 Telefonaktiebolaget Lm Ericsson (Publ) Device and method for calculating FFT
US6421696B1 (en) * 1999-08-17 2002-07-16 Advanced Micro Devices, Inc. System and method for high speed execution of Fast Fourier Transforms utilizing SIMD instructions on a general purpose processor
US6430149B1 (en) * 1998-04-01 2002-08-06 Sony Corporation Processing circuits for complex operation

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6792441B2 (en) * 2000-03-10 2004-09-14 Jaber Associates Llc Parallel multiprocessing for the fast fourier transform with pipeline architecture
WO2001078290A2 (en) * 2000-04-07 2001-10-18 Comsat Corporation Traced fast fourier transform apparatus and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3617720A (en) * 1967-09-12 1971-11-02 Bell Telephone Labor Inc Fast fourier transform using hierarchical store
US5029079A (en) * 1988-08-04 1991-07-02 Array Microsystems, Inc. Apparatus and method for flexible control of digital signal processing devices
US5091875A (en) * 1990-03-23 1992-02-25 Texas Instruments Incorporated Fast fourier transform (FFT) addressing apparatus and method
US6356926B1 (en) * 1996-10-21 2002-03-12 Telefonaktiebolaget Lm Ericsson (Publ) Device and method for calculating FFT
US6115728A (en) * 1997-01-22 2000-09-05 Matsushita Electric Industrial Co., Ltd. Fast fourier transforming apparatus and method, variable bit reverse circuit, inverse fast fourier transforming apparatus and method, and OFDM receiver and transmitter
US6247034B1 (en) * 1997-01-22 2001-06-12 Matsushita Electric Industrial Co., Ltd. Fast fourier transforming apparatus and method, variable bit reverse circuit, inverse fast fourier transforming apparatus and method, and OFDM receiver and transmitter
US6430149B1 (en) * 1998-04-01 2002-08-06 Sony Corporation Processing circuits for complex operation
US6421696B1 (en) * 1999-08-17 2002-07-16 Advanced Micro Devices, Inc. System and method for high speed execution of Fast Fourier Transforms utilizing SIMD instructions on a general purpose processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070106718A1 (en) * 2005-11-04 2007-05-10 Shum Hoi L Fast fourier transform on a single-instruction-stream, multiple-data-stream processor
CN105527609A (en) * 2015-12-02 2016-04-27 西安电子工程研究所 PD radar system matrix transposition method based on DSP

Also Published As

Publication number Publication date
US6963892B2 (en) 2005-11-08
CA2386711A1 (en) 2003-06-26

Similar Documents

Publication Publication Date Title
US20180165250A1 (en) Data Processing Method and Processor based on 3072-Point Fast Fourier Transformation, and Storage Medium
US20200213079A1 (en) Method and Apparatus for Configuring a Reduced Instruction Set Computer Processor Architecture to Execute a Fully Homomorphic Encryption Algorithm
US8489555B2 (en) Method of managing storage and retrieval of data objects
US20050177608A1 (en) Fast Fourier transform processor and method using half-sized memory
US9934199B2 (en) Digital filter device, digital filtering method, and storage medium having digital filter program stored thereon
US7543010B2 (en) Modular pipeline fast Fourier transform
WO2013097219A1 (en) Data access method and device for parallel fft calculation
Hidalgo et al. Area-efficient architecture for fast Fourier transform
US6963892B2 (en) Real-time method and apparatus for performing a large size fast fourier transform
US7395293B1 (en) Memory segmentation for fast fourier transform
EP0936564A2 (en) Bit and digit reversal methods
Ahuja et al. An associative/parallel processor for partial match retrieval using superimposed codes
US20140280421A1 (en) Fft accelerator
US6728742B1 (en) Data storage patterns for fast fourier transforms
EP4011030A1 (en) Configuring a reduced instruction set computer processor architecture to execute a fully homomorphic encryption algorithm
CN116595297A (en) Reconfigurable mixed-base FFT design method supporting output pruning
WO2022266920A1 (en) METHODS AND APPARATUS TO PERFORM MIXED RADIX FAST FOURIER TRANSFORM (FFT) CALCULATIONS ON GRAPHICS PROCESSING UNITS (GPUs)
CN101751356A (en) Method, system and apparatus for improving direct memory access transfer efficiency
Baek et al. New address generation scheme for memory-based FFT processor using multiple radix-2 butterflies
JP2012160092A (en) Arithmetic unit, operation method and program
US6438568B1 (en) Method and apparatus for optimizing conversion of input data to output data
US20090172062A1 (en) Efficient fixed-point implementation of an fft
KR20120101807A (en) Memory-based fast fourier transform processor
Bouguezel et al. Efficient pruning algorithms for the DFT computation for a subset of output samples
US20220043883A1 (en) Hardware implementation of discrete fourier transform

Legal Events

Date Code Title Description
AS Assignment

Owner name: TROPIC NETWORKS INC., CANADA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:JIN, DONGXING;WAN, PING WAI;MARZILIANO, LEONARD;REEL/FRAME:012404/0969

Effective date: 20011218

STCF Information on status: patent grant

Free format text: PATENTED CASE

FEPP Fee payment procedure

Free format text: PAT HOLDER NO LONGER CLAIMS SMALL ENTITY STATUS, ENTITY STATUS SET TO UNDISCOUNTED (ORIGINAL EVENT CODE: STOL); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

FEPP Fee payment procedure

Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

AS Assignment

Owner name: 6467253 CANADA INC., CANADA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:TROPIC NETWORKS INC.;REEL/FRAME:021127/0401

Effective date: 20060105

Owner name: 6467253 CANADA INC., CANADA

Free format text: CHANGE OF NAME;ASSIGNOR:TROPIC NETWORKS INC.;REEL/FRAME:021127/0665

Effective date: 20060106

AS Assignment

Owner name: ALCATEL-LUCENT CANADA INC., CANADA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:TROPIC NETWORKS INC.;REEL/FRAME:021138/0001

Effective date: 20070413

CC Certificate of correction
CC Certificate of correction
FPAY Fee payment

Year of fee payment: 4

CC Certificate of correction
AS Assignment

Owner name: TROPIC NETWORKS INC., CANADA

Free format text: CORRECTIVE ASSIGNMENT TO CORRECT THE ASSIGNEE AND ASSIGNOR FIELDS PREVIOUSLY RECORDED ON REEL 021127 FRAME 0665. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNOR IS TO BE 6467253 CANADA INC. AND THE ASSIGNEE IS TO BE TROPIC NETWORKS INC.;ASSIGNOR:6467253 CANADA INC.;REEL/FRAME:029609/0973

Effective date: 20060106

FPAY Fee payment

Year of fee payment: 8

FPAY Fee payment

Year of fee payment: 12