N-point FFT fast implementation method, device and FPGA chip based on multiplexing module
By using a mixed radix form based on multiplexing modules in FPGA to perform multi-level radix 2-FFT and radix 4-FFT operations, combined with data sorting, the existing FFT algorithm solves the problem of difficulty in optimizing resources and speed when transforming large-value N points. solve the problem and achieve more efficient FFT calculation, which is suitable for a variety of application scenarios.
Patent Information
- Application Number
- CN202310343945.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-03
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2043-04-03
AI Technical Summary
In FPGA, the existing FFT algorithm is difficult to optimize resources and speed at the same time when processing large-value N-point Fourier transform, and the single-base FFT calculation method has the problem of many calculation stages and many multiplications, which cannot meet the needs of radar reconnaissance. and the need for rapid response in the field of disruption.
It adopts a mixed basis form based on multiplexing modules, through multi-level radix 2-FFT and radix 4-FFT operations, combined with data sorting, reducing multiplication calculations and parallel processing, and is suitable for more N-point FFT calculation scenarios.
A good trade-off between resource usage and clock number is achieved in FPGA, reducing the number of clocks and multiplication times required for FFT calculation, and is suitable for a variety of N-point FFT applications.
Smart Images

Figure CN116467554B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of FPGA technology, and in particular to a method and device for quickly implementing an N-point FFT based on a multiplexing module, and an FPGA chip. Background Art
[0002] In software, FFT (fast Fourier transform) is a fast and convenient method to transform signals from time domain to frequency domain, but in FPGA, the implementation of FFT transformation requires comprehensive consideration of many factors such as resources, timing, and clock number. When using IP cores, there are various optional implementation methods, and in order to have a high degree of universality, the timing will be quite good, which also leads to an increase in the number of clocks. When fewer resources are required, a large number of clocks are required. This method of using IP cores requires more clocks and cannot meet the rapid response required in certain applications in the field of radar reconnaissance and interference. In the field of radar reconnaissance and interference, the data at the radio frequency must first be down-converted to intermediate frequency data through microwave mixing, and then the analog signal of the intermediate frequency must be converted into a digital signal using an analog-to-digital converter, and then the unnecessary signals are filtered out by filtering, and the real and imaginary digital signals in the time domain are formed at the same time, and then FFT calculations are performed. The existing FFT algorithm has the following problems:
[0003] 1. When using N-point Fourier transform, when N is a relatively large value, it is difficult for resources and speed to be in a relatively good state at the same time.
[0004] 2. When using FPGA for FFT transformation, single radix has its own disadvantages. When only using radix 2-FFT calculation method, the number of calculation levels required is large and the number of multiplications required is large. Radix 4-FFT can only adapt to N-point FFT calculation with base 4. Summary of the invention
[0005] Technical purpose: In view of the above technical problems, the present invention proposes a method, device and FPGA chip for quickly implementing N-point FFT based on a multiplexing module. By adopting multiplexing resources and a mixed basis form of radix 2 and radix 4 to implement N-point FFT calculation, it can reduce multiplication calculations and be suitable for more usage scenarios.
[0006] Technical solution: To achieve the above technical objectives, the present invention adopts the following technical solution:
[0007] A method for quickly implementing N-point FFT based on a multiplexing module, characterized by comprising the steps of:
[0008] Get a discrete sequence x(N) with N data;
[0009] The discrete sequence x(N) is sorted for the first time so that the data that need to be multiplied at different levels are located in the same system clock;
[0010] Input the data sorted for the first time in parallel, and perform a multi-level radix 2-FFT operation of a first preset level Num1 on the data input each time;
[0011] The data obtained after completing the multi-stage radix 2-FFT operation is sorted for the second time so that the data that need to be complex multiplied at different stages are located within the same system clock;
[0012] Input the data sorted for the second time in parallel, and perform a multi-level radix 4-FFT operation of a second preset level Num2 on the data input each time;
[0013] The data obtained after completing the multi-stage radix 4-FFT operation is output as the operation result in a data order that is the same as the order of the N data in the initially acquired discrete sequence x(N).
[0014] Preferably, for a sequence x(N) with N data, the number of times the N-point FFT module is multiplexed is f adc / f sys , f adc is the data acquisition clock frequency, f sys is the system clock frequency.
[0015] Preferably, a multi-stage radix 2-FFT operation or a multi-stage radix 4-FFT operation is performed in a time-decimation mode or a frequency-decimation mode;
[0016] During the multi-level radix 2-FFT operation, the calculated data is sorted once every log2 m-level operation; during the multi-level radix 4-FFT operation, the calculated data is sorted once every log4m-level operation, where m represents the number of parallel data processing paths.
[0017] Preferably, when performing multi-level radix 2-FFT operation and multi-level radix 4-FFT operation in a frequency extraction manner, the steps include:
[0018] The data obtained after completing the multi-level radix 4-FFT operation is finally sorted so that the data order is the same as the order of the N data in the initially acquired discrete sequence x(N);
[0019] The N data finally sorted are used as the calculation result of N-point FFT and output.
[0020] Preferably, the discrete sequence x(n) is a radar signal obtained by sampling.
[0021] A device for fast implementation of N-point FFT based on multiplexing module, characterized by comprising:
[0022] A data acquisition module, used for acquiring a discrete sequence x(N) having N data;
[0023] Sorting module, used to sort data;
[0024] A multi-level radix 2-FFT operation module, used for inputting data in parallel and performing a multi-level radix 2-FFT operation of a first preset level Num1 on each input data;
[0025] A multi-level radix 4-FFT operation module, used for inputting data in parallel and performing multi-level radix 4-FFT addition, subtraction and complex multiplication operations of a second preset level Num2 on the input data each time;
[0026] The output module is used to output the N data finally sorted as the operation result of the N-point FFT.
[0027] An FPGA chip, characterized by comprising:
[0028] Clock module, used to generate system clock;
[0029] ADC module, used to collect external input analog signals to form m-channel parallel data;
[0030] A filter module is used to filter the signal and generate m-channel parallel data of the real part and the imaginary part in the time domain;
[0031] An N-point FFT module is used to perform FFT calculation on m-channel parallel data of real and imaginary parts in the time domain to generate m-channel parallel data of real and imaginary parts in the frequency domain;
[0032] Wherein, the N-point FFT module executes the N-point FFT fast implementation method based on the multiplexing module.
[0033] Beneficial effects: Due to the adoption of the above technical solution, the present invention has the following beneficial effects:
[0034] When the present invention uses FPGA to complete FFT calculation, a better trade-off is achieved in resource usage, the number of clocks required for FFT calculation, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A flow chart of FFT operation in a multiplexed form is proposed for the present invention;
[0036] Figure 2 A schematic diagram of the number of multiplications required to complete FFT calculation for 16 parallel data using the radix 2-FFT method;
[0037] Figure 3 A schematic diagram of the number of multiplications required to complete FFT calculation for 16 parallel data using the radix 4-FFT method;
[0038] Figure 4 A schematic diagram of the number of multiplications required to complete FFT calculation for 16 parallel data using the split-radix-FFT method;
[0039] Figure 5 It is a flowchart of FFT operation under the time-decimation radix 2-FFT method;
[0040] Figure 6 It is a flowchart of FFT operation under the frequency extraction radix 2-FFT method;
[0041] Figure 7 It is a flowchart of FFT operation under the frequency extraction mixed basis-FFT method;
[0042] Figure 8 The process of FFT operation under the mixed basis-FFT method of time extraction Figure 1 ;
[0043] Fig. 9 The process of FFT operation under the mixed basis-FFT method of time extraction Figure 2 ;
[0044] Fig.10 This is a flowchart of the FFT operation under the frequency splitting radix 2-FFT method. DETAILED DESCRIPTION
[0045] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0046] Embodiment 1
[0047] The present invention proposes a method for quickly implementing an N-point FFT based on a multiplexing module, comprising the following steps:
[0048] Get a discrete sequence x(N) with N data;
[0049] The discrete sequence x(N) is sorted for the first time so that the data that need to be multiplied at different levels are located in the same system clock;
[0050] Input the data sorted for the first time in parallel, and perform a multi-level radix 2-FFT operation of a first preset level Num1 on the data input each time;
[0051] The data obtained after completing the multi-stage radix 2-FFT operation is sorted for the second time so that the data that need to be complex multiplied at different stages are located within the same system clock;
[0052] Input the data sorted for the second time in parallel, and perform a multi-level radix 4-FFT operation of a second preset level Num2 on the data input each time;
[0053] The data obtained after completing the multi-stage radix 4-FFT operation is output as the operation result in a data order that is the same as the order of the N data in the initially acquired discrete sequence x(N).
[0054] The sorting is mainly to put the data that need to be multiplied at different levels in N data on the same clock. For different N points, the number of times the N-point FFT module is reused is still f. adc / f sys , performing a multi-stage radix-2-FFT operation or a multi-stage radix-4-FFT operation in a time-decimation manner or a frequency-decimation manner.
[0055] During the multi-level radix 2-FFT operation, the calculated data is sorted once every log2 m-level operation; during the multi-level radix 4-FFT operation, the calculated data is sorted once every log4m-level operation, m represents the number of parallel data processing paths, the number of sorting times by time is ceil(log2N / log2m), the number of sorting times by frequency is ceil(log2N / log2m)+1, log2N is the total number of operation levels processed only by radix 2, log2m represents the number of operation levels that can be calculated by radix 2 in one sort, each radix 4 level can replace 2 radix 2 levels, that is, each radix 4 level can reduce the number of operation levels by 1.
[0056] If a multi-level radix 2-FFT operation and a multi-level radix 4-FFT operation are performed in a frequency extraction manner, the steps include:
[0057] The data obtained after completing the multi-level radix 4-FFT operation is finally sorted so that the data order is the same as the order of the N data in the initially acquired discrete sequence x(N);
[0058] The N data finally sorted are used as the calculation result of N-point FFT and output.
[0059] The final sorting is to make the data order the same as the data order at the beginning of calculating the N-point FFT.
[0060] The present invention mainly requires a clock module, an ADC module, a filter module and an N-point FFT module to complete the above-mentioned operations. The clock module mainly generates the required clock; the ADC module collects analog signals to form m-channel parallel data; the filter module mainly filters the signals to generate m-channel parallel data of the real part and the imaginary part in the time domain; the N-point FFT performs FFT calculation on the m-channel parallel data of the real part and the imaginary part to generate m-channel parallel data of the real part and the imaginary part in the frequency domain.
[0061] like Figure 1 As shown, this embodiment proposes a FPGA fast implementation method of N-point FFT based on multiplexing module, which uses multiplexing resources and a mixed basis of radix 2 / radix 4 to implement N-point FFT calculation. The data required for the calculation of the same data at different levels of FFT is different, which means that part of the data of a single clock needs to be changed during the calculation process of FFT, that is, the data of N-point FFT calculation needs to be sorted.
[0062] (I) Optimization of N-point DFT calculation
[0063] Since the amount of calculation required to directly calculate DFT is too large, the FFT method is usually used to simplify the calculation in the specific implementation. This method simplifies the DFT calculation by using the following formula.
[0064] N=r1r2…r k …r i , where k, i, r i ∈N + ,
[0065] The formula decomposes a direct N-point DFT into a total of i times, and the kth time requires r k The DFT calculation amount of the point is greatly reduced.
[0066] When r1=r2=…=r i =2 (or 4), it is called a radix 2 (4)-FFT operation. In the implementation of N-point FFT, using a larger radix means fewer calculation levels to complete the FFT, but its rotation factors and addition process will be more complicated. Radix 2-FFT and radix 4-FFT can simplify the calculation to the greatest extent because their rotation angles are 180 / 90 degrees during the calculation process. Other radixes have different rotation angles than the above two, and the coefficients and calculation process are more complicated. In addition, a larger radix has a long addition process for each calculation and may bring additional multiplication operations. Considering the above, radix 2 or radix 4 is a better FFT calculation method.
[0067] Comparing the radix-2-FFT and radix-4-FFT methods, it can be found that the number of calculations required when only the radix-2-FFT calculation method is used is log2 N, which is greater than the number of calculations required for the radix-4 method, log4 N, and the number of multiplications required is also more. The disadvantage of the radix-4-FFT is that N can only be an integer power of 4.
[0068] (II) FFT multiplexing and sorting
[0069] Taking the calculation of 128-point FFT as an example, 7 levels of calculation are required to complete the calculation using the radix 2-FFT method. Considering that one clock requires a lot of resources and strict timing requirements to complete the first-level calculation of 128 data, multiplexing can greatly reduce the resources used. Here, 16 parallel data channels are used, each of which is divided into real and imaginary parts, and 8 clocks are multiplexed to complete the 128-point FFT calculation.
[0070] When inputting data in parallel with 16 channels, no matter it is extracted by time or frequency, the first step of radix 2 needs to calculate the 1st, 65th, 33rd, 97th, 17th, 81st, 49th, and 113th data points, which means that the data of the first-level operation of radix 2-FFT method does not exist in 1 to 16 data at the same time, and it must be sorted before calculation. The same is true for radix 4-FFT, which needs to be sorted.
[0071] The radix 2-FFT can only perform 4 levels of operations to complete the calculation of 16 points, which means that if the radix 2-FFT operation mode is used, 16 parallel data can only support 4 levels of operations at most, and if the radix 4-FFT operation mode is used, 16 parallel data can only support 2 levels of operations at most. It takes 7 levels to complete 128 calculations with the radix 2-FFT, which means that at least 2 sortings are required to complete 128 points.
[0072] Figure 2 , Figure 3 and Figure 4 The three methods of radix 2-FFT, radix 4-FFT, and split radix FFT respectively show the number of multiplications required to complete the FFT calculation for 16 parallel data, where the white part is the radix 2-FFT calculation and the gray part is the radix 4-FFT operation.
[0073] Each level of FFT operation requires multiplication and addition. Figure 2 It can be seen that when only radix 2-FFT is used, 4 levels of operations are required, and each level of multiplication requires 8 complex multiplications. Assuming that addition requires 1 clock and complex multiplication requires 6 clocks in each level of operation, it takes 28 clocks and 32 complex multiplications to complete the 4-level radix 2-FFT calculation of 16 parallel data. When only radix 4-FFT is used, 2 levels of operations are required, and each level of multiplication requires 12 complex multiplications. Similarly, it can be deduced that it takes 14 clocks and 24 complex multiplications to complete the 2-level radix 4-FFT of 16 parallel data.
[0074] The case of using split radix is more complicated than radix 2-FFT and radix 4-FFT. In order to complete the FFT calculation of 16 parallel data and sort them at the same time, the split radix cannot be used as in N-point FFT, but must be used according to 16 points. The specific usage is as follows Figure 4When decimating by frequency, the odd-numbered part of the radix-4-FFT is kept in use, and the even-numbered part is understood as the even-numbered part of the radix-2-FFT part, thus becoming the part that does not require multiplication in the radix-2-FFT. Figure 4 It can be seen that 23 complex multiplications are required to complete 16 parallel data. And through the addition and addition in each row, the maximum clock can not exceed 14. This method reduces one multiplication compared to the method of using only base 4, but its sorting becomes more complicated.
[0075] (III) Simplification of twiddle factors involved in multiplication
[0076] Let's consider the issue of the number of different rotation factors. Still taking frequency extraction as an example, when using the radix 2-FFT method for 128-point FFT calculation, the last level has only one identical rotation factor, whose value is 1. At this time, the multiplication of this level can be degenerated into addition and can be completed with only one clock. The second-to-last level has only two different rotation factors, whose values are 1 and -i. At this time, the multiplication of this level can also be degenerated into addition and can be completed with only one clock. The third-to-last level has four different rotation factors, whose values are 1, √2 / 2(1-i), -i, and √2 / 2(-1-i). Only two numbers need to be multiplied. When the bit width is relatively low, the clock can be increased to perform shifting and addition to complete the multiplication, but this operation will make the timing worse and require multiple clocks to complete (it has a lot to do with the bit width, and is calculated here as 4 clocks). When the number of rotation factors is small and they are all constants, the shift / addition method can be used for optimization. Similarly, there are 6 numbers that need to be multiplied in the fourth-to-last stage. You can consider increasing the clock and using shift and addition to complete the multiplication.
[0077] When the fifth to last level or earlier levels are reached, the rotation factors are different in the two clocks before and after. At this time, if the method of increasing the clock and using shift and addition is still adopted, it means that 14 complex multiplications need to be performed in this way at each level, and the multiplexing effect becomes worse. This method will make the timing worse and increase resources. At this time, using DSP (digital signal processor) is undoubtedly a better choice. The DSP referred to in the present invention refers to a resource in FPGA, which is specially used for multiplication and other operations. The operation speed is fast, but the number of DSPs is limited. If the use of DSP exceeds the upper limit, the FPGA cannot run. In addition, the present invention relates to the specific calculation steps of radix 2, radix 4, and split radix. Please refer to "Digital Signal Processing-Principles, Algorithms and Applications" (4th Edition), [US] John G.Proakis, Dimitris G.Manolakis.
[0078] (IV) Comparison of several implementation methods and the computational advantages of mixed basis-FFT
[0079] Method 1: Taking time extraction radix 2-FFT as an example, when N = 128:
[0080] like Figure 5 As shown, the first two levels require a total of 2 clocks, the 3rd and 4th levels perform shift / addition and subtraction operations, which are calculated as 1+4 for a total of 5 clocks, so a total of 10 clocks are required. The 5th, 6th, and 7th levels each require 8 complex multiplications, which require 1+6 for a total of 7 clocks, so a total of 24 complex multiplications are required, 21 clocks. Considering that two sortings are required, each sorting takes at least 8 clocks, a total of 16 clocks are required, so the whole process requires 49 clocks, 24 complex multiplications.
[0081] Method 2: Taking frequency extraction radix 2-FFT as an example, when N = 128:
[0082] like Figure 6 As shown, compared with time extraction, the order of addition and subtraction at each level and the multiplication operation with the rotation factor is exchanged, and the calculated data object is changed. The approximate amount of calculation is similar. After the calculation is completed, the output order is not sequential, so one more level of sorting is required: that is, the whole process requires 57 clocks and 24 complex multiplications.
[0083] Method 3: Taking frequency extraction radix 2 / radix 4 mixed radix-FFT as an example, when N = 128:
[0084] like Figure 7 As shown, first perform 2-stage radix 4-FFT operations, each stage requires 12 complex multiplications, 1+6 requires 7 clocks, and a total of 14 complex multiplications and 14 clocks are required; the third stage performs shift / addition and subtraction operations, which requires 5 clocks; the fourth and fifth stages require 2 clocks. In addition, the process requires 3 sortings, so the whole process requires a total of 45 clocks and 24 complex multiplications.
[0085] Method 4: Taking the mixed radix-2 / radix-4 FFT extracted by time as an example, when N=128:
[0086] like Figure 8 As shown in the figure, compared with frequency extraction, the method of time extraction lacks the last level of sorting. The other processes are similar, but the order is reversed. The difference is that it only performs three base 2-FFT calculations in the first sorting, and two base 4-FFT calculations in the second sorting. Therefore, the whole process requires a total of 37 clocks and 24 complex multiplications. Sometimes, for other functional needs, you can also perform another sorting, such as Fig. 9 shown.
[0087] Method 5: Taking frequency extraction split radix-FFT as an example, when N=128:
[0088] like Fig.10As shown, it is performed in the manner of radix-2-FFT frequency extraction. The first 4 levels are based on split radix and the last 3 levels are based on radix-2. However, its complex sequence also needs to be sorted, which requires a total of 45 clocks and 23 complex multiplications.
[0089] The calculation results of the above five methods are listed in Table 1 for comparison.
[0090] Table 1
[0091] Way Specific method Sorting times Number of clocks required The number of times you need to multiply 1 Decimation in time Radix 2-FFT 2 49 24 2 Decimation by frequency Radix 2-FFT 3 57 24 3 Decimation by frequency - Mixed Basis FFT 3 45 24 4 Decimation in time mixed radix-FFT 2 37 24 5 Decimation by frequency split radix - FFT 3 45 23
[0092] As can be seen from Table 1, method 4 of performing mixed-radix-FFT by time extraction has the least clocks, fewer complex multiplication times and better timing. It is a better method and can achieve a better trade-off in terms of resource usage and the number of clocks required for FFT calculation.
[0093] Embodiment 2
[0094] This embodiment provides a device for quickly implementing N-point FFT based on a multiplexing module, including:
[0095] A data acquisition module, used for acquiring a discrete sequence x(N) having N data;
[0096] Sorting module, used to sort data;
[0097] A multi-level radix 2-FFT operation module, used for inputting data in parallel and performing a multi-level radix 2-FFT operation of a first preset level Num1 on each input data;
[0098] A multi-level radix 4-FFT operation module, used for inputting data in parallel and performing multi-level radix 4-FFT addition, subtraction and complex multiplication operations of a second preset level Num2 on the input data each time;
[0099] The output module is used to output the N data finally sorted as the operation result of the N-point FFT.
[0100] Embodiment 3
[0101] This embodiment provides an FPGA chip, including:
[0102] Clock module, used to generate system clock;
[0103] ADC module, used to collect external input analog signals to form m-channel parallel data;
[0104] A filter module is used to filter the signal and generate m-channel parallel data of the real part and the imaginary part in the time domain;
[0105] The N-point FFT module is used to perform FFT calculation on m-channel parallel data of the real and imaginary parts in the time domain to generate m-channel parallel data of the real and imaginary parts in the frequency domain; the N-point FFT module executes the N-point FFT fast implementation method based on the multiplexing module described in Example 1.
[0106] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the above embodiments do not limit the present invention in any form, and any technical solution obtained by equivalent replacement or equivalent transformation falls within the protection scope of the present invention.
Claims
1. A fast implementation method of N-point FFT based on multiplexing module, characterized in that: Includes steps: Get a discrete sequence x(N) with N data; The discrete sequence x(N) is sorted for the first time so that the data that need to be multiplied at different levels are located in the same system clock; Input the data after the first sorting in parallel, and perform a multi-level radix 2-FFT operation of a first preset level Num1 on the data input each time, perform the multi-level radix 2-FFT operation in a time extraction mode or a frequency extraction mode, and in the process of performing the multi-level radix 2-FFT operation, sort the calculated data once after each log2 m-level operation is completed, where m represents the number of parallel processing paths for the data; The data obtained after completing the multi-stage radix 2-FFT operation is sorted for the second time so that the data that need to be complex multiplied at different stages are located within the same system clock; Input the data sorted for the second time in parallel, and perform a multi-level radix 4-FFT operation of a second preset level Num2 on the data input each time, perform the multi-level radix 4-FFT operation in a time extraction mode or a frequency extraction mode, and in the process of performing the multi-level radix 4-FFT operation, sort the calculated data once every time log4 m-level operations are completed; The data obtained after the multi-stage radix 4-FFT operation is outputted in a manner that the data order is the same as the order of the N data in the initially acquired discrete sequence x(N) as the operation result; Wherein, when performing multi-level radix 2-FFT operation and multi-level radix 4-FFT operation in a frequency extraction manner, the steps include: The data obtained after completing the multi-level radix 4-FFT operation is finally sorted so that the data order is the same as the order of the N data in the initially acquired discrete sequence x(N); The N data finally sorted are used as the calculation result of N-point FFT and output.
2. According to claim 1, a method for fast implementation of N-point FFT based on multiplexing module, characterized in that: The discrete sequence x(N) is a radar signal obtained by sampling.
3. A device for fast implementation of N-point FFT based on multiplexing module, characterized in that: include A data acquisition module, used for acquiring a discrete sequence x(N) having N data; A sorting module is used to sort the data, that is, to sort the discrete sequence x(N) for the first time so that the data that need to be complex multiplied at different levels are located within the same system clock, and to sort the data obtained by completing the multi-level radix 2-FFT operation for the second time so that the data that need to be complex multiplied at different levels are located within the same system clock; a multi-level radix 2-FFT operation module, for inputting data in parallel and performing a multi-level radix 2-FFT operation of a first preset level Num1 on each input data, performing the multi-level radix 2-FFT operation in a time extraction mode or a frequency extraction mode, and in the process of performing the multi-level radix 2-FFT operation, sorting the calculated data once after completing each log2 m-level operation, where m represents the number of parallel data processing paths; a multi-level radix 4-FFT operation module, for inputting data in parallel and performing multi-level radix 4-FFT addition, subtraction and complex multiplication operations of a second preset level Num2 on each input data, so as to perform multi-level radix 4-FFT operations in a time extraction mode or a frequency extraction mode, and in the process of performing multi-level radix 4-FFT operations, each time a log4 m-level operation is completed, the calculated data is sorted once; An output module, used for outputting the data obtained after the multi-stage radix 4-FFT operation in a manner that the data order is the same as the order of N data in the initially acquired discrete sequence x(N), as the operation result; Wherein, when performing multi-level radix 2-FFT operation and multi-level radix 4-FFT operation in a frequency extraction manner, the steps include: The data obtained after completing the multi-level radix 4-FFT operation is finally sorted so that the data order is the same as the order of the N data in the initially acquired discrete sequence x(N); The N data finally sorted are used as the calculation result of N-point FFT and output.
4. An FPGA chip, characterized in that: include: Clock module, used to generate system clock; ADC module, used to collect external input analog signals to form m-channel parallel data; A filter module is used to filter the signal and generate m-channel parallel data of the real part and the imaginary part in the time domain; An N-point FFT module is used to perform FFT calculation on m-channel parallel data of real and imaginary parts in the time domain to generate m-channel parallel data of real and imaginary parts in the frequency domain; Among them, the N-point FFT module executes the N-point FFT fast implementation method based on the multiplexing module as described in any one of claims 1-2.
