Linear filtering method and device based on overlap-addition method

By transferring data to the GPU for calculation during filtering processing, the problem of CPU computing pressure in the existing technology is solved, and more efficient signal filtering processing is achieved.

CN118432583BActive Publication Date: 2024-09-17CHENGDU BLUE ORIGIN TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410891040.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-17
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

Existing filtering solutions put great pressure on the CPU's computing power. Especially when computing requirements increase, it is difficult to effectively reduce hardware pressure.

Method used

A linear filtering method based on overlapping addition is used to store the original signal data in page-locked memory and call it to the video memory. Through forward Fourier transform, filtering and inverse Fourier transform processing, the filtering operation is transferred to the GPU to reduce CPU load. burden.

Benefits of technology

It effectively reduces the hardware pressure on the CPU, improves the efficiency of signal filtering processing, and reduces the burden of computing requirements on the hardware.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118432583B
    Figure CN118432583B
Patent Text Reader

Abstract

The present application provides a linear filtering method and device based on overlap-addition method, wherein the linear filtering method based on overlap-addition method includes: storing the collected original signal data in page-locked memory, and calling the original signal data to video memory when the preset calling conditions are met; intercepting the original signal data to obtain local signal data, and filling the local signal data with 0 points to obtain sample data; performing forward Fourier transform processing on the sample data to obtain sample frequency domain data; filtering the sample frequency domain data by preset target signal parameters to obtain target frequency domain data; performing inverse Fourier transform processing on the target frequency domain data to obtain target signal data, and storing the target signal data in the page-locked memory. Linear filtering of the signal is realized, and the filtering operation process is transferred to the GPU to reduce hardware pressure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a linear filtering method based on overlap-addition method. The present application also relates to a linear filtering device based on overlap-addition method, a computing device, and a computer-readable storage medium. Background Art

[0002] Existing filtering solutions often filter signals through the CPU. However, this processing method puts a test on the CPU's computing power. As computing demands continue to grow, the CPU's hardware pressure continues to increase. Therefore, a method is urgently needed to reduce the CPU's hardware pressure when performing filtering tasks. Summary of the invention

[0003] In view of this, the present application provides a linear filtering method based on overlap-addition method to solve the technical defects existing in the prior art. The present application also provides a linear filtering device based on overlap-addition method, a computing device, and a computer-readable storage medium.

[0004] According to a first aspect of the present application, a linear filtering method based on an overlap-addition method is provided, comprising:

[0005] S10, storing the collected original signal data in a page-locked memory, and when a preset calling condition is met, calling the original signal data to a video memory;

[0006] S20, intercepting the original signal data to obtain local signal data, and performing zero-point padding on the local signal data to obtain sample data;

[0007] S30, performing forward Fourier transform processing on the sample data to obtain sample frequency domain data;

[0008] S40, filtering the sample frequency domain data by using a preset target signal parameter to obtain target frequency domain data;

[0009] S50, performing inverse Fourier transform processing on the target frequency domain data to obtain target signal data, and storing the target signal data in the page-locked memory.

[0010] Optionally, the step S10 includes:

[0011] Selecting a page-locked sub-memory in a to-be-written state as a target page-locked sub-memory, wherein the page-locked sub-memory includes a plurality of page-locked sub-memories;

[0012] Adjusting the state of the target page locked sub-memory to a write state, and storing the collected original signal data in the target page locked sub-memory;

[0013] When the target page locked sub-memory is full, asynchronously calling the data in the target page locked sub-memory to the video memory, and selecting a page locked sub-memory in a to-be-written state as the target page locked sub-memory step, wherein:

[0014] When the data in the target page-locked sub-memory is called, the state of the target page-locked sub-memory is adjusted to a waiting-to-write state.

[0015] Optionally, the steps S10-S50 include:

[0016] In step S10, a sub-video memory in a to-be-processed state is selected as a target sub-video memory, and the original signal data is transferred to the target sub-video memory, wherein the video memory includes a plurality of sub-video memories;

[0017] Adjust the state of the target sub-video memory to a processing state, and execute steps S20-S50;

[0018] When the processing of the original signal data in the target sub-video memory is completed and the target signal data is obtained, the steps of storing the target signal data in the page-locked memory and selecting a sub-video memory in a pending state as the target sub-video memory are asynchronously performed, wherein:

[0019] When the data storage in the target sub-video memory is completed, the state of the target sub-video memory is adjusted to a pending state.

[0020] Optionally, the step S20 includes:

[0021] intercepting the original signal data to obtain the local signal data in the form of N / 2 points;

[0022] The local signal data is filled with N / 2 zero points to obtain the sample data.

[0023] Optionally, after step S30, the method further includes:

[0024] Steps S10 to S30 are repeatedly executed to process the continuously input original signal.

[0025] Optionally, the step S40 includes:

