A graphical algorithm for determining constant values of twiddle factors in radix-2^kFFT
The index box of W constant and W-point rotation factor is constructed through a graphical algorithm, which simplifies the determination of the rotation factor constant value in the base-2^k FFT algorithm, solves the tedious and complicated problem of determining the rotation factor in the existing technology, and improves FFT processing. The design efficiency of the device.
Patent Information
- Application Number
- CN202210324326.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-30
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-03-30
AI Technical Summary
The existing FFT processor technology lacks an effective calculation method for the rotation factor constant value of the radix-2^k FFT algorithm, which results in the tedious and complicated determination of the rotation factor when calculating FFT with different points, affecting the modeling and design of the FFT processor.
Provides a graphical algorithm that constructs an index box of W constant and W-point rotation factor, calculates the decimal number in reverse order, and determines the determined value and order of the rotation factor in combination with the operands. It is suitable for complex multiplication operations at different stages and simplifies rotation. Determination of factor constant values.
This algorithm simplifies the design process of the FFT processor, quickly determines the rotation factor value, reduces the complexity of the rotation factor calculation, is suitable for the basis-2^k FFT algorithm of the irregular decomposition method, and improves the modeling efficiency of the FFT processor.
Smart Images

Figure CN114817839B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of FFT processors, and in particular to a graphical algorithm for determining constant values of radix-2^k FFT rotation factors. Background Art
[0002] The existing calculation methods for determining the constant value of the rotation factor are all for the base-2 and base-4 FFT algorithms, and there is no algorithm for determining the constant value of the rotation factor for the base-2^k FFT algorithm. Since the base-2^k FFT algorithm not only has the same simple butterfly unit structure as the base-2 FFT algorithm, but also can greatly reduce the complexity of the calculation of the rotation factor, it is often used in hardware implementation. The FFT processor is widely used in the fields of spectrum analysis, image processing, speech recognition, biomedicine, radar, filtering, wireless and wired communications, etc. When modeling the FFT processor, the complex multiplication operation is the most complicated part. It is necessary to select the corresponding complex multiplication unit and determine the rotation factor. The base-2^k FFT algorithm with different k values needs different rotation factor constant values at each stage when processing FFT calculations with different number of points. Therefore, the determination of the rotation factor constant value is cumbersome and complicated. There is no calculation method for determining the rotation factor constant value for the base-2^k FFT algorithm in the existing reports. Summary of the invention
[0003] In view of this, the purpose of this application is to provide a graphical algorithm for determining the constant value of the rotation factor of the basis-2^k FFT, which uses a graphical method to determine the constant value of the rotation factor of the basis-2^k FFT algorithm, which is intuitive and clear; the rotation factors are divided into two categories: W 常数 and W 点数 The former represents the rotation factors decomposed and combined by the radix-2^k FFT algorithm, and the latter represents the rotation factors required by the FFT points calculated as needed. Determining the rotation factor constant values and order of complex multiplication operations at different stages of radix-2^k FFT algorithms with different points is applicable to some radix-2^k FFT algorithms with irregular decomposition methods, which can help FFT processor designers quickly determine the rotation factor values and thus model the FFT processor.
[0004] The embodiment of the present application provides a graphical algorithm for determining a constant value of a base-2^k FFT rotation factor, including:
[0005] Build W 常数 The index frame of the rotation factor, where the W 常数 The index box of the rotation factor contains two binary digits;
[0006] The W 常数 The low bit in the index box of the rotation factor is used as the high bit, W常数 The high bit of the index frame of the rotation factor is used as the low bit, and the reverse calculation is performed to obtain the corresponding W 常数 The decimal number of the index frame of the rotation factor;
[0007] The decimal numbers are respectively 常数 The operands of the rotation factors are inherited, and W is obtained 常数 Determine the values and order of the rotation factors;
[0008] Based on W 点数 (W N=32 ) Index box binary value and operand diagram calculation principle to determine W 点数 The index box and W of the rotation factor 点数 The operands of the twiddle factors;
[0009] According to W 点数 The index box and W of the rotation factor 点数 The operands of the twiddle factors are obtained. 点数 Determine the value of the rotation factor.
[0010] Optionally, the specific distribution of the rotation factor is: -j→W 16 (W 常数 )→-j→W 32 (W 点数 ), where W 16 W 常数 Twiddle factors.
[0011] Optionally, since the number of determined values is a preset value, when performing FFT calculation for points exceeding the preset value, it is only necessary to convert the W determined by the graphical method of the present invention into a value according to the number of FFT points. 常数 Each value of the rotation factor is repeated by the corresponding multiple.
[0012] Optionally, the W-based 点数 (W N=32 ) Index box binary value and operand diagram calculation principle to determine W 点数 The index box and W of the rotation factor 点数 The steps to twiddle the operands by factors include:
[0013] W 点数 The process of determining the number of twiddle factor operands is:
[0014] Get the W 点数 The position of the rotation factors in the complete calculation process;
[0015] Determine the W based on the position 点数 The number of complex multiplications performed by the twiddle factors is taken as the number of W 点数 The number of twiddle factor operands.
[0016] Optionally, the W-based 点数 (W N=32 ) Index box binary value and operand diagram calculation principle to determine W 点数 The index box and W of the rotation factor 点数 The step of twiddling the operands of the factors also includes:
[0017] W 点数 The process of obtaining the number of binary numbers in the index frame of the rotation factor is:
[0018] Divide the number of FFT points by the number of butterflies in each group of butterfly units at the current stage to get W 点数 The number of binary digits in the index box of the twiddle factor;
[0019] Based on the W 点数 The number of binary numbers in the index box of the rotation factor constructs W 点数 The index box of the twiddle factors.
[0020] Optionally, the method according to W 点数 The index box and W of the rotation factor 点数 The operands of the twiddle factors are obtained. 点数 The steps of determining the value of the rotation factor include:
[0021] Based on W 点数 The index box and W of the rotation factor 点数 The product of the operands of the rotation factors is obtained 点数 Determine the value of the rotation factor.
[0022] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 The W provided by the embodiment of the present application is shown 16 W 常数 Figure 1. Twiddle Factors Algorithm Diagram;
[0025] Figure 2 The 32-point FFT signal flow diagram of the base-2^4 FFT algorithm provided in the embodiment of the present application is shown;
[0026] Figure 3 The W provided by the embodiment of the present application is shown 32 (W 常数 ) Rotation factor graph algorithm diagram;
[0027] Figure 4 The W provided by the embodiment of the present application is shown 点数 (W N=32 ) Index box binary value and operand diagram calculation principle diagram;
[0028] Figure 5 The W provided by the embodiment of the present application is shown 32 (W 点数 )Graph of the rotation factor algorithm. DETAILED DESCRIPTION
[0029] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.
[0030] First, the application scenarios to which this application is applicable are introduced. This application can be applied to research scenarios in life sciences.
[0031] Through research, it is found that in the existing technical scheme, when modeling the FFT processor, the complex multiplication operation is the most complicated part, which requires the selection of the corresponding complex multiplication unit and the determination of the rotation factor. The rotation factor constant value required by the radix-2k FFT algorithm with different k values when processing FFT calculations with different numbers of points is different in each stage. Therefore, the determination of the rotation factor constant value is cumbersome and complicated. There is no calculation method for determining the rotation factor constant value of the radix-2k FFT algorithm reported in the existing reports.
[0032] Based on this, the embodiment of the present application provides a graphical algorithm for determining the constant value of the base-2^k FFT rotation factor, including:
[0033] Build W 常数 The index frame of the rotation factor, where the W 常数 The index box of the rotation factor contains two binary digits;
[0034] The W 常数 The low bit in the index box of the rotation factor is used as the high bit, W 常数 The high bit of the index frame of the rotation factor is used as the low bit, and the reverse calculation is performed to obtain the corresponding W 常数 The decimal number of the index frame of the rotation factor;
[0035] The decimal numbers are respectively 常数 The operands of the rotation factors are inherited, and W is obtained 常数 Determine the values and order of the rotation factors;
[0036] Based on W 点数 (W N=32 ) Index box binary value and operand diagram calculation principle to determine W 点数 The index box and W of the rotation factor 点数 The operands of the twiddle factors;
[0037] According to W 点数 The index box and W of the rotation factor 点数 The operands of the twiddle factors are obtained. 点数 Determine the value of the rotation factor.
[0038] Optionally, the specific distribution of the rotation factor is: -j→W 16 (W 常数 )→-j→W 32 (W 点数 ), where W 16 W 常数 Twiddle factors.
[0039] Optionally, since the number of determined values is a preset value, when performing FFT calculation for points exceeding the preset value, it is only necessary to convert the W determined by the graphical method of the present invention into a value according to the number of FFT points. 常数 Each value of the rotation factor is repeated by the corresponding multiple.
[0040] Optionally, the W-based 点数 (W N=32 ) Index box binary value and operand diagram calculation principle to determine W 点数 The index box and W of the rotation factor 点数 The steps to twiddle the operands by factors include:
[0041] W 点数 The process of determining the number of twiddle factor operands is:
[0042] Get the W 点数 The position of the rotation factors in the complete calculation process;
[0043] Determine the W based on the position 点数The number of complex multiplications performed by the twiddle factors is taken as the number of W 点数 The number of twiddle factor operands.
[0044] Optionally, the W-based 点数 (W N=32 ) Index box binary value and operand diagram calculation principle to determine W 点数 The index box and W of the rotation factor 点数 The step of twiddling the operands of the factors also includes:
[0045] W 点数 The process of obtaining the number of binary numbers in the index frame of the rotation factor is:
[0046] Divide the number of FFT points by the number of butterflies in each group of butterfly units at the current stage to get W 点数 The number of binary digits in the index box of the twiddle factor;
[0047] Based on the W 点数 The number of binary numbers in the index box of the rotation factor constructs W 点数 The index box of the twiddle factors.
[0048] Optionally, the method according to W 点数 The index box and W of the rotation factor 点数 The operands of the twiddle factors are obtained. 点数 The steps of determining the value of the rotation factor include:
[0049] Based on W 点数 The index box and W of the rotation factor 点数 The product of the operands of the rotation factors is obtained 点数 Determine the value of the rotation factor.
[0050] For example, taking the base-2^4 FFT algorithm with k=4 to process 32-point FFT as an example, the specific distribution of the rotation factors is: -j→W 16 (W 常数 )→-j→W 32 (W 点数 )W 16 It is W defined by the present invention. 常数 The graphical algorithm for the rotation factor and its specific value is as follows Figure 1 shown.
[0051] W 16 The index box contains a two-bit binary number. The corresponding decimal number (0213) is calculated in reverse order from the low bit to the high bit and the high bit to the low bit. Then it is multiplied with the operand
[0123] to get the final W. 16 Determine the values and order of the rotation factors.
[0052] Since the number of determined values is 16, when the FFT calculation exceeds 16 points, it is only necessary to convert the W determined by the graphical method of the present invention into 16 (W 常数 ) Each value is repeated a corresponding multiple, for example, W required for a 32-point FFT calculation 16 (W 常数 ) to determine the value and repeat each value once.
[0053] For example, Figure 2 The signal flow diagram of the base-2^4 FFT algorithm for processing 32-point FFT is shown. For the second stage rotation factor calculation, W needs to be determined. 16 The constant value of is consistent with the result obtained by using the graphical method of the present invention, which verifies the correctness of the graphical algorithm proposed in the present invention.
[0054] For example, to determine W obtained by decomposing and merging by the base-2^k algorithm 常数 (W 32 ), the graphical algorithm is as follows Figure 3 As shown, and calculated W 16 The rotation factors are the same, except that W 32 (W 常数 ) The number of binary digits in the index frame is increased to 3. The 8-bit binary number obtained by the index frame is converted into a high-low bit to calculate the corresponding decimal number, and then multiplied by
[0123] to obtain the determined values of 32 rotation factors.
[0055] Through two W 常数 :W 16 With W 32 The graphical algorithm can be extended to obtain higher constant values of W 常数 Determination of the value of the rotation factor, such as W 64 , W 128 and W 256 etc.
[0056] For example, the rotation factor W 点数 The binary value in the index box and the determination of the operand need to be made using Figure 4 The schematic diagram is used to determine where W 32 (W 点数 ) is the rotation factor determined by the number of FFT points to be calculated in this example. The number of operands is determined by W 点数 At the position of the entire calculation stage, we can look back at the complex multiplication that has gone through several stages, that is, it contains several butterfly units (Butterfly Unit), composed of Figure 4 It is easy to see that this example contains n = 4 butterfly units, so the operand interval is [0, FFT points divided by That is, [0 1]; and the number of binary numbers is obtained by dividing the number of FFT points by the number of butterflies contained in each group of butterfly units at the current stage. In this example, the number of butterfly units contained is m=2, such as Figure 2 The framed part, so the required binary number is 32÷2=16. Figure 5 The figure shows the W obtained after obtaining various parameters. 32 (W 点数 )Graphical algorithm for specific constant values of rotation factors.
[0057] Depend on Figure 5 and Figure 2 By comparison, the rotation factor values are completely consistent, verifying that W 点数 The correctness of the algorithm is shown in the figure. Similarly, this algorithm is very easy to extend to other point FFT calculations. 点数 Determination of the constant value of the rotation factor.
[0058] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A graphical method for determining constant values of radix-2^k FFT rotation factors, the method being applied to an FFT processor, characterized in that: include: Build W 常数 The index frame of the rotation factor, where the W 常数 The index box of the rotation factor contains two binary digits; The W 常数 The low bit in the index box of the rotation factor is used as the high bit, W 常数 The high bit of the index frame of the rotation factor is used as the low bit, and the reverse calculation is performed to obtain the corresponding W 常数 The decimal number of the index frame of the rotation factor; The decimal numbers are respectively 常数 Multiply the operands of the rotation factors to get W 常数 Determine the values and order of the rotation factors; Based on W 点数 Index box binary value and operand diagram calculation principle to determine W 点数 The index box and W of the rotation factor 点数 The number of twiddle factor operands, where W 点数 W N , W N=32 ; According to W 点数 The index box and W of the rotation factor 点数 The operands of the twiddle factors are obtained. 点数 Determine the value of the rotation factor; The W-based 点数 Index box binary value and operand diagram calculation principle to determine W 点数 The index box and W of the rotation factor 点数 The steps to twiddle the operands by factors include: W 点数 The process of determining the number of twiddle factor operands is: Get the W 点数 The position of the rotation factors in the complete calculation process; Determine the W based on the position 点数 The number of complex multiplications performed by the twiddle factors is taken as the number of W 点数 The operands of the twiddle factors; The W-based 点数 Index box binary value and operand diagram calculation principle to determine W 点数 The index box and W of the rotation factor 点数 The step of twiddling the operands of the factors also includes: W 点数 The process of obtaining the number of binary numbers in the index frame of the rotation factor is: Divide the number of FFT points by the number of butterflies in each group of butterfly units at the current stage to get W 点数 The number of binary digits in the index box of the twiddle factor; Based on the W 点数 The number of binary numbers in the index box of the rotation factor constructs W 点数 The index box of the twiddle factors.
2. The graphical method for determining constant values of radix-2^k FFT rotation factors according to claim 1, characterized in that The specific distribution of the rotation factor is: -j→W 16 →-j→W 32 , where W 16 W 常数 Twiddle factors.
3. The graphical method for determining constant values of radix-2^k FFT rotation factors according to claim 1, characterized in that Since the number of determined values is a preset value, when performing FFT calculation for points exceeding the preset value, it is only necessary to convert the W determined by the graphical method into 常数 Each value of the rotation factor is repeated by the corresponding multiple.
4. The graphical method for determining constant values of radix-2^k FFT rotation factors according to claim 1, characterized in that According to W 点数 The index box and W of the rotation factor 点数 The operands of the twiddle factors are obtained. 点数 The steps of determining the value of the rotation factor include: Based on W 点数 The index box and W of the rotation factor 点数 The product of the operands of the rotation factors is obtained 点数 Determine the value of the rotation factor.
