Signal processing method, signal processor, device and storage medium

By processing the initial sampling signal and the data in the FFT process to maximize the signal-to-noise ratio, the overflow problem caused by the increase in data bit width in the FFT is solved, and the signal processor resource occupation and implementation cost are reduced.

CN112255455BActive Publication Date: 2024-09-27GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011232971.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-06
Publication Date
2024-09-27
Estimated Expiration
2040-11-06

AI Technical Summary

Technical Problem

In the fast Fourier transform (FFT) process, the data bit width increases with each level of calculation, causing overflow problems and increasing the resource occupation and implementation cost of the signal processor.

Method used

By performing maximum signal-to-noise ratio processing on the initial sampling signal and performing maximum signal-to-noise ratio processing during the FFT process, fixed-point loss is reduced, data bit width is reduced, and data bit width overflow is avoided.

Benefits of technology

It reduces the occupation of signal processor resources by the increasing data bit width during the FFT implementation process, and reduces the FFT implementation cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112255455B
    Figure CN112255455B
Patent Text Reader

Abstract

The embodiment of the present application discloses a signal processing method, a signal processor, a device and a storage medium, which belongs to the field of signal processing. The method includes: obtaining an initial sampling signal; performing maximum signal-to-noise ratio processing on the initial sampling signal to obtain an input signal, and the data width corresponding to the input signal after the maximum signal-to-noise ratio processing is lower than the data width threshold; performing a fast Fourier transform operation on the input signal, and performing maximum signal-to-noise ratio processing during the fast Fourier transform operation to obtain an output signal, and the data width of the output signal after the maximum signal-to-noise ratio processing is less than the data width threshold. It can avoid the overflow of the data width caused by the continuous increase of the data width with each level of calculation, thereby avoiding the occupation of the processing resources of the signal processor by the continuous increase of the data width during the FFT implementation process, thereby reducing the implementation cost of FFT.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of signal processing, and in particular to a signal processing method, a signal processor, a device and a storage medium. Background Art

[0002] Fast Fourier Transformation (FFT) is a fast algorithm for discrete Fourier transform. Applying FFT to the field of signal processing can simplify the calculation process in the signal processing process, such as reducing multiplication operations.

[0003] In the related technology, during the FFT implementation process, a fixed bit width is used for processing at each intermediate level, and a fixed scaling factor is preset at each level. Since no processing is performed in the calculation process at each intermediate level, the data bit width will increase accordingly. In order to avoid overflow, a larger data bit width needs to be set to accommodate the processed data, which will obviously increase the implementation cost of FFT. Summary of the invention

[0004] The embodiment of the present application provides a signal processing method, a signal processor, a device and a storage medium. The technical solution is as follows:

[0005] On the one hand, an embodiment of the present application provides a signal processing method, the method comprising:

[0006] Obtaining an initial sampling signal;

[0007] Performing maximum signal-to-noise ratio processing on the initial sampling signal to obtain an input signal, wherein a data bit width corresponding to the input signal after the maximum signal-to-noise ratio processing is lower than a data bit width threshold;

[0008] A fast Fourier transform operation is performed on the input signal, and a maximum signal-to-noise ratio process is performed during the fast Fourier transform operation to obtain an output signal, wherein the data bit width of the output signal after the maximum signal-to-noise ratio process is less than a data bit width threshold.

[0009] On the other hand, an embodiment of the present application provides a signal processor, the signal processor comprising a sampling unit, a fast Fourier transform operation unit, a first maximum signal-to-noise ratio processing unit and a second maximum signal-to-noise ratio processing unit;

[0010] The sampling unit is used to obtain an initial sampling signal;

[0011] The first maximum signal-to-noise ratio processing unit is used to perform maximum signal-to-noise ratio processing on the initial sampling signal to obtain an input signal;

[0012] The fast Fourier transform operation unit and the second maximum signal-to-noise ratio processing unit are used to process the input signal to obtain an output signal.

[0013] On the other hand, an embodiment of the present application provides a computer device, which includes a signal processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the signal processor to implement the signal processing method described in the above aspects.

[0014] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores at least one instruction, at least one program, a code set or an instruction set. The at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by a signal processor to implement the signal processing method described in the above aspects.

[0015] On the other hand, according to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A signal processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the signal processing method provided in various optional implementations of the above aspects.

[0016] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0017] In the FFT implementation process, the initial sampling signal is processed with the maximum signal-to-noise ratio to reduce the fixed-point loss in the FFT process, and the data bit width is reduced by the maximum signal-to-noise ratio processing in the FFT process. This can avoid the overflow of the data bit width caused by the continuous increase of the data bit width with each level of calculation, thereby avoiding the occupation of the processing resources of the signal processor due to the continuous increase of the data bit width in the FFT implementation process, thereby reducing the implementation cost of the FFT. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It shows the expanded view of the 16-point IFFT transform;

[0019] Figure 2 A structural block diagram of a signal processor shown in an exemplary embodiment of the present application is shown;

[0020] Figure 3 A flowchart of a signal processing method provided by an exemplary embodiment of the present application is shown;

[0021] Figure 4 A flowchart of a signal processing method shown in another exemplary embodiment of the present application is shown;

[0022] Figure 5 A flowchart of a signal processing method shown in another exemplary embodiment of the present application is shown;

[0023] Figure 6 A flow chart showing a method for performing maximum signal-to-noise ratio processing in a butterfly operation process shown in an exemplary embodiment of the present application is shown;

[0024] Figure 7 A schematic diagram of a radix operation shown in an exemplary embodiment of the present application is shown;

[0025] Figure 8 A schematic diagram of a phase rotation operation shown in an exemplary embodiment of the present application is shown;

[0026] Fig. 9 A structural block diagram of a signal processor provided by an exemplary embodiment of the present application is shown;

[0027] Fig.10 A schematic diagram of the structure of a computer device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0028] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0029] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0030] FFT is a fast algorithm for discrete Fourier transform. It is obtained by improving the discrete Fourier transform algorithm based on the odd, even, imaginary, and real characteristics of discrete Fourier transform. Compared with discrete Fourier transform, FFT can save the number of operations of complex sequences and save the amount of calculation. In the field of signal processing, when using FFT to process signals, the signal can be transformed from the time domain to the frequency domain for further analysis of the characteristics of the signal in the frequency domain. Optionally, the FFT algorithm includes an FFT algorithm based on time extraction and an FFT algorithm based on frequency domain extraction. Figure 1 As shown, it shows the expansion diagram of 16-point IFFT transformation, where, taking time extraction, radix-2 as an example, X(0)~X(15) are 16 sampling signals, Represents the rotation factor. The 16 sampling signals undergo four-stage butterfly operations to obtain the output signal. Each stage of butterfly operation consists of a radix-2 operation and a phase rotation operation.

[0031] Since each level of butterfly operation requires two complex additions and one complex multiplication, if the operation data is not processed, the data bit width will increase step by step.

[0032] In view of the problem that the data bit width in the related art will increase step by step, the embodiment of the present application provides a new signal processing method, which is applied to Figure 2 In the signal processor shown in FIG. Figure 2 As shown, it shows a structural block diagram of a signal processor shown in an exemplary embodiment of the present application. The signal processor 200 includes: a sampling unit 201, a first maximum signal-to-noise ratio processing unit 202, an FFT operation unit 203 and a second maximum signal-to-noise ratio processing unit 204.