[0026] Calculate the ratio between the bandwidth parameter in the target signal parameter and the sampling frequency of the original signal data to obtain the cutoff frequency;

[0027] According to the cut-off frequency, generating low-pass filter coefficients in the form of N / 2+1 points;

[0028] Filling the low-pass filter coefficient with 0 points of N / 2-1 to obtain filtered data, and performing forward Fourier transform processing on the filtered data to obtain filtered frequency domain data;

[0029] The sample frequency domain data is filtered through the filtered frequency domain data to obtain the target frequency domain data.

[0030] Optionally, filtering the sample frequency domain data through the filtered frequency domain data to obtain the target frequency domain data includes:

[0031] Determine the intercepted frequency domain sample point width according to the target signal sampling rate in the target signal parameter and the sampling frequency of the original signal data;

[0032] The filtered frequency domain data is intercepted according to the intercepted frequency domain sample point width to obtain low-pass filtered frequency domain data;

[0033] Based on the low-pass filtered frequency domain data, the sample frequency domain data is filtered to obtain the target frequency domain data.

[0034] Optionally, filtering the sample frequency domain data based on the low-pass filtered frequency domain data to obtain the target frequency domain data includes:

[0035] Determine the intercept frequency domain center sample point index by using the target signal frequency deviation in the target signal parameter and the sampling frequency of the original signal data;

[0036] Based on the intercepted frequency domain center sample point index and the intercepted frequency domain sample point width, intercepting the sample frequency domain data to obtain local frequency domain data;

[0037] The local frequency domain data is multiplied by the low-pass filtered frequency domain data to obtain target frequency domain data.

[0038] Optionally, the step S50 includes:

[0039] Performing inverse Fourier transform processing on the target frequency domain data to obtain transition signal data;

[0040] The first 1 / 2 point data of the transition signal data is intercepted and added to the last 1 / 2 point data of the previous batch of transition signal data to obtain the target signal data;

[0041] The target signal data is stored in the page-locked memory, and the last 1 / 2 point data of the transition signal data is saved, waiting to be added with the first 1 / 2 point data of the next batch of transition signal data.

[0042] According to a second aspect of the present application, a linear filtering device based on an overlap-addition method is provided, comprising:

[0043] The acquisition module is configured to store the acquired raw signal data into the page-locked memory, and when a preset calling condition is met, call the raw signal data into the video memory;

[0044] A filling module is configured to intercept the original signal data to obtain local signal data, and perform zero-point filling on the local signal data to obtain sample data;

[0045] A time-domain to frequency-domain conversion module is configured to perform forward Fourier transform processing on the sample data to obtain sample frequency-domain data;

[0046] A filtering module is configured to filter the sample frequency domain data by using preset target signal parameters to obtain target frequency domain data;

[0047] The frequency domain to time domain conversion module is configured to perform inverse Fourier transform processing on the target frequency domain data to obtain target signal data, and store the target signal data in the page-locked memory.

[0048] According to a third aspect of the present application, there is provided a computing device, including:

[0049] Memory and processor;

[0050] The memory is used to store computer executable instructions, and the processor implements the steps of the overlap-addition-based linear filtering method when executing the computer executable instructions.

[0051] According to a fourth aspect of the present application, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the linear filtering method based on the overlap-addition method are implemented.

[0052] According to a fifth aspect of the present application, a chip is provided, which stores a computer program, and when the computer program is executed by the chip, the steps of the linear filtering method based on the overlap-addition method are implemented.

[0053] The linear filtering method based on overlap-addition provided by the present application stores the collected original signal data in page-locked memory, and when the preset calling conditions are met, calls the original signal data to the video memory; intercepts the original signal data to obtain local signal data, and fills the local signal data with 0 points to obtain sample data; performs forward Fourier transform processing on the sample data to obtain sample frequency domain data; filters the sample frequency domain data by preset target signal parameters to obtain target frequency domain data; performs inverse Fourier transform processing on the target frequency domain data to obtain target signal data, and stores the target signal data in the page-locked memory. Linear filtering of the signal is realized, and the filtering operation process is transferred to the GPU to reduce hardware pressure. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0055] Figure 1 is a flow chart of a linear filtering method based on overlap-addition method provided in one embodiment of the present application;

[0056] Figure 2 This is a schematic diagram of generating sample frequency domain data of a linear filtering method based on overlap-addition method provided in one embodiment of the present application;

[0057] Figure 3 This is a schematic diagram of generating target frequency domain data of a linear filtering method based on overlap-addition method provided in one embodiment of the present application;

[0058] Figure 4 This is a schematic diagram of target signal data generation of a linear filtering method based on overlap-addition method provided in one embodiment of the present application;

[0059] Figure 5 This is a schematic diagram of target signal data processing of a linear filtering method based on overlap-addition method provided in one embodiment of the present application;

[0060] Figure 6 It is a structural schematic diagram of a linear filtering device based on overlap-addition method provided in one embodiment of the present application;

[0061] Figure 7 It is a structural block diagram of a computing device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0062] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.

[0063] The terms used in one or more embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present application. The singular forms of "a", "said" and "the" used in one or more embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of the present application refers to and includes any or all possible combinations of one or more associated listed items.

[0064] It should be understood that, although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present application, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first.

[0065] First, the terms involved in one or more embodiments of the present invention are explained.

[0066] Overlap-add method: In order to calculate the linear convolution of an infinite length sequence, circular convolution is used instead of linear convolution to facilitate computer calculation. The segmented sequence and the system sequence are extended by padding with zeros so that the circular convolution result is the same as the linear convolution result without confusion. This is a fast convolution method.

[0067] DFT: Discrete Fourier Transform. Fourier analysis is the most basic method of signal analysis. Fourier transform is the core of Fourier analysis. It transforms the signal from time domain to frequency domain, and then studies the signal's spectrum structure and change law.

[0068] Frequency deviation: Also known as Frequency Offset, it refers to the difference between the frequency of the signal and the expected frequency.

[0069] GPU: Graphics processing unit, also known as display core, visual processor, display chip, is a microprocessor dedicated to performing image and graphics related calculations on personal computers, workstations, game consoles and some mobile devices (such as tablets, smart phones, etc.).

[0070] CPU: Central Processing Unit (Central Processing Unit) is the computing and control core of the computer system and the final execution unit for information processing and program running.

[0071] Page-locked memory: allocated in host memory by the CUDA functions cudaMallocHost() and cudaHostAlloc(). The important property of page-locked memory is that the host operating system will not paging or swap this memory, ensuring that the memory always remains in physical memory.

[0072] Video memory: Also called frame buffer, it is used to store rendering data that has been processed or is about to be extracted by the graphics card chip.

[0073] Ping-Pong Mechanism: Ping-Pong buffering should have two identical objects as buffers (the object type can be arbitrary), which are read and written alternately.

[0074] FFT: Fourier transform, which means that a function that meets certain conditions can be expressed as a linear combination of trigonometric functions (sine and / or cosine functions) or their integrals.

[0075] In the present application, a linear filtering method based on overlap-addition method is provided. The present application also relates to a linear filtering device based on overlap-addition method, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.

[0076] Figure 1 A flowchart of a linear filtering method based on overlap-addition method provided according to an embodiment of the present application is shown, which specifically includes the following steps:

[0077] S10, storing the collected original signal data in a page-locked memory, and when a preset calling condition is met, calling the original signal data to a video memory;

[0078] S20, intercepting the original signal data to obtain local signal data, and performing zero-point padding on the local signal data to obtain sample data;

[0079] S30, performing forward Fourier transform processing on the sample data to obtain sample frequency domain data;

[0080] S40, filtering the sample frequency domain data by using a preset target signal parameter to obtain target frequency domain data;

[0081] S50, performing inverse Fourier transform processing on the target frequency domain data to obtain target signal data, and storing the target signal data in the page-locked memory.

[0082] In order to improve the data transmission speed between the GPU and the CPU, the original signal data is stored in the page-locked memory. The data is copied to the page-locked memory in step S10, and after step S50, the data in the page-locked memory is called to the target cache for user selection, viewing, and calling, which are all executed by the CPU, and the data transmission speed is determined by the CPU speed and the memory read and write speed.

[0083] In addition, the rest of the data processing, namely, the zero-point filling in step S20, the forward Fourier transform in S30, the filtering in S40, and the inverse Fourier transform in S50, are all completed by the GPU, while the process of calling data from the page-locked memory to the video memory in step S10 and storing the data in the page-locked memory in step S50 are completed through the bus. The bus type selection is not unique. The specific bus type selection is determined by the actual usage scenario and is not limited in this embodiment.

[0084] Based on this, the CPU sends the original signal data in time domain form to the page-locked memory through the bus. When the preset calling condition is met, the original data is transmitted to the video memory through the bus. It should be noted that the calling condition can be triggered or active. For example, in the actual usage scenario, the triggered type can set the above situation as satisfying the calling condition when the page-locked memory is full or when a preset time point is reached. In the actual usage scenario, the active type can set the situation as satisfying the calling condition when a calling instruction is received. The calling condition setting is not unique, and the specific calling condition setting is determined by the actual usage scenario, and this embodiment does not limit it.

[0085] Afterwards, the GPU intercepts the original signal, fills the intercepted local signal data with 0 points, obtains sample data, and performs forward Fourier transform processing on the sample data to convert the sample data in time domain form into sample frequency domain data in frequency domain form. The sample frequency domain data is filtered according to the preset target signal parameters, and the target frequency domain signal in the frequency domain form obtained by filtering is inversely Fourier transformed to obtain the target signal data in time domain form. The target information data is stored in the page-locked memory through the bus. When the user has the need to select, view, or call, the CPU reads the target information data in the page-locked memory into the target cache. Among them, the target cache is the cache area for users to select, view, and call target information data.

[0086] Furthermore, the page-locked memory uses a ping-pong mechanism to store data. In this embodiment, the specific implementation is as follows:

[0087] A page-locked sub-memory in a to-be-written state is selected as a target page-locked sub-memory, wherein the page-locked memory includes a plurality of page-locked sub-memories; the state of the target page-locked sub-memory is adjusted to a write state, and the collected original signal data is stored in the target page-locked sub-memory; when the target page-locked sub-memory is full, asynchronously calling the data in the target page-locked sub-memory to the video memory, and the step of selecting a page-locked sub-memory in a to-be-written state as a target page-locked sub-memory, wherein when the data in the target page-locked sub-memory is called, the state of the target page-locked sub-memory is adjusted to a to-be-written state.

[0088] Furthermore, the video memory also uses a ping-pong mechanism to store data. In this embodiment, the specific implementation is as follows:

[0089] In step S10, a sub-video memory in a pending state is selected as a target sub-video memory, and the original signal data is called to the target sub-video memory, wherein the video memory includes multiple sub-video memories; the state of the target sub-video memory is adjusted to a processing state, and steps S20-S50 are executed; when the processing of the original signal data in the target sub-video memory is completed and the target signal data is obtained, the target signal data is stored in the page-locked memory and the step of selecting a sub-video memory in a pending state as the target sub-video memory is asynchronously executed, wherein when the data storage in the target sub-video memory is completed, the state of the target sub-video memory is adjusted to a pending state.

[0090] Specifically, based on the multiple page-locked sub-memories, the original signal data is stored through a ping-pong mechanism. However, in actual use scenarios, since there is only one page-locked sub-memory for data storage at any time, the remaining page-locked sub-memories are in a waiting state for writing. In this case, too many page-locked sub-memories will cause a waste of hardware resources. Therefore, the most common way is to arrange two page-locked sub-memories. Similarly, for video memory, the most common way is to arrange two sub-video memories.

[0091] Based on this, a page-locked sub-memory in a to-be-written state is used as a target page-locked sub-memory, the original signal is stored in the target page-locked sub-memory, and its state is adjusted to a write state until the target page-locked sub-memory is full, and other page-locked sub-memories are selected to continue storing the original signal. The data in the full target page-locked sub-memory is sent to the video memory. After all the data is sent, the state of the target page-locked sub-memory is adjusted from a write state to a to-be-written state, waiting for the next data write.

[0092] Similarly, for the video memory, a sub-video memory in a pending state is selected as the target sub-video memory, and then in step S10, after the state of the target sub-video memory is adjusted to the processing state, the data transmitted in the page-locked memory is stored, and when it is full or the data transmission in the current page-locked memory is completed, the data in the target sub-video memory is processed. The specific processing step triggering method is not unique, and the specific processing step triggering method is determined by the actual use requirements, and is not limited in this embodiment. The specific processing process is steps S20-S50, until the data processing is completed, and after the target signal data is obtained, the state of the target sub-video memory is adjusted from the processing state to the pending state, and waits for the next data transmission in the page-locked memory.

[0093] Further, regarding step S20, the process of intercepting the original signal data to obtain local signal data, and performing zero-point padding on the local signal data to obtain sample data, in this embodiment, is specifically implemented as follows:

[0094] The original signal data is intercepted to obtain the local signal data in the form of N / 2 points; and N / 2 0 points are filled into the local signal data to obtain the sample data.

[0095] Specifically, Figure 2 As shown in the schematic diagram of sample frequency domain data generation of a linear filtering method based on overlap-addition method, the continuously inputted original signal data is intercepted in sequence, and each interception results in N / 2 points of local signal data, i.e., N / 2 samples, and then N / 2 0 points are filled, i.e., N / 2 points are filled with 0, to obtain N-point sample data. Then, step S30 is executed to perform forward Fourier transform processing on the sample data to obtain sample frequency domain data, i.e., obtain N-point frequency domain data through DFT.

[0096] Further, for the continuously input original signal data, steps S10-S30 are repeatedly executed to process the continuously input original signal, that is, by continuously performing interception, zero-point filling and forward Fourier transformation on the continuously input original signal data.

[0097] Further, regarding step S40, the process of filtering the sample frequency domain data by using the preset target signal parameters to obtain the target frequency domain data is specifically implemented as follows in this embodiment:

[0098] Calculate the ratio between the bandwidth parameter in the target signal parameter and the sampling frequency of the original signal data to obtain the cutoff frequency; generate a low-pass filter coefficient in the form of N / 2+1 points according to the cutoff frequency; fill the low-pass filter coefficient with N / 2-1 0 points to obtain filtered data, and perform forward Fourier transform processing on the filtered data to obtain filtered frequency domain data; filter the sample frequency domain data through the filtered frequency domain data to obtain the target frequency domain data.

[0099] Furthermore, for the process of filtering the sample frequency domain data by filtering the frequency domain data to obtain the target frequency domain data, in this embodiment, the specific implementation method is as follows:

[0100] According to the target signal sampling rate in the target signal parameters and the sampling frequency of the original signal data, the intercepted frequency domain sample point width is determined; according to the intercepted frequency domain sample point width, the filtered frequency domain data is intercepted to obtain low-pass filtered frequency domain data; based on the low-pass filtered frequency domain data, the sample frequency domain data is filtered to obtain the target frequency domain data.

[0101] Furthermore, for the process of filtering the sample frequency domain data based on the low-pass filtered frequency domain data to obtain the target frequency domain data, in this embodiment, the specific implementation method is as follows:

[0102] The target signal frequency deviation in the target signal parameter and the sampling frequency of the original signal data are used to determine the intercepted frequency domain center sample point index; based on the intercepted frequency domain center sample point index and the intercepted frequency domain sample point width, the sample frequency domain data is intercepted to obtain local frequency domain data; the local frequency domain data is multiplied by the low-pass filtered frequency domain data to obtain the target frequency domain data.

[0103] Specifically, the bandwidth parameter is the bandwidth of the target signal data that the user wants to obtain after filtering. Then, the ratio between the bandwidth parameter and the sampling frequency of the original signal data is calculated to obtain the cutoff frequency, and the low-pass filter coefficient in the form of N / 2+1 points is generated according to the cutoff frequency, such as Figure 3 As shown in the schematic diagram of target frequency domain data generation of a linear filtering method based on overlap-addition method, the low-pass filter coefficient in the form of N / 2+1 points is N / 2+1 segments of low-pass filter coefficient samples, and the data is filled with N / 2-1 0 points, that is, N / 2-1 points are filled with 0 to obtain filtered data in the form of N points. The filtered data is forward Fourier transformed to obtain filtered frequency domain data, that is, through DFT, N-point low-pass filter frequency domain data is obtained.

[0104] Afterwards, the intercepted frequency domain sample width Tw is determined according to the target signal sampling rate in the target signal parameter and the sampling frequency of the original signal data, and the filtered frequency domain data is intercepted according to Tw to obtain the low-pass filtered frequency domain data Dl, as shown in FIG. Figure 4 As shown in the schematic diagram of target signal data generation of a linear filtering method based on overlap-addition method, the N-point low-pass filter frequency domain data is intercepted to obtain the Tw-point low-pass filter frequency domain data Dl, and the value point range of the data is [N / 2-Tw / 2, N / 2-Tw / 2], wherein the Tw-point low-pass filter frequency domain data Dl is the low-pass filter frequency domain data Dl.

[0105] The target signal frequency deviation in the target signal parameter and the sampling frequency of the original signal data are used to determine the intercepted frequency domain center sample point index Ti, and based on Ti and Tw, the sample frequency domain data is intercepted to obtain the local frequency domain data Dt1, as shown in Figure 4 The N-point frequency domain data is intercepted to obtain Tw-point frequency domain data Dt1, and the value range of the data is [Ti-Tw / 2, Ti-Tw / 2], wherein the Tw-point frequency domain data Dt1 is the local frequency domain data Dt1.

[0106] Then, the local frequency domain data Dt1 is multiplied by the low-pass filtered frequency domain data Dl to obtain the target frequency domain data Dt2, as shown in Figure 4 Dt1 is multiplied by D1, and the multiplication result is intercepted by Tw to obtain Tw point frequency domain data Dt2, wherein Tw point frequency domain data Dt2 is the target frequency domain data Dt2. Then, the Dt2 target frequency domain data is subjected to inverse Fourier transform processing to obtain the target signal data Dt3, that is, Dt2 is subjected to inverse DFT to obtain Tw time domain data Dt3, wherein Tw time domain data Dt3 is the target signal data Dt3.

[0107] Furthermore, for the continuously input original signal data, the process of obtaining the target signal data through the target frequency domain data is specifically implemented as follows in this embodiment:

[0108] Perform inverse Fourier transform processing on the target frequency domain data to obtain transition signal data; intercept the first 1 / 2 point data of the transition signal data and add it to the last 1 / 2 point data of the previous batch of transition signal data to obtain target signal data; store the target signal data in the page-locked memory, and save the last 1 / 2 point data of the transition signal data, waiting to be added with the first 1 / 2 point data of the next batch of transition signal data.

[0109] Specifically, Figure 5As shown in the schematic diagram of target signal data processing of a linear filtering method based on overlap-addition method, the Tw / 2 point samples of the current batch are added to the Tw / 2 point samples of the previous batch, that is, the first 1 / 2 point data of the current batch of transition signal data are added to the last 1 / 2 point data of the previous batch of transition signal data to obtain the target signal data, and the last 1 / 2 point data of the current batch of transition signal data are saved, waiting to be added to the first 1 / 2 point data of the next batch of transition signal data.

[0110] Corresponding to the above method embodiment, the present application also provides a linear filtering device embodiment based on overlap-addition method, Figure 6 FIG. 1 is a schematic diagram showing the structure of a linear filtering device based on an overlap-addition method provided by an embodiment of the present application. Figure 6 As shown, the device comprises:

[0111] The acquisition module 602 is configured to store the acquired raw signal data into a page-locked memory, and when a preset calling condition is met, call the raw signal data into a video memory;

[0112] The filling module 604 is configured to intercept the original signal data to obtain local signal data, and perform zero-point filling on the local signal data to obtain sample data;

[0113] The time-domain to frequency-domain conversion module 606 is configured to perform forward Fourier transform processing on the sample data to obtain sample frequency-domain data;

[0114] A filtering module 608 is configured to filter the sample frequency domain data by using a preset target signal parameter to obtain target frequency domain data;

[0115] The frequency domain to time domain conversion module 610 is configured to perform inverse Fourier transform processing on the target frequency domain data to obtain target signal data, and store the target signal data in the page-locked memory.

[0116] In an optional embodiment, the acquisition module 602 is further configured to:

[0117] A page-locked sub-memory in a to-be-written state is selected as a target page-locked sub-memory, wherein the page-locked memory includes a plurality of page-locked sub-memories; the state of the target page-locked sub-memory is adjusted to a write state, and the collected original signal data is stored in the target page-locked sub-memory; when the target page-locked sub-memory is full, asynchronously calling the data in the target page-locked sub-memory to the video memory, and the step of selecting a page-locked sub-memory in a to-be-written state as a target page-locked sub-memory, wherein when the data in the target page-locked sub-memory is called, the state of the target page-locked sub-memory is adjusted to a to-be-written state.

[0118] In an optional embodiment, the linear filtering device based on the overlap-addition method further includes:

[0119] The video memory storage module is configured to select a sub-video memory in a pending state as a target sub-video memory in the acquisition module 602, and call the original signal data to the target sub-video memory, wherein the video memory includes multiple sub-video memories; adjust the state of the target sub-video memory to a processing state, and call the filling module 604, the time domain and frequency domain conversion module 606, the filtering module 608, and the frequency domain and time domain conversion module 610, and when the processing of the original signal data in the target sub-video memory is completed and the target signal data is obtained, asynchronously execute the steps of storing the target signal data in the page-locked memory and selecting a sub-video memory in a pending state as the target sub-video memory, wherein when the storage of the data in the target sub-video memory is completed, the state of the target sub-video memory is adjusted to a pending state.

[0120] In an optional embodiment, the filling module 604 is further configured to:

[0121] The original signal data in the form of N points are intercepted to obtain the local signal data in the form of N / 2 points; and N / 2 0 points are filled into the local signal data to obtain the sample data.

[0122] In an optional embodiment, the linear filtering device based on the overlap-addition method further includes:

[0123] The loop module is configured to repeatedly call the acquisition module 602, the filling module 604, and the time-domain-frequency-domain conversion module 606 to process the continuously input original signal.

[0124] In an optional embodiment, the filtering module 608 is further configured to:

[0125] Calculate the ratio between the bandwidth parameter in the target signal parameter and the sampling frequency of the original signal data to obtain the cutoff frequency; generate a low-pass filter coefficient in the form of N / 2+1 points according to the cutoff frequency; fill the low-pass filter coefficient with N / 2-1 0 points to obtain filtered data, and perform forward Fourier transform processing on the filtered data to obtain filtered frequency domain data; filter the sample frequency domain data through the filtered frequency domain data to obtain the target frequency domain data.

[0126] In an optional embodiment, the filtering module 608 is further configured to:

[0127] According to the target signal sampling rate in the target signal parameters and the sampling frequency of the original signal data, the intercepted frequency domain sample point width is determined; according to the intercepted frequency domain sample point width, the filtered frequency domain data is intercepted to obtain low-pass filtered frequency domain data; based on the low-pass filtered frequency domain data, the sample frequency domain data is filtered to obtain the target frequency domain data.

[0128] In an optional embodiment, the filtering module 608 is further configured to:

[0129] The target signal frequency deviation in the target signal parameter and the sampling frequency of the original signal data are used to determine the intercepted frequency domain center sample point index; based on the intercepted frequency domain center sample point index and the intercepted frequency domain sample point width, the sample frequency domain data is intercepted to obtain local frequency domain data; the local frequency domain data is multiplied by the low-pass filtered frequency domain data to obtain the target frequency domain data.

[0130] In an optional embodiment, the frequency domain to time domain conversion module 610 is further configured to:

[0131] Perform inverse Fourier transform processing on the target frequency domain data to obtain transition signal data; intercept the first 1 / 2 point data of the transition signal data and add it to the last 1 / 2 point data of the previous batch of transition signal data to obtain target signal data; store the target signal data in the page-locked memory, and save the last 1 / 2 point data of the transition signal data, waiting to be added with the first 1 / 2 point data of the next batch of transition signal data.

[0132] The linear filtering device based on overlap-addition provided by the present application stores the collected original signal data in page-locked memory, and when the preset calling conditions are met, calls the original signal data to the video memory; intercepts the original signal data to obtain local signal data, and fills the local signal data with 0 points to obtain sample data; performs forward Fourier transform processing on the sample data to obtain sample frequency domain data; filters the sample frequency domain data by preset target signal parameters to obtain target frequency domain data; performs inverse Fourier transform processing on the target frequency domain data to obtain target signal data, and stores the target signal data in the page-locked memory. Linear filtering of the signal is realized, and the filtering operation process is transferred to the GPU to reduce hardware pressure.

[0133] The above is a schematic scheme of a linear filtering device based on the overlap-addition method of the present embodiment. It should be noted that the technical scheme of the linear filtering device based on the overlap-addition method and the technical scheme of the linear filtering method based on the overlap-addition method belong to the same conception. The details of the technical scheme of the linear filtering device based on the overlap-addition method that are not described in detail can all be referred to the description of the technical scheme of the linear filtering method based on the overlap-addition method. In addition, each component in the device embodiment should be understood as a functional module that must be established to implement each step of the program flow or each step of the method, and each functional module is not an actual functional division or separation definition. The device claim defined by such a group of functional modules should be understood as a functional module framework that mainly implements the solution through a computer program recorded in the specification, and should not be understood as a physical device that mainly implements the solution through hardware.

[0134] Figure 7 The structure block diagram of a computing device 700 provided according to an embodiment of the present application is shown. The components of the computing device 700 include but are not limited to a memory 710 and a processor 720. The processor 720 is connected to the memory 710 via a bus 730, and the database 750 is used to store data.

[0135] The computing device 700 also includes an access device 740 that enables the computing device 700 to communicate via one or more networks 760. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 740 may include one or more of any type of network interface (e.g., a network interface card (NIC)) that is wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0136] In one embodiment of the present application, the above components of the computing device 700 and Figure 7 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 7 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of the present application. Those skilled in the art may add or replace other components as needed.

[0137] The computing device 700 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 700 may also be a mobile or stationary server.

[0138] The processor 720 is used to execute computer executable instructions for each step of the overlap-addition-based linear filtering method.

[0139] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the linear filtering method based on the overlap-addition method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the linear filtering method based on the overlap-addition method.

[0140] An embodiment of the present application further provides a computer-readable storage medium storing computer instructions, which are used to execute the steps of the overlap-addition-based linear filtering method when executed by a processor.

[0141] The above is a schematic scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the linear filtering method based on the overlap-addition method belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the linear filtering method based on the overlap-addition method.

[0142] An embodiment of the present application further provides a chip storing a computer program, which implements the steps of the overlap-addition-based linear filtering method when executed by the chip.

[0143] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0144] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0145] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0146] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0147] The preferred embodiments of the present application disclosed above are only used to help explain the present application. The optional embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the present application. The present application selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present application, so that those skilled in the art can understand and use the present application well. The present application is only limited by the claims and their full scope and equivalents.

Claims

1. A linear filtering method based on overlap-addition method, characterized in that: The following steps are involved: S10, storing the collected original signal data in a page-locked memory, and when a preset calling condition is met, calling the original signal data to a video memory; S20, intercepting the original signal data to obtain local signal data, and performing zero-point padding on the local signal data to obtain sample data; S30, performing forward Fourier transform processing on the sample data to obtain sample frequency domain data; S40, filtering the sample frequency domain data by using preset target signal parameters to obtain target frequency domain data, specifically, calculating the ratio between the bandwidth parameter in the target signal parameters and the sampling frequency of the original signal data to obtain a cutoff frequency; and generating a low-pass filter coefficient in the form of N / 2+1 points according to the cutoff frequency; Filling the low-pass filter coefficient with N / 2-1 zero points to obtain filtered data, and performing forward Fourier transform processing on the filtered data to obtain filtered frequency domain data; determining the intercepted frequency domain sample point width according to the target signal sampling rate in the target signal parameter and the sampling frequency of the original signal data; The filtered frequency domain data is intercepted according to the intercepted frequency domain sample point width to obtain low-pass filtered frequency domain data; the intercepted frequency domain center sample point index is determined by the target signal frequency deviation in the target signal parameter and the sampling frequency of the original signal data; based on the intercepted frequency domain center sample point index and the intercepted frequency domain sample point width, the sample frequency domain data is intercepted to obtain local frequency domain data; the local frequency domain data is multiplied by the low-pass filtered frequency domain data to obtain target frequency domain data; S50, performing inverse Fourier transform processing on the target frequency domain data to obtain target signal data, and storing the target signal data in the page-locked memory.

