A feedback device and FFT / IFFT processor
By designing the radix-4 cascade operation module in the FFT/IFFT processor, using a dual delay feedback structure and a data delay cache channel, the efficiency of the complex adder/subtractor is improved, and the complex adder in the radix-4SDF and radix-4SDC structures is solved. /The problem of excessive subtractor occupancy improves circuit efficiency.
Patent Information
- Application Number
- CN202010211969.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-24
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-03-24
AI Technical Summary
The radix-4SDF and radix-4SDC structures in existing FFT/IFFT processors occupy more complex adders/subtractors, resulting in large circuit resource usage and low efficiency.
Design a feedback device, including a base 4 cascade operation module, using a double delay feedback structure and a clever data delay cache channel, making full use of the complex multiplier, improving the use efficiency of the complex adder/subtractor, and reducing the required complex additions number of devices.
It effectively improves the usage efficiency of complex adders/subtractors, significantly reduces the number of required complex adders, improves circuit efficiency, and solves the problem that the radix 4SDF and radix 4SDC structures occupy more complex adders/subtractors.
Smart Images

Figure CN111428187B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic communication technology, and in particular to a feedback device and an FFT / IFFT processor. Background Art
[0002] Fast Discrete Fourier Transform (FFT) / Fast Inverse Fourier Transform (IFFT) is a fast implementation of Discrete Fourier Transform (DFT) / Inverse Discrete Fourier Transform (IDFT), and is a commonly used technology in digital signal processing.
[0003] Since the operation processes defined by DFT and IDFT are very similar, FFT and IFFT can use the same circuit structure and implementation method.
[0004] Cooley and Tukey invented the FFT algorithm. The basic idea of FFT is to decompose the original N-point sequence into two or more shorter sequences and recombine them into the DFT of the original sequence, so that the number of operations of the indirect algorithm is much less than the number of operations of directly calculating the DFT, thereby improving the calculation speed of the DFT.
[0005] The decomposition operation of FFT / IFFT can be divided into several types according to the number S of decomposed short sequences, which are generally called basis-S algorithms.
[0006] For example, the radix-2 FFT algorithm can decompose the N-point DFT operation into 2-point DFT operation process; the radix 4FFT algorithm can decompose the N-point DFT operation into 4-point DFT operation process; the radix 8 FFT algorithm can decompose the N-point DFT operation into An 8-point DFT operation process.
[0007] Theoretically, the larger the base S of the decomposition operation, the higher the efficiency of the decomposition algorithm. However, in practice, since DFT operation modules with 8 points or more require complex multipliers, and the larger S is, the more complex multipliers the corresponding DFT operation modules require, the DFT decomposition algorithm with 8 points or more actually requires a large number of complex multipliers, and is rarely used in engineering. Current FFT / IFFT processors basically use base 2 or base 4 decomposition algorithms.
[0008] The current hardware implementation structures of FFT processors include recursive structure, pipeline structure and full parallel structure.
[0009] The recursive structure is also called the shared memory structure. It occupies the least hardware resources and has only one operation processing unit, but the operation time required is relatively long. It cannot continuously process FFT calculation requests and is only suitable for occasional FFT operations. The pipeline structure uses multiple levels of operation units. The previous level of operation unit sends the result to the next level of operation unit and can calculate the next FFT without waiting for the FFT operation to complete. The pipeline structure can continuously calculate N-point FFTs whose previous and subsequent data do not overlap. For continuous FFT calculations whose previous and subsequent data overlap, only a fully parallel structure can be used. In this structure, each level of operation sets the corresponding operation unit for the number of points N. The operation delay of each level can be as low as a single system clock cycle, which can realize continuous calculation of any N-point FFT, but it occupies huge hardware resources.
[0010] In practical applications, there are very few occasions where continuous FFT calculations of arbitrary N points are required, so the most common approach is to use a pipelined design for the FFT processor.
[0011] There are three main types of pipeline structures of the above-mentioned FFT processors: single-path Delay Commutator (SDC), multi-path Delay Commutator (MDC) and single-path Delay Feedback (SDF).
[0012] Correspondingly, the pipeline structure of the FFT processor using the radix-2 algorithm includes three structures: R2SDC, R2SDF, and R2MDC; the pipeline structure of the FFT processor using the radix-4 algorithm includes three structures: R4SDC, R4SDF, and R4MDC.
[0013] Because the radix 2SDC (R2SDC) structure has no advantage over R2SDF in radix 2 butterfly decomposition, the radix 2FFT processor mainly uses the radix 2MDC (R2MDC) and radix 2SDF (R2SDF) structures. Both the radix 2MDC and radix 2SDF structures have the characteristics of simple control and easy implementation, and the circuit resources occupied are not much different. The radix 2SDF structure requires less memory, and the calculation delay of the radix 2MDC structure is shorter.
[0014] However, the common disadvantage of the radix-2MDC and radix-2SDF structures is that the utilization rate of the complex multipliers is low (only 50%), so the entire FFT processor requires a large number of complex multipliers.
[0015] Since FFT / IFFT operations consist of complex multiplication and complex addition / subtraction operations, and multiplication operations are much more complicated than addition / subtraction operations, the circuit scale of the FFT processor is mainly determined by the complex multiplier. The main drawback of the radix 2MDC and radix 2SDF structures is that the utilization rate of the complex multiplier is too low, resulting in a large occupation of circuit resources.
[0016] The radix-4MDC (R4MDC) structure is the simplest of the three pipeline implementation structures of the radix-4 decomposition algorithm, but its disadvantages are also very obvious, that is, the 4-way delay adapter structure requires independent complex multipliers, butterfly operators BF (Butterfly) and storage units, and the utilization rate of these hardware circuit units is low (only 25%). Therefore, the number of various hardware circuit units required for the FFT processor using the R4MDC structure is more than that of the radix-2MDC and radix-2SDF structures. It is an inefficient single-channel FFT processor implementation structure.
[0017] The radix 4SDF (R4SDF) structure is a relatively efficient FFT processor implementation structure, because the serial data stream can make full use of the complex multipliers, so that the utilization efficiency of the complex multipliers reaches (75%), and the complex multipliers required for the entire FFT processor are half of the R2MDC and R2SDF structures; the memory space required by the R4SDF structure is equivalent to that of the R2SDF, and is one-third less than that of the R2MDC structure; but the biggest drawback of the R4SDF is that the number of complex adders required is large, which is twice the number of complex adders required by the R2SDF.
[0018] Compared with the shortcomings of the R4SDF structure, the R4SDC structure can effectively reduce (62.5%) complex adders, and the number of required complex multipliers is also consistent with the R4SDF structure. However, the memory capacity required by the R4SDC structure is increased by (100%) compared with the R4SDF structure, and the control logic circuit of the R4SDC structure is very complex and relatively difficult to implement.
[0019] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0020] The technical problem to be solved by the present invention is that, in view of the above-mentioned defects of the prior art, a feedback device and an FFT / IFFT processor are provided to solve the problem that the radix 4SDF and radix 4SDC structures in the existing FFT / IFFT processor occupy more complex adders / subtractors.
[0021] The technical solution adopted by the present invention to solve the technical problem is as follows:
[0022] A feedback device, wherein the device comprises a radix-4 cascade operation module; the radix-4 cascade operation module comprises: a rotation factor generation unit, a complex multiplier, a delay exchange unit, a butterfly operation unit and an output exchange unit; the complex multiplier is respectively connected to the rotation factor generation unit and the delay exchange unit, the delay exchange unit is respectively connected to the butterfly operation unit, the complex multiplier and the output exchange unit, and the output exchange unit is connected to the butterfly operation unit and the delay exchange unit;
[0023] The rotation factor generating unit is used to generate the rotation factors required by the base-4 cascade operation module;
[0024] The complex multiplier is used to calculate the product of the serial input data and the corresponding rotation factor, and transmit the calculated output data to the delay exchange unit;
[0025] The delay exchange unit is used to delay the output data calculated by the complex multiplier and the feedback data output by the output exchange unit by a preset time and adjust the order of the output data, and then transmit them to the butterfly operation unit and the output exchange unit respectively;
[0026] The butterfly operation unit is used to perform butterfly operation on the output data of the delay exchange unit and transmit the operation result to the output exchange unit;
[0027] The output switching unit selects data from the operation result of the butterfly operation unit and the data transmitted by the delay switching unit for output and feeds back to the delay switching unit.
[0028] Further, the feedback device, wherein the delay exchange unit includes a first data selector, a second data selector, a third data selector, a first data delayer, a second data delayer and a third data delayer;
[0029] The first data selector is connected to the complex multiplier, the output exchange unit, the first data delayer and the second data delayer respectively;
[0030] The second data selector is connected to the complex multiplier, the third data delay device and the butterfly operation unit respectively;
[0031] The third data selector is respectively connected to the second data delayer, the output switching unit and the third data delayer;
[0032] The first data delayer is respectively connected to the first data selector and the butterfly operation unit;
[0033] The second data delayer is connected to the output switching unit, the first data selector and the third data selector respectively;
[0034] The third data delayer is connected to the second data selector, the third data selector and the output switching unit respectively;
[0035] The first data selector is used to select data from the output data of the complex multiplier, the output exchange unit or the second data delayer and transmit it to the first data delayer;
[0036] The second data selector is used for selecting data from the output data of the complex multiplier or the third data delay device and outputting it to the butterfly operator;
[0037] The third data selector is used for selecting data from the output data of the second data delayer or the output switching unit and transmitting it to the third data delayer;
[0038] The first data delayer is used for delaying the data selected by the first data selector by a first effective clock cycle and transmitting the data to the butterfly operation unit;
[0039] The second data delayer is used for delaying the output data of the output switching unit by a second effective clock cycle and then transmitting the delay data to the first data selector and the third data selector;
[0040] The third data delayer is used for delaying the data selected by the third data selector by a third effective clock cycle before transmitting the data to the second data selector and the output switching unit.
[0041] Further, in the feedback device, the delay exchange unit further comprises a delay exchange state controller;
[0042] The delayed switching state controller is used to control the first data selector, the second data selector and the third data selector to select corresponding input data at different times according to a preset switching control instruction.
[0043] Further, the feedback device, wherein the butterfly operation unit includes a complex adder and a complex subtractor;
[0044] The complex adder is used to perform time-sharing addition operations on the input data and then transmit them to the output exchange unit;
[0045] The complex subtractor is used to perform time-sharing subtraction operations on the input data and then transmit them to the output exchange unit;
[0046] The complex adder is connected to the delay switching unit and the output switching unit;
[0047] The complex subtractor is connected to the delay switching unit and the output switching unit.
[0048] Further, the feedback device, wherein the output exchange unit includes a fourth data selector, a fifth data selector and a constant multiplier;
[0049] The fourth data selector is connected to the butterfly operation unit and the delay exchange unit respectively;
[0050] The fifth data selector is connected to the butterfly operation unit, the constant multiplier and the delay exchange unit respectively;
[0051] The constant multiplier is connected to the butterfly operation unit and the fifth data selector respectively;
[0052] The fourth data selector is used to select data from the output data of the butterfly operation unit or the delay exchange unit as a calculation result output;
[0053] The fifth data selector is used for selecting data from the output data of the butterfly operation unit or the constant multiplier and feeding it back to the delay exchange unit;
[0054] The constant multiplier is used to perform rotation and complement operations on the real part and the imaginary part of the input data, and transmit the operation results to the fifth data selector.
[0055] Further, in the feedback device, the output switching unit further comprises an output switching state controller;
[0056] The output switching state controller is used to control the fourth data selector and the fifth data selector to select corresponding input data at different times according to a preset switching control instruction.
[0057] An FFT / IFFT processor, comprising a radix-4 cascade operation module in L feedback devices;
[0058] The calculation method of the L radix-4 cascade operation modules is as follows:
[0059] The FFT operation is decomposed into L-level radix-4 decomposition operations. Each radix-4 cascade operation module is responsible for one level of radix-4 decomposition operation. There are L radix-4 cascade operation modules in total. N is the length of the FFT operation. is the ceiling function.
[0060] Further, in the FFT / IFFT processor, for the ith radix-4 cascade operation module, the data cycle period M is calculated as follows:
[0061] M=4N*4 -i ,, where M is the data cycle period of a radix-4 cascade operation module, N is the length of the FFT operation, i∈[1,L].
[0062] Furthermore, in the FFT / IFFT processor, single-path data transmission is adopted between each of the L radix-4 cascade operation modules.
[0063] Beneficial effects: The present invention provides a feedback device and an FFT / IFFT processor, the device comprising a radix-4 cascade operation module; the radix-4 cascade operation module comprises: a rotation factor generating unit, a complex multiplier, a delay exchange unit, a butterfly operation unit and an output exchange unit; the complex multiplier is respectively connected to the rotation factor generating unit and the delay exchange unit, the delay exchange unit is respectively connected to the butterfly operation unit, the complex multiplier and the output exchange unit, and the output exchange unit is connected to the butterfly operation unit and the delay exchange unit; on the basis of making full use of the complex multiplier, the present invention uses a dual-delay feedback structure circuit and cleverly designs a data delay cache channel, so that the use efficiency of the complex adder / subtractor is effectively improved, the number of complex adders required is significantly reduced, and the circuit efficiency is significantly improved; the problem that the radix-4 SDF and radix-4 SDC structures occupy more complex adders / subtractors is effectively solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 It is a schematic diagram of an external interface of a radix-4 cascade operation module in a feedback device of the present invention;
[0065] Figure 2 It is a schematic diagram of the internal structure of a radix-4 cascade operation module in a feedback device of the present invention;
[0066] Figure 3 It is a schematic diagram of the external interface of a butterfly operation unit in a radix-4 cascade operation module in a feedback device in the present invention;
[0067] Figure 4 It is a schematic diagram of an external interface of a delay exchange unit in a radix-4 cascade operation module in a feedback device in the present invention;
[0068] Figure 5 It is a schematic diagram of the internal structure of a delay exchange unit in a radix-4 cascade operation module in a feedback device in the present invention;
[0069] Figure 6 It is a working schematic diagram of a delay exchange unit in a radix-4 cascade operation module in a feedback device of the present invention;
[0070] Figure 7 It is a schematic diagram of an external interface of an output exchange unit in a radix-4 cascade operation module in a feedback device in the present invention;
[0071] Figure 8It is a schematic diagram of the internal structure of an output exchange unit in a radix-4 cascade operation module in a feedback device in the present invention;
[0072] Fig. 9 It is a working schematic diagram of an output exchange unit in a radix-4 cascade operation module in a feedback device in the present invention;
[0073] Fig.10 It is a schematic diagram of an external interface of an FFT / IFFT processor in the present invention;
[0074] Fig.11 It is a connection diagram of each level of radix-4 cascade operation modules in an FFT / IFFT processor in the present invention. DETAILED DESCRIPTION
[0075] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0076] The feedback device involved in the present invention, in view of the defects of the radix4MDC, radix4SDF and radix4SDC structures in the common pipeline structure, innovatively proposes a single-path double-delay feedback (Radix4Single Path-Double DelayFeedback, R4SP-DDF) structure of the radix4 algorithm. On the basis of making full use of the complex multiplier (utilization rate 75%, the same as the R4SDF and R4SDC structures), by using a double-delay feedback structure circuit and cleverly designing the data delay cache channel, the utilization efficiency of BF2 (complex adder) is improved (100%), and the problem that the radix4SDF and radix4SDC structures occupy more complex adders / subtractors is effectively solved. Compared with the R4SDF structure, the number of complex adders is reduced (75%), and compared with the R4SDC structure, the number of complex adders is also reduced (33%).
[0077] In view of the fact that the several FFT / IFFT processor implementation structures (R4SDF / R4SDC / R4MDC) of the above-mentioned radix-4 decomposition algorithm all have the defect of low utilization rate of complex adders, the present invention further decomposes the radix-4 decomposition algorithm of FFT operation, and makes:
[0078]
[0079] Then the output sequence X(k) of the FFT / IFFT processor can be further decomposed into:
[0080]
[0081] According to the above decomposition process, the radix-4 decomposition operation implemented by the radix-4 cascade operation module can be roughly decomposed into 4 addition operations. and 4 subtraction operations The radix-4 decomposition operation implemented by the radix-4 cascade operation module can be decomposed into 4 addition operations, 4 subtraction operations and 1 (-j) multiplication operation. Since the real part and the imaginary part are calculated separately in the circuit of the FFT / IFFT processor, the complex multiplier of the pure imaginary number (-j) only needs to perform simple data exchange and complement code processing; and the 4 addition operations and 4 subtraction operations can be implemented one by one by time-sharing calculations of the complex adder / subtractor, so that the utilization efficiency of the complex adder / subtractor can be effectively improved (to 100%).
[0082] See also Figure 1 , Figure 1 It is a schematic diagram of the external interface of a radix-4 cascade operation module in a feedback device in the present invention.
[0083] The external interface of the radix-4 cascade operation module provided in the embodiment of the present invention includes an input interface and an output interface, wherein the input interface includes:
[0084] Reset, Clock, In_DataSync, In_DataEna, In_DataI and In_DataQ, where reset and clock are global reset and global clock signals, In_DataI and In_DataQ are serial input data, In_DataI is the real part of the input data (I division) and In_DataQ is the imaginary part of the input data (Q division); In_DataEna is the data enable signal, and the input In_DataI and In_DataQ are valid only when In_DataEna is valid; In_DataSync is the frame synchronization signal, and In_DataSync is valid only when the first data of the data frame is input, and In_DataSync is invalid at other times;
[0085] Output interfaces include:
[0086] Out_DataSync, Out_DataValid, Out_DataI and Out_DataQ, where Out_DataI and Out_DataQ are serial data outputs, Out_DataI corresponds to the real part (I part) of the calculation result and Out_DataQ corresponds to the imaginary part (Q part) of the calculation result; Out_DataValid is the data output valid signal, only when Out_DataValid is valid, the output results Out_DataI and Out_DataQ are valid; Out_DataSync is the frame synchronization signal, Out_DataSync is only valid when the first data of the frame data is output, and Out_DataSync outputs an invalid level at other times.
[0087] See also Figure 2 The device comprises a radix-4 cascade operation module; the radix-4 cascade operation module comprises: a delay exchange unit 10, a butterfly operation unit 20, an output exchange unit 30, a rotation factor generation unit 40 and a complex multiplier 50; the complex multiplier 50 is respectively connected to the rotation factor generation unit 40 and the delay exchange unit 10, the delay exchange unit 10 is respectively connected to the butterfly operation unit 20, the complex multiplier 50 and the output exchange unit 30, and the output exchange unit 30 is connected to the butterfly operation unit 20 and the delay exchange unit 10;
[0088] The rotation factor generating unit 40 is used to generate the rotation factors required by the radix-4 cascade operation module;
[0089] The complex multiplier 50 is used to calculate the product of the serial input data and the corresponding rotation factor, and transmit the calculated input data to the delay exchange unit 10.
[0090] The delay exchange unit 10 is used to delay the output data calculated by the complex multiplier 50 and the feedback data output by the output exchange unit by a preset time and adjust the order of the output data, and then transmit them to the butterfly operation unit 20 and the output exchange unit 30 respectively;
[0091] The butterfly operation unit 20 is used to perform butterfly operation on the output data of the delay exchange unit 10 and transmit the operation result to the output exchange unit 30;
[0092] The output switching unit 30 selects data from the operation results of the butterfly operation unit 20 and the data transmitted by the delay switching unit 10 to output and feeds back to the delay switching unit 10 .
[0093] In this embodiment, the rotation factor generating unit 40 is mainly a read-only memory (ROM memory), which stores the rotation factors required in the radix-4 cascade operation module. The complex multiplier 50 is input together with the serial input data in the current radix-4 cascade operation module for multiplication. The complex multiplier 50 is responsible for calculating the product of the serial input data and the corresponding rotation factor, and sending the calculated result to the delay exchange unit 10, wherein the serial input data InData is a complex number, including a real part (In_DataI) and an imaginary part (In_DataQ). It should be understood that the rotation factor generating unit 40 can also be obtained by hardware circuit calculation, and the present invention is not limited to this.
[0094] More specifically, the delay exchange unit 10 is a three-input and three-output exchange circuit, wherein the three input channels correspond to the serial input data channel (InData) of the radix-4 cascade operation module and the two delayed feedback data interfaces (FB+ and FB-) of the output exchange unit 30, respectively. The delay exchange unit 10 correctly exchanges the data of the three input ports to the three output data ports through the delay exchange state controller 17; the data of the A1 and A2 output ports of the delay exchange unit 10 will be sent to the two input ports of the butterfly operation unit 20, and the data of the A3 output port of the delay exchange unit 10 will be sent to the output exchange unit 30; the two data input ports of the butterfly operation unit 20 are both from The result of the delay switching unit 10 after completing the butterfly operation is sent to the B1 and B2 ports of the output switching unit 30; the output switching unit 30 is also a three-input and three-output switching circuit. The data of the three ports input by the delay switching unit 10 and the butterfly operation unit 20 are reasonably distributed to the three output ports through the output switching state controller 34. The first output port of the output switching unit 30 corresponds to the output data channel (OutData) of the radix-4 cascade operation module, and the other two output data ports (FB+ and FB-) of the output switching unit 30 correspond to the dual delay feedback path of the radix-4 cascade operation module. The data of these two ports will be fed back to the two input ports of the delay switching unit 10.
[0095] For further information, see Figure 3 The butterfly operation unit 20 includes a complex adder 21 and a complex subtractor 22; the complex adder 21 is used to perform time-sharing addition operations on the input data; the complex subtractor 50 is used to perform time-sharing subtraction operations on the input data; the complex adder 21 is connected to the delay exchange unit 10 and the output exchange unit 30; the complex subtractor 22 is connected to the delay exchange unit 10 and the output exchange unit 30.
[0096] In this embodiment, the complex adder 21 and the complex subtractor 22 adopt a time-sharing mode to improve the efficiency. Sometimes the operation input is from the output of the complex multiplier 50 (the calculation ), sometimes the operation input comes from the feedback of the complex adder 21 and the complex subtractor 22 (calculation of E+G, F+J, EG, FJ), the delay exchange unit is responsible for the delay exchange scheduling of the input data of the complex adder 21 and the complex subtractor 22, the output data of the complex multiplier 50 (that is, the serial input data multiplied by the rotation factor) and the complex adder 21 / complex subtractor 22 feedback data are exchanged and scheduled in the data channel and timing by the delay exchange unit, and the two complex data streams are output and sent to the complex adder 21 / complex subtractor 22 respectively, to ensure the complex The complex adder 21 / complex subtractor 22 performs high-speed and efficient time-sharing calculations; because of the time-sharing working mode of the complex adder 21 / complex subtractor 22, its output result sometimes needs to be fed back to the delay exchange unit for the next round of calculations (E, F, G, H), sometimes it can be directly output as the output serial sequence (E+G, F+J) of the radix-4 cascade operation module of this level, and sometimes because the radix-4 cascade operation modules are connected by a single data path, it needs to be fed back to the delay exchange unit for delay as the output serial sequence (EG, FJ) of the radix-4 cascade operation module of this level.
[0097] See also Figure 4 and Figure 5 The delay exchange unit 10 is a small switching circuit with three inputs and three outputs. Each data input / output port corresponds to a complex data input / output, that is, each input / output includes a real part (I branch) and an imaginary part (Q branch) of the data. The delay exchange unit 10 includes a first data selector 11, a second data selector 12, a third data selector 13, a first data delay 14, a second data delay 15 and a third data delay 16;
[0098] The first data selector 11 is respectively connected to the complex multiplier 50, the output exchange unit 30, the first data delay 14 and the second data delay 15;
[0099] The second data selector 12 is respectively connected to the complex multiplier 50, the third data delay 16 and the butterfly operation unit 20;
[0100] The third data selector 13 is respectively connected to the second data delay 15, the output switching unit 30 and the third data delay 16;
[0101] The first data delayer 14 is connected to the first data selector 11 and the butterfly operation unit 20 respectively;
[0102] The second data delayer 15 is respectively connected to the output switching unit 30, the first data selector 11 and the third data selector 13;
[0103] The third data delayer 16 is connected to the second data selector 12, the third data selector 13 and the output switching unit 30 respectively;
[0104] The first data selector 11 is used to select data from the input data and transmit it to the first data delayer 14;
[0105] The second data selector 12 is used to select corresponding data from the input data and output it to the butterfly operator 20;
[0106] The third data selector 13 is used to select corresponding data from the input data and transmit it to the third data delayer 16;
[0107] The first data delayer 14 is used to delay the input data by a first effective clock cycle before transmitting it to the butterfly operation unit 20;
[0108] The second data delayer 15 is used to delay the input data by a second effective clock cycle and then transmit it to the first data selector 11 and the third data selector 13;
[0109] The third data delayer 16 is used to delay the input data by a third effective clock cycle before transmitting the data to the second data selector 12 and the output switching unit 30 .
[0110] The first data delayer can delay the input data by M / 2 effective clock cycles before outputting it, and the second and third data delayers indicate that the delayer can delay the input data by M / 4 effective clock cycles before outputting it, M = 2N × 2 -iM is the data cycle of the base 4 cascade operation module, and N is the length of the FFT operation. The first data selector is a three-input data selector, and the second data selector and the third data selector are two-input data selectors. The first data selector is responsible for selecting appropriate data for the A1 output port of the delay exchange unit (connected to the butterfly operation unit 20 in the base 4 cascade operation module) from the 3-way input data. The 3-way input data of the first data selector comes from the InData, FB+ and FB- of the delay exchange unit 10, and the three data input ports correspond to the output of the complex multiplier 50 in the base 4 cascade operation module and the output of the butterfly operation unit 20 (through the output exchange unit 30 and the 2-way feedback channel). The second data selector is responsible for selecting appropriate data for the A2 output port of the delay exchange unit 10 (connected to the butterfly operation unit 20 in the base 4 cascade operation module) from the 2-way input data. One of the two input data of the second data selector comes from the InData data input port of the delay exchange unit 10 (corresponding to the output of the complex multiplier 50 in the radix-4 cascade operation module), and the other comes from the output of the third data selector (which also needs to pass through the second data delayer). The third data selector is responsible for selecting appropriate data for the A3 output port of the delay exchange unit 10 (the In_C port of the direct output exchange unit 30 in the radix-4 cascade operation module) from the two input data. The two input data of the third data selector correspond to the FB+ data input port (i.e., the feedback channel corresponding to the output of the complex adder 21) and the FB- data input port (i.e., the feedback channel corresponding to the output of the complex subtractor 22) of the delay exchange unit 10, respectively.
[0111] Specifically, the following is combined Figure 5 and Figure 6 The working process of the delay exchange unit 10 is further explained. The delay exchange unit 10 is a complex finite state machine circuit. The working states include a waiting state, a start state A, a start state B, a start state C, a loop processing state A, a loop processing state B, a loop processing state C, a loop processing state D, an exit state A, an exit state B, an exit state C, an exit state D, etc., a total of 12 states. In different states, the working states of the three data selectors and the three data delayers of the delay exchange unit 10 are defined as follows:
[0112] Waiting state (M / 2 data cycles): the first data selector, the second data selector, and the third data selector are closed and have no data output; the second data delayer and the third data delayer have no data; the output ports A1 / A2 / A3 have no output; the complex adder 21 / complex subtractor 22 in the radix-4 cascade operation module does not work; the input ports FB+ and FB- connected to the two feedback paths have no data input.
[0113] Start-up state A (M / 2 data cycles): the first data selector selects the data from the InData port (i.e., the output of the complex multiplier 50 in the radix-4 cascade operation module), and the input data enters the first data delayer of the data delayer in sequence; the second data selector and the third data selector are turned off; there is no data in the second data delayer and the third data delayer; there is no output in the output ports A1 / A2 / A3; the complex adder 21 / complex subtractor 22 in the radix-4 cascade operation module does not work; there is no data input in the input ports FB+ and FB- connected to the two feedback paths.
[0114] Startup state B (M / 4 data cycles): the second data selector selects the data from the InData port (i.e., the output of the complex multiplier 50 in the radix-4 cascade operation module), and the input data is output to the A2 port through the second data selector and sent to the addend / subtrahend port of the complex adder 21 / complex subtractor 22 in the radix-4 cascade operation module; at the same time, the startup state A enters the first data delayer, and the first M / 4 data of the input data are output one by one from the delayer through the A1 port and sent to the addend / subtrahend port of the complex adder 21 / complex subtractor 22 in the radix-4 cascade operation module; the complex adder 21 / complex subtractor 22 calculates E / F one by one, and calculates M / 4 times in total; the calculation result of complex adder 21 / complex subtractor 22 is sent to FB+ / FB- port through two feedback channels, and at the same time, the first data selector selects the data from the FB+ port (that is, the feedback channel corresponding to the output of complex adder 21), and the calculation result E of complex adder 21 enters the first data delayer of data delayer in sequence, and the calculation result F of complex subtractor 22 enters the second data delayer in sequence; in this stage, the third data selector is closed, no data is output, the third data delayer has no data, and the A3 port has no data output.
[0115] Start state C (M / 4 data cycles): the second data selector selects the data from the InData port (i.e., the output of the complex multiplier 50 in the radix-4 cascade operation module), and the input data is output to the A2 port through the second data selector and sent to the addend / subtrahend port of the complex adder 21 / complex subtractor 22 in the radix-4 cascade operation module; at the same time, the last M / 4 data of the input data entering the first data delayer in the start state A are also output from the delayer one by one and sent to the addend / subtrahend port of the complex adder 21 / complex subtractor 22 in the radix-4 cascade operation module through the A1 port; the complex adder 21 / complex subtractor 22 calculates G / H one by one, and calculates M / 4 times in total; the complex adder 21 / The calculation result of the complex subtractor 22 is sent to the FB+ / FB- port through the output exchange unit 30 and the two feedback channels. At the same time, the third data selector selects the data from the FB+ port (that is, the feedback channel corresponding to the output of the complex adder 21), and the calculation result G of the complex adder 21 enters the third data delay in sequence, and the calculation result H of the complex subtractor 22 is converted into J through the output exchange unit 30 and then enters the second data delay in sequence; at the same time, the first data selector selects the port connected to the second data delay, and F that enters the data delay in the startup state B is output from the second data delay at this time, and enters the first data delay in sequence through the first data selector, and no data is output from the A3 port.
[0116] Loop processing state A (M / 4 data cycles): the data E entering the first data delayer in the start state B or the loop processing state C is output to the A1 port one by one and sent to the addend / minuend port of the complex adder 21 / complex subtractor 22; the second data selector selects the port connected to the second data delayer, and the data G entering the third data delayer in the start state C or the loop processing state D is output from the third data delayer at this time, and is sent to the addend / minuend port of the complex adder 21 / complex subtractor 22 through the second data selector and the A2 output port; the complex adder 21 / complex subtractor 22 calculates (E+G) / (EG) one by one, and calculates M / 4 times in total; the result (E+G) of the complex adder 21 is output to the exchange unit 30 as the output of the radix-4 cascade operation module of this level and sent to the next level. The first-level radix-4 cascade operation module, and the result (EG) of the complex subtractor 22 is sent to the FB-port of the delay exchange unit through the feedback channel, and enters the second data delayer in turn; the data of the input port FB+ connected to the feedback channel is not selected and can be directly discarded; at the same time, the data J entering the second data delayer in the start state C or the loop processing state D is output in turn, and at this time the third data selector selects the port connected to the data delayer Delay (M / 4), and J enters the third data delayer in turn; at the same time, the input data of the next cycle is input from the InData port in turn, and the first data selector selects the data of the InData port at this time, and the input data of the next cycle begins to enter the first data delayer; the output data of the A3 port will be discarded by the output exchange unit 30.
[0117] Loop processing state B (M / 4 data cycles): the data F entering the first data delayer in the startup state C or the loop processing state D are output to the A1 port one by one and sent to the addend / minuend port of the complex adder 21 / complex subtractor 22; the second data selector selects the port connected to the third data delayer, and the J entering the third data delayer in the loop processing state A is output from the third data delayer at this time, and is sent to the addend / minuend port of the complex adder 21 / complex subtractor 22 through the second data selector and the A2 output port; the complex adder 21 / complex subtractor 22 calculates (F+J) / (FJ) one by one, and calculates M / 4 times in total; the result (F+J) of the complex adder 21 is output to the exchange unit 30 as the output of the radix-4 cascade operation module of this level and sent to the next level. The first-level radix-4 cascade operation module, and the result (FJ) of the complex subtractor 22 is sent to the FB-port of the delay exchange unit through the feedback path, and enters the second data delay in turn; the data of the input port FB+ connected to the feedback path is not selected and can be directly discarded; at the same time, the data (EG) entering the second data delay in the loop processing state A is output in turn, and the third data selector selects the port connected to the second data delay, (EG) enters the third data delay in turn; at the same time, the input data of the next cycle is input from the InData port in turn, and the first data selector selects the data of the InData port at this time, and the input data of the next cycle begins to enter the first data delay; at this stage, the output data of the A3 port will be discarded by the output exchange unit 30.
[0118] Loop processing state C (M / 4 data cycles): the data (next cycle) entering the first data delayer in loop processing state A and loop processing state B are output to port A1 one by one and sent to the addend / minuend port of complex adder 21 / complex subtractor 22; at the same time, the second data selector selects the data from the InData port (also the data of the next cycle), and the input data is output to port A2 through the second data selector and sent to the addend / minuend port of the complex adder 21 / complex subtractor 22 in the radix 4 cascade operation module; the complex adder 21 / complex subtractor 22 calculates E / F of the next cycle one by one, and calculates M / 4 times in total; the calculation result of the complex adder 21 / complex subtractor 22 is sent to the FB+ / FB- port through two feedback channels, and at the same time, ... A data selector selects the data from the FB+ port, and the calculation result E (of the next cycle) of the complex adder 21 enters the first data delay in sequence, and the calculation result F (of the next cycle) of the complex subtractor 22 enters the second data delay in sequence; the third data selector selects the port connected to the second data delay, and the data (of the current cycle) (FJ) entering the second data delay in the loop processing state B is output in sequence and enters the third data delay through the third data selector; at the same time, the data (of the current cycle) (EG) entering the third data delay in the loop processing state B is output in sequence and sent to the In_C port of the output exchange unit 30 through the A3 port, and is sent to the next-level radix-4 cascade operation module by the output exchange unit 30 as the output of the current-level radix-4 cascade operation module.
[0119] Loop processing state D (M / 4 data cycles): Loop processing state A and loop processing state B enter the data delayer in turn. The data of the first data delayer (next cycle) is output to the A1 port one by one and sent to the addend / minuend port of the complex adder 21 / complex subtractor 22; at the same time, the second data selector selects the data from the InData port (also the data of the next cycle), and the input data is output to the A2 port through the second data selector and sent to the addend / minuend port of the complex adder 21 / complex subtractor 22 in the radix 4 cascade operation module; the complex adder 21 / complex subtractor 22 calculates G / H of the next cycle one by one, and calculates M / 4 times in total; the calculation result of the complex adder 21 / complex subtractor 22 is sent to the FB+ / FB- port through two feedback channels, and at the same time the third data selector selects the data from the FB+ port (i.e., the feedback channel corresponding to the output of the complex adder 21), the calculation result (of the next cycle) G of the complex adder 21 enters the third data delay in sequence, and the calculation result (of the next cycle) H of the complex subtractor 22 is converted into J through the output exchange unit 30 and then enters the second data delay in sequence; at the same time, the first data selector selects the port connected to the second data delay, and the (next cycle) F of the loop processing state C entering the second data delay is output from the second data delay at this time, and enters the first data delay in sequence through the first data selector; at the same time, the data (of the current cycle) (FJ) entering the third data delay in the loop processing state C is output in sequence, sent to the In_C port of the output exchange unit 30 through the A3 port, and is sent to the next-level radix-4 cascade operation module by the output exchange unit 30 as the output of the current-level radix-4 cascade operation module.
[0120] Exit state A (M / 4 data cycles): cyclic processing state C enters the data delayer. The data E of the first data delayer is output one by one to the A1 port and sent to the addend / minuend port of the complex adder 21 / complex subtractor 22; the second data selector selects the port connected to the third data delayer, and the cyclic processing state D enters the third data delayer. G is output from the third data delayer at this time, and is sent to the addend / minuend port of the complex adder 21 / complex subtractor 22 through the second data selector and the A2 output port; the complex adder 21 / complex subtractor 22 calculates (E+G) / (EG) one by one, and calculates M / 4 times in total; the result (E+G) of the complex adder 21 is output The exchange unit 30 is sent to the next-level radix-4 cascade operation module as the output of the current-level radix-4 cascade operation module, and the result (EG) of the complex subtractor 22 is sent to the FB-port of the delay exchange unit through the feedback channel, and enters the second data delayer in sequence; the data of the input port FB+ connected to the feedback channel is not selected and can be directly discarded; at the same time, the data J entering the second data delayer in the loop processing state D is output in sequence, and at this time the third data selector selects the port connected to the second data delayer, and J enters the third data delayer in sequence; at the same time, the first data selector is closed, and no input data enters the first data delayer; the output data of the A3 port will be discarded by the output exchange unit 30.
[0121] Exit processing state B (M / 4 data cycles): the data F entering the first data delayer in the cyclic processing state D is output to the A1 port one by one and sent to the addend / minuend port of the complex adder 21 / complex subtractor 22; the second data selector selects the port connected to the third data delayer, and the J entering the third data delayer in the exit state A is output from the third data delayer at this time, and is sent to the addend / minuend port of the complex adder 21 / complex subtractor 22 through the second data selector and the A2 output port; the complex adder 21 / complex subtractor 22 calculates (F+J) / (FJ) one by one, and calculates M / 4 times in total; the result (F+J) of the complex adder 21 is output to the exchange unit 30 It is sent to the next-stage radix-4 cascade operation module as the output of the current stage radix-4 cascade operation module, and the result (FJ) of the complex subtractor 22 is sent to the FB-port of the delay exchange unit 10 through the feedback channel, and enters the second data delayer in sequence; the data of the input port FB+ connected to the feedback channel is not selected and can be directly discarded; at the same time, the data (EG) entering the second data delayer after exiting state A is output in sequence, and at this time, the third data selector selects the port connected to the second data delayer, and (EG) enters the third data delayer in sequence; at the same time, the first data selector is closed, and no data enters the first data delayer; at this stage, the output data of the A3 port will be discarded by the output exchange unit 30.
[0122] Exit processing state C (M / 4 data cycles): the first data delayer has no data output; the second data selector is turned off; the complex adder 21 / complex subtractor 22 stops working; the first data selector is turned off; the third data selector selects the port connected to the second data delayer, and the data (FJ) entering the second data delayer in exit state B is output in sequence and enters the third data delayer through the third data selector; at the same time, the data (EG) entering the third data delayer in exit state B is output in sequence and sent to the In_C port of the output exchange unit 30 through the A3 port, and is sent to the next-level radix-4 cascade operation module by the output exchange unit 30 as the output of the current-level radix-4 cascade operation module.
[0123] Exit processing state D (M / 4 data cycles): the first data delayer has no data output; the second data selector is turned off; the complex adder 21 / complex subtractor 22 stops working; the third data selector is turned off; the first data selector is turned off; exit state C and enter the data (FJ) of the third data delayer Delay(M / 4) are output in sequence, sent to the In_C port of the output exchange unit 30 through the A3 port, and sent to the next level radix-4 cascade operation module by the output exchange unit 30 as the output of the current level radix-4 cascade operation module.
[0124] It should be noted that the delay switching unit 10 is controlled by the delay switching state controller 17, wherein the delay switching state controller 17 controls the first data selector 11, the second data selector 12 and the third data selector 13 to select the corresponding input data at different times according to the preset switching control instruction. Specifically, the jump between the 12 states is as follows: Figure 6As shown: before there is no FFT calculation data (including intermediate calculation results) input, the delay exchange unit 10 stays in the waiting state. When a new frame of data is received, the delay exchange unit 10 jumps from the waiting state to the start state A, and then jumps to the start state B and the start state C in sequence. The start state completes the filling of all data delays inside the delay exchange unit 10; then it jumps to the loop processing state A, the loop processing state B, the loop processing state C, and the loop processing state D in sequence. Each traversal of the four states of loop processing can process M data of one cycle; each time the loop processing state D is about to end, the delay exchange state controller will detect whether the current frame data has not been calculated or there is a next frame of data to be processed. If so, it will jump to the loop processing state A to continue working; otherwise, it will jump to the exit state A, and traverse the exit state B and the exit state C in sequence to complete the data processing of the last cycle of the current frame, and finally jump back to the waiting state to wait for the input of the next frame of calculation data. Since the number of data processed each time in the 11 working states, namely, start state A, start state B, start state C, loop processing state A, loop processing state B, loop processing state C, loop processing state D, exit state A, exit state B, exit state C, and exit state D, is fixed, the delayed exchange state controller 17 can be implemented by a counter and a simple logic judgment circuit.
[0125] See also Figure 7 and Figure 8 The output switching unit 30 is a small switching circuit with three inputs and three outputs. Each data input / output port corresponds to a complex data input / output, that is, each input / output includes a real part (I branch) and an imaginary part (Q branch) of the data. The output switching unit 30 includes a fourth data selector 31, a fifth data selector 32 and a constant multiplier 33.
[0126] The fourth data selector 31 is connected to the butterfly operation unit 20 and the delay exchange unit 10 respectively;
[0127] The fifth data selector 32 is respectively connected to the butterfly operation unit 20, the constant multiplier 33 and the delay exchange unit 10;
[0128] The constant multiplier 33 is connected to the butterfly operation unit 20 and the fifth data selector 32 respectively;
[0129] The fourth data selector 31 is used to select data from the output data of the butterfly operation unit 20 or the delay exchange unit 10 as a calculation result output;
[0130] The fifth data selector 32 is used to select data from the output data of the butterfly operation unit 20 or the constant multiplier 33 and feed it back to the delay exchange unit 10;
[0131] The constant multiplier 33 is used to perform rotation and complement operations on the real part and the imaginary part of the input data, and transmit the operation results to the fifth data selector 32.
[0132] In this embodiment, the output exchange unit 30 has three input ports In_A / In_B / In_C and three output ports Out_Data / FB+ / FB-; the input port In_A / In_B is connected to the output end of the complex adder 21 / complex subtractor 22 of the radix-4 cascade operation module, and the In_C port is connected to the output port A3 of the delay exchange unit 10; the output port Out_Data is directly used as the data output port of the radix-4 cascade operation module, and the output port FB+ / FB- is interconnected with the input port FB+ / FB- of the delay exchange unit 10 through two feedback paths.
[0133] Furthermore, the entire switching unit is composed of a fourth data selector / fifth data selector and a constant multiplier (-j); the fourth data selector and the fifth data selector are two-input data selectors, the fourth data selector selects appropriate data from the In_A port or the In_C port and sends it to the output port OutData, and the fifth data selector selects appropriate data from the In_B port or the output port of the constant multiplier (-j) and sends it to the output port FB-; the constant multiplier (-j) is responsible for converting the data H input from the In_B end into J (J = H × (-j)). The constant multiplier (-j) does not require any hardware multiplier, and only needs to perform rotation and complement operations on the real part (I branch) and imaginary part (Q branch) of the input complex data.
[0134] Specifically, the following is combined Figure 8 and Fig. 9 The working process of the output exchange unit 30 is further described. The output exchange unit 30 is a finite state machine circuit. The working states include four states: closed state, calculation output state, feedback output state A, and feedback output state B. In different states, the working states of the two data selectors and the constant multiplier of the output exchange unit 30 are defined as follows:
[0135] Closed state: In the current state, the fourth data selector and the fifth data selector are closed, the OutData port has no output data, the FB- port has no output data, and the data output by the FB+ port is automatically discarded by the delay exchange unit 10.
[0136] Calculation output state: This state corresponds to the moment when the adder / subtractor of the radix-4 cascade operation module calculates (E+G) / (EG) and (F+J) / (FJ) (a total of M / 2 times), the fourth data selector selects the data (E+G) and (F+J) of the In_A port, and outputs the data (E+G) and (F+J) through the OutData port as the output of the radix-4 cascade operation module of this level to the radix-4 cascade operation module of the next level; at the same time, the fifth data selector selects the data (EG) and (FJ) of the In_B port, and sends the data (EG) and (FJ) to the FB-input port of the delay exchange unit 10 through the FB-port and the feedback path, and the data (EG) and (FJ) will be cached in the delay exchange unit 10 and wait for output; at this time, the data (E+G) and (F+J) of the In_A port will also be sent to the FB+input port of the delay exchange unit 10 through the FB+port and the feedback path, but the delay exchange unit 10 will automatically discard this part of the data.
[0137] Feedback output state A: This state is calculated M / 4 times in total. The fourth data selector enables the In_C port, and the data (EG) (of the previous cycle) previously cached in the delay exchange unit 10 is output through the OutData port as the output of the radix-4 cascade operation module at this level to the radix-4 cascade operation module at the next level; at the same time, the fifth data selector enables the data F of the In_B port, and sends the data F to the FB-input port of the delay exchange unit 10 through the FB-port and the feedback path, and the data F will be cached in the delay exchange unit 10 waiting for the next calculation; at this time, the data E of the In_A port will also be sent to the FB+input port of the delay exchange unit 10 through the FB+port and the feedback path, and the data E will be cached in the delay exchange unit 10 waiting for the next calculation.
[0138] Feedback output state B: This state is calculated M / 4 times in total. The fourth data selector selects the In_C port. The data (FJ) (of the previous cycle) previously cached in the delay exchange unit 10 is output through the OutData port as the output of the radix-4 cascade operation module at this level and sent to the radix-4 cascade operation module at the next level. At the same time, the calculation result H of the subtractor of the radix-4 cascade operation module is sent to the input port In_B, and the constant multiplier (-j) converts H into J output (J=H×(-j)). The fifth data selector selects the output data J of the constant multiplier (-j), and sends the data J to the FB-input port of the delay exchange unit 10 through the FB-port and the feedback path. The data J will be cached in the delay exchange unit 10 and wait for the next calculation. At this time, the data G of the In_A port will also be sent to the FB+input port of the delay exchange unit 10 through the FB+port and the feedback path. The data G will be cached in the delay exchange unit 10 and wait for the next calculation.
[0139] It should be noted that the output switching unit 30 is controlled by the output switching state controller 34, wherein the output switching state controller 34 controls the fourth data selector 31 and the fifth data selector 32 to select corresponding input data at different times according to the preset switching control instruction. Specifically, the jump between the four states is as follows: Fig. 9 As shown: when the adder / subtractor of the radix-4 cascade operation module does not input data to the output exchange unit 30, the output exchange unit 30 stays in the closed state. When a new frame of data is input, the output exchange unit 30 jumps from the closed state to the calculation output state, and then jumps to the feedback output state A and the feedback output state B in sequence. Each traversal of the calculation output state / feedback output state A / feedback output state B can output a cycle of M data; each time the feedback output state B is about to end, the output exchange state controller will detect whether the current frame data has not been output or there is a next frame of data to be processed. If so, it will jump to the calculation output state to continue working; otherwise, it will jump back to the closed state and wait for the input of the next frame of data. Since the number of data processed each time in the three working states of the calculation output state, feedback output state A, and feedback output state B is fixed, the output exchange state controller can be implemented by a counter and a simple logic judgment circuit.
[0140] Based on the above feedback device, the present invention also provides a FFT / IFFT processor, such as Fig.10 As shown (only the FFT processor is shown in the figure). Among them, it includes the above-mentioned feedback device.
[0141] In this embodiment, the external interface of the FFT / IFFT processor includes an input interface and an output interface, wherein the input interface includes reset, clock, In_DataSync, In_DataEna, In_DataI and In_DataQ, wherein reset and clock are global reset and global clock signals, In_DataI and In_DataQ are serial input data, i.e., N time domain input data participating in the N-point FFT operation, In_DataI is the real part of the input data (I part) and In_DataQ is the imaginary part of the input data (Q part); In_DataEna is a data enable signal, and only when In_DataEna is valid, the input In_DataI and In_DataQ are valid; In_DataSync is a frame synchronization signal, and for a data frame composed of N FFT data, In_DataSync is only valid when the first data of the frame data is input, and In_DataSync is invalid at other times.
[0142] The output interface of the FFT processor includes Out_DataSync, Out_DataValid, Out_DataI and Out_DataQ, where Out_DataI and Out_DataQ are serial output results, i.e., the frequency domain output results of the N-point FFT operation, and the output result is also N data, Out_DataI corresponds to the real part (I part) of the calculation result and Out_DataQ corresponds to the imaginary part (Q part) of the calculation result; Out_DataValid is a data output valid signal, and only when Out_DataValid is valid, the output results Out_DataI and Out_DataQ are valid. This FFT processor adopts the method of serial continuous output results. In the process of the FFT processor outputting a frame of calculation results, Out_DataValid is continuously valid; Out_DataSync is a frame synchronization signal. When outputting a data frame composed of N-point FFT operation results, Out_DataSync is only valid when the first data of the frame data is output, and Out_DataSync outputs an invalid level at other times.
[0143] See also Fig.11 , decompose the FFT operation into L levels of radix-4 decomposition operations, each radix-4 cascade operation module is responsible for one level of radix-4 decomposition operation, there are L radix-4 cascade operation modules in total, the radix-4 cascade operation modules adopt the R4SP-DDF implementation structure, that is, a single-path data transmission method (that is, a single data serial transmission method) is adopted between the radix-4 cascade operation modules, there are L radix-4 cascade operation modules in total inside the FFT / IFFT processor involved in the present invention, and the calculation method of L is as follows:
[0144] Among them, the FFT operation is decomposed into L-level radix-4 decomposition operations, each radix-4 cascade operation module is responsible for one level of radix-4 decomposition operation, there are L radix-4 cascade operation modules in total, N is the length of the FFT operation, is the ceiling function.
[0145] Further, for the ith radix-4 cascade operation module, the data cycle period M is calculated as follows: M=4N*4 -i ,, where M is the data cycle period of a radix-4 cascade operation module, N is the length of the FFT operation, i∈[1,L];
[0146] It should be noted that N-point FFT operation requires L-level cascaded radix-4 decomposition operations. Specifically, for each radix-4 decomposition operation, the input data A / B / C / D are not continuously input, and the amount of interval data depends on the level of the L-level decomposition operation. Let 4 times the A / B / C / D interval data be M, that is, there are M / 4 data between data A and B, between B and C, and between C and D. For the i-th radix-4 cascade operation module, although the length of the data of a frame of FFT operation is 4 L , but the data length of an operation processing cycle is M, which can be calculated by the following formula:
[0147] M=4N*4 -i , where M is the data cycle period of a radix-4 cascade operation module, N is the length of the FFT operation, i∈[1,L].
[0148] In summary, the present invention provides a feedback device and an FFT / IFFT processor, the device comprising a radix-4 cascade operation module; the radix-4 cascade operation module comprises: a rotation factor generating unit, a complex multiplier, a delay exchange unit, a butterfly operation unit and an output exchange unit; the complex multiplier is respectively connected to the rotation factor generating unit and the delay exchange unit, the delay exchange unit is respectively connected to the butterfly operation unit, the complex multiplier and the output exchange unit, and the output exchange unit is connected to the butterfly operation unit and the delay exchange unit; on the basis of making full use of the complex multiplier, the present invention uses a dual-delay feedback structure circuit and cleverly designs a data delay cache channel, so that the use efficiency of the complex adder / subtractor is effectively improved, the number of complex adders required is significantly reduced, and the circuit efficiency is significantly improved; the problem that the radix-4 SDF and radix-4 SDC structures occupy more complex adders / subtractors is effectively solved.
[0149] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A feedback device, characterized in that: The device comprises a radix-4 cascade operation module; the radix-4 cascade operation module comprises: a rotation factor generation unit, a complex multiplier, a delay exchange unit, a butterfly operation unit and an output exchange unit; the complex multiplier is respectively connected to the rotation factor generation unit and the delay exchange unit, the delay exchange unit is respectively connected to the butterfly operation unit, the complex multiplier and the output exchange unit, and the output exchange unit is connected to the butterfly operation unit and the delay exchange unit; The rotation factor generating unit is used to generate the rotation factors required by the base-4 cascade operation module; The complex multiplier is used to calculate the product of the serial input data and the corresponding rotation factor, and transmit the calculated output data to the delay exchange unit; The delay exchange unit is used to delay the output data calculated by the complex multiplier and the feedback data output by the output exchange unit by a preset time and adjust the order of the output data, and then transmit them to the butterfly operation unit and the output exchange unit respectively; The butterfly operation unit is used to perform butterfly operation on the output data of the delay exchange unit and transmit the operation result to the output exchange unit; The output switching unit selects data from the operation result of the butterfly operation unit and the data transmitted by the delay switching unit for output and feeds back to the delay switching unit; The butterfly operation unit includes a complex adder and a complex subtractor; The complex adder is used to perform time-sharing addition operations on the input data and then transmit them to the output exchange unit; The complex subtractor is used to perform time-sharing subtraction operations on the input data and then transmit them to the output exchange unit; The complex adder is connected to the delay switching unit and the output switching unit; The complex subtractor is connected to the delay switching unit and the output switching unit.
2. The feedback device according to claim 1, characterized in that: The delay exchange unit includes a first data selector, a second data selector, a third data selector, a first data delayer, a second data delayer and a third data delayer; The first data selector is connected to the complex multiplier, the output exchange unit, the first data delayer and the second data delayer respectively; The second data selector is connected to the complex multiplier, the third data delay device and the butterfly operation unit respectively; The third data selector is respectively connected to the second data delayer, the output switching unit and the third data delayer; The first data delayer is respectively connected to the first data selector and the butterfly operation unit; The second data delayer is connected to the output switching unit, the first data selector and the third data selector respectively; The third data delayer is connected to the second data selector, the third data selector and the output switching unit respectively; The first data selector is used to select data from the output data of the complex multiplier, the output exchange unit or the second data delayer and transmit it to the first data delayer; The second data selector is used for selecting data from the output data of the complex multiplier or the third data delay device and outputting it to the butterfly operator; The third data selector is used for selecting data from the output data of the second data delayer or the output switching unit and transmitting it to the third data delayer; The first data delayer is used for delaying the data selected by the first data selector by a first effective clock cycle and transmitting the data to the butterfly operation unit; The second data delayer is used for delaying the output data of the output switching unit by a second effective clock cycle and then transmitting the delay data to the first data selector and the third data selector; The third data delayer is used for delaying the data selected by the third data selector by a third effective clock cycle before transmitting the data to the second data selector and the output switching unit.
3. The feedback device according to claim 2, characterized in that: The delay switching unit also includes a delay switching state controller; The delayed switching state controller is used to control the first data selector, the second data selector and the third data selector to select corresponding input data at different times according to a preset switching control instruction.
4. The feedback device according to claim 1, characterized in that: The output exchange unit includes a fourth data selector, a fifth data selector and a constant multiplier; The fourth data selector is connected to the butterfly operation unit and the delay exchange unit respectively; The fifth data selector is connected to the butterfly operation unit, the constant multiplier and the delay exchange unit respectively; The constant multiplier is connected to the butterfly operation unit and the fifth data selector respectively; The fourth data selector is used to select data from the output data of the butterfly operation unit or the delay exchange unit as a calculation result output; The fifth data selector is used for selecting data from the output data of the butterfly operation unit or the constant multiplier and feeding it back to the delay exchange unit; The constant multiplier is used to perform rotation and complement operations on the real part and the imaginary part of the input data, and transmit the operation results to the fifth data selector.
5. The feedback device according to claim 4, characterized in that: The output switching unit also includes an output switching state controller; The output switching state controller is used to control the fourth data selector and the fifth data selector to select corresponding input data at different times according to a preset switching control instruction.
6. An FFT / IFFT processor, characterized in that: comprising L radix-4 cascade operation modules in the feedback device according to any one of claims 1 to 5; The calculation method of the L radix-4 cascade operation modules is as follows: The FFT operation is decomposed into L-level radix-4 decomposition operations. Each radix-4 cascade operation module is responsible for one level of radix-4 decomposition operation. There are L radix-4 cascade operation modules in total. N is the length of the FFT operation. is the ceiling function.
7. The FFT / IFFT processor according to claim 6, characterized in that: For the ith radix-4 cascade operation module, the data cycle period M is calculated as follows: M=4N*4 -i , where M is the data cycle period of a radix-4 cascade operation module, N is the length of the FFT operation, i∈[1,L].
8. The FFT / IFFT processor according to claim 6, characterized in that: Single-path data transmission is adopted between each of the L radix-4 cascade operation modules.