[0033] The sampling unit 201 is used to perform analog-to-digital conversion on the analog signal and sample to obtain multiple discrete digital signals. In the embodiment of the present application, the sampling unit 201 is used to obtain an initial sampling signal. Optionally, the sampling unit 201 can be an analog-to-digital converter (ADC).

[0034] The first maximum signal-to-noise ratio processing unit 202 is used to perform maximum signal-to-noise ratio processing on the input signal. In this embodiment, the first maximum signal-to-noise ratio processing unit 202 can receive the initial sampling signal transmitted by the sampling unit 201, and perform maximum signal-to-noise ratio processing on the initial sampling signal to obtain an input signal for performing the FFT process.

[0035] The FFT operation unit 203 is used to perform fast Fourier transform operation on multiple discrete input signals. The FFT operation unit 203 may include multiple radix operators and phase rotation units.

[0036] The second maximum signal-to-noise ratio processing unit 204 is used to perform maximum signal-to-noise ratio processing on the data during the FFT operation. In the embodiment of the present application, during the FFT operation, by performing maximum signal-to-noise ratio processing on each level of operation, it is avoided that the data bit width gradually increases due to complex addition and complex multiplication operations during the FFT process, and the data bit width is controlled within the data bit width threshold.

[0037] Optionally, the signal processor 200 further includes a buffer for storing the scaling factor of each level.

[0038] Compared with the related art, in which only FFT operation is performed on the input signal, the embodiment of the present application adds a first maximum signal-to-noise ratio processing unit 202 and a second maximum signal-to-noise ratio processing unit 204 in the signal processor 200, which can avoid the overflow of the data bit width caused by the continuous increase of the data bit width with each level of calculation, thereby avoiding the occupation of the processing resources of the signal processor by the continuous increase of the data bit width during the FFT implementation process, thereby reducing the implementation cost of the FFT.

[0039] It should be noted that the signal processing method shown in the embodiment of the present application can be applied to a signal processor (in a processor chip), and the signal processor can be a digital signal processor (DSP) or an application specific integrated circuit (ASIC), and the embodiment of the present application does not constitute a limitation to this.

[0040] Please refer to Figure 3 , which shows a flow chart of a signal processing method provided by an exemplary embodiment of the present application. The present application embodiment takes the method applied to a signal processor as an example for explanation, and the method includes:

[0041] Step 301: Acquire an initial sampling signal.

[0042] In the field of signal processing, when processing an analog signal, it is necessary to first convert the analog signal into a digital signal and then perform signal processing on it. Therefore, in one possible implementation, the signal processor performs ADC sampling on the received analog signal to obtain a digital signal, that is, an initial sampling signal.

[0043] The analog signal may be a radio frequency signal or an electromagnetic wave signal, and the embodiment of the present application does not limit the type of the analog signal.

[0044] In order to facilitate FFT calculations during FFT processing, when ADC samples the analog signal, the number of sampling points is generally an integer power of 2. For example, the number of sampling points is 16, which is 2^4, that is, 16 initial sampling signals can be obtained.

[0045] Step 302: Perform maximum signal-to-noise ratio processing on the initial sampling signal to obtain an input signal. The data bit width corresponding to the input signal after the maximum signal-to-noise ratio processing is lower than a data bit width threshold.

[0046] Among them, the initial data bit width is defined as W, and the initial data bit width is the sampling bit width corresponding to the initial sampling signal. For example, the initial data bit width (sampling bit width) is 16 bits, which means that 2 bytes of data are collected at each sampling point; the data bit width threshold is determined by the initial data bit width, and the data bit width of each level of operation data in the FFT implementation process needs to be less than the data bit width threshold to avoid overflow due to the data bit width exceeding the data bit width threshold.

[0047] In an exemplary example, the relationship between the data bit width threshold and the initial data bit can be expressed as:

[0048] max_W=2 W-1 -1

[0049] Wherein, max_W represents the data bit width threshold, and W represents the initial data bit width.

[0050] Since the FFT fixed-point method is used to process data during the FFT implementation process, in order to avoid the loss of the FFT fixed-point method, in a possible implementation, the initial sampling signal is first processed for maximum signal-to-noise ratio to obtain an input signal for FFT.

[0051] Of course, due to the limitation of the data bit width threshold, the data bit width corresponding to the input signal after the initial sampling signal is processed with the maximum signal-to-noise ratio also needs to be ensured to be lower than the maximum data bit width to avoid overflow.

[0052] Step 303, perform fast Fourier transform operation on the input signal, and perform maximum signal-to-noise ratio processing during the fast Fourier transform operation to obtain an output signal, wherein the data bit width of the output signal after the maximum signal-to-noise ratio processing is less than the data bit width threshold.

[0053] Among them, the maximum signal-to-noise ratio processing is used to reduce the data bit width of the signal during the fast Fourier transform operation.

[0054] In the process of FFT implementation, each level of processing will lead to an increase in data bit width. For example, complex multiplication or complex addition of two signal values ​​may lead to an increase in data bit width. Therefore, in order to avoid the continuous increase of data bit width, in the process of FFT implementation, the signal is processed with the maximum signal-to-noise ratio to avoid the continuous increase of signal data bit width during FFT operation.

[0055] In a possible implementation, the input signal is fast Fourier transformed and the operation data is subjected to maximum signal-to-noise ratio processing during the FFT operation, for example, the maximum signal-to-noise ratio processing is performed after the complex multiplication, so as to avoid an increase in the data bit width after the complex multiplication.

[0056] In the embodiment of the present application, by performing maximum signal-to-noise ratio processing on the initial sampling signal, the fixed-point loss in the FFT process is reduced, and the data bit width is reduced by maximum signal-to-noise ratio processing in the FFT process, it is possible to avoid overflow of the data bit width caused by the continuous increase of the data bit width with each level of calculation, thereby avoiding the continuous increase of the data bit width in the FFT implementation process. The occupation of the processing resources of the signal processor is avoided, thereby reducing the implementation cost of the FFT.

[0057] Since there are multiple stages of butterfly operations in the FFT implementation process, in order to further avoid the increase of the data bit width in each intermediate stage of operation, therefore, in a possible implementation, the maximum signal-to-noise ratio processing is performed in each stage of butterfly operation to further control the increase of the data bit width in the FFT process.

[0058] Please refer to Figure 4 , which shows a flow chart of a signal processing method shown in another exemplary embodiment of the present application. The present application embodiment takes the method applied to a signal processor as an example for explanation, and the method includes:

[0059] Step 401: Acquire an initial sampling signal.

[0060] The implementation of this step may refer to step 301, and this embodiment will not be described in detail here.

[0061] Step 402, calculating an initial scaling factor corresponding to the input signal according to the initial real signal value, the initial imaginary signal value and the initial data bit width, where the initial data bit width is the sampling bit width corresponding to the initial sampling signal.

[0062] When representing the initial sampling signal, the initial sampling signal is represented as a complex number to participate in the signal processing operation. For example, the initial signal can be represented as: R si (n) = X si (n)+j·Y si (n), where R si (n) is the initial sampling signal, X si (n) is the real signal value corresponding to the initial sampling signal, Y si (n) is the imaginary signal value corresponding to the initial sampling signal, and j is the imaginary unit.

[0063] Optionally, the initial sampling signals (I / Q) may share the same index. For example, if the shared index is e, the initial sampling signal may be expressed as: R si (n) = I*2 e +Q*2 e .

[0064] In a possible implementation, for each data R si(n) When performing maximum signal-to-noise ratio processing, the principle is: each data R si (n) is shifted left to ensure that one of the highest bits of the input data (signal) I / Q is not 0. Correspondingly, during the processing, the initial scaling factor corresponding to the input signal is first calculated according to the initial real signal value, the initial imaginary signal value and the initial data bit width (sampling bit width) corresponding to the initial sampling signal, and then the input signal after the maximum signal-to-noise ratio processing is calculated according to the initial scaling factor and the initial sampling signal value.

[0065] In an illustrative example, the relationship between the scaling factor and the initial sampling signal can be expressed as:

[0066] S(n)=W-2-floor(log2(max(|X si (n)|,|Y si (n)|))) (1)

[0067] Among them, S(n) is the initial sampling signal R si (n) corresponds to the initial scaling factor, W is the initial data width, X si (n) is the initial real signal value, Y si (n) is the initial imaginary signal value, floor(x) represents the floor function, that is, taking the largest integer not greater than x, max(x) represents taking the maximum value, and |x| represents taking the absolute value.

[0068] In a possible implementation manner, the initial sampling signal represented in complex form is calculated in the manner shown in formula (1), so that the initial scaling factor corresponding to the input signal can be obtained.

[0069] Since a fixed scaling factor is not used in the embodiment of the present application, a buffer for storing the scaling factor is provided, and the size of the buffer is the maximum number of FFT points supported by the signal processor.

[0070] The number of FFT points is the number corresponding to the initial sampling signal. To facilitate FFT calculation, the initial sampling signal is usually taken to be an integer power of 2, for example, 16 points.

[0071] In a possible application scenario, after the maximum signal-to-noise ratio processing is performed on the initial sampling signal, the initial scaling factor needs to be stored in a buffer, and the input signal is sent to the FFT operation unit for FFT operation.

[0072] Step 403: Calculate and obtain an input signal according to the initial sampling signal and the initial scaling factor.

[0073] In a possible implementation, after the initial scaling factor is determined, the input signal after maximum signal-to-noise ratio processing may be calculated according to the initial sampling signal and the initial scaling factor.

[0074] In an exemplary example, the relationship between the input signal, the initial scaling factor and the initial sampled signal can be expressed as:

[0075] R si ′(n)=R si (n) 2 -s(n)

[0076] Among them, R si ′(n) represents the input signal (i.e. the sampled signal after maximum signal-to-noise ratio processing), R si (n) represents the initial sampling signal, and s(n) represents the initial scaling factor.

[0077] Step 404, perform k-level butterfly operations on the input signal, and perform maximum signal-to-noise ratio processing in each level of butterfly operations to obtain an output signal, where k is a positive integer and is related to the number of initial sampled signals.

[0078] The FFT operation is the superposition of various levels of butterfly operations. According to the characteristics of FFT, the number of butterfly operations included in the FFT is related to the number of initial sampled signals and the algorithm used by the FFT. Taking the time-decimated radix-2 algorithm as an example, if the number of initial sampled signals is 16 (2^4), the FFT includes 4 levels of butterfly operations. If the time-decimated radix-4 is taken as an example, the FFT includes two levels of butterfly operations (4^2).

[0079] Since each level of butterfly operation requires two complex additions and one complex multiplication, and the data bit width corresponding to the signal value after the operation may increase during the complex multiplication and complex addition processes, data bit width overflow or large data bit width may occur. Therefore, in order to avoid the phenomenon that the data bit width increases due to each level of butterfly operation, the maximum signal-to-noise ratio processing is performed on the results of each level of butterfly operation to achieve the purpose of reducing the data bit width. On the basis of taking into account that the data bit width is less than the data bit width threshold (no overflow will occur), the processing resources allocated by the signal processor when processing the signal can be saved.

[0080] In this embodiment, by performing maximum signal-to-noise ratio processing on the initial sampling signal, the loss of FFT fixed-point can be avoided. In addition, by performing maximum signal-to-noise ratio processing in each level of butterfly operation in the FFT, data overflow can be avoided during the butterfly operation process, and the increase in data bit width after each level of butterfly operation can be avoided, thereby avoiding the need to allocate more processing resources due to the increase in data bit width, thereby reducing the implementation cost of FFT.

[0081] Depend on Figure 1 It can be seen that in each stage of butterfly operation, two operation steps, radix operation and phase rotation operation, are required. Therefore, when performing maximum signal-to-noise ratio processing in the butterfly operation process, it is also necessary to consider the maximum signal-to-noise ratio processing processes in the two operation cases separately, that is, maximum signal-to-noise ratio processing is required after each operation.

[0082] exist Figure 4 On the basis of Figure 5 As shown, step 404 may include steps 404A to 404D.

[0083] Step 404A, performing a radix operation on the n-th stage input signal to obtain an n-th stage radix operation result, where n is a positive integer and the n-th stage input signal is an input signal of the n-th stage butterfly operation.

[0084] In the process of performing maximum signal-to-noise ratio processing on the butterfly operation, considering that the butterfly operation includes radix operation and phase rotation operation, and each operation may increase the data bit width, therefore, after performing radix operation on the input signal, it is necessary to perform maximum signal-to-noise ratio processing on the radix operation result, and then perform phase rotation operation on the output signal after maximum signal-to-noise ratio processing; similarly, after performing phase rotation operation on the output signal, it may be necessary to perform maximum signal-to-noise ratio processing on the phase rotation operation result before it can be used as the input signal of the next level of butterfly operation.

[0085] Since the FFT process includes k levels of butterfly operations, that is, an iterative process of k butterfly operations, in a possible implementation, after the signal processor obtains the n-th level input signal, it performs a radix operation on the n-th level input signal, first obtains the n-th level radix operation result, and then performs maximum signal-to-noise ratio processing on the n-th level radix operation result.

[0086] In an exemplary example, taking radix-2, 8-point FFT as an example, FFT includes 3 levels of butterfly operations. When n is 1, the first-level input signal (the first-level input signal is the signal after the initial sampling signal is processed with the maximum signal-to-noise ratio or the input signal of the first-level butterfly operation) is subjected to radix operation to obtain the first-level radix operation result, and then the first-level radix operation result is subjected to the maximum signal-to-noise ratio processing. When n is 2, the second-level input signal is the signal obtained after the first-level input signal is subjected to radix operation, maximum signal-to-noise ratio processing, phase rotation operation and maximum signal-to-noise ratio processing, and so on.

[0087] Step 404B, performing maximum signal-to-noise ratio processing on the n-th level radix operation result to obtain the n-th level output signal.