2. The method according to claim 1, characterized in that: The step S10 comprises: Selecting a page-locked sub-memory in a to-be-written state as a target page-locked sub-memory, wherein the page-locked memory includes a plurality of page-locked sub-memories; Adjusting the state of the target page locked sub-memory to a write state, and storing the collected original signal data in the target page locked sub-memory; When the target page locked sub-memory is full, asynchronously calling the data in the target page locked sub-memory to the video memory, and selecting a page locked sub-memory in a to-be-written state as the target page locked sub-memory step, wherein: When the data in the target page-locked sub-memory is called, the state of the target page-locked sub-memory is adjusted to a waiting-to-write state.

3. The method according to claim 1, characterized in that The steps S10-S50 include: In step S10, a sub-video memory in a to-be-processed state is selected as a target sub-video memory, and the original signal data is transferred to the target sub-video memory, wherein the video memory includes a plurality of sub-video memories; Adjust the state of the target sub-video memory to a processing state, and execute steps S20-S50; When the processing of the original signal data in the target sub-video memory is completed and the target signal data is obtained, the steps of storing the target signal data in the page-locked memory and selecting a sub-video memory in a pending state as the target sub-video memory are asynchronously performed, wherein: When the data storage in the target sub-video memory is completed, the state of the target sub-video memory is adjusted to a pending state.

4. The method according to claim 1, characterized in that The step S20 comprises: intercepting the original signal data to obtain the local signal data in the form of N / 2 points; The local signal data is filled with N / 2 zero points to obtain the sample data.

5. The method according to claim 1, characterized in that After step S30, the method further includes: Steps S10 to S30 are repeatedly executed to process the continuously input original signal.

6. The method according to claim 1, characterized in that The step S50 comprises: Performing inverse Fourier transform processing on the target frequency domain data to obtain transition signal data; The first 1 / 2 point data of the transition signal data is intercepted and added to the last 1 / 2 point data of the previous batch of transition signal data to obtain the target signal data; The target signal data is stored in the page-locked memory, and the last 1 / 2 point data of the transition signal data is saved, waiting to be added with the first 1 / 2 point data of the next batch of transition signal data.

7. A linear filtering device based on overlap-addition method, characterized in that: include: The acquisition module is configured to store the acquired raw signal data into the page-locked memory, and when a preset calling condition is met, call the raw signal data into the video memory; A filling module is configured to intercept the original signal data to obtain local signal data, and perform zero-point filling on the local signal data to obtain sample data; A time-domain to frequency-domain conversion module is configured to perform forward Fourier transform processing on the sample data to obtain sample frequency-domain data; The filtering module is configured to filter the sample frequency domain data by using preset target signal parameters to obtain target frequency domain data. Specifically, the ratio between the bandwidth parameter in the target signal parameters and the sampling frequency of the original signal data is calculated to obtain a cutoff frequency; and a low-pass filter coefficient in the form of N / 2+1 points is generated according to the cutoff frequency; Filling the low-pass filter coefficient with N / 2-1 zero points to obtain filtered data, and performing forward Fourier transform processing on the filtered data to obtain filtered frequency domain data; determining the intercepted frequency domain sample point width according to the target signal sampling rate in the target signal parameter and the sampling frequency of the original signal data; The filtered frequency domain data is intercepted according to the intercepted frequency domain sample point width to obtain low-pass filtered frequency domain data; the intercepted frequency domain center sample point index is determined by the target signal frequency deviation in the target signal parameter and the sampling frequency of the original signal data; based on the intercepted frequency domain center sample point index and the intercepted frequency domain sample point width, the sample frequency domain data is intercepted to obtain local frequency domain data; the local frequency domain data is multiplied by the low-pass filtered frequency domain data to obtain target frequency domain data; The frequency domain to time domain conversion module is configured to perform inverse Fourier transform processing on the target frequency domain data to obtain target signal data, and store the target signal data in the page-locked memory.

Citation Information

Patent Citations

  • Filtering apparatus, filtering method, program, and surround processor

    CN101834581A

  • GPU (Graphics Processing Unit)-based method for realizing frequency-domain parallel processing for high-end digital FIR (Finite Impulse Response) filter

    CN102340296A

  • Radar signal pulse compression method based on GPU (Graphic Processor Unit)

    CN110320501A

  • External radiation source radar frequency domain matched filtering method based on GPU

    CN112859026A

  • Embedded GPU-based wideband parallel channelized receiving method

    US20230161586A1