[go: up one dir, main page]

CN112968688A - Method for realizing digital filter with selectable pass band - Google Patents

Method for realizing digital filter with selectable pass band Download PDF

Info

Publication number
CN112968688A
CN112968688A CN202110185084.0A CN202110185084A CN112968688A CN 112968688 A CN112968688 A CN 112968688A CN 202110185084 A CN202110185084 A CN 202110185084A CN 112968688 A CN112968688 A CN 112968688A
Authority
CN
China
Prior art keywords
filter
data
calculation
module
coefficients
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110185084.0A
Other languages
Chinese (zh)
Other versions
CN112968688B (en
Inventor
王媛
金磊
曾富华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Southwest Electronic Technology Institute No 10 Institute of Cetc
Original Assignee
Southwest Electronic Technology Institute No 10 Institute of Cetc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Southwest Electronic Technology Institute No 10 Institute of Cetc filed Critical Southwest Electronic Technology Institute No 10 Institute of Cetc
Priority to CN202110185084.0A priority Critical patent/CN112968688B/en
Publication of CN112968688A publication Critical patent/CN112968688A/en
Application granted granted Critical
Publication of CN112968688B publication Critical patent/CN112968688B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H17/00Networks using digital techniques
    • H03H17/02Frequency selective networks
    • H03H17/0219Compensation of undesirable effects, e.g. quantisation noise, overflow

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Filters That Use Time-Delay Elements (AREA)

Abstract

本发明公开的一种通带可选的数字滤波器实现方法,涉及无线通信领域中的信号滤波处理技术。本发明采用如下技术方案实现:通过窗函数类型选择模块选择不同的滤波器窗函数类型,确定窗函数长度N;通过滤波器频率响应特性选择模块选择不同的滤波器频率响应特性;通过滤波带宽选择模块选择不同的滤波带宽等滤波器特征指标;利用Matlab工具确定滤波器系数;求出FIR数字滤波器阶数M,并将滤波器系数存储在ROM组中的相对位置;滤波器系数读取模块根据地址映射读取ROM组中的滤波系数,对输入信号和滤波器系数进行乘法和累加,其中数据折叠模块先进行数据折叠计算,滤波计算模块再将折叠后的数据和滤波系数进行滤波计算,输出通带可选的滤波后信号。

Figure 202110185084

The invention discloses a method for realizing a digital filter with selectable passband, which relates to the signal filtering processing technology in the field of wireless communication. The present invention adopts the following technical scheme to realize: selecting different filter window function types through the window function type selection module, and determining the window function length N; selecting different filter frequency response characteristics through the filter frequency response characteristic selection module; selecting through the filter bandwidth The module selects filter characteristic indicators such as different filter bandwidths; uses Matlab tools to determine the filter coefficients; finds the order M of the FIR digital filter, and stores the filter coefficients in the relative position of the ROM group; filter coefficient reading module The filter coefficients in the ROM group are read according to the address map, and the input signal and the filter coefficients are multiplied and accumulated. The data folding module first performs the data folding calculation, and the filtering calculation module performs the filtering calculation on the folded data and the filter coefficients. Output filtered signal with selectable passband.

Figure 202110185084

Description

Method for realizing digital filter with selectable pass band
Technical Field
The invention belongs to a signal filtering processing technology in the field of wireless communication, and relates to a method for realizing a digital filter with a selectable passband.
Background
With the rapid development of large-scale integrated circuits and computer technologies, digital signal processing techniques have been widely used in the fields of communications, radars, earthquake prediction, biomedicine, control systems, hydraulic engineering, fault detection, instruments and meters for faults, and the like. In a digital signal processing system, a signal at a wireless communication receiving end is derived from an analog signal, is sampled to form a discrete time signal, and then is converted into a digital signal form with a limited word length. Since the received signal is often mixed with noise and various frequency components, digital filtering of the received signal is required and filters may remove signal noise and other unwanted signal components. The filter is divided into an analog filter and a digital filter according to the processed signals, and is divided into a low-pass filter, a high-pass filter, a band-pass filter and a band-stop filter according to the frequency band of the passed signals. The band-pass filter is a filter which only allows signals in a specified frequency band to pass through and suppresses signals of other frequencies, such as signals, interference and noise below or above the frequency band; the band-stop filter is a filter for suppressing signals of a specific frequency band and passing signals of other frequencies. An ideal bandpass filter should have a completely flat passband with no amplification or attenuation within the passband and with all frequencies outside the passband completely attenuated, and with transitions inside and outside the passband being completed over a very small frequency range. In practice, there is no ideal band-pass filter, and a practical filter cannot completely attenuate all frequencies outside the desired frequency range, especially outside the desired pass-band, there is also an attenuated but not isolated range, which is commonly referred to as the roll-off phenomenon of the filter, and is expressed in dB per decade of attenuation magnitude. In general, filters are designed to ensure that the narrower the roll-off range, the better the filter will perform, and thus the performance of the filter will be closer to that of the design, however, as the roll-off range becomes smaller, the pass band becomes flatter and "ripples" begin to appear, which is particularly noticeable at the edges of the pass band, and this effect is known as the gibbs phenomenon.
In the field of signal processing, the requirements for real-time performance and rapidity of signal processing are increasing, and filters are widely used in many information processing processes, such as filtering, detecting, predicting, etc. of signals. The digital filter has the outstanding advantages of high stability, high precision, flexible design, convenient implementation and the like, and the problems of voltage drift, temperature drift, noise and the like which cannot be overcome by an analog filter are avoided. The digital filter is a digital device or program that converts an input sequence into an output sequence through a certain operation, both inputs and outputs are digital signals, and changes the relative proportion of frequency components contained in the input signals through numerical operation processing, or filters some frequency components. Therefore, the concept of digital filtering is the same as that of analog filtering, only the form of a signal is different from that of the method for realizing the filtering, and the digital filtering realizes the filtering through numerical operation, so that the digital filter has the advantages of high processing precision, stability, small volume, light weight, flexibility, no impedance matching problem and capability of realizing the special filtering function which cannot be realized by the analog filter. If analog signals are to be processed, matched conversion of the signal form can be performed by the ADC and DAC, and the analog signals can also be filtered using digital filters. The digital filter is a device composed of digital multiplier, adder and delay unit, and is a digital signal processor, which is a discrete time system and has the function of operating the digital code of the input discrete signal to change the signal spectrum. In practice, a digital computer is mainly used for correspondingly calculating digital signals according to a pre-programmed program, and if a general computer is adopted, the signal processing can be completed by writing the program at any time, but the speed is low; if a special computer is adopted, the chip of the special computer is an integrated circuit manufactured according to a fixed calculation method, the signal can be processed after the signal is connected, the speed is high, but the processing mode cannot be changed; if a programmable computer chip is adopted, different programs can be programmed to achieve diversification of processing modes, and the processing speed is higher, so that the programmable computer chip is most widely applied in the current market.
The fir (finite Impulse response) filter is a finite single-bit Impulse response filter, is the most basic element in a digital signal processing system, can have strict linear phase-frequency characteristics while ensuring arbitrary amplitude-frequency characteristics, and has finite unit sampling response, so that the filter is a stable system. Therefore, FIR filters are widely used in the fields of communications, image processing, pattern recognition, and the like. The digital filter is carried out in the time domain, receives a discrete sequence with a finite length, allows useful frequency signal components to pass, suppresses useless frequency signal components, and finally outputs a sequence, which is essentially a linear time-invariant discrete system realized by a finite-precision algorithm and can be realized in FPGA hardware. Nowadays, FIR filters, which are widely used in practice, are causal, their impulse response is zero before the impulse signal is applied, and the output sequence is undistorted and time-shiftable.
The design method of the FIR digital filter mainly comprises a window function method, a frequency sampling method, a Chebyshev approximation method and the like. The main mathematical tool for window function digital signal processing is Boyle transform, Fourier transform is to study the relation of the whole time domain and frequency domain, however, when the engineering test signal processing is realized by using a computer, the infinite signal cannot be measured and operated, but the finite time segment is taken for analysis, the specific method is to intercept a time segment from the signal, then carry out periodic extension processing by using the observed signal time segment to obtain a virtual infinite signal, and then carry out mathematical processing such as Fourier transform, correlation analysis and the like on the signal. After the signal with no line length is cut off, the spectrum is distorted, and the energy originally concentrated at the zero point is dispersed into two wider frequency bands, which is called spectrum energy leakage. To reduce spectral energy leakage, the signal may be truncated using different truncation functions, called window functions, or simply windows. The energy leakage phenomenon generated after the signal is truncated is inevitable, because the window function is an infinite function of a frequency band, even if the original signal is a limited bandwidth signal, the window function is inevitably a function of an infinite bandwidth after the signal is truncated, namely, the energy and the distribution of the signal in a frequency domain are expanded. The basic idea of window function design is as follows: according to the technical index requirement, selecting a proper order N and a type of a window function to enable the amplitude-frequency characteristic to approach the amplitude-frequency characteristic of an ideal filter, and correspondingly selecting the window function, considering the property and the processing requirement of the analyzed signal. The window function can influence not only the transition bandwidth but also the magnitude of the shoulder and the ripple (attenuation of the stop band), and is therefore chosen such that its frequency spectrum: the width of the main lobe is as small as possible to make the transition zone as steep as possible, the side lobes are as small as possible relative to the main lobe, so that the shoulder and the ripple are reduced, i.e. the energy is concentrated as much as possible in the main lobe, these two requirements are contradictory for the window function, and a compromise is selected as required. The rectangular window has centralized main lobes, high frequency identification precision and higher side lobes, and is the most used window function; the Hanning window is a cosine window, the main lobe is widened but reduced, the side lobe is low, the frequency resolution is reduced, and the Hanning window is suitable for filtering signals with complex frequency points and multiple frequency components; the Hanming window is an improved raised cosine window, and the side lobe is smaller; the second-order raised cosine window has wider main lobe, lower side lobe, high amplitude identification precision and better signal selectivity.
The window function design method of the filter is to provide a filter window coefficient approximate to the frequency response function of an ideal filter, the impulse response of the ideal filter is an infinite sequence, the impulse response of the designed filter is finite, the infinite impulse response is truncated left and right and then shifted right to form a causal system, and therefore, the FIR filter shows oscillation phenomena in a pass band and a stop band, when the order M of the filter is increased, the number of oscillation ripples is increased, and the width of the ripples is reduced. Alternative window function types can be divided into
Rectangular window
Figure BDA0002942771140000031
Hanning window
Figure BDA0002942771140000032
Hanming window
Figure BDA0002942771140000033
Second-order raised cosine window
Figure BDA0002942771140000034
And the like. The FIR filter forms it by a weighted sum of the current and past input valuesSince the response of the FIR filter depends only on a limited number of input values, it has a finite non-zero response to a discrete impulse, i.e. the response of an M-order FIR filter to an impulse is zero after M clock cycles, and its output at any point in time is only related to a window containing the latest M input values, and is therefore also called a moving average filter. Each arithmetic unit of the structure of the FIR filter is assigned a finite word length, its data path is adapted to the outputs of the multipliers and adders and manages the data flow during operation. The limited word length of the data limits the resolution and dynamic range that the filter can represent and introduces quantization errors; at the same time, the filter coefficients are also of finite word length, which results in additional quantization and truncation errors. The filter has to select a higher order M to achieve higher data resolution and selectivity, but the higher the order, the more multipliers and adders required in the filtering calculation, and the more FPGA hardware resources are occupied. Therefore, the digital filter needs to be designed with consideration of data resolution, filtering selectivity, dynamic range, quantization error, hardware resource consumption, computation time, and other balance.
In the traditional digital filter implementation method in FPGA, the filter coefficient is fixed, i.e. the characteristic indexes of the filter, such as frequency response characteristic, passband type, filter bandwidth, cut-off frequency, in-band fluctuation and the like, are not changeable, and if a certain characteristic index of the filter needs to be changed, the filter coefficient needs to be redesigned and the FPGA program needs to be compiled. Under the condition that the received signal mode is complex and variable, the traditional digital filter implementation method cannot meet the requirement that the filtering characteristic is variable.
Disclosure of Invention
The invention provides a passband-selectable digital filter implementation method which has the advantages of strong flexibility, good stability, high filtering precision and small calculation amount and can adapt to various signals with different requirements, in order to overcome the defect that the filtering characteristics of the traditional digital filter implementation method are invariable.
The above object of the present invention can be achieved by the following scheme, and a method for implementing a digital filter with a selectable passband has the following technical features: a window function type selection module, a filter frequency response characteristic selection module, a filtering bandwidth selection module, a filter coefficient reading module, a data folding module and a filtering calculation module are adopted to establish a filter model with selectable pass band; firstly, selecting different filter window function types through control parameters of a window function type selection module, determining the window function length N according to requirements on attenuation of a transition band and a stop band, selecting different filter frequency response characteristics through a filter frequency response characteristic selection module, selecting different filter characteristic indexes such as filter bandwidth through a filter bandwidth selection module, determining filter coefficients meeting design indexes by utilizing a Matlab tool, and designing an FIR filter with M-order symmetric coefficients; selecting filter system digital length, filter signal word length and technical indexes according to hardware resource capacity to obtain the order M of the FIR digital filter, storing M-order symmetric coefficients of the FIR digital filter at the relative position in a ROM group, reading the filter coefficients in the ROM group by a filter coefficient reading module according to address mapping, multiplying and accumulating the input signals and the filter coefficients, performing data folding calculation by a data folding module, performing filter calculation on the folded data and the filter coefficients by a filter calculation module, and outputting filtered signals with selectable pass bands.
Compared with the traditional digital filter implementation method, the invention has the following beneficial effects:
the flexibility is strong. The invention adopts a window function type selection module, a filter frequency response characteristic selection module, a filtering bandwidth selection module, a filter coefficient reading module, a data folding module and a filtering calculation module to establish a filter model with selectable pass band; different filter window function types, different filter frequency response characteristics, different filter bandwidths and other filter characteristic indexes can be selected through control parameters.
The filtering precision is high. The invention utilizes Matlab tool to determine the filter coefficient meeting the design index, designs the FIR filter with M-order symmetric coefficient, can ensure that the phase characteristic is linear in the filter response passband, the output of any time point is only related to the latest M input values, the order of the filter is 128, the filter coefficient length and the filter signal word length can be selected correspondingly according to the hardware resource capacity, compared with the traditional digital filter implementation method, the invention has higher filtering precision.
The stability is good. The M-order symmetric coefficient of the FIR digital filter is stored in the ROM group, and when filtering calculation is carried out, the filter coefficient in the ROM group is read only according to address mapping, and the input signal and the filter coefficient are multiplied and accumulated to complete filtering and output signals.
The calculation amount is small. The filter with symmetrical coefficient is designed, the input signal is multiplied by the symmetrical coefficient, and the result has symmetry, so that the filter coefficient stored in ROM memory bank only needs to be the M-order filter
Figure BDA0002942771140000051
Firstly, the data folding calculation is carried out on the input signal, and finally, the folded data sum is carried out
Figure BDA0002942771140000052
Compared with the traditional digital filter implementation method, the invention has the advantages that the number of the multipliers and adders used is less, the calculated amount is smaller, and compared with a direct filter structure, the number of the multipliers used is reduced by half, the direct filter is multiplied before added, and the invention is added before multiplied.
The invention selects different filter window function types through control parameters. The filtering characteristics of various window functions are different, and the window functions can be flexibly selected according to the signal filtering requirement. Different filter frequency response characteristics, such as low-pass, band-pass, high-pass, band-stop, etc., are selected by controlling parameters. Different filter bandwidths are selected through control parameters, a low-pass filter and a high-pass filter need to determine the cut-off frequency of a pass band, a band-pass filter and a band-stop filter need to determine the cut-off frequency of the pass band/stop band and the bandwidth of the pass band/stop band, and an FIR filter with symmetrical coefficients is designed, so that the phase characteristics of the FIR filter can be ensured to be linear in the response pass band of the filter, the filter coefficients meeting the design indexes can be determined by utilizing tools such as Matlab and the like in advance, and under the condition that the filter requirements are different, the structure and other coefficients of the whole filter do not need to be changed, and the filters.
Drawings
FIG. 1 is a schematic diagram of the structure of the implementation method of the digital filter with selectable pass band according to the present invention;
FIG. 2 is a schematic diagram of the data folding module of FIG. 1;
FIG. 3 is a schematic diagram of the structure of the filter calculation module in FIG. 1;
the invention is further described with reference to the following figures and specific examples.
Detailed Description
See fig. 1. According to the invention, a filter model with a selectable passband is established by adopting a window function type selection module, a filter frequency response characteristic selection module, a filtering bandwidth selection module, a filter coefficient reading module, a data folding module and a filtering calculation module; firstly, selecting different filter window function types through control parameters of a window function type selection module, determining the window function length N according to requirements on attenuation of a transition band and a stop band, selecting different filter frequency response characteristics through a filter frequency response characteristic selection module, selecting different filter characteristic indexes such as filter bandwidth through a filter bandwidth selection module, determining filter coefficients meeting design indexes by utilizing a Matlab tool, and designing an FIR filter with M-order symmetric coefficients; selecting a filter coefficient word length and a filter signal word length according to hardware resource capacity, solving the order M of the FIR digital filter according to technical indexes, storing M-order symmetric coefficients of the FIR digital filter at the relative position in a ROM (read only memory) group, reading the filter coefficients in the ROM group according to address mapping by a filter coefficient reading module, multiplying and accumulating the input signals and the filter coefficients, performing data folding calculation by a data folding module, performing filter calculation on the folded data and the filter coefficients by a filter calculating module, and outputting filtered signals with selectable pass bands.
The filter coefficient meeting the design index can be determined by utilizing tools such as Matlab and the like, and for an M-order filter, only the coefficient is required to be determined
Figure BDA0002942771140000061
Symmetrical filter coefficients are stored in ROM memory bank in sequence, each group of coefficients occupying
Figure BDA0002942771140000062
A memory address. The filter coefficients are finite word lengths that determine the quantization error during filtering, and the filter coefficient word length in this embodiment is a 12-bit binary number. According to the filter window function type, the pass band type, the bandwidth and other filter characteristic indexes determined by the control parameters, D is inquired through address mappingcoefReading the front of a ROM bank
Figure BDA0002942771140000063
The coefficients of the M order filter window function.
See fig. 2. The M-order filter forms its output by a weighted sum of current and past input values, the output at any point in time being associated with only one window containing the latest M input values, which for a sampled data stream need to be stored first in a memory of depth M, respectively data D0、D1、D2… …, up to D126、D127Until now. Because the window function coefficient is symmetrical, the input value and the symmetrical coefficient are multiplied, and the result also has symmetry, the M input values can be firstly subjected to data folding calculation, the data folding module is subjected to data folding calculation according to the input signal, and the filtering calculation module is used for carrying out data folding calculation on the folded input values
Figure BDA0002942771140000064
Data sum
Figure BDA0002942771140000065
The filter coefficients are subjected to filter calculation. After the calculation of the data folding, the data folding is performed,data folding module output data y0
Figure BDA0002942771140000066
Wherein A isiBefore the M-order filter
Figure BDA0002942771140000067
The ith coefficient, S, of the coefficientsiRepresenting the ith fold value obtained after the data folding calculation. As shown in FIG. 2, when the order M is 128, the data folding module firstly inputs the 1 st input data D0And 128 th input data D127Adding to obtain data S0Then, the 2 nd input data D is inputted1And 127 th input data D126Adding to obtain data S1And so on, and finally the 64 th input data D63And 65 th input data D64Adding to obtain data S63And completing the data folding calculation. When the filtering calculation of the output signal of the latest point is finished, reading a new data sampling value delayed by one sampling period, namely data D in the memory with the depth of M0、D1、D2……D126、D127Shifting one bit, performing data folding calculation of the next output signal to obtain data S0、S1、S2……S62、S63And the step is circulated.
See fig. 3. The filtering calculation module carries out filtering calculation on the folded data and the filtering coefficient, outputs a filtered signal, and for an M-order filter with symmetrical coefficients, folds the data after the data folding module
Figure BDA0002942771140000068
Data sum
Figure BDA0002942771140000069
And carrying out filtering calculation on the filter coefficients, and outputting the product accumulated value of M data stream sampling values and M symmetrical filter coefficients at the current moment:
Figure BDA00029427711400000610
wherein A isiRepresenting the ith coefficient of the M order filter coefficients, where x [ n-i ]]Representing the M input signal sample values prior to the delay of i sample periods. The adder and multiplier of the filter have a fast enough operation speed to complete the calculation of the current output signal before the next sample data, that is, the calculation of the current filter value is completed within a delay of one sampling period, and the data is truncated in the middle of each stage of calculation to adapt to the balance of data resolution, dynamic range, hardware resource consumption, calculation time and the like.
The following is a concrete analysis by way of example: storing filter coefficients of different bandwidths of a 128-order symmetric rectangular window low-pass FIR filter in advance in a filter coefficient ROM, and the intermediate frequency carrier frequency f of an input signalcarry20MHz, a spreading frequency Rc of 10.23MHz, a sampling frequency fadAt 90MHz, the signal-to-noise ratio C/N0 was 20 dB. After down-conversion and frequency mixing, the filter designed by the invention is used for low-pass filtering, and the program control parameters select a rectangular window function, the low-pass filter and the filtering bandwidth is 11 MHz. Through experiments, the example finally obtains correct filtered data.
While the present invention has been described in detail with reference to the embodiments, it will be apparent to one skilled in the art that various changes can be made in the embodiments without departing from the spirit and scope of the invention.

