Butterfly Operation Circuit
The butterfly calculation circuit addresses the hardware resource challenge in conventional multiplication devices by using parallel processing and frequency thinning to reduce the number of multipliers, achieving efficient resource utilization.
Patent Information
- Application Number
- JP2021066960
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-04-12
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-04-12
AI Technical Summary
Conventional multiplication devices face an increase in hardware resources due to the scale of time division circuits, limiting the reduction of multipliers within a unit operation time.
A butterfly calculation circuit that includes shift registers and arithmetic units to process input signals in parallel, reducing the number of multipliers by employing a frequency thinning method for N-point fast Fourier transform.
The circuit significantly reduces hardware resources by minimizing the number of multipliers required for N-point fast Fourier transform operations.
Smart Images

Figure 0007550705000001 
Figure 0007550705000003 
Figure 0007550705000004
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a butterfly computation circuit. [Background technology]
[0002] In a conventional multiplication device, a time division circuit is placed in front of the multiplier, and the signal input to the multiplier is switched within a unit operation time, so that one multiplier performs multiple operations within a unit operation time (for example, see Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Special Publication No. 61-56823 Summary of the Invention [Problem to be solved by the invention]
[0004] In conventional multiplication devices as described above, while it is possible to reduce the number of multipliers by increasing the number of operations within a unit operation time, the size of the time-division circuit increases, resulting in a problem that it is not possible to significantly reduce hardware resources.
[0005] The present disclosure has been made to solve the above-mentioned problems, and has an object to provide a butterfly calculation circuit that can further reduce hardware resources. [Means for solving the problem]
[0006] A butterfly calculation circuit according to the present disclosure is a butterfly calculation circuit used for N-point fast Fourier transform, and includes a first signal input section, a second signal input section, a first signal output section, a second signal output section, a coefficient input section, an adder, a subtractor, and a multiplier, and includes a calculation unit that outputs, from the first signal output section and the second signal output section, a calculation result of a butterfly calculation performed between a first input value input to the first signal input section, a second input value input to the second signal input section, and a coefficient input to the coefficient input section, and a first shift register which takes in the N / 2 input signals in parallel and inputs a multiplexed signal obtained by time-division multiplexing the N / 2 input signals to a first signal input section in response to a shift trigger signal; a second shift register which takes in the N / 2 input signals in parallel in response to a capture trigger signal and inputs a multiplexed signal obtained by time-division multiplexing the N / 2 input signals to a second signal input section in response to a shift trigger signal; a third shift register which inputs a coefficient to a coefficient input section in response to a shift trigger signal; the M sets of storage registers each having a pair of storage registers each storing N / 2 output signals, and the first shift register and the second shift register each storing N / 2 input signals for the N-point fast Fourier transform, and then, for the N / 2 signals stored in the pair of storage registers in the M sets of storage registers, sequentially acquire the signal stored in the first set of storage registers through the Mth set of storage registers, from the signal stored in the first set of storage registers through the Mth set of storage registers, after the first shift register and the second shift register each acquire N / 2 input signals for the N-point fast Fourier transform, from the signal stored in the first set of storage registers through the signal stored in the Mth set of storage registers.
[0007] Further, a butterfly calculation circuit according to the present disclosure is a butterfly calculation circuit used for N-point fast Fourier transform, the butterfly calculation circuit having a first signal input section, a second signal input section, a first signal output section, a second signal output section, a coefficient input section, an adder, a subtractor, and a multiplier, and comprising: a calculation unit that outputs, from the first signal output section and the second signal output section, a calculation result of a butterfly calculation performed between a first input value input to the first signal input section, a second input value input to the second signal input section, and a coefficient input to the coefficient input section; a first shift register that takes in N / 2 input signals in parallel in response to a capture trigger signal, and inputs a multiplexed signal obtained by time-division multiplexing the N / 2 input signals to the first signal input section in response to a shift trigger signal; The Lth arithmetic set includes a second shift register which inputs a multiplexed signal obtained by time-division multiplexing N / 2 input signals, and a third shift register which inputs coefficients to a plurality of coefficient input units in response to a shift trigger signal; an output register which outputs an output signal from a first signal output unit and an output signal from a second signal output unit of an arithmetic unit in the Lth arithmetic set as a result of an N-point fast Fourier transform in response to a capture trigger signal; and a timing control unit which outputs a shift trigger signal and a capture trigger signal to the plurality of first shift registers and the plurality of second shift registers, respectively, outputs a shift trigger signal to the plurality of third shift registers, respectively, and outputs a capture trigger signal to the output register, where L is a natural number and N is a natural number greater than or equal to 2, and the Lth arithmetic sets are connected in series. Effect of the Invention
[0008] According to the butterfly calculation circuit according to the present disclosure, it is possible to further reduce hardware resources. [Brief description of the drawings]
[0009] [Figure 1] 1 is a circuit diagram showing a butterfly operation circuit according to a first embodiment. [Diagram 2] FIG. 2 is a circuit diagram showing the arithmetic unit of FIG. 1. [Diagram 3]FIG. 1 is a circuit diagram showing a general 8-point fast Fourier transform circuit. [Figure 4] FIG. 11 is a circuit diagram showing a butterfly operation circuit according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, embodiments will be described with reference to the drawings. Embodiment 1 1 is a circuit diagram showing a butterfly operation circuit according to embodiment 1. A butterfly operation circuit 10 according to embodiment 1 includes three operation sets 11, 12, and 13, an output register 40, and a timing control section 50.
[0011] The first arithmetic set 11 has a first shift register 21, a second shift register 22, a third shift register 31, and an arithmetic unit 100.
[0012] The first shift register 21 is a four-stage shift register. The first shift register 21 has four FFs (Flip-Flops) 21a, 21b, 21c, and 21d. A signal Point_0 is input to a data input terminal of the FF 21a. A signal Point_1 is input to a data input terminal of the FF 21b. A signal Point_2 is input to a data input terminal of the FF 21c. A signal Point_3 is input to a data input terminal of the FF 21d.
[0013] A capture trigger signal TRG-DL is input to each load terminal Load of the FFs 21a to 21d from the timing control section 50. A shift trigger signal TRG-S1 is input to a shift trigger input terminal Shift of the first shift register 21 from the timing control section 50.
[0014] The input signals Point_0 to Point_3 are captured in parallel into the first shift register 21 at the timing of the rising edge of the capture trigger signal TRG-DL. The captured 4-bit signal is output one bit at a time in sequence at the timing of the rising edge of the shift trigger signal TRG-S1. As a result, a multiplexed signal in which the four signals are time-division multiplexed is output from the first shift register 21.
[0015] The second shift register 22 is a four-stage shift register, similar to the first shift register 21. The second shift register 22 has four FFs 22a, 22b, 22c, and 22d. A signal Point_4 is input to a data input terminal of FF 22a. A signal Point_5 is input to a data input terminal of FF 22b. A signal Point_6 is input to a data input terminal of FF 22c. A signal Point_7 is input to a data input terminal of FF 22d.
[0016] A capture trigger signal TRG-DL is input to each load terminal Load of the FFs 22a to 22d from the timing control section 50. A shift trigger signal TRG-S1 is input to a shift trigger input terminal Shift of the second shift register 22 from the timing control section 50.
[0017] The input signals Point_4 to Point_7 are captured in parallel into the second shift register 22 at the timing of the rising edge of the capture trigger signal TRG-DL. The captured four signals are output one by one in sequence at the timing of the rising edge of the shift trigger signal TRG-S1. As a result, a multiplexed signal obtained by time-division multiplexing the four signals is output from the second shift register 22.
[0018] The third shift register 31 stores coefficients used in the butterfly calculation in the arithmetic unit 100. These coefficients are also called twiddle factors. A shift trigger signal TRG-S2 is input to a shift trigger input terminal Shift of the third shift register 31. The third shift register 31 sequentially outputs the coefficients W8(k) at the timing of the rising edge of the shift trigger signal TRG-S2. The speed of the shift trigger signal TRG-S2 is equal to the speed of the shift trigger signal TRG-S1.
[0019] Fig. 2 is a circuit diagram showing the arithmetic unit 100 of Fig. 1. The arithmetic unit 100 has a first signal input section, a second signal input section, a first signal output section, a second signal output section, a coefficient input section, an adder 200, a subtractor 300, and a multiplier 400.
[0020] The arithmetic unit 100 outputs the results of a butterfly operation performed between a first input value input to the first signal input section, a second input value input to the second signal input section, and a coefficient input to the coefficient input section from a first signal output section and a second signal output section.
[0021] More specifically, if the first input value to the first signal input section is a, the second input value to the second signal input section is b, the first output value from the first signal output section is A, the second output value from the second signal output section is B, and the coefficient is W8(k), the calculation unit 100 performs the calculation of the following equation (1). Note that the butterfly calculation circuit 10 according to the first embodiment employs a so-called frequency thinning method.
[0022] A = a + b, B = (ab) × W8(k) (1)
[0023] The first signal input unit receives a signal from the first shift register 21. The second signal input unit receives a signal from the second shift register 22. The coefficient input unit receives a coefficient W8(k) from the third shift register 31.
[0024] The second arithmetic set 12 has a first shift register 23, a second shift register 24, a third shift register 32, and an arithmetic unit 101.
[0025] Like the first shift register 21, the first shift register 23 has four FFs 23a, 23b, 23c, and 23d.
[0026] The data input terminal of FF23a and the data input terminal of FF23b are connected to a first signal output unit of the operation unit 100 in the first operation set 11. The data input terminal of FF23c and the data input terminal of FF23d are connected to a second signal output unit of the operation unit 100. An acquisition trigger signal TRG-L01 is input from the timing control unit 50 to the load terminal Load of FF23a and the load terminal Load of FF23c. An acquisition trigger signal TRG-L02 is input from the timing control unit 50 to the load terminal Load of FF23b and the load terminal Load of FF23d.
[0027] A shift trigger signal TRG-S3 is input from the timing control section 50 to a shift trigger input terminal Shift of the first shift register 23. The speed of the shift trigger signal TRG-S3 is equal to the speed of the shift trigger signal TRG-S1.
[0028] The second shift register 24, like the first shift register 23, has four FFs 24a, 24b, 24c, and 24d.
[0029] The data input terminal of FF24a and the data input terminal of FF24b are connected to a first signal output unit of the operation unit 100 in the first operation set 11. The data input terminal of FF24c and the data input terminal of FF24d are connected to a second signal output unit of the operation unit 100. An acquisition trigger signal TRG-L03 is input from the timing control unit 50 to the load terminal Load of FF24a and the load terminal Load of FF24c. An acquisition trigger signal TRG-L04 is input from the timing control unit 50 to the load terminal Load of FF24b and the load terminal Load of FF24d.
[0030] A shift trigger signal TRG-S3 is input from the timing control section 50 to a shift trigger input terminal Shift of the second shift register 24.
[0031] The third shift register 32 stores coefficients used in the butterfly computation, similar to the third shift register 31. The combination of coefficients stored in the third shift register 32 is different from the combination of coefficients stored in the third shift register 31. A shift trigger signal TRG-S4 is input to a shift trigger input terminal Shift of the third shift register 32 from the timing control unit 50. The speed of the shift trigger signal TRG-S4 is equal to the speed of the shift trigger signal TRG-S1.
[0032] The arithmetic unit 101 outputs the results of a butterfly operation performed between a first input value a input to a first signal input section, a second input value b input to a second signal input section, and a coefficient W8(k) input to a coefficient input terminal from a first signal output section and a second signal output section. The configuration of the arithmetic unit 101 is similar to that of the arithmetic unit 100, and therefore a detailed description thereof will be omitted.
[0033] The third arithmetic set 13 has a first shift register 25, a second shift register 26, a third shift register 33, and an arithmetic unit 102.
[0034] The first shift register 25, like the first shift register 21, has four FFs 25a, 25b, 25c, and 25d.
[0035] The data input terminal of FF25a and the data input terminal of FF25c are connected to a first signal output unit of the arithmetic unit 101 in the second arithmetic set 12. The data input terminal of FF25b and the data input terminal of FF25d are connected to a second signal output unit of the arithmetic unit 101. An acquisition trigger signal TRG-L05 is input from the timing control unit 50 to the load terminal Load of FF25a and the load terminal Load of FF25b. An acquisition trigger signal TRG-L07 is input from the timing control unit 50 to the load terminal Load of FF25c and the load terminal Load of FF25d.
[0036] A shift trigger signal TRG-S5 is input from the timing control section 50 to a shift trigger input terminal Shift of the first shift register 25. The speed of the shift trigger signal TRG-S5 is equal to the speed of the shift trigger signal TRG-S1.
[0037] The second shift register 26, like the first shift register 25, has four FFs 26a, 26b, 26c, and 26d.
[0038] The data input terminal of FF26a and the data input terminal of FF26c are connected to a first signal output unit of the arithmetic unit 101 in the second arithmetic set 12. The data input terminal of FF26b and the data input terminal of FF26d are connected to a second signal output unit of the arithmetic unit 101. An acquisition trigger signal TRG-L06 is input from the timing control unit 50 to the load terminal Load of FF26a and the load terminal Load of FF26b. An acquisition trigger signal TRG-L08 is input from the timing control unit 50 to the load terminal Load of FF26c and the load terminal Load of FF26d.
[0039] A shift trigger signal TRG-S5 is input from the timing control section 50 to a shift trigger input terminal Shift of the second shift register 26.
[0040] The third shift register 33 stores coefficients used in the butterfly computation, similar to the third shift register 31 and the third shift register 32. The combination of coefficients stored in the third shift register 33 is different from the combination of coefficients stored in the third shift register 31 and the combination of coefficients stored in the third shift register 32. A shift trigger signal TRG-S6 is input to a shift trigger input terminal Shift of the third shift register 33 from the timing control unit 50. The speed of the shift trigger signal TRG-S6 is equal to the speed of the shift trigger signal TRG-S1.
[0041] The arithmetic unit 102 outputs the results of a butterfly operation performed between the first input value a input to the first signal input section, the second input value b input to the second signal input section, and the coefficient W8(k) input to the coefficient input terminal from the first signal output section and the second signal output section. The configuration of the arithmetic unit 102 is similar to that of the arithmetic unit 100, and therefore a detailed description thereof will be omitted.
[0042] The output register 40 has eight FFs 40a to 40h. A data input terminal of FF 40a, a data input terminal of FF 40c, a data input terminal of FF 40e, and a data input terminal of FF 40g are connected to a first signal output unit of the arithmetic unit 102. A data input terminal of FF 40b, a data input terminal of FF 40d, a data input terminal of FF 40f, and a data input terminal of FF 40h are connected to a second signal output unit of the arithmetic unit 102.
[0043] The load terminal Load of FF40a and the load terminal Load of FF40b receive an acquisition trigger signal TRG-L09 from the timing control section 50. The load terminal Load of FF40c and the load terminal Load of FF40d receive an acquisition trigger signal TRG-L10 from the timing control section 50. The load terminal Load of FF40e and the load terminal Load of FF40f receive an acquisition trigger signal TRG-L11 from the timing control section 50. The load terminal Load of FF40g and the load terminal Load of FF40h receive an acquisition trigger signal TRG-L12 from the timing control section 50.
[0044] The signal Point_0 is output from the data output terminal of FF40a. The signal Point_4 is output from the data output terminal of FF40b. The signal Point_2 is output from the data output terminal of FF40c. The signal Point_6 is output from the data output terminal of FF40d. The signal Point_1 is output from the data output terminal of FF40e. The signal Point_5 is output from the data output terminal of FF40f. The signal Point_3 is output from the data output terminal of FF40g. The signal Point_7 is output from the data output terminal of FF40h.
[0045] The timing control section 50 controls the output timing of the capture trigger signal TRG-DL, the capture trigger signals TRG-L01 to TRG-L12, and the shift trigger signals TRG-S1 to TRG-S6.
[0046] Next, a description will be given of the operation of the butterfly calculation circuit 10 in Fig. 1. First, 8-bit signals Point_0 to Point_7 are captured into a first set of first and second shift registers 21 and 22 in response to the capture trigger signal TRG-DL.
[0047] The captured signals Point_0 to Point_7 are time-division multiplexed in units of 4 bits each in the first shift register 21 and the second shift register 22. The time-division multiplexed multiplexed signal is input to the arithmetic unit 100.
[0048] First, the data P0 fetched into FF21a, the data P4 fetched into FF22a, and the coefficient W8(0) are input to the arithmetic unit 100, and the first butterfly calculation is performed according to equation (1) in the arithmetic unit 100. At this time, in response to the fetch trigger signal TRG-L01, the first output value A from the first butterfly calculation is fetched into FF23a, and the second output value B from the first butterfly calculation is fetched into FF23c.
[0049] Next, the data P1 fetched into FF21b, the data P5 fetched into FF22b, and the coefficient W8(1) are input to the arithmetic unit 100, and a second butterfly calculation is performed in the arithmetic unit 100. At this time, in response to the fetch trigger signal TRG-L02, the first output value A from the second butterfly calculation is fetched into FF23b, and the second output value B from the second butterfly calculation is fetched into FF23d.
[0050] Next, the data P2 fetched into FF21c, the data P6 fetched into FF22c, and the coefficient W8(2) are input to the arithmetic unit 100, and a third butterfly calculation is performed in the arithmetic unit 100. At this time, in response to the fetch trigger signal TRG-L03, the first output value A from the third butterfly calculation is fetched into FF24a, and the second output value B from the third butterfly calculation is fetched into FF24c.
[0051] Next, the data P3 fetched into FF21d, the data P7 fetched into FF22d, and the coefficient W8(3) are input to the arithmetic unit 100, and the fourth butterfly calculation is performed in the arithmetic unit 100. At this time, in response to the fetch trigger signal TRG-L04, the first output value A from the fourth butterfly calculation is fetched into FF24b, and the second output value B from the fourth butterfly calculation is fetched into FF24d.
[0052] The data taken into the first shift register 23 and the second shift register 24 are time-division multiplexed in groups of four in the first shift register 23 and the second shift register 24. The time-division multiplexed multiplexed signals are input to the arithmetic unit 101.
[0053] The data a1 fetched into FF23a, the data a3 fetched into FF24a, and the coefficient W8(0) are input to the arithmetic unit 101, and the fifth butterfly calculation is performed in the arithmetic unit 101. At this time, in response to the fetch trigger signal TRG-L05, the first output value A from the fifth butterfly calculation is fetched into FF25a, and the second output value B from the fifth butterfly calculation is fetched into FF25b.
[0054] Next, the data a2 fetched into FF23b, the data a4 fetched into FF24b, and the coefficient W8(2) are input to the arithmetic unit 101, and the sixth butterfly calculation is performed in the arithmetic unit 101. At this time, in response to the fetch trigger signal TRG-L06, the first output value A from the sixth butterfly calculation is fetched into FF26a, and the second output value B from the sixth butterfly calculation is fetched into FF26b.
[0055] Next, the data b1 fetched into FF23c, the data b3 fetched into FF24c, and the coefficient W8(0) are input to the arithmetic unit 101, and the seventh butterfly calculation is performed in the arithmetic unit 101. At this time, in response to the fetch trigger signal TRG-L07, the first output value A from the seventh butterfly calculation is fetched into FF25c, and the second output value B from the seventh butterfly calculation is fetched into FF25d.
[0056] Next, the data b2 fetched into FF23d, the data b4 fetched into FF24d, and the coefficient W8(2) are input to the arithmetic unit 101, and the eighth butterfly calculation is performed in the arithmetic unit 101. At this time, in response to the fetch trigger signal TRG-L08, the first output value A from the eighth butterfly calculation is fetched into FF26c, and the second output value B from the eighth butterfly calculation is fetched into FF26d.
[0057] The data taken into the first shift register 25 and the second shift register 26 are time-division multiplexed into four pieces each in the first shift register 25 and the second shift register 26. The time-division multiplexed multiplexed signals are input to the arithmetic unit 102.
[0058] The data a1 fetched into FF25a, the data a2 fetched into FF26a, and the coefficient W8(0) are input to the arithmetic unit 102, and the ninth butterfly calculation is performed in the arithmetic unit 102. At this time, in response to the fetch trigger signal TRG-L09, the first output value A from the ninth butterfly calculation is fetched into FF40a, and the second output value B from the ninth butterfly calculation is fetched into FF40b.
[0059] Next, the data b1 fetched into FF25b, the data b2 fetched into FF26b, and the coefficient W8(0) are input to the arithmetic unit 102, and the tenth butterfly calculation is performed in the arithmetic unit 102. At this time, in response to the fetch trigger signal TRG-L10, the first output value A from the tenth butterfly calculation is fetched into FF40c, and the second output value B from the tenth butterfly calculation is fetched into FF40d.
[0060] Next, the data a3 fetched into FF25c, the data a4 fetched into FF26c, and the coefficient W8(0) are input to the arithmetic unit 102, and the 11th butterfly calculation is performed in the arithmetic unit 102. At this time, in response to the fetch trigger signal TRG-L11, the first output value A from the 11th butterfly calculation is fetched into FF40e, and the second output value B from the 11th butterfly calculation is fetched into FF40f.
[0061] Next, the data b3 fetched into FF25d, the data b4 fetched into FF26d, and the coefficient W8(0) are input to the arithmetic unit 102, and the 12th butterfly calculation is performed in the arithmetic unit 102. At this time, in response to the fetch trigger signal TRG-L12, the first output value A resulting from the 12th butterfly calculation is fetched into FF40g, and the second output value B resulting from the 12th butterfly calculation is fetched into FF40h.
[0062] Thereafter, the data stored in FF40a to FF40h is output to the outside. The butterfly calculation circuit 10 in FIG.
[0063] As described above, the butterfly operation circuit 10 according to the first embodiment includes the three operation sets 11, 12, and 13, the output register 40, and the timing control section 50. The three operation sets 11, 12, and 13 each include operation units 100, 101, and 102, first shift registers 21, 23, and 25, second shift registers 22, 24, and 26, and third shift registers 31, 32, and 33. The three operation sets 11, 12, and 13 are connected in series.
[0064] With this configuration, 8-point fast Fourier transform calculations are realized. Here, for the purpose of comparing the butterfly calculation circuit 10 according to the first embodiment with a general 8-point fast Fourier transform circuit, a description will be given below with reference to FIG.
[0065] Fig. 3 is a circuit diagram showing a general 8-point fast Fourier transform circuit. As can be seen from Fig. 3, a general 8-point fast Fourier transform circuit 90 requires 12 arithmetic units. In Fig. 3, the butterfly operations performed by the arithmetic units 100a, 100b, 100c, and 100d correspond to the first butterfly operation, the second butterfly operation, the third butterfly operation, and the fourth butterfly operation performed by the arithmetic unit 100 in Fig. 1, respectively.
[0066] The butterfly operations performed by the arithmetic units 100e, 100f, 100g, and 100h correspond to the fifth, sixth, seventh, and eighth butterfly operations performed by the arithmetic unit 101 in FIG. 1, respectively.
[0067] The butterfly operations performed by the arithmetic units 100i, 100j, 100k, and 100l correspond to the ninth, tenth, eleventh, and twelfth butterfly operations performed by the arithmetic unit 102 in FIG. 1, respectively.
[0068] Therefore, according to the butterfly calculation circuit 10 of the first embodiment, the number of calculation units required to realize the calculation of the 8-point fast Fourier transform, which was conventionally 12, can be reduced to 3. This makes it possible to reduce the number of multipliers used.
[0069] Reducing the number of multipliers has a significant effect on reducing hardware resources, so by reducing the number of arithmetic units that include one multiplier, it is possible to reduce hardware resources.
[0070] In this way, according to the butterfly calculation circuit 10 of the first embodiment, the number of calculation units can be reduced compared to a general fast Fourier transform circuit, and therefore the hardware resources can be reduced.
[0071] Furthermore, the butterfly calculation circuit 10 according to the first embodiment is a circuit used for 8-point fast Fourier transform, but can be expanded to a circuit applied to N-point fast Fourier transform. In this case, the first shift register and the second shift register may be N / 2-stage shift registers, where N is a natural number equal to or greater than 2. In many cases, a power of 2 is used as N.
[0072] Furthermore, the butterfly calculation circuit 10 according to the first embodiment has three calculation sets, but in a circuit applied to an N-point fast Fourier transform, L calculation sets may be used, where L is calculated by the following formula (2), where L is a natural number.
[0073] L = log2N (2)
[0074] In the case of the general N-point fast Fourier transform circuit shown in FIG. 3, the number U of arithmetic units is calculated by the following formula (3).
[0075] U = (N / 2) × log2N (3)
[0076] In contrast, when the butterfly calculation circuit 10 according to the first embodiment is expanded to a circuit applied to N-point fast Fourier transform, the number of calculation units is equal to the number of calculation sets, that is, L. In other words, the number of calculation units can be reduced to 2 / N compared to a general N-point fast Fourier transform circuit. Therefore, it is considered that the greater N is, the greater the effect of reducing hardware resources becomes.
[0077] Embodiment 2 Next, a butterfly operation circuit according to the second embodiment will be described. Fig. 3 is a circuit diagram showing the butterfly operation circuit according to the second embodiment. The butterfly operation circuit 10A according to the second embodiment differs from the butterfly operation circuit 10 according to the first embodiment in that a storage register is provided to temporarily store the results of operations by the operation units, thereby reducing the number of operation units to one. The other configurations and functions are the same as those of the first embodiment.
[0078] The butterfly operation circuit 10A according to the second embodiment includes a first shift register 27, a second shift register 28, a third shift register 30, an operation unit 100, two sets of storage registers 60A and 60B, an output register 40, and a timing control section 50A.
[0079] The first shift register 27 is a four-stage shift register. The first shift register 27 has four FFs 27a, 27b, 27c, and 27d. A signal Point_0 is input to a first data input terminal LD1 of the FF 27a. A signal Point_1 is input to a first data input terminal LD1 of the FF 27b. A signal Point_2 is input to a first data input terminal LD1 of the FF 27c. A signal Point_3 is input to a first data input terminal LD1 of the FF 27d.
[0080] The first load terminal L1 of each of the FFs 27a to 27d receives an acquisition trigger signal TRG-DL0 from the timing control unit 50. The second load terminal L2 of each of the FFs 27a to 27d receives an acquisition trigger signal TRG-DL1 from the timing control unit 50. The third load terminal L3 of each of the FFs 27a to 27d receives an acquisition trigger signal TRG-DL2 from the timing control unit 50. The shift trigger input terminal Shift of the first shift register 27 receives a shift trigger signal TRG-S1 from the timing control unit 50.
[0081] The second shift register 28 is a four-stage shift register, similar to the first shift register 27. The second shift register 28 has four FFs 28a, 28b, 28c, and 28d. A signal Point_4 is input to a first data input terminal LD1 of the FF 28a. A signal Point_5 is input to a first data input terminal LD1 of the FF 28b. A signal Point_6 is input to a first data input terminal LD1 of the FF 28c. A signal Point_7 is input to a first data input terminal LD1 of the FF 28d.
[0082] An acquisition trigger signal TRG-DL0 is input to a first load terminal L1 of each of the FFs 28a to 28d from the timing control unit 50. An acquisition trigger signal TRG-DL1 is input to a second load terminal L2 of each of the FFs 28a to 28d from the timing control unit 50. An acquisition trigger signal TRG-DL2 is input to a third load terminal L3 of each of the FFs 28a to 28d from the timing control unit 50. A shift trigger signal TRG-S1 is input to a shift trigger input terminal Shift of the first shift register 27 from the timing control unit 50.
[0083] The third shift register 30 stores coefficients used in the butterfly calculation of the calculation unit 100. A shift trigger signal TRG-S2 is input to a shift trigger input terminal Shift of the third shift register 30. The third shift register 30 sequentially outputs the coefficients W8(k) at the timing of the rising edge of the shift trigger signal TRG-S2. The speed of the shift trigger signal TRG-S2 is equal to the speed of the shift trigger signal TRG-S1.
[0084] As explained with reference to FIG. 2, the arithmetic unit 100 outputs the results of the butterfly calculation performed between the first input value a input to the first signal input section, the second input value b input to the second signal input section, and the coefficient W8(k) input to the coefficient input terminal from the first signal output section and the second signal output section.
[0085] The first signal input unit receives a signal from the first shift register 27. The second signal input unit receives a signal from the second shift register 28. The coefficient input terminal receives the coefficient W8(k) from the third shift register 30.
[0086] The first set of storage registers 60A has a pair of storage registers 61 and 62. The pair of storage registers 61 and 62 is a four-stage register. Of the first set of storage registers 60A, one storage register 61 has four FFs 61a, 61b, 61c, and 61d. The other storage register 62 has four FFs 62a, 62b, 62c, and 62d.
[0087] The data input terminal D of FF61a, the data input terminal D of FF61b, the data input terminal D of FF62a, and the data input terminal D of FF62b are connected to a first signal output unit of the arithmetic unit 100. The data input terminal D of FF61c, the data input terminal D of FF61d, the data input terminal D of FF62c, and the data input terminal D of FF62d are connected to a second signal output unit of the arithmetic unit 100.
[0088] An acquisition trigger signal TRG-L01 is input from the timing control section 50 to the enable terminal E of FF61a and the enable terminal E of FF61c. An acquisition trigger signal TRG-L02 is input from the timing control section 50 to the enable terminal E of FF61b and the enable terminal E of FF61d. An acquisition trigger signal TRG-L03 is input from the timing control section 50 to the enable terminal E of FF62a and the enable terminal E of FF62c. An acquisition trigger signal TRG-L04 is input from the timing control section 50 to the enable terminal E of FF62b and the enable terminal E of FF62d.
[0089] The data output terminal of FF61a is connected to the second data input terminal LD2 of FF27a. The data output terminal of FF61b is connected to the second data input terminal LD2 of FF27b. The data output terminal of FF61c is connected to the second data input terminal LD2 of FF27c. The data output terminal of FF61d is connected to the second data input terminal LD2 of FF27d. In Fig. 4, these connections are represented by dashed arrows.
[0090] The data output terminal of FF62a is connected to the second data input terminal LD2 of FF28a. The data output terminal of FF62b is connected to the second data input terminal LD2 of FF28b. The data output terminal of FF62c is connected to the second data input terminal LD2 of FF28c. The data output terminal of FF62d is connected to the second data input terminal LD2 of FF28d. In Fig. 4, these connections are represented by dashed arrows.
[0091] The second set of storage registers 60B has a pair of storage registers 63 and 64. The pair of storage registers 63 and 64 is a four-stage register. Of the second set of storage registers 60B, one storage register 63 has four FFs 63a, 63b, 63c, and 63d. The other storage register 64 has four FFs 64a, 64b, 64c, and 64d.
[0092] The data input terminal D of FF63a, the data input terminal D of FF63c, the data input terminal D of FF64a, and the data input terminal D of FF64c are connected to a first signal output unit of the arithmetic unit 100. The data input terminal D of FF63b, the data input terminal D of FF63d, the data input terminal D of FF64b, and the data input terminal D of FF64d are connected to a second signal output unit of the arithmetic unit 100.
[0093] The enable terminal E of FF63a and the enable terminal E of FF63b receive a capture trigger signal TRG-L05 from the timing control section 50. The enable terminal E of FF63c and the enable terminal E of FF63d receive a capture trigger signal TRG-L07 from the timing control section 50. The enable terminal E of FF64a and the enable terminal E of FF64b receive a capture trigger signal TRG-L06 from the timing control section 50. The enable terminal E of FF64c and the enable terminal E of FF64d receive a capture trigger signal TRG-L08 from the timing control section 50.
[0094] The data output terminal of FF63a is connected to the third data input terminal LD3 of FF27a. The data output terminal of FF63b is connected to the third data input terminal LD3 of FF27b. The data output terminal of FF63c is connected to the third data input terminal LD3 of FF27c. The data output terminal of FF63d is connected to the third data input terminal LD3 of FF27d. In Fig. 4, these connections are represented by dashed arrows.
[0095] The data output terminal of FF64a is connected to the third data input terminal LD3 of FF28a. The data output terminal of FF64b is connected to the third data input terminal LD3 of FF28b. The data output terminal of FF64c is connected to the third data input terminal LD3 of FF28c. The data output terminal of FF64d is connected to the third data input terminal LD3 of FF28d. In Fig. 4, these connections are represented by dashed arrows.
[0096] The output register 40 has eight FFs 40a to 40h. A data input terminal D of FF 40a, a data input terminal D of FF 40c, a data input terminal D of FF 40e, and a data input terminal D of FF 40g are connected to a first signal output unit of the arithmetic unit 100. A data input terminal D of FF 40b, a data input terminal D of FF 40d, a data input terminal D of FF 40f, and a data input terminal D of FF 40h are connected to a second signal output unit of the arithmetic unit 100.
[0097] The enable terminal E of FF40a and the enable terminal E of FF40b receive an acquisition trigger signal TRG-L09 from the timing control section 50. The enable terminal E of FF40c and the enable terminal E of FF40d receive an acquisition trigger signal TRG-L10 from the timing control section 50. The enable terminal E of FF40e and the enable terminal E of FF40f receive an acquisition trigger signal TRG-L11 from the timing control section 50. The enable terminal E of FF40g and the enable terminal E of FF40h receive an acquisition trigger signal TRG-L12 from the timing control section 50.
[0098] The signal Point_0 is output from the data output terminal of FF40a. The signal Point_4 is output from the data output terminal of FF40b. The signal Point_2 is output from the data output terminal of FF40c. The signal Point_6 is output from the data output terminal of FF40d. The signal Point_1 is output from the data output terminal of FF40e. The signal Point_5 is output from the data output terminal of FF40f. The signal Point_3 is output from the data output terminal of FF40e. The signal Point_7 is output from the data output terminal of FF40f.
[0099] The timing control section 50A controls the output timing of each of the acquisition trigger signals TRG-DL0 to TRG-DL2, acquisition trigger signals TRG-L01 to TRG-L12, and shift trigger signals TRG-S1 to TRG-S2.
[0100] Next, a description will be given of the operation of the butterfly calculation circuit 10A in Fig. 4. First, the 8-bit signals Point_0 to Point_7 are captured into the first shift register 27 and the second shift register 28 in response to the capture trigger signal TRG-DL0.
[0101] The captured signals Point_0 to Point_7 are time-division multiplexed in groups of four each in the first shift register 27 and the second shift register 28. The time-division multiplexed multiplexed signals are input to the arithmetic unit 100.
[0102] First, the data fetched into FF27a, the data fetched into FF28a, and the coefficient W8(0) are input to the arithmetic unit 100, and the first butterfly calculation is performed in the arithmetic unit 100. At this time, in response to the fetch trigger signal TRG-L01, the first output value A from the first butterfly calculation is stored in FF61a, and the second output value B from the first butterfly calculation is stored in FF61c.
[0103] Next, the data fetched into FF27b, the data fetched into FF28b, and the coefficient W8(1) are input to the arithmetic unit 100, and a second butterfly calculation is performed in the arithmetic unit 100. At this time, in response to the fetch trigger signal TRG-L02, a first output value A resulting from the second butterfly calculation is stored in FF61b, and a second output value B resulting from the second butterfly calculation is stored in FF61d.
[0104] Next, the data fetched into FF27c, the data fetched into FF28c, and the coefficient W8(2) are input to the arithmetic unit 100, and a third butterfly calculation is performed in the arithmetic unit 100. At this time, in response to the fetch trigger signal TRG-L03, the first output value A resulting from the third butterfly calculation is stored in FF62a, and the second output value B resulting from the third butterfly calculation is stored in FF62c.
[0105] Next, the data fetched into FF27d, the data fetched into FF28d, and the coefficient W8(3) are input to the arithmetic unit 100, and the fourth butterfly calculation is performed in the arithmetic unit 100. At this time, in response to the fetch trigger signal TRG-L04, the first output value A from the fourth butterfly calculation is stored in FF62b, and the second output value B from the fourth butterfly calculation is stored in FF62d.
[0106] After the fourth butterfly calculation is completed, the data stored in the FFs 61a, 61b, 61c, 61d, 62a, 62b, 62c, and 62d are fetched into the first shift register 27 and the second shift register 28 by a fetch trigger signal TRG-DL1.
[0107] The data input to the first shift register 27 and the second shift register 28 are time-division multiplexed in groups of four in the first shift register 27 and the second shift register 28. The time-division multiplexed multiplexed signal is input to the arithmetic unit 100.
[0108] First, the data fetched into FF27a, the data fetched into FF28a, and the coefficient W8(0) are input to the arithmetic unit 100, and the fifth butterfly calculation is performed in the arithmetic unit 100. At this time, in response to the fetch trigger signal TRG-L05, the first output value A from the fifth butterfly calculation is stored in FF63a, and the second output value B from the fifth butterfly calculation is stored in FF63b.
[0109] Next, the data fetched into FF27b, the data fetched into FF28b, and the coefficient W8(2) are input to the arithmetic unit 100, and the sixth butterfly calculation is performed in the arithmetic unit 100. At this time, in response to the fetch trigger signal TRG-L06, the first output value A from the sixth butterfly calculation is stored in FF64a, and the second output value B from the sixth butterfly calculation is stored in FF64b.
[0110] Next, the data fetched into FF27c, the data fetched into FF28c, and the coefficient W8(0) are input to the arithmetic unit 100, and the seventh butterfly calculation is performed in the arithmetic unit 100. At this time, in response to the fetch trigger signal TRG-L07, the first output value A from the seventh butterfly calculation is stored in FF63c, and the second output value B from the seventh butterfly calculation is stored in FF63d.
[0111] Next, the data fetched into FF27d, the data fetched into FF28d, and the coefficient W8(2) are input to the arithmetic unit 100, and the eighth butterfly calculation is performed in the arithmetic unit 100. At this time, in response to the fetch trigger signal TRG-L08, the first output value A from the eighth butterfly calculation is stored in FF64c, and the second output value B from the eighth butterfly calculation is stored in FF64d.
[0112] After the eighth butterfly calculation is completed, the data stored in the FFs 63a, 63b, 63c, 63d, 64a, 64b, 64c, and 64d are fetched into the first shift register 27 and the second shift register 28 by a fetch trigger signal TRG-DL2.
[0113] The data input to the first shift register 27 and the second shift register 28 are time-division multiplexed in groups of four in the first shift register 27 and the second shift register 28. The time-division multiplexed multiplexed signal is input to the arithmetic unit 100.
[0114] First, the data fetched into FF27a, the data fetched into FF28a, and the coefficient W8(0) are input to the arithmetic unit 100, and the ninth butterfly calculation is performed in the arithmetic unit 100. At this time, in response to the fetch trigger signal TRG-L09, the first output value A from the ninth butterfly calculation is fetched into FF40a, and the second output value B from the ninth butterfly calculation is fetched into FF40b.
[0115] Next, the data fetched into FF27b, the data fetched into FF28b, and the coefficient W8(0) are input to the arithmetic unit 100, and the tenth butterfly calculation is performed in the arithmetic unit 100. At this time, in response to the fetch trigger signal TRG-L10, the first output value A from the tenth butterfly calculation is fetched into FF40c, and the second output value B from the tenth butterfly calculation is fetched into FF40d.
[0116] Next, the data fetched into FF27c, the data fetched into FF28c, and the coefficient W8(0) are input to the arithmetic unit 100, and the 11th butterfly calculation is performed in the arithmetic unit 100. At this time, in response to the fetch trigger signal TRG-L11, the first output value A from the 11th butterfly calculation is fetched into FF40e, and the second output value B from the 11th butterfly calculation is fetched into FF40f.
[0117] Next, the data fetched into FF27d, the data fetched into FF28d, and the coefficient W8(0) are input to the arithmetic unit 100, and the 12th butterfly calculation is performed in the arithmetic unit 100. At this time, in response to the fetch trigger signal TRG-L12, the first output value A from the 12th butterfly calculation is fetched into FF40g, and the second output value B from the 12th butterfly calculation is fetched into FF40h.
[0118] Then, the data taken into FF40a to FF40h is output to the outside. The butterfly calculation circuit 10A in Fig. 4 repeats this series of operations to realize an 8-point fast Fourier transform.
[0119] As described above, butterfly operation circuit 10A according to the second embodiment includes operation unit 100, first shift register 27, second shift register 28, third shift register 30, two sets of storage registers 60A, 60B, output register 40, and timing control section 50A. Storage register 60A includes a pair of storage registers 61 and 62. Storage register 60B includes a pair of storage registers 63 and 64.
[0120] The first shift register 27 and the second shift register 28 each take in 4 bits of the 8-bit input signal. Next, the first shift register 27 and the second shift register 28 take in, in order, the signal stored in the first storage register and the signal stored in the second storage register of the 4-bit signal stored in a pair of storage registers of the two storage registers 60A, 60B.
[0121] With this configuration, 8-point fast Fourier transform calculations are realized. With the butterfly calculation circuit 10A according to the second embodiment, the number of calculation units required to realize 8-point fast Fourier transform calculations, which was previously 12, can be reduced to one. This allows the number of multipliers used to be further reduced.
[0122] Therefore, the butterfly computation circuit according to the second embodiment can further reduce the hardware resources.
[0123] Although the butterfly calculation circuit 10A according to the second embodiment is a circuit used for 8-point fast Fourier transform, it can be extended to a circuit applied to N-point fast Fourier transform. In this case, the first shift register and the second shift register may be N / 2-stage shift registers.
[0124] Although butterfly calculation circuit 10A according to the second embodiment has two sets of storage registers, a circuit applied to an N-point fast Fourier transform may use M sets of storage registers, where M is calculated by the following equation (4), where M is a non-negative integer.
[0125] M = log2N-1 (4)
[0126] Even when the butterfly calculation circuit 10A according to the second embodiment is expanded to a circuit applied to an N-point fast Fourier transform, the number of calculation units can be reduced to one, so that the effect of reducing hardware resources is further increased.
[0127] In the first and second embodiments, the frequency decimation method is used for the butterfly calculation, but the time decimation method may be used for the butterfly calculation. When the time decimation method is used for the butterfly calculation, the relationship of the following formula (5) is established between the first input value a, the second input value b, the first output value A, and the second output value B of the calculation unit.
[0128] A=a+b×W8(k),B=ab×W8(k) ···(5)
[0129] When the time thinning method is used, for example, the wiring order of the acquisition trigger signals of the butterfly computation circuits differs from that of the butterfly computation circuits 10 and 10A, but the number of computation units and the number of shift registers remain the same. [Explanation of symbols]
[0130] 10,10A butterfly calculation circuit, 11,12,13 calculation set, 21,23,25,27 first shift register, 22,24,26,28 second shift register, 30,31,32,33 third shift register, 40 output register, 50,50A timing control section, 60A,60B,61,62,63,64 storage register, 100,101,102 calculation unit, 200 adder, 300 subtractor, 400 multiplier.
Claims
1. A butterfly calculation circuit for use in an N-point fast Fourier transform, comprising: an arithmetic unit having a first signal input section, a second signal input section, a first signal output section, a second signal output section, a coefficient input section, an adder, a subtractor, and a multiplier, and outputting, from the first signal output section and the second signal output section, a result of a butterfly operation performed between a first input value input to the first signal input section, a second input value input to the second signal input section, and a coefficient input to the coefficient input section; a first shift register that captures N / 2 input signals in parallel in response to a capture trigger signal, and inputs a multiplexed signal obtained by time-division multiplexing the N / 2 input signals to the first signal input unit in response to a shift trigger signal; a second shift register that captures N / 2 input signals in parallel in response to the capture trigger signal, and inputs a multiplexed signal obtained by time-division multiplexing the N / 2 input signals to the second signal input unit in response to the shift trigger signal; a third shift register for inputting the coefficients to the coefficient input unit in response to the shift trigger signal; M sets of storage registers for storing the output signal from the first signal output unit and the output signal from the second signal output unit in response to the capture trigger signal; an output register that outputs the output signal from the first signal output unit and the output signal from the second signal output unit to an external device as a result of the N-point fast Fourier transform in response to the capture trigger signal; a timing control unit which outputs the shift trigger signal and the capture trigger signal to the first shift register and the second shift register, outputs the shift trigger signal to the third shift register, outputs the capture trigger signal to the M sets of storage registers, and outputs the capture trigger signal to the output register; Equipped with The M is a non-negative integer, and the N is a natural number equal to or greater than 2; The M set of storage registers includes a pair of storage registers each storing N / 2 output signals; The first shift register and the second shift register each take in N / 2 of the N input signals for the N-point fast Fourier transform, and then take in, in order, the signals stored in the first storage register to the Mth storage register from the N / 2 signals stored in the pair of storage registers in the M storage registers. Butterfly calculation circuit.
2. Between the M and the N, M=log 2 N-1 There is a relationship between 2. The butterfly calculation circuit according to claim 1.
3. A butterfly calculation circuit for use in an N-point fast Fourier transform, comprising: an arithmetic unit having a first signal input section, a second signal input section, a first signal output section, a second signal output section, a coefficient input section, an adder, a subtractor, and a multiplier, and outputting, from the first signal output section and the second signal output section, a result of a butterfly operation performed between a first input value input to the first signal input section, a second input value input to the second signal input section, and a coefficient input to the coefficient input section; a first shift register that captures N / 2 input signals in parallel in response to a capture trigger signal, and inputs a multiplexed signal obtained by time-division multiplexing the N / 2 input signals to the first signal input unit in response to a shift trigger signal; a second shift register that captures N / 2 input signals in parallel in response to the capture trigger signal, and inputs a multiplexed signal obtained by time-division multiplexing the N / 2 input signals to the second signal input unit in response to the shift trigger signal; a third shift register for inputting the coefficients to the plurality of coefficient input units in response to the shift trigger signal; and a set of L operations, an output register that outputs, in response to the capture trigger signal, the output signal from the first signal output unit and the output signal from the second signal output unit of the Lth arithmetic unit in the arithmetic set as a result of the N-point fast Fourier transform; a timing control unit that outputs the shift trigger signal and the capture trigger signal to the first shift registers and the second shift registers, respectively, outputs the shift trigger signal to the third shift registers, respectively, and outputs the capture trigger signal to the output register; Equipped with The L is a natural number, and the N is a natural number of 2 or more. The L operation sets are connected in series. Butterfly calculation circuit.
4. Between the L and the N, L=log 2 N There is a relationship between 4. The butterfly calculation circuit according to claim 3.
Citation Information
Patent Citations
Electrode feeding control in electric discharge machine
JP1986056823A
Architecture for performing fast fourier transforms and inverse fast fourier transforms
US20030212721A1
Fast fourier transform circuit
WO2013042249A1