[0088] Different from the related art in which the radix operation result is directly subjected to phase rotation operation, in order to weaken or offset the increase in data bit width during the radix operation of the signal value, the embodiment of the present application first needs to perform maximum signal-to-noise ratio processing on the radix operation result after obtaining the radix operation result after the radix operation, so as to reduce the data bit width of the radix operation result and avoid the increase in the data bit width, and also ensure that the data bit width does not exceed the data bit width threshold.

[0089] Corresponding to step 404A, during the implementation process, after the signal processor obtains the nth level radix operation result, it first performs maximum signal-to-noise ratio processing on the nth level radix operation result to obtain an output signal for phase rotation operation, that is, the nth level output signal.

[0090] In an illustrative example, when n is 1, a radix operation is performed on the first-level input signal. After the first-level radix operation result is obtained, the first-level radix operation result is firstly subjected to maximum signal-to-noise processing, and the output signal obtained after the maximum signal-to-noise ratio processing is used as the first-level output signal.

[0091] Step 404C, performing a phase rotation operation on the n-th level output signal to obtain an n-th level phase rotation operation result.

[0092] In each stage of butterfly operation, radix operation is performed first, and then phase rotation operation is performed. Therefore, in a possible implementation, the signal processor inputs the n-th stage output signal after butterfly operation and maximum signal-to-noise ratio processing into the phase rotation operation unit to perform phase rotation operation, first obtain the n-th stage phase rotation operation result, and then perform maximum signal-to-noise ratio processing on the n-th stage phase rotation operation result.

[0093] Step 404D, performing maximum signal-to-noise ratio processing on the result of the n-th level phase rotation operation to obtain an n+1-th level input signal, wherein the input signal obtained after performing maximum signal-to-noise ratio processing on the result of the k-th level phase rotation operation is determined as the output signal.

[0094] Similar to the radix operation processing process mentioned above, after performing radix operation and maximum signal-to-noise ratio processing on the input signal, the obtained output signal is input into the phase rotation operation unit. Since there is complex multiplication in the phase rotation operation, the data bit width of the processed signal value may also increase. Therefore, in a possible implementation manner, it is necessary to perform maximum signal-to-noise ratio processing on the phase rotation operation result to reduce the data bit width before the next stage of butterfly operation can be performed.

[0095] In the FFT process, when the signal processor obtains the result of the n-th phase rotation operation, it first needs to perform maximum signal-to-noise ratio processing on it to avoid an increase in its data bit width, and then perform the next level of butterfly operation on the maximum signal-to-noise ratio processed result.

[0096] In an illustrative example, the operation process of the nth level butterfly operation includes: performing a radix operation on the nth level input signal to obtain a radix operation result, performing maximum signal-to-noise ratio processing on the radix operation result to obtain an nth level output signal, performing a phase rotation operation on the nth level output signal to obtain an nth level phase rotation operation result, performing maximum signal-to-noise ratio processing on the nth level phase rotation operation result to obtain an n+1th level input signal, and the n+1th level input signal is used to perform an n+1th level butterfly operation. The n+1th butterfly operation process is similar to the nth level butterfly operation process, and this embodiment will not be repeated here.

[0097] It should be noted that when n is equal to k, that is, when the FFT performs the last level (k level) butterfly operation, the input signal obtained after radix operation-maximum signal-to-noise ratio processing-phase rotation operation-maximum signal-to-noise ratio processing is determined as the output signal of the FFT.

[0098] In this embodiment, since each stage of butterfly operation includes radix operation and phase rotation operation, and both operations may cause the data bit width to increase, and the data bit width may exceed the data bit width threshold, in each stage of butterfly operation, a maximum signal-to-noise ratio processing step is added after the radix operation and the phase rotation operation to more accurately prevent the increase of the data bit width and avoid the overflow of the data bit width.

[0099] The above embodiments describe the role of maximum signal-to-noise ratio processing in the FFT implementation process, that is, maximum signal-to-noise ratio processing is required in each level of butterfly operation, and maximum signal-to-noise ratio processing is also required for the radix operation and phase rotation operation included in each level of butterfly operation. The following embodiments focus on describing the detailed process of performing maximum signal-to-noise ratio processing in each operation process.

[0100] Please refer to Figure 6 , which shows a flowchart of a method for performing maximum signal-to-noise ratio processing in a butterfly operation process shown in an exemplary embodiment of the present application. The embodiment of the present application takes the method applied to a signal processor as an example for explanation. The method includes:

[0101] Step 601: Perform a radix operation on a first input signal and a second input signal to obtain a first radix operation result and a second radix operation result.

[0102] Depend on Figure 1It can be seen that in each butterfly operation process, the input of the butterfly operation includes two signals, a first input signal and a second input signal, and the output is also two signals, namely, a first output signal and a second output signal. Therefore, in a possible implementation, when a radix operation is performed on the n-th level input signal, a radix operation is performed on the first input signal and the second input signal corresponding to the n-th level input signal. Correspondingly, after the radix operation, two radix operation results are also obtained, namely, a first radix operation result and a second radix operation result.

[0103] The process of performing radix operation on the first output signal and the second output signal may include the following steps:

[0104] 1. Obtain a first scaling factor corresponding to the first input signal and a second scaling factor corresponding to the second input signal.

[0105] In a possible implementation, during the radix operation, it is necessary to consider the scaling factor corresponding to each level of the input signal. Since the scaling factor changes dynamically and is stored in a buffer, when the radix operation is performed on the n-th level input signal, it is necessary to obtain the first scaling factor and the second scaling factor corresponding to the first input signal and the second input signal (n-th level input signal) from the buffer, respectively, for performing the radix operation.

[0106] Among them, since the maximum signal-to-noise ratio processing involves the update calculation of the scaling factor, the scaling factor corresponding to the nth level input signal is the updated scaling factor obtained after the maximum signal-to-noise ratio processing after the n-1th level butterfly operation, and is stored in the buffer.

[0107] 2. Calculate a first radix operation result and a second radix operation result according to the first input signal, the second input signal, the first scaling factor, and the second scaling factor.

[0108] Compared with the related art, each stage of butterfly operation uses a fixed scaling factor, and the corresponding scaling factor is not involved in the radix operation process. In the embodiment of the present application, since the scaling factor is updated at each stage, the scaling factor is used as an exponent in the radix operation process, and the radix operation is performed together with the first input signal and the second input signal.

[0109] In an exemplary example, taking the first radix operation result as an example, the radix calculation formula can be expressed as:

[0110] r′ sj+1 (m) = r sj (m) 2 s(m)+r sj (n) 2 s(n)

[0111] Among them, r′ sj+1 (m) represents the result of the first radix operation, r sj (m) represents the first input signal, r sj s(n) represents the second input signal, s(m) represents the first scaling factor corresponding to the first input signal, and s(n) represents the second scaling factor corresponding to the second input signal.

[0112] Due to the characteristics of butterfly operation, the result of the second radix operation can be expressed as:

[0113] r′ sj+1 (n) = r sj (m) 2 s(m) -r sj (n) 2 s(n)

[0114] Among them, r′ sj+1 (n) represents the result of the second radix operation.

[0115] Step 602: Perform maximum signal-to-noise ratio processing on the first radix operation result to obtain a first output signal.

[0116] Since two operation results, namely the first radix operation result and the second radix operation result, can be obtained after the radix operation, therefore, in the process of performing maximum signal-to-noise ratio processing on the radix operation result, it is also necessary to perform maximum signal-to-noise ratio processing on the two radix operation results respectively. In a possible implementation manner, the signal processor performs maximum signal-to-noise ratio processing on the first radix operation result to obtain a first output signal corresponding to the n-th level output signal, which is used for subsequent phase rotation operation.

[0117] The process of performing maximum signal-to-noise ratio processing on the first radix operation result may include the following steps:

[0118] 1. Obtain a first real signal value, a first imaginary signal value, and a data bit width corresponding to the first radix operation result.

[0119] During the maximum signal-to-noise ratio processing, it is necessary to pay real-time attention to the data bit width corresponding to the radix operation result, and updating the scaling factor is related to the radix operation result. Therefore, in a possible implementation, when performing maximum signal-to-noise ratio processing on the first radix operation result, it is first necessary to obtain the first real signal value and the first imaginary signal value corresponding to the first radix operation result so as to calculate the updated scaling factor.

[0120] Since updating the scaling factor is related to the current data bit width of the first radix operation result, for example, if the data bit width of the first radix operation result is larger, the corresponding scaling factor is larger. Therefore, when calculating the scaling factor, it is also necessary to obtain the data bit width corresponding to the first radix operation result.

[0121] In a possible implementation, after the signal processor obtains the first radix operation result, it is necessary to obtain the first real signal value, the second imaginary signal value and the corresponding data bit width corresponding to the first radix operation result.

[0122] 2. Calculate a scaling factor corresponding to the first output signal according to the first real signal value, the first imaginary signal value, and the data bit width corresponding to the first radix operation result.

[0123] In a possible implementation, after obtaining the first real signal value, the first imaginary signal value and the data bit width (first radix operation result) corresponding to the first radix operation result, the scaling factor corresponding to the first output signal can be calculated according to the scaling factor formula to achieve the purpose of updating the scaling factor.

[0124] In an exemplary example, taking the first output signal as an example, the calculation formula of the scaling factor can be expressed as:

[0125] s′(m)=W-2-floor(log2(max(|X sj (m)|,|Y sj (m)|))) (2)

[0126] Wherein, s′(m) is the scaling factor corresponding to the first output signal (i.e., the scaling factor updated in the maximum signal-to-noise ratio processing), W is the data bit width corresponding to the first radix operation result, and X sj (m) represents the first real signal value corresponding to the first radix operation result, Y sj (m) represents the first imaginary signal value corresponding to the first radix operation result.

[0127] 3. Calculate and obtain the first output signal according to the scaling factor corresponding to the first output signal and the first radix operation result.

[0128] In a possible implementation, the updated scaling factor is used as an exponent to calculate the first output signal according to the first radix operation result and the updated scaling factor.

[0129] In an illustrative example, the relationship between the first output signal and the first radix operation result can be expressed as:

[0130] r sj+1 (m) = r′ sj+1 (m) 2 -s′(m) (3)

[0131] Among them, r sj+1 (m) represents the first output signal, r′ sj+1 (m) represents the first radix operation result, and s′(m) represents the updated scaling factor (ie, the scaling factor corresponding to the first output signal).

[0132] Step 603: Perform maximum signal-to-noise ratio processing on the second radix operation result to obtain a second output signal.

[0133] Similar to the maximum signal-to-noise ratio processing of the radix operation result mentioned above, after the signal processor obtains the second radix operation result, it will not directly perform phase rotation operation on the second radix operation result, but will first perform maximum signal-to-noise ratio processing on the second radix operation result, thereby reducing the data bit width increased during the radix operation process, and obtaining the second output signal after maximum signal-to-noise ratio processing, thereby ensuring that the data bit width of the second output signal is lower than the data bit width threshold.

[0134] The method of performing maximum signal-to-noise ratio processing on the second radix operation result may include the following steps:

[0135] 1. Obtain a second real signal value, a second imaginary signal value, and a data bit width corresponding to the second radix operation result.

[0136] Similar to the maximum signal-to-noise ratio processing of the first radix operation result above, in the process of performing maximum signal-to-noise ratio processing on the second radix operation result, it is also necessary to obtain the second real signal value, the second imaginary signal value and the corresponding data bit width corresponding to the second radix operation result for updating the scaling factor.

[0137] 2. Calculate a scaling factor corresponding to the second output signal according to the second real signal value, the second imaginary signal value, and the data bit width corresponding to the second radix operation result.

[0138] In a possible implementation, after obtaining the second real signal value, the second imaginary signal value and the data bit width corresponding to the second radix operation result, the scaling factor corresponding to the second output signal can be calculated according to the scaling factor formula to achieve the purpose of updating the scaling factor.

[0139] In an exemplary example, the calculation formula of the scaling factor corresponding to the second output signal may be:

[0140] s′(n)=W-2-floor(log2(max(|X sj (n)|,|Y sj (n)|)))

[0141] Wherein, s′(n) represents the scaling factor corresponding to the second output signal (i.e., the scaling factor updated during the maximum signal-to-noise ratio processing), W represents the data bit width corresponding to the second radix operation result, and X sj (n) represents the second real signal value corresponding to the second radix operation result, Y sj (n) represents the second imaginary signal value corresponding to the second radix operation result.

[0142] 3. Calculate and obtain the second output signal according to the scaling factor corresponding to the second output signal and the second radix operation result.

[0143] In a possible implementation, the updated scaling factor is used as an index to calculate the second output signal after maximum signal-to-noise ratio processing according to the second radix operation result and the updated scaling factor.

[0144] In an illustrative example, the relationship between the second output signal and the second radix operation result can be expressed as:

[0145] r sj+1 (n) = r′ sj+1 (n) 2 -s′(n)

[0146] Among them, r sj+1 (n) represents the second output signal, r′ sj+1 s′(n) represents the second radix operation result, and s′(n) represents the updated scaling factor (ie, the scaling factor corresponding to the second output signal).

[0147] In an illustrative example, Figure 7 As shown, it shows a schematic diagram of a radix operation shown in an exemplary embodiment of the present application. j represents the j-th level butterfly operation, where r sj (m) represents the first input signal corresponding to the j-th level input signal, r sj s(n) represents the second input signal corresponding to the j-th level input signal, s(m) represents the first scaling factor corresponding to the first output signal, s(n) represents the second scaling factor corresponding to the second output signal, r sj+1 (m) represents the first output signal corresponding to the j-th level output signal, r sj+1(n) represents the second output signal corresponding to the j-th level output signal, s′(m) represents the scaling factor corresponding to the first output signal (the scaling factor updated during the maximum signal-to-noise ratio processing), and s′(n) represents the scaling factor corresponding to the second output signal (the scaling factor updated during the maximum signal-to-noise ratio processing). sj (m), r sj (n) to r sj+1 (m), r sj+1 The process of (n) can refer to the above embodiment.

[0148] Step 604: perform a phase rotation operation on the first output signal to obtain a first phase rotation operation result.

[0149] The first output signal is a signal obtained by subjecting the first radix operation result to maximum signal-to-noise ratio processing.