Claims (10)

1.一种通带可选的数字滤波器实现方法,具有如下技术特征:采用窗函数类型选择模块、滤波器频率响应特性选择模块、滤波带宽选择模块、滤波器系数读取模块、数据折叠模块和滤波计算模块建立通带可选的滤波器模型;首先通过窗函数类型选择模块控制参数选择不同的滤波器窗函数类型,根据对过渡带和阻带衰减的要求,并估计窗函数长度N,通过滤波器频率响应特性选择模块选择不同的滤波器频率响应特性,通过滤波带宽选择模块选择不同的滤波带宽等滤波器特征指标,利用Matlab工具确定满足设计指标的滤波器系数,设计具有M阶对称系数的FIR滤波器;根据硬件资源能力选择滤波器系数字长和滤波信号字长,和技术指标求出FIR数字滤波器阶数M,将FIR数字滤波器M阶对称系数存储在ROM组中的相对位置,然后滤波器系数读取模块根据地址映射读取ROM组中的滤波系数,对输入信号和滤波器系数进行乘法和累加,数据折叠模块先进行数据折叠计算,滤波计算模块再将折叠后的数据和滤波系数进行滤波计算,输出通带可选的滤波后信号。1. A method for realizing a digital filter with an optional passband, having the following technical characteristics: adopting a window function type selection module, a filter frequency response characteristic selection module, a filter bandwidth selection module, a filter coefficient reading module, and a data folding module Establish a filter model with optional passband with the filter calculation module; first, select different filter window function types through the control parameters of the window function type selection module, and estimate the window function length N according to the requirements for the transition band and stopband attenuation, Use the filter frequency response characteristic selection module to select different filter frequency response characteristics, use the filter bandwidth selection module to select filter characteristic indicators such as different filter bandwidths, and use the Matlab tool to determine the filter coefficients that meet the design indicators. The coefficient FIR filter; according to the hardware resource capability, select the filter coefficient digital length and the filter signal word length, and obtain the FIR digital filter order M according to the technical indicators, and store the FIR digital filter M-order symmetrical coefficients in the ROM group. Relative position, then the filter coefficient reading module reads the filter coefficients in the ROM group according to the address map, and multiplies and accumulates the input signal and the filter coefficients. The data and filter coefficients are filtered and calculated, and the filtered signal with optional passband is output. 2.如权利要求1所述的通带可选的数字滤波器实现方法,其特征在于:利用Matlab工具设计特征指标的滤波器系数,M阶滤波器将前M/2个对称的滤波器系数顺序地存入ROM存储器组中,每组系数占用M/2个存储地址,滤波器系数字长采用12位二进制数根据控制参数确定的滤波器窗函数类型、通带类型、带宽等滤波器特征指标,通过地址映射查询Dcoef读出ROM存储器组中前M/2个M阶滤波器窗函数系数。2. the optional digital filter realization method of passband as claimed in claim 1, is characterized in that: utilize the filter coefficient of Matlab tool design characteristic index, M-order filter will first M/2 symmetrical filter coefficients Sequentially stored in the ROM memory group, each group of coefficients occupies M/2 storage addresses, the filter coefficient digital length adopts 12-bit binary numbers to determine the filter window function type, passband type, bandwidth and other filter characteristics according to the control parameters Index, through the address mapping query D coef to read out the first M/2 M-order filter window function coefficients in the ROM memory group. 3.如权利要求1所述的通带可选的数字滤波器实现方法,其特征在于:M阶滤波器用当前和过去输入值的加权和来形成它的输出,其任何时间点的输出只与包含最新M个输入值的一个窗有关,对于采样数据流来说,先将最新的M个输入值存于深度为M的存储器中,分别为数据D0、D1、D2……,直到D126、D127为止。3. the optional digital filter realization method of passband as claimed in claim 1 is characterized in that: M-order filter forms its output with the weighted sum of current and past input values, and its output at any time point is only with It is related to a window containing the latest M input values. For the sampling data stream, the latest M input values are first stored in the memory with a depth of M, which are data D 0 , D 1 , D 2 . . . until Up to D 126 and D 127 . 4.如权利要求1所述的通带可选的数字滤波器实现方法,其特征在于:窗函数系数为对称的,输入值与对称系数进行乘积,其结果具有对称性,对M个输入值先进行数据折叠计算,数据折叠模块根据输入信号进行数据折叠计算,滤波计算模块再将折叠后的M/2个数据和M/2个滤波系数进行滤波计算,在数据折叠计算后,数据折叠模块输出数据:
Figure RE-FDA0003006790740000011
Figure RE-FDA0003006790740000012
其中,Ai表示M阶滤波器前M/2个系数中的第i个系数,Si代表数据折叠计算后得到的第i个折叠值。
4. the optional digital filter realization method of passband as claimed in claim 1, is characterized in that: window function coefficient is symmetrical, and input value and symmetrical coefficient carry out product, and its result has symmetry, to M input values Data folding calculation is performed first, the data folding module performs data folding calculation according to the input signal, and the filtering calculation module performs filtering calculation on the folded M/2 data and M/2 filter coefficients. After the data folding calculation, the data folding module Output Data:
Figure RE-FDA0003006790740000011
Figure RE-FDA0003006790740000012
Among them, A i represents the ith coefficient in the first M/2 coefficients of the M-order filter, and S i represents the ith folding value obtained after the data folding calculation.
5.如权利要求1所述的通带可选的数字滤波器实现方法,其特征在于:当阶数M为128阶时,数据折叠模块先将第1个输入数据D0与第128个输入数据D127相加得到数据S0,再将第2个输入数据D1与第127个输入数据D126相加得到数据S1,以此类推,最后将第64个输入数据D63与第65个输入数据D64相加得到数据S63,完成数据折叠计算。5. the optional digital filter realization method of passband as claimed in claim 1 is characterized in that: when order M is 128 orders, data folding module first input the 1st input data D 0 and the 128th input Data D 127 is added to obtain data S 0 , then the second input data D 1 and the 127th input data D 126 are added to obtain data S 1 , and so on, and finally the 64th input data D 63 and the 65th input data D 126 are added together. The input data D 64 are added to obtain data S 63 , and the data folding calculation is completed. 6.如权利要求1所述的通带可选的数字滤波器实现方法,其特征在于:当此刻最新一点的输出信号滤波计算完成后,滤波计算模块读取新的一个采样周期延时后的数据采样值,深度为M的存储器中的数据D0、D1、D2……D126、D127移动一位,进行下一个输出信号的数据折叠计算得到数据S0、S1、S2……S62、S63,循环此步骤。6. the optional digital filter realization method of passband as claimed in claim 1 is characterized in that: after the output signal filtering calculation of the latest point at this moment is completed, the filtering calculation module reads the new one sampling period delay after the time delay. Data sampling value , data D0 , D1 , D2 ... ...S 62 , S 63 , this step is repeated. 7.如权利要求1所述的通带可选的数字滤波器实现方法,其特征在于滤波计算模块将折叠后的数据和滤波系数进行滤波计算,输出当前时刻M个数据流采样值与M个对称滤波系数的乘积累加值:
Figure RE-FDA0003006790740000021
其中Ai表示M阶滤波器系数中的第i个系数,其中,x[n-i]表示i个采样周期延时前的M个输入信号采样值。
7. the optional digital filter realization method of passband as claimed in claim 1, it is characterized in that filter calculation module will be folded data and filter coefficient to carry out filter calculation, output current moment M data stream sample values and M Multiply-accumulate value of symmetric filter coefficients:
Figure RE-FDA0003006790740000021
Wherein A i represents the ith coefficient in the M-order filter coefficients, where x[ni] represents the M input signal sample values before the delay of i sampling periods.
8.如权利要求1所述的通带可选的数字滤波器实现方法,其特征在于:滤波器的加法器和乘法器运算,在下一个采样数据来之前完成当前输出信号的计算,在一个采样周期延时内完成当前滤波值的计算,并且每一级计算中间对数据进行截位,以适应数据分辨率、动态范围、硬件资源消耗、计算时间各方面的均衡。8. the optional digital filter implementation method of passband as claimed in claim 1, it is characterized in that: the adder of filter and the multiplier operation, complete the calculation of current output signal before next sampling data comes, in a sampling The calculation of the current filter value is completed within the period delay, and the data is truncated in the middle of each stage of calculation to adapt to the balance of data resolution, dynamic range, hardware resource consumption, and calculation time. 9.如权利要求1所述的通带可选的数字滤波器实现方法,其特征在于:前在滤波器系数ROM中存储128阶对称型矩形窗低通FIR滤波器不同带宽的滤波系数,输入信号的中频载波频率fcarry为20MHz,扩频频率Rc为10.23MHz,采样频率fad为90MHz,信噪比C/N0为20dB。9. the optional digital filter realization method of passband as claimed in claim 1, it is characterized in that: store the filter coefficient of 128 order symmetrical rectangular window low-pass FIR filter different bandwidths in filter coefficient ROM before, input The intermediate frequency carrier frequency f carry of the signal is 20 MHz, the spreading frequency Rc is 10.23 MHz, the sampling frequency f ad is 90 MHz, and the signal-to-noise ratio C/N0 is 20 dB. 10.如权利要求1所述的通带可选的数字滤波器实现方法,其特征在于:下变频混频后使用所设计的滤波器进行低通滤波,程序控制参数选择矩形窗函数、低通滤波器、滤波带宽为11MHz。10. the optional digital filter realization method of passband as claimed in claim 1 is characterized in that: use the designed filter to carry out low-pass filtering after down-conversion mixing, and program control parameter selects rectangular window function, low-pass Filter, filter bandwidth is 11MHz.
CN202110185084.0A 2021-02-10 2021-02-10 Method for realizing digital filter with selectable pass band Active CN112968688B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110185084.0A CN112968688B (en) 2021-02-10 2021-02-10 Method for realizing digital filter with selectable pass band

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110185084.0A CN112968688B (en) 2021-02-10 2021-02-10 Method for realizing digital filter with selectable pass band

