A FFT processor
By designing an optimized FFT processor, including the top-level control module, data index module, twirling factor index module and butterfly operation unit module, the problem of high resource consumption and low performance in FFT algorithm hardware implementation is solved, and low power consumption and high performance are achieved. performance effects.
Patent Information
- Application Number
- CN202011117587.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-19
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-10-19
AI Technical Summary
The hardware implementation of the FFT algorithm in the prior art has problems of high resource consumption and low performance, and cannot meet the performance and power consumption requirements at the same time.
An FFT processor including a top-level control module, data index module, twiddle factor index module and butterfly operation unit module is designed. By optimizing the butterfly operation unit, the use of floating point operation IP is reduced, and a simple register unit is used to replace complex numbers. multiplier, and add an offset address control signal to the read enable end of the twiddle factor SRAM to reduce power consumption caused by data access, and directly output the result during the last stage of operation to avoid complex multiplication operations.
It implements a low-power and high-performance FFT processor, reduces hardware power consumption, reduces calculation time, and supports batch processing operations, improving overall work efficiency.
Smart Images

Figure CN112231626B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital signal processing, and more specifically, to a FFT processor. Background Art
[0002] Fast Fourier Transform (FFT) is a fast algorithm that converts data from the time domain to the transform domain for processing. The introduction of the FFT algorithm has made Fourier transform the most basic computing technology in digital signal processing, and it is widely used in radar signal processing, communications, image processing, biomedicine and other fields. In radar signal processing, the FFT algorithm can be used in the Doppler filter group to complete the frequency domain detection of radar signals; it can be used in matched filters to maximize the output signal-to-noise ratio; it can be used to calculate fuzzy functions to greatly reduce the amount of calculation. In the field of communications, the FFT / IFFT algorithm can be used for OFDM modulation and demodulation; it can be used for channel equalization and channel estimation, etc.
[0003] FFT algorithms usually include two hardware implementation schemes: pipeline architecture and recursive architecture. The pipeline architecture can ensure the internal and inter-stage pipeline of each level of FFT operation, with less fixed delay, but each level of operation requires a separate operation structure, and the total resource consumption = resource consumption of each level × maximum number of operation levels, which consumes a lot of resources. The recursive architecture can only realize pipeline within each level of operation, and cannot realize pipeline between levels, so the performance is slightly lower, but in hardware implementation, different levels of operation use the same operation resources, which consumes less operation resources, and has the characteristics of flexible configuration for FFTs with different number of points.
[0004] In addition, as people's requirements for data processing performance continue to increase and chip power consumption becomes more and more important, on the one hand, it is necessary to adopt methods such as pipeline and parallel processing to improve the execution efficiency of hardware; on the other hand, it is also necessary to optimize the signal processing algorithm or the hardware structure itself, reduce the power consumption of the hardware by reducing memory access or improving resource utilization, so that the hardware circuit has the characteristics of high performance and low power consumption.
[0005] Journal of Terahertz Science and Electronic Information, Vol. 16, No. 2, published on April 30, 2018, published a paper titled "Design of Low-Power Floating-Point FFT Processor", authored by Yang Linlin, Wang Xinsheng, and Wang Jing, which discloses the design of a low-power configurable floating-point fast Fourier transform (FFT) processor based on a field programmable gate array (FPGA), which can perform 4-point, 16-point, 64-point, and 256-point operations. A frequency-decimated radix-4 algorithm and a single butterfly structure based on memory are used. The butterfly operation unit is optimized to reduce the number of multipliers and power consumption. The storage unit adopts a ping-pong storage structure to improve the data throughput. At the same time, floating-point operations are used to improve the calculation accuracy of the processor. The processor is synthesized using the SMIC 0.18μm process library, has an operating frequency of 100MHz, a power consumption of 0.82mW / MHz, and requires 20us to execute a 256-bit operation. It is implemented on the ACX1329-CSG324 FPGA, and has not achieved great improvements in power consumption and performance, so its actual application value is not high. Summary of the invention
[0006] 1. Technical issues to be solved
[0007] In view of the fact that the FFT algorithm implemented by the pipeline architecture hardware in the prior art consumes a lot of resources and the recursive architecture has low performance, and the prior art cannot solve the problem of simultaneously satisfying the performance and power consumption of the FFT algorithm hardware implementation, the present invention provides an FFT processor, which optimizes the traditional recursive FFT processor, effectively reduces the hardware power consumption, and has better performance.
[0008] 2. Technical solution
[0009] The purpose of the present invention is achieved through the following technical solutions.
[0010] An FFT processor comprises a top-level control module, a data index module, a rotation factor index module and a butterfly operation unit module, wherein the top-level control module is connected to the data index module, the rotation factor index module and the butterfly operation unit module, and the butterfly operation unit module is connected to the data index module and the rotation factor index module; the top-level control module controls operation, the data index module addresses a data SRAM, the rotation factor index module addresses a rotation factor SRAM, and the butterfly operation unit module reconstructs the operation unit according to information of the top-level control module to perform butterfly operation.
[0011] The top-level control module parses the configuration information of the external input and controls the overall operation process of FFT; the data index module generates the address of the data according to the information of the top-level control module and addresses the data SRAM. The rotation factor index module generates the address of the rotation factor according to the requirements of the algorithm and addresses the rotation factor SRAM; the butterfly operation unit module reconstructs the floating-point operation IP into a base 2 or base 4 operation unit according to the information of the top-level control module.
[0012] Furthermore, when the rotation factor index module detects that the offset address of the rotation factor is 0, the rotation factor SRAM is not read and the result of the rotation factor is directly generated. At this time, the value of the rotation factor is 1, and the result of the rotation factor is directly generated without reading data, thereby reducing the power consumption caused by data access.
[0013] Furthermore, when the butterfly operation unit module performs non-final FFT operations, if it is detected that the value of the rotation factor is 1, the result after the complex addition / subtraction operation is not input into the complex multiplier to be multiplied with the rotation factor, but is input into the register for storage.
[0014] Furthermore, when the butterfly operation unit module performs the last level of FFT operation, the result of the complex addition / complex subtraction operation is not multiplied by the rotation factor, but is directly output. The result of the last level operation is not multiplied by the rotation factor and is directly output. On the one hand, it reduces the power consumption caused by data access and the power consumption generated by performing complex multiplication. On the other hand, it reduces the calculation time of the last level after removing the complex multiplication operation, thereby improving the working efficiency of the entire FFT processor.
[0015] Furthermore, when the butterfly operation unit module performs radix 2 operation, it includes two complex adders, a complex multiplier and a register unit; the input ends of the first complex adder and the second complex adder are connected to different data sources, the output end of the first complex adder is connected to the register unit, the output end of the second complex adder is connected to the input end of the complex multiplier, and the input end of the complex multiplier is also connected to the output end of the rotation factor index module.
[0016] Furthermore, the butterfly operation unit module includes eight complex adders and four complex multipliers reconstructed into four radix-2 butterfly operation units to realize eight-way parallel computing. The specific working process of the radix-2 butterfly operation unit is as follows: two source data are respectively subjected to complex addition and complex subtraction operations in two complex adders, the result of complex subtraction is multiplied with the rotation factor, and the result of complex addition is not subjected to complex multiplication operation with the rotation factor (value is 1), but is synchronized with complex multiplication by a register unit, and the cycle of the register is the same as the operation cycle of the complex multiplier, so as to realize eight-way parallel computing as a whole.
[0017] Furthermore, when the butterfly operation unit module performs radix 4 operations, it includes eight complex adders, three complex multipliers, an intermediate register unit and a register unit; the eight complex adders are divided into two stages, and the first-stage complex adders and the second-stage complex adders are connected through the intermediate register unit; the output end of the first complex adder of the second stage is connected to the register unit, and the output ends of the second, third and fourth complex adders of the second stage are respectively connected to the input ends of the first, second and third complex multipliers, and the input ends of the first, second and third complex multipliers are also connected to the rotation factors.
[0018] Furthermore, when the butterfly operation unit module performs a base 4 operation, based on the formula (A+Bj)*(-j)=B-Aj, the two-stage complex adder directly uses the logical operation of changing the sign bit and exchanging the real and imaginary parts to replace the complex multiplication operation between operations. The specific working process of the base 4 butterfly operation unit is as follows: after the first-stage complex addition / subtraction is completed, it enters the intermediate register unit, wherein the results of the first, second, and third paths of the first-stage complex adder are directly registered, and the result of the fourth path needs to be multiplied with (-j). The result of multiplication with (-j) is achieved by exchanging the real and imaginary parts and inverting the sign bit. For the operation result of the second-stage complex adder, similar to the base 2 butterfly operation process, the result of the first-path complex adder of the second stage is not subjected to complex multiplication operation with the rotation factor (value is 1), but is synchronized with the complex multiplication by using the register module, and the registration cycle is the same as the operation cycle of the complex multiplier, and the overall four-path parallel calculation can be achieved.
[0019] Furthermore, when performing IFFT operation, the top-level control module obtains the conjugate value of the source data by inverting the sign bit when the source data is input, and obtains the conjugate value of the result data by inverting the sign bit when the operation result data is output, and implements the 1 / N operation by shifting. The hardware structure of the present invention can be directly used to perform IFFT operation without designing another set of computing architecture to perform IFFT algorithm; it also avoids using more floating-point multipliers and dividers to complete conjugation and division operations.
[0020] Furthermore, the data is pipelined, and the next level of operation is performed after the first level of operation is completed; when multiple batches of data are operated, the first level of all batches is calculated simultaneously, and the next level of operation of all batches is performed after the first level of operation of all batches is completed. Compared with the prior art, which performs the second batch of operations after the first batch of operations are completed until the last batch of operations are completed, the fixed delay caused by the non-pipelining between stages in the prior art is N; the number of batches is defined as m, and the fixed delay caused by the interruption between stages in the method of this embodiment is only N / m.
[0021] The FFT processor of the present invention adopts a simple register unit to replace the complex multiplier in the butterfly operation unit, adds an offset address control signal to the read enable end of the rotation factor SRAM, and when the offset address of the rotation factor is 0, does not perform a data read operation on the rotation factor SRAM, directly generates the result of the rotation factor, and reduces the power consumption caused by data access. When performing the last level of FFT operation, the result after the complex addition / complex subtraction operation is not multiplied with the rotation factor, but is directly output, which reduces the power consumption and the calculation time of the last level, thereby improving the working efficiency of the entire FFT processor.
[0022] 3. Beneficial effects
[0023] Compared with the prior art, the advantages of the present invention are:
[0024] The present invention optimizes the butterfly operation unit according to the principles of FFT radix 2 algorithm and radix 4 algorithm, reduces the use of floating-point operation IP, and adopts a simple register unit to replace the complex multiplier. The register cycle is the same as the operation cycle of the complex multiplier, and has better performance in terms of area and power consumption.
[0025] An offset address control signal is added to the read enable end of the rotation factor SRAM. A read request can be made to the rotation factor SRAM only when the offset address is not 0. When the rotation factor index module detects that the offset address of the rotation factor is 0, the rotation factor SRAM is not read and the result of the rotation factor is directly generated, thereby reducing the power consumption caused by data memory access.
[0026] In the top-level control module, the optimization of the state machine ensures that the last level of operation can be directly output without going through the complex multiplier. For the last level of operation, since the rotation factors of all butterfly operation units are 1, the result after complex addition / subtraction is directly output. It can effectively reduce the power consumption of hardware and reduce the overall calculation cycle, with the advantages of low power consumption and high performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a hardware architecture diagram of the FFT processor in the present invention.
[0028] Figure 2 It is a schematic diagram of the radix-2 butterfly operation principle in the present invention.
[0029] Figure 3 It is a structural diagram of the radix-2 butterfly operation unit in the present invention.
[0030] Figure 4 It is a schematic diagram of the radix-4 butterfly operation principle in the present invention.
[0031] Figure 5 It is a structural diagram of the radix-4 butterfly operation unit in the present invention. DETAILED DESCRIPTION
[0032] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0033] Example 1
[0034] like Figure 1 As shown, the low-power floating-point FFT processor of this embodiment includes a top-level control module, a data index module, a rotation factor index module and a butterfly operation unit module. The top-level control module is connected to the data index module, the rotation factor index module and the butterfly operation unit module, and the butterfly operation unit module is also connected to the data index module and the rotation factor index module.
[0035] The top-level control module parses the configuration information input externally and controls the overall operation process of FFT; the data index module generates the address of the data according to the information of the top-level control module and addresses the data SRAM.
[0036] The rotation factor index module generates the address of the rotation factor according to the requirements of the algorithm and addresses the rotation factor SRAM; when the rotation factor index module detects that the offset address of the rotation factor is 0, the value of the rotation factor is 1 at this time, and the data read operation is not performed on the rotation factor SRAM, and the result of the rotation factor is directly generated, thereby reducing the power consumption caused by data access and reducing the power consumption of this embodiment.
[0037] The butterfly operation unit module reconstructs the floating-point operation IP into a base 2 or base 4 operation unit according to the information of the top-level control module. When executing the base 2 algorithm or base 4 algorithm, the butterfly operation unit module optimizes the hardware circuit according to the principle of the base 2 or base 4 algorithm, reduces the use of complex multipliers, thereby reducing the area of the processor and reducing the power consumption generated by the hardware.
[0038] When the butterfly operation unit module executes the base 2 algorithm, the principle diagram of the base 2 butterfly operation is as follows Figure 2 As shown. Figure 3 As shown, the hardware structure system of the radix-2 butterfly operation unit includes two complex adders, a complex multiplier and a register unit; the input ends of the two complex adders are respectively connected to two different data sources, the output end of the first complex adder is connected to the register unit, the output end of the second complex adder is connected to the input end of the complex multiplier, and the input end of the complex multiplier is also connected to a rotation factor.
[0039] The butterfly operation unit module of this embodiment uses eight complex adders and four complex multipliers to reconstruct four base 2 butterfly operation units. The specific working process of the base 2 butterfly operation unit is as follows: two source data are respectively subjected to complex addition and complex subtraction operations in two complex adders, the result of complex subtraction is multiplied with the rotation factor, and the result of complex addition is not subjected to complex multiplication operation with the rotation factor (value is 1), but is synchronized with the complex multiplication by a register unit, and the cycle of the register is the same as the operation cycle of the complex multiplier, so that eight-way parallel calculation can be realized as a whole.
[0040] When the butterfly operation unit module executes the radix-4 algorithm, the principle diagram of the radix-4 butterfly operation is as follows Figure 4 As shown, Figure 5 As shown, the radix-4 butterfly operation unit hardware system includes eight complex adders, three complex multipliers, an intermediate register unit and a register unit; the eight complex adders are divided into two stages of complex adders, the first stage complex adder and the second stage complex adder are connected through the intermediate register unit, that is, the output end of the first stage complex adder is connected to the input end of the intermediate register unit, and the output end of the intermediate register unit is connected to the input end of the second stage complex adder; the output end of the first complex adder of the second stage is connected to the register unit, and the output ends of the second, third and fourth complex adders of the second stage are respectively connected to the input ends of the first, second and third complex multipliers, and the input ends of the first, second and third complex multipliers are also connected to different rotation factors, and there are three rotation factors in total. The butterfly operation unit module of this embodiment can be reconstructed into a radix-4 butterfly operation unit.
[0041] The specific working process of the radix-4 butterfly operation unit is as follows: after the first-level complex addition / subtraction is completed, it enters the intermediate register unit, where the results of the first, second, and third paths of the first-level complex adder are directly registered, and the result of the fourth path needs to be multiplied by (-j). Compared with the prior art, this method avoids the use of additional complex multipliers for complex multiplication operations. When the multiplier is determined to be (-j), it is converted according to the following formula:
[0042] (A+Bj)*(-j)=B-Aj
[0043] As shown in the above formula, the result of multiplication with (-j) can be achieved by exchanging the real and imaginary parts and inverting the sign bit. For the operation result of the second-stage complex adder, similar to the radix-2 butterfly operation process, the result of the first-way complex adder of the second stage is not multiplied with the rotation factor (value is 1), but synchronized with the complex multiplication by a register module. The register cycle is the same as the operation cycle of the complex multiplier, and the overall four-way parallel calculation can be achieved.
[0044] When the butterfly operation unit module of this embodiment performs the last level of FFT operation, the result after the complex addition / complex subtraction operation is not multiplied by the rotation factor and is directly output. When the top-level control module parses that the FFT processor hardware is performing the last level of FFT operation, since all the rotation factors are 1, the top-level control module turns off the rotation factor index module and directly outputs the result after the complex addition / complex subtraction of the butterfly operation unit. When the base 2 butterfly operation unit is used for calculation, the result of the first level operation is directly output, and when the base 4 butterfly operation unit is used for calculation, the result of the second level operation is directly output. The last level operation result is not multiplied by the rotation factor and directly output. On the one hand, it reduces the power consumption caused by data access and the power consumption generated by performing complex multiplication. On the other hand, it reduces the calculation time of the last level after removing the complex multiplication operation, thereby improving the working efficiency of the entire FFT processor. Compared with the prior art, this embodiment replaces the complex multiplier with a simple register unit, which has more advantages in power consumption and area.
[0045] The present invention controls the FFT processor to support batch operations in the top-level control module, and performs pipeline operations on the first-level FFT operations of all batches each time, and executes the next-level FFT operations after the first-level operation is completed. When the top-level control module parses that the input configuration is batch FFT operations, the top-level control module will control other modules to complete the first-level operations of all batches and then perform the second-level operations, and so on, to complete the last-level operations. Compared with the prior art that performs the second batch of operations after completing the first batch of operations until the last batch of operations is completed, the fixed delay caused by the non-pipelining between stages in the prior art is N; the number of batches is defined as m, and the fixed delay caused by the interruption between stages of the method of this embodiment is only N / m.
[0046] When the top-level control module parses the input configuration as IFFT operation, according to the principle of IFFT algorithm:
[0047]
[0048] In the above formula, X(k) represents the frequency domain value, Represents the rotation factor, N represents the number of sampling points to be converted, k represents the index of the frequency domain value, n represents the sequence index of the time domain sampling point, and x(n) represents the time domain sampling point. According to the above formula, the IFFT operation is converted into the FFT operation. When the hardware performs the IFFT operation, the top-level control module will control the data transmission process. When the source data is input, the conjugate value of the source data is obtained by inverting the sign bit. When the result data is output, the conjugate value of the result data is obtained by inverting the sign bit, and the 1 / N operation is implemented by shifting. There is no need to design another computing architecture to perform the IFFT algorithm; it also avoids using more floating-point multipliers and dividers to complete the conjugation and division operations.
[0049] The low-power floating-point FFT processor of this embodiment optimizes each module of the algorithm from two aspects: reducing the access to the memory and the use of the floating-point IP, reducing the hardware power consumption while ensuring the performance, and realizing low-power processing. This embodiment is synthesized based on the 12nm process library, with a clock cycle of up to 500MHz, a power consumption of 0.75mW / MHz, and only 376ns required to perform a 256bit operation. Compared with the prior art, the power consumption and performance of this embodiment are greatly improved. It supports FFT operations of any batch number and any number of points with a total number of data points less than 256K points, and has strong flexibility.
[0050] The above schematically describes the invention and its implementation methods, which is not restrictive. Without departing from the spirit or basic features of the invention, the invention can be implemented in other specific forms. What is shown in the accompanying drawings is only one of the implementation methods of the invention. The actual structure is not limited to this, and any figure mark in the claims should not limit the claims involved. Therefore, if a person of ordinary skill in the art is inspired by it, without departing from the purpose of the invention, a structural method and an embodiment similar to the technical solution are designed without creativity, which should all fall within the scope of protection of this patent. In addition, the word "including" does not exclude other elements or steps, and the word "one" before the element does not exclude the inclusion of "multiple" elements. The multiple elements stated in the product claim can also be implemented by one element through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any specific order.
Claims
1. An FFT processor, It is characterized in that It includes a top-level control module, a data index module, a rotation factor index module and a butterfly operation unit module, wherein the top-level control module is connected to the data index module, the rotation factor index module and the butterfly operation unit module, and the butterfly operation unit module is connected to the data index module and the rotation factor index module; the top-level control module controls the operation, the data index module addresses the data SRAM, the rotation factor index module addresses the rotation factor SRAM, and the butterfly operation unit module reconstructs the operation unit according to the information of the top-level control module to perform butterfly operation; When the rotation factor index module detects that the offset address of the rotation factor is 0, the rotation factor SRAM is not read, and the result of the rotation factor is directly generated; when the butterfly operation unit module performs non-last-level FFT operations, if the rotation factor value is detected to be 1, the result after the complex addition / complex subtraction operation is not input into the complex multiplier to be multiplied with the rotation factor, but is input into the register for storage; when the butterfly operation unit module performs the last-level FFT operation, the result after the complex addition / complex subtraction operation is not multiplied with the rotation factor, but is directly output; when the butterfly operation unit module performs radix 2 operations, it includes two complex adders, a complex multiplier and a register unit; the input ends of the first complex adder and the second complex adder are connected to different data sources, the output end of the first complex adder is connected to the register unit, and the output end of the second complex adder is connected to the register unit. The butterfly operation unit module comprises eight complex adders and four complex multipliers, which are reconstructed into four radix-2 butterfly operation units to realize eight-way parallel calculation. When the butterfly operation unit module performs radix-4 operation, it comprises eight complex adders, three complex multipliers, an intermediate register unit and a register unit. The eight complex adders are divided into two stages, and the first-stage complex adders and the second-stage complex adders are connected through the intermediate register unit. The output end of the first-stage complex adder of the second stage is connected to the register unit, and the output ends of the second, third and fourth-stage complex adders of the second stage are respectively connected to the input ends of the first, second and third-stage complex multipliers, and the input ends of the first, second and third-stage complex multipliers are also connected to the rotation factors.
2. An FFT processor according to claim 1, It is characterized in that When the butterfly operation unit module performs radix 4 operations, based on the formula (A+Bj)*(-j)=B-Aj, the two-stage complex adder directly uses the logical operations of changing the sign bit and exchanging the real and imaginary parts to replace the complex multiplication operation between operations.
3. An FFT processor according to claim 1, It is characterized in that When performing IFFT operation, the top-level control module obtains the conjugate value of the source data by inverting the sign bit when the source data is input, and obtains the conjugate value of the result data by inverting the sign bit when the operation result data is output. The 1 / N operation is implemented by shifting, and N represents the number of sampling points to be converted.
4. The FFT processor according to claim 1, It is characterized in that The data is processed in a pipeline, and the next level of processing is performed after the first level of processing is completed. When processing multiple batches of data, the first level of all batches is calculated simultaneously, and the next level of processing is performed after the first level of processing of all batches is completed.
Citation Information
Patent Citations
Multipath hybrid-based FFT reconfigurable butterfly arithmetic unit
CN109117188A
A reconfigurable FFT processor supporting multi-mode configuration
CN109977347A