[0150] There are two situations in the phase rotation operation process, one is that no complex multiplication operation is required, and the other is that complex multiplication operation is required. Among them, the multiplication operation may increase the data bit width. Therefore, maximum signal-to-noise ratio processing is required after the phase rotation operation unit. In addition, for the case where complex multiplication operation is not required, maximum signal-to-noise ratio processing may not be required, or maximum signal-to-noise ratio processing may be performed, which can further reduce the data bit width.

[0151] In an illustrative example, for a phase rotation unit that needs to perform a complex multiplication operation, the calculation formula of the phase rotation operation result can be expressed as:

[0152]

[0153] Among them, r′ sj+1 (m) represents the first phase rotation calculation result, r sj (m) is the first output signal (i.e., the first radix operation result after maximum signal-to-noise ratio processing), is the rotation factor in FFT,

[0154] Step 605: perform a phase rotation operation on the second output signal to obtain a second phase rotation operation result.

[0155] The second output signal is a signal obtained by performing maximum signal-to-noise ratio processing on the second radix operation result.

[0156] The calculation method for the second phase rotation operation result may refer to the first phase rotation operation result, which will not be described in detail in this embodiment.

[0157] Step 606: Perform maximum signal-to-noise ratio processing on the first phase rotation operation result to obtain a first input signal corresponding to the (n+1)th level input signal.

[0158] Similar to the radix operation, different from the related art, in which the phase rotation operation result is directly used as the input signal of the next stage butterfly operation, in order to avoid the increase of data bit width, the embodiment of the present application needs to perform maximum signal-to-noise ratio processing on the phase rotation operation result.

[0159] In a possible implementation, after the signal processor obtains the first phase rotation operation result, it performs maximum signal-to-noise ratio processing on the first phase rotation operation result to obtain the first input signal of the next stage butterfly operation, that is, the first input signal in the n+1th stage input signal.

[0160] In a possible implementation manner, the process of performing maximum signal-to-noise ratio processing on the first phase rotation operation result may include the following steps:

[0161] 1. Obtain a third real signal value, a third imaginary signal value, and a data bit width corresponding to the first phase rotation operation result.

[0162] Similar to the maximum signal-to-noise ratio processing of the radix operation result, when the maximum signal-to-noise ratio processing is performed on the phase rotation operation result, it is also necessary to obtain the real signal value, the imaginary signal value and the data bit width corresponding to the first phase rotation operation result, which are used to update the scaling factor, that is, to obtain the third real signal value, the third imaginary signal value and the corresponding data bit width corresponding to the first phase rotation operation result.

[0163] 2. Calculate the first scaling factor corresponding to the first input signal in the (n+1)th level input signal according to the third real signal value, the third imaginary signal value and the data bit width corresponding to the first phase rotation operation result.

[0164] Among them, during the butterfly operation, the data bit width of each level changes dynamically, and the data bit widths of different levels may be different, but it is necessary to ensure that the data bit width of each level is lower than the data bit width threshold.

[0165] In one possible implementation, the data bit width corresponding to the third real signal value, the third imaginary signal value, and the first phase rotation operation result is input into a preset scaling factor calculation formula, and the scaling factor corresponding to the first input signal in the n+1th level input signal can be calculated, that is, the scaling factor updated after the first phase rotation operation result is subjected to maximum signal-to-noise ratio processing.

[0166] The scaling factor calculation formula may refer to formula (2) in the above embodiment, and will not be described in detail in this embodiment.

[0167] 3. According to the first scaling factor and the first phase rotation operation result corresponding to the first input signal in the n+1th level input signal, the first input signal corresponding to the n+1th level input signal is calculated and obtained.

[0168] In a possible implementation, when performing maximum signal-to-noise ratio processing on the first phase rotation operation result, the updated scaling factor is used as an index and is operated on the first phase rotation operation result to obtain a signal after maximum signal-to-noise ratio processing, that is, the first input signal corresponding to the n+1th level input signal.

[0169] The formula for calculating the first output signal according to the first phase rotation operation result can refer to the formula (3) in the above embodiment, and the embodiment of the present application will not be described in detail here.

[0170] Step 607: Perform maximum signal-to-noise ratio processing on the result of the second phase rotation operation to obtain a second input signal corresponding to the n+1th level input signal.

[0171] Similar to the maximum signal-to-noise ratio processing performed on the first phase rotation operation result in the above embodiment, after the signal processor obtains the second phase rotation operation result, it is also necessary to perform maximum signal-to-noise ratio processing on the second phase rotation operation result before using it as the input for the subsequent n+1th stage butterfly operation.

[0172] The method of performing maximum signal-to-noise ratio processing on the second phase rotation operation result may include the following steps:

[0173] 1. Obtain a fourth real signal value, a fourth imaginary signal value, and a data bit width corresponding to the second phase rotation operation result.

[0174] Since the process of performing maximum signal-to-noise ratio processing on the second phase rotation operation result involves updating of the scaling factor, and the updating process of the scaling factor requires the participation of the signal value and the data bit width, therefore, in a possible implementation, during the process of performing maximum signal-to-noise ratio processing on the second phase rotation operation result, it is necessary to obtain the fourth real signal value, the fourth imaginary signal value and the corresponding data bit width corresponding to the second phase rotation operation result, so as to calculate the updated scaling factor.

[0175] 2. Calculate the second scaling factor corresponding to the second input signal in the (n+1)th level input signal according to the fourth real signal value, the fourth imaginary signal value and the data bit width corresponding to the second phase rotation operation result.

[0176] In one possible implementation, after the signal processor obtains the data bit width corresponding to the fourth real signal value, the fourth imaginary signal value, and the second phase rotation operation result, the above three data can be substituted into a preset scaling factor formula to calculate the updated scaling factor, that is, the second scaling factor corresponding to the second input signal in the n+1th level input signal.

[0177] The formula for calculating the scaling factor according to the real signal value, the imaginary signal value and the data bit width can refer to the above embodiment, which will not be described in detail in this embodiment.

[0178] 3. According to the second scaling factor and the second phase rotation operation result corresponding to the second input signal in the n+1th level input signal, the second input signal corresponding to the n+1th level input signal is calculated and obtained.

[0179] In a possible implementation, after the updated scaling factor is obtained, the second input signal corresponding to the n+1th level input signal can be calculated based on the scaling factor and the second phase rotation operation result.

[0180] The formula for calculating the signal value according to the phase rotation operation result and the scaling factor can refer to the above embodiment, and this embodiment will not be described in detail here.

[0181] In an illustrative example, Figure 8 As shown, it shows a schematic diagram of a phase rotation operation shown in an exemplary embodiment of the present application. sj (m) represents the first output signal in the j-th butterfly operation (i.e., the signal input to the phase rotation operation unit), s(m) represents the scaling factor corresponding to the first output signal, r sj+1 (m) represents r sj (m) is the first output signal after phase rotation operation and maximum signal-to-noise ratio processing, s′(m) represents the scaling factor corresponding to the first output signal, It represents the rotation factor. After the phase rotation operation, the maximum signal-to-noise ratio processing is performed, which involves the update of the scaling factor, that is, the scaling factor is updated from s(m) to s′(m).

[0182] In this embodiment, a process of performing maximum signal-to-noise ratio processing during radix operation and phase rotation operation is described. Compared with the related art, by performing maximum signal-to-noise ratio processing on the radix operation result, an increase in data bit width during the radix operation can be avoided. At the same time, by performing maximum signal-to-noise ratio processing on the phase rotation operation result, an increase in data bit width during the phase rotation operation can be avoided, thereby avoiding the occupation of signal processor processing resources due to the increase in data bit width during FFT implementation, thereby reducing the implementation cost of FFT.

[0183] It should be noted that the embodiments of the present application are only illustrated by taking FFT as an example. In other possible implementations, in the IFFT process, the various signal processing methods provided in the embodiments of the present application are also applicable.

[0184] Please refer to Fig. 9 , which shows a structural block diagram of a signal processor provided by an exemplary embodiment of the present application. The signal processor 900 includes a sampling unit 901, a first maximum signal-to-noise ratio processing unit 902, a fast Fourier transform operation unit 903 and a second maximum signal-to-noise ratio processing unit 904.

[0185] The sampling unit 901 is used to obtain an initial sampling signal;

[0186] The first maximum signal-to-noise ratio processing unit 902 is used to perform maximum signal-to-noise ratio processing on the initial sampling signal to obtain an input signal;

[0187] The fast Fourier transform operation unit 903 and the second maximum signal-to-noise ratio processing unit 904 are used to process the input signal to obtain an output signal.

[0188] Optionally, the fast Fourier transform operation includes a k-level butterfly operation, where k is a positive integer and is related to the number of the initial sampling signals;

[0189] The fast Fourier transform operation unit 903 and the second maximum signal-to-noise ratio processing unit 904 are also used for:

[0190] The input signal is subjected to k-level butterfly operations, and maximum signal-to-noise ratio processing is performed in each level of butterfly operations to obtain the output signal.

[0191] Optionally, the butterfly operation includes a radix operation and a phase rotation operation;

[0192] The fast Fourier transform operation unit 903 and the second maximum signal-to-noise ratio processing unit 904 are also used for:

[0193] Performing a radix operation on an n-th level input signal to obtain an n-th level radix operation result, where n is a positive integer, and the n-th level input signal is an input signal of an n-th level butterfly operation;

[0194] Performing maximum signal-to-noise ratio processing on the n-th level radix operation result to obtain an n-th level output signal;

[0195] Performing a phase rotation operation on the n-th level output signal to obtain an n-th level phase rotation operation result;

[0196] The maximum signal-to-noise ratio processing is performed on the nth level phase rotation operation result to obtain the n+1th level input signal, wherein the input signal obtained after the maximum signal-to-noise ratio processing is performed on the kth level phase rotation operation result is determined as the output signal.

[0197] The fast Fourier transform operation unit 903 and the second maximum signal-to-noise ratio processing unit 904 are also used for:

[0198] Performing a radix operation on the first input signal and the second input signal to obtain a first radix operation result and a second radix operation result;

[0199] Performing maximum signal-to-noise ratio processing on the first radix operation result to obtain the first output signal;

[0200] Performing maximum signal-to-noise ratio processing on the second radix operation result to obtain the second output signal;

[0201] Performing a phase rotation operation on the first output signal to obtain a first phase rotation operation result;

[0202] performing a phase rotation operation on the second output signal to obtain a second phase rotation operation result;

[0203] Performing maximum signal-to-noise ratio processing on the first phase rotation operation result to obtain a first input signal corresponding to the n+1th level input signal;

[0204] Perform maximum signal-to-noise ratio processing on the second phase rotation operation result to obtain a second input signal corresponding to the n+1th level input signal.

[0205] Optionally, the fast Fourier transform operation unit 903 is further used for:

[0206] Acquire a first scaling factor corresponding to the first input signal and a second scaling factor corresponding to the second input signal;

[0207] The first radix operation result and the second radix operation result are obtained by calculation according to the first input signal, the second input signal, the first scaling factor and the second scaling factor.

[0208] Optionally, the second maximum signal-to-noise ratio processing unit 904 is further configured to:

[0209] Obtaining a first real signal value, a first imaginary signal value, and a data bit width corresponding to the first radix operation result;

[0210] Calculate a scaling factor corresponding to the first output signal according to the first real signal value, the first imaginary signal value and the first radix operation result;

[0211] The first output signal is obtained by calculation according to the scaling factor corresponding to the first output signal and the first radix operation result;

[0212] Optionally, the second maximum signal-to-noise ratio processing unit 904 is further configured to:

[0213] Obtain a second real signal value, a second imaginary signal value, and a data bit width corresponding to the second radix operation result;

[0214] Calculate a scaling factor corresponding to the second output signal according to the second real signal value, the second imaginary signal value, and a data bit width corresponding to the second radix operation result;

[0215] The second output signal is obtained by calculation according to the scaling factor corresponding to the second output signal and the second radix operation result.

[0216] Optionally, the second maximum signal-to-noise ratio processing unit 904 is further configured to:

[0217] Acquire a third real signal value and a third imaginary signal value corresponding to the first phase rotation operation result and a data bit width corresponding to the first phase rotation operation result;

[0218] Calculate a first scaling factor corresponding to a first input signal in the n+1th level input signal according to the third real signal value, the third imaginary signal value and the data bit width corresponding to the first phase rotation operation result;

[0219] The first input signal corresponding to the n+1th level input signal is obtained by calculation according to the first scaling factor corresponding to the first input signal in the n+1th level input signal and the first phase rotation operation result.

[0220] Optionally, the second maximum signal-to-noise ratio processing unit 904 is further configured to:

[0221] Acquire a fourth real signal value, a fourth imaginary signal value, and a data bit width corresponding to the second phase rotation operation result;

[0222] Calculate a second scaling factor corresponding to the second input signal in the (n+1)th level input signal according to the fourth real signal value, the fourth imaginary signal value and the data bit width corresponding to the second phase rotation operation result;

[0223] The second input signal corresponding to the n+1th level input signal is obtained by calculation according to the second scaling factor corresponding to the second input signal in the n+1th level input signal and the second phase rotation operation result.

[0224] Optionally, the first maximum signal-to-noise ratio processing unit 902 is further configured to:

[0225] Calculating an initial scaling factor corresponding to the input signal according to the initial real signal value, the initial imaginary signal value and an initial data bit width, wherein the initial data bit width is a sampling bit width corresponding to the initial sampling signal;

[0226] The input signal is obtained by calculation according to the initial sampling signal and the initial scaling factor.

[0227] In the embodiment of the present application, during the FFT implementation process, the initial sampling signal is subjected to maximum signal-to-noise ratio processing to reduce the fixed-point loss during the FFT process, and the data bit width is reduced by the maximum signal-to-noise ratio processing during the FFT process. This can avoid overflow of the data bit width caused by the continuous increase of the data bit width with each level of calculation, thereby avoiding the occupation of the processing resources of the signal processor due to the continuous increase of the data bit width during the FFT implementation process, thereby reducing the implementation cost of the FFT.

[0228] Please refer to Fig.10 , which shows a schematic diagram of the structure of a computer device provided by an exemplary embodiment of the present application.

[0229] The computer device 1000 includes a signal processor 1001 and a memory 1002. The signal processor 1001 may be a DSP or an ASIC, which is not limited in the present embodiment. When the signal processor 1001 is running, it can be used to implement the signal processing methods shown in the above embodiments.

[0230] An embodiment of the present application further provides a computer-readable storage medium, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the signal processing method described in the above embodiments.

[0231] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The signal processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device performs the signal processing method provided in various optional implementations of the above aspects.

[0232] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0233] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A signal processing method, characterized in that: The method comprises: Obtaining an initial sampling signal; Performing maximum signal-to-noise ratio processing on the initial sampling signal to obtain an input signal, wherein a data bit width corresponding to the input signal after the maximum signal-to-noise ratio processing is lower than a data bit width threshold; Performing a radix operation on an n-th level input signal to obtain an n-th level radix operation result, where n is a positive integer, and the n-th level input signal is an input signal of an n-th level butterfly operation; performing maximum signal-to-noise ratio processing on the n-th level radix operation result to obtain an n-th level output signal; wherein the n-th level input signal includes a first input signal and a second input signal, and the n-th level output signal includes a first output signal and a second output signal; Performing a phase rotation operation on the first output signal to obtain a first phase rotation operation result; performing a phase rotation operation on the second output signal to obtain a second phase rotation operation result; Obtaining a third real signal value, a third imaginary signal value, and a data bit width corresponding to the first phase rotation operation result corresponding to the first phase rotation operation result; calculating a first scaling factor corresponding to a first input signal in the n+1th level input signal according to the third real signal value, the third imaginary signal value, and the data bit width corresponding to the first phase rotation operation result; calculating a first input signal corresponding to the n+1th level input signal according to the first scaling factor corresponding to the first input signal in the n+1th level input signal and the first phase rotation operation result; Obtain a fourth real signal value, a fourth imaginary signal value, and a data bit width corresponding to the second phase rotation operation result corresponding to the second phase rotation operation result; calculate a second scaling factor corresponding to the second input signal in the n+1th level input signal according to the fourth real signal value, the fourth imaginary signal value, and the data bit width corresponding to the second phase rotation operation result; calculate a second input signal corresponding to the n+1th level input signal according to the second scaling factor corresponding to the second input signal in the n+1th level input signal and the second phase rotation operation result, wherein 0<n≤k, k is a positive integer and is related to the number of the initial sampling signals, and the input signal obtained after performing maximum signal-to-noise ratio processing on the kth level phase rotation operation result is determined as the output signal, and the data bit width of the output signal after the maximum signal-to-noise ratio processing is less than the data bit width threshold.

2. The method according to claim 1, characterized in that: The performing a radix operation on the n-th level input signal to obtain an n-th level radix operation result includes: Performing a radix operation on the first input signal and the second input signal to obtain a first radix operation result and a second radix operation result; The performing maximum signal-to-noise ratio processing on the n-th level radix operation result to obtain the n-th level output signal includes: Performing maximum signal-to-noise ratio processing on the first radix operation result to obtain the first output signal; Perform maximum signal-to-noise ratio processing on the second radix operation result to obtain the second output signal.

3. The method according to claim 2, characterized in that The performing a radix operation on the first input signal and the second input signal to obtain a first radix operation result and a second radix operation result includes: Acquire a first scaling factor corresponding to the first input signal and a second scaling factor corresponding to the second input signal; The first radix operation result and the second radix operation result are obtained by calculation according to the first input signal, the second input signal, the first scaling factor and the second scaling factor.

4. The method according to claim 3, characterized in that The performing maximum signal-to-noise ratio processing on the first radix operation result to obtain the first output signal includes: Obtaining a first real signal value, a first imaginary signal value, and a data bit width corresponding to the first radix operation result; Calculate a scaling factor corresponding to the first output signal according to the first real signal value, the first imaginary signal value, and a data bit width corresponding to the first radix operation result; The first output signal is obtained by calculation according to the scaling factor corresponding to the first output signal and the first radix operation result; The performing maximum signal-to-noise ratio processing on the second radix operation result to obtain the second output signal includes: Obtain a second real signal value, a second imaginary signal value, and a data bit width corresponding to the second radix operation result; Calculate a scaling factor corresponding to the second output signal according to the second real signal value, the second imaginary signal value, and a data bit width corresponding to the second radix operation result; The second output signal is obtained by calculation according to the scaling factor corresponding to the second output signal and the second radix operation result.

5. The method according to any one of claims 1 to 4, characterized in that: The initial sampling signal is composed of an initial real signal value and an initial imaginary signal value; The performing maximum signal-to-noise ratio processing on the initial sampling signal to obtain an input signal comprises: Calculating an initial scaling factor corresponding to the input signal according to the initial real signal value, the initial imaginary signal value and an initial data bit width, wherein the initial data bit width is a sampling bit width corresponding to the initial sampling signal; The input signal is obtained by calculation according to the initial sampling signal and the initial scaling factor.

6. A signal processor, characterized in that: The signal processor comprises a sampling unit, a fast Fourier transform operation unit, a first maximum signal-to-noise ratio processing unit and a second maximum signal-to-noise ratio processing unit; The sampling unit is used to obtain an initial sampling signal; The first maximum signal-to-noise ratio processing unit is used to perform maximum signal-to-noise ratio processing on the initial sampling signal to obtain an input signal; The fast Fourier transform operation unit and the second maximum signal-to-noise ratio processing unit are used to perform a radix operation on the n-th level input signal to obtain the n-th level radix operation result, where n is a positive integer, and the n-th level input signal is the input signal of the n-th level butterfly operation; perform maximum signal-to-noise ratio processing on the n-th level radix operation result to obtain the n-th level output signal; wherein the n-th level input signal includes a first input signal and a second input signal, and the n-th level output signal includes a first output signal and a second output signal; perform a phase rotation operation on the first output signal to obtain a first phase rotation operation result; perform a phase rotation operation on the second output signal to obtain a second phase rotation operation result; obtain a third real signal value, a third imaginary signal value, and a data bit width corresponding to the first phase rotation operation result corresponding to the first phase rotation operation result; and calculate a first scaling factor corresponding to the first input signal in the n+1-th level input signal according to the third real signal value, the third imaginary signal value, and the data bit width corresponding to the first phase rotation operation result. ; According to the first scaling factor corresponding to the first input signal in the n+1th level input signal and the first phase rotation operation result, the first input signal corresponding to the n+1th level input signal is calculated; the fourth real signal value, the fourth imaginary signal value and the data bit width corresponding to the second phase rotation operation result are obtained; according to the fourth real signal value, the fourth imaginary signal value and the data bit width corresponding to the second phase rotation operation result, the second scaling factor corresponding to the second input signal in the n+1th level input signal is calculated; according to the second scaling factor corresponding to the second input signal in the n+1th level input signal and the second phase rotation operation result, the second input signal corresponding to the n+1th level input signal is calculated, wherein 0<n≤k, k is a positive integer and is related to the number of the initial sampling signals, the input signal obtained after the kth level phase rotation operation result is subjected to the maximum signal-to-noise ratio processing is determined as the output signal, and the data bit width of the output signal after the maximum signal-to-noise ratio processing is less than the data bit width threshold.

7. A computer device, characterized in that: The computer device includes a signal processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the signal processor to implement the signal processing method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a signal processor to implement the signal processing method as described in any one of claims 1 to 5.