Publications (2)

Publication Number Publication Date
CN112968688A true CN112968688A (en) 2021-06-15
CN112968688B CN112968688B (en) 2023-03-28

Family

ID=76284895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110185084.0A Active CN112968688B (en) 2021-02-10 2021-02-10 Method for realizing digital filter with selectable pass band

Country Status (1)

Country Link
CN (1) CN112968688B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113541648A (en) * 2021-07-01 2021-10-22 大连理工大学 Optimization method based on frequency domain filtering
CN114142829A (en) * 2021-11-30 2022-03-04 珠海一微半导体股份有限公司 FIR filter multiplexing system
CN114925719A (en) * 2022-04-11 2022-08-19 上海建工集团股份有限公司 Frequency filtering analysis method for discrete monitoring data
CN118074671A (en) * 2024-01-30 2024-05-24 深圳市中承科技有限公司 Geometric progression quantization digital filtering method and digital filter
CN119449546A (en) * 2024-10-31 2025-02-14 中国移动通信有限公司研究院 Filter determination method, device, electronic device, storage medium and computer program product
CN119496484A (en) * 2025-01-20 2025-02-21 深圳市鼎阳科技股份有限公司 Filter design system based on window function and method for determining filter coefficients

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5553014A (en) * 1994-10-31 1996-09-03 Lucent Technologies Inc. Adaptive finite impulse response filtering method and apparatus
CN1267959A (en) * 1999-02-24 2000-09-27 汤姆森特许公司 Sample data digital filter system
US20020042802A1 (en) * 2000-06-07 2002-04-11 Yukihiko Mogi FIR filter and setting method of coefficient thereof
US20030007553A1 (en) * 2001-07-06 2003-01-09 Koninklijke Philips Electronics N.V. Receiver having an adaptive filter and method of optimising the filter
CN1471236A (en) * 2003-07-01 2004-01-28 北京阜国数字技术有限公司 Signal adaptive multi resolution wave filter set for sensing audio encoding
US20040042557A1 (en) * 2002-08-29 2004-03-04 Kabel Allan M. Partial band reconstruction of frequency channelized filters
JP2004201267A (en) * 2002-10-24 2004-07-15 Sony Corp Digital filter, its factor calculation apparatus and factor calculation method
CN1976224A (en) * 2006-12-15 2007-06-06 天津大学 Low pass continuous adjustable filter and filtering method
US20100063827A1 (en) * 2008-09-06 2010-03-11 GH Innovation, Inc. Selective Bandwidth Extension
US20100118921A1 (en) * 2008-11-11 2010-05-13 Isco International, Inc. Self-Adaptive Digital RF Bandpass and Bandstop Filter Architecture
US20110095927A1 (en) * 2009-06-26 2011-04-28 Syntropy Systems, Llc Sampling/Quantization Converters
CN103873016A (en) * 2014-02-24 2014-06-18 北京遥测技术研究所 Method for designing coefficients of digital reconstruction filter with random sampling rate conversion
CN104283527A (en) * 2014-08-28 2015-01-14 天津大学 A fast-configurable high-efficiency filter method and device for boundary frequency bands
CN104467739A (en) * 2014-12-15 2015-03-25 天津大学 Bandwidth-adjustable and center-frequency-adjustable digital filter and implementation method thereof
CN106549650A (en) * 2016-12-07 2017-03-29 西安电子科技大学 A kind of implementation method of the high order FIR filter based on FPGA
CN111638494A (en) * 2020-05-31 2020-09-08 西南电子技术研究所(中国电子科技集团公司第十研究所) Multi-channel amplitude and phase correction method for digital beam synthesis system

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5553014A (en) * 1994-10-31 1996-09-03 Lucent Technologies Inc. Adaptive finite impulse response filtering method and apparatus
CN1267959A (en) * 1999-02-24 2000-09-27 汤姆森特许公司 Sample data digital filter system
US20020042802A1 (en) * 2000-06-07 2002-04-11 Yukihiko Mogi FIR filter and setting method of coefficient thereof
US20030007553A1 (en) * 2001-07-06 2003-01-09 Koninklijke Philips Electronics N.V. Receiver having an adaptive filter and method of optimising the filter
US20040042557A1 (en) * 2002-08-29 2004-03-04 Kabel Allan M. Partial band reconstruction of frequency channelized filters
JP2004201267A (en) * 2002-10-24 2004-07-15 Sony Corp Digital filter, its factor calculation apparatus and factor calculation method
CN1471236A (en) * 2003-07-01 2004-01-28 北京阜国数字技术有限公司 Signal adaptive multi resolution wave filter set for sensing audio encoding
CN1976224A (en) * 2006-12-15 2007-06-06 天津大学 Low pass continuous adjustable filter and filtering method
US20100063827A1 (en) * 2008-09-06 2010-03-11 GH Innovation, Inc. Selective Bandwidth Extension
US20100118921A1 (en) * 2008-11-11 2010-05-13 Isco International, Inc. Self-Adaptive Digital RF Bandpass and Bandstop Filter Architecture
US20110095927A1 (en) * 2009-06-26 2011-04-28 Syntropy Systems, Llc Sampling/Quantization Converters
CN103873016A (en) * 2014-02-24 2014-06-18 北京遥测技术研究所 Method for designing coefficients of digital reconstruction filter with random sampling rate conversion
CN104283527A (en) * 2014-08-28 2015-01-14 天津大学 A fast-configurable high-efficiency filter method and device for boundary frequency bands
CN104467739A (en) * 2014-12-15 2015-03-25 天津大学 Bandwidth-adjustable and center-frequency-adjustable digital filter and implementation method thereof
CN106549650A (en) * 2016-12-07 2017-03-29 西安电子科技大学 A kind of implementation method of the high order FIR filter based on FPGA
CN111638494A (en) * 2020-05-31 2020-09-08 西南电子技术研究所(中国电子科技集团公司第十研究所) Multi-channel amplitude and phase correction method for digital beam synthesis system

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
SHAPNA RANI SUTRADHAR: "IIR based digital filter design and performance analysis", 《2017 2ND INTERNATIONAL CONFERENCE ON TELECOMMUNICATION AND NETWORKS (TEL-NET)》 *
冯亚操: "基于数字滤波的光电检测系统设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
刘艳: "可配置参数FIR数字滤波系统设计", 《数据采集与处理》 *
孙倩: "基于Labview的虚拟频谱分析仪设计", 《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》 *
李靖宇: "罗兰C前端数字带通滤波器设计与实现", 《电子技术应用》 *
钱君霞: "基于MSP430F149的电力参数综合监测装置的研究与开发", 《中国优秀博硕士学位论文全文数据库 (硕士)工程科技Ⅱ辑》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113541648A (en) * 2021-07-01 2021-10-22 大连理工大学 Optimization method based on frequency domain filtering
CN114142829A (en) * 2021-11-30 2022-03-04 珠海一微半导体股份有限公司 FIR filter multiplexing system
CN114142829B (en) * 2021-11-30 2025-10-03 珠海一微半导体股份有限公司 FIR filter multiplexing system
CN114925719A (en) * 2022-04-11 2022-08-19 上海建工集团股份有限公司 Frequency filtering analysis method for discrete monitoring data
CN118074671A (en) * 2024-01-30 2024-05-24 深圳市中承科技有限公司 Geometric progression quantization digital filtering method and digital filter
CN119449546A (en) * 2024-10-31 2025-02-14 中国移动通信有限公司研究院 Filter determination method, device, electronic device, storage medium and computer program product
CN119496484A (en) * 2025-01-20 2025-02-21 深圳市鼎阳科技股份有限公司 Filter design system based on window function and method for determining filter coefficients
CN119496484B (en) * 2025-01-20 2025-04-15 深圳市鼎阳科技股份有限公司 Filter design system based on window function and method for determining filter coefficients

