A digital vector signal spectrum analysis method, device and storage medium
By optimizing the butterfly operation and data initialization of the FFT model, the problems of high delay and low efficiency in FFT processing of digital vector signals are solved, and fast, real-time spectrum analysis and waveform display are achieved.
Patent Information
- Application Number
- CN202410792897.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-19
AI Technical Summary
In the existing technology, the digital vector signal FFT processing process has high delay and low processing efficiency, resulting in a delay in waveform display during spectrum analysis.
An FFT model including a data initialization module, a pre-pipeline unit and a conventional pipeline unit is designed. Through the butterfly operation and data integration module, the butterfly operation process is optimized, the clock delay is reduced, and the signal is evenly distributed in the data initialization module. Provides multiple sets of parallel input to improve data transmission efficiency.
It significantly reduces the clock delay and improves the processing efficiency, making the FFT model process faster in multi-channel situations. It can display signals in real time and the data transmission efficiency reaches 100%, meeting the preset processing efficiency requirements.
Smart Images

Figure CN118364211B
Abstract
Description
Technical Field
[0001] The invention relates to a digital vector signal spectrum analysis method, device and storage medium, belonging to the technical field of electrical digital data processing. Background Art
[0002] As a linear integral transform, Fourier Transform (FFT) has been widely used in various fields such as mathematics, physics, and engineering since it was proposed in the early eighteenth century. In the field of signal processing, FFT transforms time domain signals into frequency domain, so that it can perform spectrum analysis, digital filtering, and efficient calculation of signal convolution. In the field of communication systems, FFT can be applied to Orthogonal Frequency Division Multiplexing (OFDM) technology, and can also be used in channel equalization and modulation recognition.
[0003] In today's era, the amount of data is growing explosively. Faced with the requirements of lower latency and higher throughput, digital signal processing algorithms such as FFT face greater challenges. Starting from the advantages of high speed and high parallelism of FPGA (Field Programmable Gate Array) chips, designing FFT architecture technology under multi-channel parallelism has become mainstream. The FFT algorithm is mature, and there are many algorithms such as radix 2, radix 4, radix 8 and mixed radix. Regardless of the FFT algorithm type based on decimation in time (DIT) or decimation in time (DIF), the larger the radix, the lower the number of complex multiplications, the shorter the FFT series, and the smaller the clock delay required for the operation. However, the flexibility of FFT point expansion is worse, the types of rotation factors are more, and the structure is more complex, and vice versa. The later discovered 2-based FFT algorithm kThe FFT algorithm retains the simplicity of the radix-2 system structure and has the advantage of a high-radix algorithm with fewer multiplications. The FFT hardware architecture mainly includes three hardware structures: memory structure, pipeline structure, and parallel array processing. In terms of efficiency, the clock delay of parallel array processing is the lowest, followed by the pipeline structure, but the array structure consumes the most block random access memory (BRAM) and digital signal processor (DSP) resources inside the FPGA, so the pipeline architecture is now widely used in FPGAs. However, the internal hardware resources of FPGA chips are limited, and the number of channels and variable points of FFT also need to be considered, which is a difficult problem to balance. Therefore, the existing technology still has the problems of high delay and low processing efficiency in the FFT processing of digital vector signals, which leads to waveform display delay during spectrum analysis. Summary of the invention
[0004] The purpose of the present invention is to provide a digital vector signal spectrum analysis method, device and storage medium to solve the problem of waveform display delay caused by high delay and low processing efficiency in the digital vector signal FFT processing process in the prior art.
[0005] To achieve the above objectives, the present invention is implemented by adopting the following technical solutions:
[0006] In a first aspect, the present invention provides a digital vector signal spectrum analysis method, comprising:
[0007] Obtaining a digital vector signal to be analyzed by spectrum;
[0008] Input the digital vector signal into the constructed FFT model to obtain the frequency domain signal;
[0009] Input the frequency domain signal into the host computer for power spectrum waveform display to realize spectrum analysis of digital vector signal;
[0010] The FFT model includes a data initialization module, a pre-pipeline unit, a conventional pipeline unit and a bit reversal module;
[0011] The data initialization module is used to divide the digital vector signal into M groups of vector input signals, where M is the number of channels of the FFT model;
[0012] The front-end pipeline unit is used to perform butterfly operation on the vector input signal to obtain a front-end signal;
[0013] The conventional pipeline unit is used to perform data integration and butterfly operation on the pre-signal to obtain a conventional signal and complete Fourier transform;
[0014] The bit reversal module is used to perform a binary bit reversal operation on the conventional signal, and to sort the binary reversed spectrum data in the conventional signal obtained by Fourier transform into sequential spectrum data.
[0015] Further, the front pipeline unit includes a multi-layer MDC pipeline, and a multi-stage butterfly operation is performed in each layer of the MDC pipeline. Each layer of the MDC pipeline includes a plurality of butterfly operation modules connected in sequence. The number of the butterfly operation modules is the number of stages of the MDC pipeline, and the butterfly operation is performed by the butterfly operation modules.
[0016] The number of stages of the front-end pipeline unit is log2M;
[0017] The butterfly operation includes:
[0018] The butterfly operation module in each layer of the MDC pipeline performs adder calculation and subtractor calculation on the received upper and lower vector input signals respectively, and uses the obtained addition result and subtraction result as the new upper and lower vector input signals;
[0019] After the adder calculation and the subtractor calculation are performed in the butterfly operation process of each stage, it also includes: determining whether to perform complex multiplier calculation and phase converter calculation on the new upper and lower vector input signals according to the butterfly operation requirements of this stage.
[0020] Furthermore, the complex multiplier calculation is performed by the following formula:
[0021] Y r = ac - bd = b ( c - d )+ c ( ab );
[0022] Y i = ad + bc = a ( c + d )- c ( ab );
[0023] in, Y r represents the real part of the calculation result, Y i represents the imaginary part of the calculation result, a represents the real part of the first complex number to be calculated by the complex multiplier, brepresents the imaginary part of the first complex number calculated by the complex multiplier, c represents the real part of the second complex number calculated by the complex multiplier, d Represents the imaginary part of the second complex number computed by the complex multiplier.
[0024] Furthermore, the phase converter calculation includes: assigning the imaginary part of the input signal to the real part, and assigning the opposite of the real part of the input signal to the imaginary part.
[0025] Furthermore, the conventional pipeline unit includes a data integration module and a butterfly operation module, and the data position of the pre-signal is first rearranged by the data integration module, and then input into the butterfly operation module for butterfly operation;
[0026] In the conventional pipeline unit, multiple stages of data position rearrangement and butterfly operation are performed, and the stages performed by the conventional pipeline unit are from the log2M+1 stage to the log2N stage, where N is the number of variable points of the FFT model;
[0027] The data integration includes: first delaying the downstream signal of the pre-signal by N / 2 x data units, and then exchange and rearrange with the upstream signal of the preceding signal, and finally delay the upstream signal by N / 2 x data units, x The value range is from log2M+1 to log2N.
[0028] Furthermore, after the FFT model is constructed, the number of clock delays is calculated using the following formula:
[0029] C d ( s,p )= d 4 -1+( d 1 + d 2 + d 3 ) s - d 1 p +3*2 s-p ;
[0030] in, C d ( s,p ) represents the number of clock delays, d 1 ~ d 4 means unnecessary delay. d 1Indicates the clock delay that exists when designing the data integration module. d 2 represents the clock delay that exists in the adder design. d 3 Indicates the clock delay that exists in the multiplier design. d 4 Indicates the clock delay that exists when designing the bit reversal module. s represents the total number of pipeline stages of the FFT model, p Indicates the stage number of the front-end pipeline unit;
[0031] If the number of clock delays meets the preset requirements, there is no need to adjust the number of channels and the number of variable points. If the number of clock delays does not meet the preset requirements, the number of channels and the number of variable points are adjusted until the number of clock delays meets the preset requirements.
[0032] In a second aspect, the present invention provides a digital vector signal spectrum analysis device, comprising:
[0033] The signal acquisition module is configured to: acquire a digital vector signal to be analyzed by spectrum;
[0034] The real-time FFT efficient processing module is configured to: input the digital vector signal into the constructed FFT model to obtain the frequency domain signal;
[0035] The spectrum analysis module is configured to: input the frequency domain signal into the host computer for power spectrum waveform display, thereby realizing spectrum analysis of the digital vector signal;
[0036] The FFT model includes a data initialization module, a pre-pipeline unit, a conventional pipeline unit and a bit reversal module;
[0037] The data initialization module is used to divide the digital vector signal into M groups of vector input signals, where M is the number of channels of the FFT model;
[0038] The front-end pipeline unit is used to perform butterfly operation on the vector input signal to obtain a front-end signal;
[0039] The conventional pipeline unit is used to perform data integration and butterfly operation on the pre-signal to obtain a conventional signal and complete Fourier transform;
[0040] The bit reversal module is used to perform a binary bit reversal operation on the conventional signal, and to sort the binary reversed spectrum data in the conventional signal obtained by Fourier transform into sequential spectrum data.
[0041] In a third aspect, the present invention provides a computer-readable storage medium having a computer program / instruction stored thereon. When the computer program / instruction is executed by a processor, the steps of the digital vector signal spectrum analysis method described in any one of the first aspects are implemented.
[0042] Compared with the prior art, the beneficial effects achieved by the present invention are:
[0043] A digital vector signal spectrum analysis method, device and storage medium provided by the present invention provide a new FFT model to reduce a large amount of clock delay caused by data position adjustment in the early stage, improve the overall processing efficiency, and the model design is simple. In the case of multiple channels, the processing speed of the FFT model is faster, so that the signal after each FFT in the host computer can be displayed in real time, and the dynamic change is more obvious; through the design of the data initialization module, the signal is evenly divided into multiple groups and input into the subsequent module in parallel, without waiting for all data to be collected before calculation, and no waiting time is required. At this time, the data transmission efficiency reaches 100%; before using the FFT model, the number of channels and the number of variable points are verified to ensure that the processing efficiency of the FFT model can meet the preset requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 is a flow chart of a digital vector signal spectrum analysis method provided by an embodiment of the present invention;
[0045] Figure 2 is a schematic diagram of a base 2 MDC architecture provided by an embodiment of the present invention;
[0046] Figure 3 is a schematic diagram of a multi-channel parallel FFT architecture provided by an embodiment of the present invention;
[0047] Figure 4 is a schematic diagram of the control process of the FFT model provided by an embodiment of the present invention;
[0048] Figure 5 It is a schematic diagram of data flow in the FFT model provided by an embodiment of the present invention;
[0049] Figure 6 is a schematic diagram of changing the sampling mode of the data initialization module provided by an embodiment of the present invention;
[0050] Figure 7 It is a schematic diagram of the position of data before and after the bit reversal module provided by an embodiment of the present invention;
[0051] Figure 8 is a schematic diagram of Modelsim simulation results provided by an embodiment of the present invention;
[0052] Fig. 9It is a schematic diagram comparing the MATLAB system FFT function and the FPGA simulation FFT amplitude spectrum provided by an embodiment of the present invention;
[0053] Fig.10 It is a schematic diagram of the difference in amplitude spectrum between the FPGA simulation FFT and the MATLAB system FFT function provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0054] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solutions of the present invention and are not intended to limit the protection scope of the present invention.
[0055] Example 1
[0056] like Figure 1 As shown, the present invention provides a digital vector signal spectrum analysis method, comprising:
[0057] S1. Obtain a digital vector signal to be spectrally analyzed.
[0058] S2. Input the digital vector signal into the constructed FFT model to obtain the frequency domain signal.
[0059] like Figure 4 and Figure 5 As shown, in this embodiment, the FFT model includes a data initialization module, a front pipeline unit, a conventional pipeline unit and a bit reversal module.
[0060] In this embodiment, the Figure 3 The FFT model is designed based on the multi-channel parallel FFT architecture shown in FIG. 1 , and the pre-pipeline unit and the conventional pipeline unit are based on Figure 2 The base 2 MDC architecture design is shown.
[0061] like Figure 2 As shown, M=2 p (In this embodiment p =3, then M=8) parallel channels with four-layer radix-2 MDC pipeline architecture (single-layer radix-2-MDC architecture such as Figure 2 As shown) composition, using base 2 p With base 2 k (For flexibility considerations, this embodiment is set to k =1) Combine the butterfly operation principle to design the butterfly operation module.
[0062] like Figure 3 As shown, the pipeline is divided into the pre-pipeline unit from the early stage 1 to the log2M stage and the regular pipeline unit from the late stage log2M+1 to the log2N stage. The pre-pipeline unit is a fixed unit, and the regular pipeline unit is a dynamically changing unit.
[0063] like Figure 4 As shown, each data line represents a digital vector signal. N When performing FFT of N / M (4~256) points (in this implementation, N=32~2048 is used as an example), each two channels perform a layer of MDC pipeline butterfly operation of N / M (4~256) points. It can be seen that N The points need to go through log2N stages of butterfly operations, and the first p The four-layer base 2-MDC pipeline architecture used in the butterfly operation of each stage does not run independently, and there is data exchange between each layer until the fourth stage begins, when the base 2-MDC pipeline architecture begins to run independently and expand.
[0064] Figure 3 The multi-channel parallel FFT architecture shown in the figure has a front-end pipeline unit in the first half that is responsible for establishing the number of parallel channels. p (In this embodiment p =3) is a vertical expansion. Since the FPGA hardware resources are limited, the number of channels or the early part units are limited, so the data integration module is not included, and the flow direction of the fixed data position is sufficient.
[0065] Figure 3 The multi-channel parallel FFT architecture shown in the figure has a conventional pipeline unit in the second half responsible for the expansion of the FFT points. It uses a two-channel based 2 k (In this implementation, k =1 as an example), for horizontal expansion, two channels are used to operate independently in four groups, including a data integration module set before the butterfly operation, which ensures the correctness of the subsequent butterfly operation by changing the different data positions in each stage.
[0066] according to Figure 3 The multi-channel parallel FFT architecture design shown Figure 4 The control flow of the top-level module, middle-level module, and bottom-level module from start to end is shown, and the design Figure 5 The data flow diagram shown is composed of the starting stage, the front pipeline unit (stage 1 to the log2M stage, M=8), the normal pipeline unit (stage log2M+1 to the log2N stage, M=8, N=32~2048), and the ending stage, so as to understand the specific functions that each module in each stage needs to implement and give the implementation method.
[0067] Data initialization module: The ADC real-time signal in the initial stage (that is, the digital vector signal to be processed in this embodiment) is input into the data initialization module to divide the single-channel data into multi-channel data output. The traditional single-channel FFT sampling method starts the second sampling after the first sampling. If this method is applied to 8 channels, a lot of idle time is generated because the rest of the data cache time is used to wait for the arrival of the last set of data during data calculation. Figure 6 It can be seen that the traditional sampling method has a data parallel transmission efficiency of only 12.5% when performing real-time FFT N-point calculations, which makes the calculation efficiency of the subsequent 8-channel FFT model only 12.5%. The improved sampling method is to evenly divide the signal into M groups after each sampling is completed. The first M-1 (7 in this design) groups are written to the first-in first-out FIFO (first input first output) memory through M-1 write signals respectively. When the Mth group of signals arrives, the first M-1 groups of signals are read out uniformly through 1 read signal. In this way, the IQ signal is divided into M paths and output in parallel to the FFT model calculation. At this time, the data transmission efficiency reaches 100%.
[0068] Calculate the number of data before and after the FFT model operation under this sampling method; assuming that the number of FFT points required is N and the number of channels is M, it is necessary to perform FFT every N / M data. Figure 6 The sampling method requires a total of T subsampling (in real-time signal T is infinite), the real-time data length is:
[0069] L i =N+( T-1 )N / M, T ≥1;
[0070] in, L i The real-time data length.
[0071] Then the total data length of the time domain signal and the frequency domain signal before the FFT model performs butterfly operation is:
[0072] L 0 =N T , T ≥1;
[0073] in, L 0 It is the total data length of the time domain signal and frequency domain signal before the FFT model performs butterfly operation.
[0074] Pre-pipeline unit; Each stage is composed of the butterfly operation module of the bottom module. The M groups of vector input signals output by the data initialization module are input to this module. The upper and lower data in each layer of the pipeline are calculated by the adder / subtractor, and then the calculated addition and subtraction results are used as the new upper and lower data. According to the butterfly operation requirements of this stage, the complex multiplier and phase transformer are calculated and output or directly output to the next stage, and so on, until the last log2M (M=8 in this implementation). At the same time, the rotation factor drive address is generated according to the rotation factor value requirements of the butterfly operation of this stage, and the value stored in the rotation factor ROM is called to facilitate the complex multiplier operation.
[0075] Complex multiplier; suppose the two complex numbers to be calculated are Y 1= a + bj and Y 2= c + DJ , the following calculation is required, which requires 3 real number multiplications and 5 real number additions:
[0076] Y r = ac - bd = b ( c - d )+ c ( ab );
[0077] Y i = ad + bc = a ( c + d )- c ( ab );
[0078] in, Y r represents the real part of the calculation result, Y i represents the imaginary part of the calculation result, a Indicates the first complex number to be calculated by the complex multiplier Y The real part of 1, b Represents the first complex number calculated by the complex multiplier Y The imaginary part of 1, c Represents the second complex number calculated by the complex multiplier Y The real part of 2, d Represents the second complex number calculated by the complex multiplier Y The imaginary part of 2.
[0079] make X 0= c ( a - b ), X 1= b ( c - d ), X 2= a ( c + d ), then:
[0080] Y r = X 1+ X 0;
[0081] Y i = X 2- X 0.
[0082] Phase converter: After the addition / subtraction calculation of the butterfly operation is completed, the upper and lower data need to be -j When performing complex multiplication, in order to save multiplier resources and memory resources, there is no need to call the value of the rotation factor ROM for complex multiplication calculation. It is only necessary to assign the imaginary part of the vector data directly to the real part, and the opposite of the real part to the imaginary part, and then output the new vector signal to the next pipeline stage.
[0083] Therefore, the phase converter calculation includes: assigning the imaginary part of the input signal to the real part, and assigning the opposite of the real part of the input signal to the imaginary part.
[0084] Conventional pipeline stage; each stage includes a data integration module and a butterfly operation module, and the data position of the pre-stage signal output by the pre-stage pipeline unit is first rearranged by the data integration module, and then input into the butterfly operation module for butterfly operation; that is, the data of the last stage of the pre-stage pipeline unit is input into the log2M+1th stage of the conventional pipeline unit, and the data enters the data integration module for rearrangement of the upper and lower data, and then output to the butterfly operation module, and so on, until the last log2Nth (in this implementation, the data is output to the butterfly operation module) of the conventional pipeline unit. N =32~2048 as an example) stage.
[0085] Data integration module; first delay the downstream signal by N / 2 x indivual( x =log2M+1~log2N) data unit, and then exchange and rearrange with the uplink signal, and finally the uplink signal is delayed by N / 2 x data units.
[0086] Bit reversal module; in the final stage, the log2Nth (in this implementation, the N =32~2048 as an example) stage data is output to this module for binary bit reversal operation, and the binary inverted spectrum data after FFT is sorted into sequential spectrum data, and then the signal is output. Since the data output efficiency is 100%, there is no idle state before and after the data. When the first set of data is stored, the second set of data arrives immediately, which makes the read and write state of the RAM chaotic, causing data aliasing and missing. This can be solved by ping-pong RAM data caching. According to the ping-pong signal request, the first set of data is written in reverse order to RAM1. When the second set of data is input, it is written in reverse order to RAM2, and the data in RAM1 is read out sequentially. When the third set of data is input, it is written in reverse order to RAM1, and the data in RAM2 is read out sequentially, and so on. For example Figure 7 shown.
[0087] According to the FFT model, the clock delay of the signal is calculated:
[0088] if Figure 3 The FFT calculation in s pipeline stages, and the pre-pipeline stages have p There are a total of conventional pipeline stages s - p Then N, M, s , p The relationship between can be expressed as:
[0089] N=2 s ;
[0090] M=2 p .
[0091] The necessary delay is the delay part of the data length involved in the data caching by the data integration module N / 2 x ( x = p +1~ s ), and the length of the data required for all input and output itself is 2N / M. If it is unnecessary delay, there is a delay in the design of the data integration module. d 1 clock delay, adder has d 2 clock delay, the multiplier has d 3 clock delays, bit reversal module has d 4 clock delays. If the calculation starts from the sequential input of the time domain signal until the sequential output of the frequency domain signal is completed, then the calculation method for the number of clock delays for pipeline FFT of N data in M parallel channels is:
[0092] ;
[0093] After simplifying the above formula, we get:
[0094] C d ( s,p )= d 4 -1+( d 1 + d 2 + d 3 ) s - d 1 p +3*2 s-p ;
[0095] in, C d ( s,p ) represents the number of clock delays, d 1 ~ d 4 means unnecessary delay. d 1 Indicates the clock delay that exists when designing the data integration module. d 2 represents the clock delay that exists in the adder design. d 3 Indicates the clock delay that exists in the multiplier design. d 4 Indicates the clock delay that exists when designing the bit reversal module. s represents the total number of pipeline stages of the FFT model, p Indicates the stage number of the preceding pipeline unit.
[0096] If the number of clock delays meets the preset requirements, there is no need to adjust the number of channels and the number of variable points. If the number of clock delays does not meet the preset requirements, the number of channels and the number of variable points are adjusted until the number of clock delays meets the preset requirements.
[0097] S3. Input the frequency domain signal into the host computer for power spectrum waveform display to realize spectrum analysis of digital vector signal.
[0098] The frequency domain signal is output to the host computer through PXIe (PXIe signal processing platform) to display the power spectrum waveform.
[0099] The contents of this embodiment are simulated, and the simulation verification process is as follows: Figure 8 shown.
[0100] Generated by MATLAB function T =5 groups of N=128-point digital vector signals:
[0101] x ( t )= 2 10 [ cos ( 2πf 1 n / f s )+ jsin ( 2πf 1 n / f s )];
[0102] Among them, the function frequency f 1 =6MHz, sampling frequency f s =50MHz, the value is 0~ L i -1; the input real-time signals are obtained from the sampling points of the sine wave, and then the FFT function of MATLAB and the 8-channel MDC pipeline architecture designed in FPGA are used to perform N=128-point FFT, and the Modelsim simulation results are as follows Figure 8 The simulation specifies that the FPGA clock frequency is 50MHz, the clock cycle is 20ns, and the delay in the algorithm module design is d 1=2, d 2=1, d 3=1, d 4=2.
[0103] The number of input data in the figure is (3961-121) / 20=196, which conforms to the formula L i =N+( T-1 )N / M, the number of output data is 8*(5080-3480) / 20=640, which conforms to the formula L 0 =N T At the same time, it can be seen from the output that there are 5 ending signals, indicating that there are 5 sets of spectrum data, and the data is continuous without idle time, and the FFT system calculation efficiency reaches 100%. The amount of data before and after the FFT system calculation is the same as the sampling method provided in the invention, and the data transmission and calculation efficiency reaches 100% required by the invention.
[0104] The total number of clock delays before and after a single calculation of the FFT model is ((3800-2380) / 20)=71, which conforms to the formula C d ( s,p )= d 4 -1+( d 1 + d 2 + d 3 ) s - d 1 p +3*2 s-p The reasoning is that there is no data integration module in the early FFT stage, and the result of the operation speed calculation method provided in the present embodiment is the same.
[0105] Export the results to MATLAB and compare them with its own FFT function. The results are as follows Fig. 9 As shown, the spectrum results are basically consistent, and the error values are as follows Fig.10 As shown, the error is low, the overall FFT operation efficiency is extremely high, and the multi-channel FFT system architecture of the invention is feasible, so that the power spectrum waveform can be displayed in real time and the display delay can be reduced.
[0106] Example 2
[0107] An embodiment of the present invention provides a digital vector signal FFT processing device, comprising:
[0108] The signal acquisition module is configured to: acquire a digital vector signal to be analyzed by spectrum;
[0109] The real-time FFT efficient processing module is configured to: input the digital vector signal into the constructed FFT model to obtain the frequency domain signal;
[0110] The spectrum analysis module is configured to: input the frequency domain signal into the host computer for power spectrum waveform display, thereby realizing spectrum analysis of the digital vector signal;
[0111] The FFT model includes a data initialization module, a pre-pipeline unit, a conventional pipeline unit and a bit reversal module;
[0112] The data initialization module is used to divide the digital vector signal into M groups of vector input signals, where M is the number of channels of the FFT model;
[0113] The front-end pipeline unit is used to perform butterfly operation on the vector input signal to obtain a front-end signal;
[0114] The conventional pipeline unit is used to perform data integration and butterfly operation on the pre-signal to obtain a conventional signal and complete Fourier transform;
[0115] The bit reversal module is used to perform a binary bit reversal operation on the conventional signal, and to sort the binary reversed spectrum data in the conventional signal obtained by Fourier transform into sequential spectrum data.
[0116] Example 3
[0117] The present invention provides a computer-readable storage medium having a computer program / instruction stored thereon. When the computer program / instruction is executed by a processor, the steps of the digital vector signal spectrum analysis method provided in Example 1 are implemented:
[0118] Get real-time digital vector signal;
[0119] Input the digital vector signal into the constructed FFT model to obtain the frequency domain signal;
[0120] Input the frequency domain signal into the host computer for power spectrum waveform display to realize spectrum analysis of digital vector signal;
[0121] The FFT model includes a data initialization module, a pre-pipeline unit, a conventional pipeline unit and a bit reversal module;
[0122] The data initialization module is used to divide the digital vector signal into M groups of vector input signals, where M is the number of channels of the FFT model;
[0123] The front-end pipeline unit is used to perform butterfly operation on the vector input signal to obtain a front-end signal;
[0124] The conventional pipeline unit is used to perform data integration and butterfly operation on the pre-signal to obtain a conventional signal and complete Fourier transform;
[0125] The bit reversal module is used to perform a binary bit reversal operation on the conventional signal, and to sort the binary reversed spectrum data in the conventional signal obtained by Fourier transform into sequential spectrum data.
[0126] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0127] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0128] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0129] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0130] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A digital vector signal spectrum analysis method, characterized in that: include: Obtaining a digital vector signal to be analyzed by spectrum; Input the digital vector signal into the constructed FFT model to obtain the frequency domain signal; Input the frequency domain signal into the host computer for power spectrum waveform display to realize spectrum analysis of digital vector signal; The FFT model includes a data initialization module, a pre-pipeline unit, a conventional pipeline unit and a bit reversal module; The data initialization module is used to divide the digital vector signal into M groups of vector input signals, where M is the number of channels of the FFT model; The front-end pipeline unit is used to perform butterfly operation on the vector input signal to obtain a front-end signal; The conventional pipeline unit is used to perform data integration and butterfly operation on the pre-signal to obtain a conventional signal and complete Fourier transform; The bit reversal module is used to perform a binary bit reversal operation on the conventional signal, and to sort the binary reversed spectrum data in the conventional signal obtained by Fourier transform into sequential spectrum data; The front pipeline unit includes a multi-layer MDC pipeline, and a multi-stage butterfly operation is performed in each layer of the MDC pipeline. Each layer of the MDC pipeline includes a plurality of butterfly operation modules connected in sequence. The number of the butterfly operation modules is the number of stages of the MDC pipeline, and the butterfly operation is performed by the butterfly operation modules. The number of stages of the front-end pipeline unit is log2M; The butterfly operation includes: The butterfly operation module in each layer of the MDC pipeline performs adder calculation and subtractor calculation on the received upper and lower vector input signals respectively, and uses the obtained addition result and subtraction result as the new upper and lower vector input signals; After the butterfly operation process of each stage performs adder calculation and subtractor calculation, it also includes: determining whether to perform complex multiplier calculation and phase converter calculation on the new upper and lower two-way vector input signals according to the butterfly operation requirements of this stage; The conventional pipeline unit includes a data integration module and a butterfly operation module. The data position of the pre-signal is first rearranged by the data integration module, and then input into the butterfly operation module for butterfly operation. In the conventional pipeline unit, multiple stages of data position rearrangement and butterfly operation are performed, and the stages performed by the conventional pipeline unit are from the log2M+1 stage to the log2N stage, where N is the number of variable points of the FFT model; The data integration includes: first delaying the downstream signal of the pre-signal by N / 2 x data units, and then exchange and rearrange with the upstream signal of the preceding signal, and finally delay the upstream signal by N / 2 x data units, x The value range is from log2M+1 to log2N; After constructing the FFT model, the number of clock delays is calculated using the following formula: C d ( s,p )= d 4 -1+( d 1 + d 2 + d 3 ) s - d 1 p +3*2 s-p ; in, C d ( s,p ) represents the number of clock delays, d 1 ~ d 4 means unnecessary delay. d 1 Indicates the clock delay that exists when designing the data integration module. d 2 represents the clock delay that exists in the adder design. d 3 Indicates the clock delay that exists in the multiplier design. d 4 Indicates the clock delay that exists when designing the bit reversal module. s represents the total number of pipeline stages of the FFT model, p Indicates the stage number of the front-end pipeline unit; If the number of clock delays meets the preset requirements, there is no need to adjust the number of channels and the number of variable points. If the number of clock delays does not meet the preset requirements, the number of channels and the number of variable points are adjusted until the number of clock delays meets the preset requirements.
2. The digital vector signal spectrum analysis method according to claim 1, characterized in that: The complex multiplier calculation is performed by the following formula: Y r = ac - bd = b ( c - d )+ c ( ab ); Y i = ad + bc = a ( c + d )- c ( ab ); in, Y r represents the real part of the calculation result, Y i represents the imaginary part of the calculation result, a represents the real part of the first complex number to be calculated by the complex multiplier, b represents the imaginary part of the first complex number calculated by the complex multiplier, c represents the real part of the second complex number calculated by the complex multiplier, d Represents the imaginary part of the second complex number computed by the complex multiplier.
3. The digital vector signal spectrum analysis method according to claim 1, characterized in that: The phase converter calculation includes: assigning the imaginary part of the input signal to the real part, and assigning the opposite of the real part of the input signal to the imaginary part.
4. A digital vector signal spectrum analysis device, characterized in that: include: The signal acquisition module is configured to: acquire a digital vector signal to be analyzed by spectrum; The real-time FFT efficient processing module is configured to: input the digital vector signal into the constructed FFT model to obtain the frequency domain signal; The spectrum analysis module is configured to: input the frequency domain signal into the host computer for power spectrum waveform display, thereby realizing spectrum analysis of the digital vector signal; The FFT model includes a data initialization module, a pre-pipeline unit, a conventional pipeline unit and a bit reversal module; The data initialization module is used to divide the digital vector signal into M groups of vector input signals, where M is the number of channels of the FFT model; The front-end pipeline unit is used to perform butterfly operation on the vector input signal to obtain a front-end signal; The conventional pipeline unit is used to perform data integration and butterfly operation on the pre-signal to obtain a conventional signal and complete Fourier transform; The bit reversal module is used to perform a binary bit reversal operation on the conventional signal, and to sort the binary reversed spectrum data in the conventional signal obtained by Fourier transform into sequential spectrum data; The front pipeline unit includes a multi-layer MDC pipeline, and a multi-stage butterfly operation is performed in each layer of the MDC pipeline. Each layer of the MDC pipeline includes a plurality of butterfly operation modules connected in sequence. The number of the butterfly operation modules is the number of stages of the MDC pipeline, and the butterfly operation is performed by the butterfly operation modules. The number of stages of the front-end pipeline unit is log2M; The butterfly operation includes: The butterfly operation module in each layer of the MDC pipeline performs adder calculation and subtractor calculation on the received upper and lower vector input signals respectively, and uses the obtained addition result and subtraction result as the new upper and lower vector input signals; After the butterfly operation process of each stage performs adder calculation and subtractor calculation, it also includes: determining whether to perform complex multiplier calculation and phase converter calculation on the new upper and lower two-way vector input signals according to the butterfly operation requirements of this stage; The conventional pipeline unit includes a data integration module and a butterfly operation module. The data position of the pre-signal is first rearranged by the data integration module, and then input into the butterfly operation module for butterfly operation. In the conventional pipeline unit, multiple stages of data position rearrangement and butterfly operation are performed, and the stages performed by the conventional pipeline unit are from the log2M+1 stage to the log2N stage, where N is the number of variable points of the FFT model; The data integration includes: first delaying the downstream signal of the pre-signal by N / 2 x data units, and then exchange and rearrange with the upstream signal of the preceding signal, and finally delay the upstream signal by N / 2 x data units, x The value range is from log2M+1 to log2N; After constructing the FFT model, the number of clock delays is calculated using the following formula: C d ( s,p )= d 4 -1+( d 1 + d 2 + d 3 ) s - d 1 p +3*2 s-p ; in, C d ( s,p ) represents the number of clock delays, d 1 ~ d 4 means unnecessary delay. d 1 Indicates the clock delay that exists when designing the data integration module. d 2 represents the clock delay that exists in the adder design. d 3 Indicates the clock delay that exists in the multiplier design. d 4 Indicates the clock delay that exists when designing the bit reversal module. s represents the total number of pipeline stages of the FFT model, p Indicates the stage number of the front-end pipeline unit; If the number of clock delays meets the preset requirements, there is no need to adjust the number of channels and the number of variable points. If the number of clock delays does not meet the preset requirements, the number of channels and the number of variable points are adjusted until the number of clock delays meets the preset requirements.
5. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instruction is executed by a processor, the steps of the digital vector signal spectrum analysis method described in any one of claims 1-3 are implemented.
Citation Information
Patent Citations
FPGA implementation device for solving least square problem based on Cholesky decomposition
CN102129420A
Low-cost pipeline type FFT processor implementation method based on FPGA
CN110096672A
Spectral shape estimation from MDCT coefficients
US20220189490A1