Also Published As

Publication number Publication date
CN112968688B (en) 2023-03-28

Similar Documents

Publication Publication Date Title
CN112968688B (en) Method for realizing digital filter with selectable pass band
CN107064628B (en) High-precision frequency measurement system and method
Donadio CIC filter introduction
CN108763720B (en) DDC implementation method with sampling rate capable of being adjusted down at will
US20070094317A1 (en) Method and system for B-spline interpolation of a one-dimensional signal using a fractional interpolation ratio
CN103873016B (en) A kind of arbitrarily sampling rate conversion digital reconstruction filter coefficient method for designing
Shanthi et al. An Efficient FPGA Implementation of Cascade Integrator Comb Filter
CN101282322A (en) Built-in digital filter apparatus for physical layer of wireless intermediate-range sensing network
CN111431560A (en) Anti-strong interference device and method based on IIR filter
Thesni et al. Implementation and performance comparison of digital filter in FPGA
Lin et al. A new flexible filter bank for low complexity spectrum sensing in cognitive radios
CN1110906C (en) Selective filter for co-channel interference reduction
CN110208755A (en) A kind of dynamic radar echo digital down conversion system and method based on FPGA
Singh et al. Analysis of digital IIR filter with Labview
Deep et al. Spectral parameter approximation based tunable digital filters on Zynq SoC
Sun et al. Algorithms for nonuniform bandpass sampling in radio receiver
CN110690909B (en) Low-complexity dynamic non-uniform channelized user separation method
CN115835220A (en) Method and device for realizing non-blind-zone non-aliasing digital channelization and electronic equipment
Al Adnani et al. Spectrum analyzers today and tomorrow: Part 2
Lowenborg et al. Linear programming design of linear-phase FIR filters with variable bandwidth
CN115833850B (en) Method and device for realizing digital channelization without blind zone and aliasing, and electronic equipment
Kumar et al. Design of cosine modulated pseudo QMF bank using modified Dolph-Chebyshev window
Bregovic et al. Design of two-channels FIR filterbanks with rational sampling factors using the FRM technique
Stancic et al. A complexity analysis of IIR filters with an approximately linear phase
Swietach et al. Design of analog filters with single transmission zeros, dedicated for hfb systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant