CN105048994A - Distributed algorithm applied to FIR filters - Google Patents

Distributed algorithm applied to FIR filters Download PDF

Info

Publication number
CN105048994A
CN105048994A CN201510370425.6A CN201510370425A CN105048994A CN 105048994 A CN105048994 A CN 105048994A CN 201510370425 A CN201510370425 A CN 201510370425A CN 105048994 A CN105048994 A CN 105048994A
Authority
CN
China
Prior art keywords
module
data
input
look
group
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.)
Pending
Application number
CN201510370425.6A
Other languages
Chinese (zh)
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.)
Wuxi China Resources Semico Co Ltd
Original Assignee
Wuxi China Resources Semico Co Ltd
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 Wuxi China Resources Semico Co Ltd filed Critical Wuxi China Resources Semico Co Ltd
Priority to CN201510370425.6A priority Critical patent/CN105048994A/en
Publication of CN105048994A publication Critical patent/CN105048994A/en
Pending legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

The present invention relates to digital filter field,More particularly to a kind of distributed algorithm applied to FIR filter,Comprising steps of analog input signal X [n] is converted to B position digital signal through analog-to-digital conversion module; It is handled using B position digital signal as shift register is entered data into,Processing result is sent to string and module; It goes here and there and input data is transferred to binary digit and weighs multiplier module by module,According to binary system power and position rearrange output to and go here and there module; And go here and there module by input data according to 20,21,..,2B-1,It is divided into B group bit flow data; B group bit flow data has respectively entered n group look-up table means while being tabled look-up and add operation,And according to two-dimensional DA algorithmic formula B group output data is calculated to get filtered output signal Y [n] out. Present invention saves memory resources and logic unit, have sufficiently used FPGA resource.

Description

A kind of distributed algorithm being applied to FIR filter
Technical field
The present invention relates to digital filter (i.e. FIR filter) field, be specifically related to a kind of distributed algorithm being applied to FIR filter.
Background technology
Existing FIR filter is mainly applied in touch control circuit, such as: just used FIR filter in the existing touch screen control circuit CS9603 product commercially sold.At present, what existing FIR filter adopted is that Direct-type accumulation structure directly uses multiplier and adder to realize convolution algorithm, thus reaches filtering object.
As shown in Figure 1, it is the block diagram that existing FIR filter is applied to periphery circuit, wherein filter configuration (fir_mcu_if) module receives the action that address that main control chip sends, data, filter coefficient and the information such as enable control filter, adopts standard time sequence.Data processing (Data_process) module is by the scanning of configuration requirement judgment frame, line scanning, whether uses the information such as upper lower limit value, carries out data processing.
Due to ADC(digital-to-analogue conversion) be 9 level production line ADC, 2 every grade, so be that 18 adc data are supplied to wired impulse response (fir) module altogether, time unifying (time_align) module inside fir module deposits 2 bit data of 8 grades above, Deng 2 bit data of the 9th grade out after, the data of the data of depositing above and the 9th grade are combined into 18 bit data through data correction (digital_correction) module, remove error, generate effective 10 adc data, later, each adc clock has effective adc data.
10 adc data, first through a comparison circuit, compare its bound, when exceeding in limited time, represent by higher limit, when being less than lower prescribing a time limit, representing, if when dropping in region, represent with original value by lower limit.Whether this circuit can be opened by software control, and default situations is closed.
10 adc data are multiplied by 11 sign filter coefficient, product is 21 signed numbers, these 21 signed numbers are just as median, if consideration register, that each point must have, 32 row are multiplied by 18 row, 576 21 must be had to have sign register, can waste area, final realization is write in fir_sram by 21 signed numbers, when descending secondary, reading out from fir_sram.
Each adc clock carrys out effective 10 bit data, from fir_sram read data, should write data again at the rising edge of adc clock, for single port fir_sram, has no idea to realize.Present implementation method is 2 frequencies that fir_sram is operated in adc clock, if adc is 2.5MHz, so fir_sram is operated in 5MHz clock zone, before adc clock, the half period reads accumulated value last time from fir_sram, the accumulated value read out and currency are multiplied by filter coefficient and are added, and write in fir_sram in the later half cycle of adc clock.
Existing FIR filter substantially all adopts Convolution-type, Direct-type structural design, and this structure needs to combine multiple adder, shift unit and multiplier to realize.Due to multiplier, to take resource too large, and these those skilled in the art propose again the multiplier that application shifter-adder unit comes in alternative Direct-type in succession, but the resource utilization of this kind of structure to field programmable gate array (FPGA) is too low.Take the too large and problem too low to FPGA resource utilance of resource have a class processing method based on distributed algorithm to solve multiplier, this two-dimentional algorithm have employed shift add method to reduce the use of memory, and add time delay module, avoid the confusion brought because of timing Design, ensure the correctness of Output rusults.Also be adding due to time delay module, employ too many shift unit, counteract the memory resource that shifter-adder module is saved, in fact do not save memory resource and logical block (LE).
Summary of the invention
Object of the present invention will solve Problems existing in background technology exactly, provide a kind of distributed algorithm being applied to FIR filter, this distributed algorithm is the further improvement to existing Two dimensional Distribution formula algorithm, method after improvement, for designing the new structure of FIR filter, can save more logical block and memory resource.
In order to solve the problems of the technologies described above, the technical solution adopted in the present invention is: a kind of distributed algorithm being applied to FIR filter, based on existing FIR filter circuit, comprise analog-to-digital conversion module, shift register, string is module also, and go here and there module and look-up table means, it is characterized in that, binary digit power multiplier module is also add in described distributed algorithm, this distributed algorithm comprises the following steps: (1) analog input signal X [n] is input in FIR filter, analog input signal X [n] is converted to B position digital signal through analog-to-digital conversion module, wherein B is positive integer, (2) described B position digital signal is entered shift register as input data, result is delivered to string and module by shift register, (3) described string module will input transfer of data to binary digit power multiplier module, and this module is carried out rearranging according to binary system power and position and exported to and go here and there module, it is (4) described and go here and there module and will input data according to 20,21 ..., 2B-1, is divided into B group bit flow data, (5) B group bit flow data enters into n group look-up table means respectively and carries out tabling look-up and add operation simultaneously, and according to the DA algorithmic formula of two dimension calculate B group and export data, namely draw filtered output signal Y [n], in formula, b represents b bit of input data, and B represents total bit of input data, and n represents the n-th data, and (N+1)/2=P*M, M is the input figure place of look-up table in addition, and P is the number of look-up table under each parallel-serial conversion.
The invention has the beneficial effects as follows: adopt binary digit to weigh the look-up table means of multiplier module in FIR filter in distributed algorithm disclosed by the invention and be combined, instead of the time delay module adopted in existing distributed algorithm, achieve making full use of the look-up table resource in FPGA, save logical block and memory resource, save this kind of module taken compared with multiple resource of multiplier, fully use FPGA resource efficiently, between area-speed, find an appropriate balance point.
Accompanying drawing explanation
Fig. 1, existing FIR filter is applied to the block diagram of periphery circuit;
Fig. 2, the FIR filter steps flow chart block diagram in the specific embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention and operation principle are described.
As shown in Figure 2, it is steps flow chart block diagram distributed algorithm of the present invention being applied to existing FIR filter, binary digit power multiplier module is also applied in the realization of the method, this distributed algorithm comprises the following steps: (1) analog input signal X [n] is input in FIR filter, analog input signal X [n] is converted to B position digital signal through analog-to-digital conversion module, and wherein B is positive integer; (2) described B position digital signal is entered shift register as input data.Result is delivered to string and module by shift register; (3) described string module will input transfer of data to binary digit power multiplier module, and this module is carried out rearranging according to binary system power and position and exported to and go here and there module; (4) described and go here and there module and will input data according to 2 0, 2 1..., 2 b-1, be divided into B group bit flow data; (5) B group bit flow data enters into n group look-up table means respectively and carries out tabling look-up and add operation simultaneously, and according to the DA algorithmic formula of two dimension
Calculate B group and export data, namely draw filtered output signal Y [n]; In formula, b represents b bit of input data, and B represents total bit of input data, and n represents the n-th data; (N+1)/2=P*M, M is the input figure place of look-up table in addition, and P is the number of look-up table under each parallel-serial conversion, l=0,1 ..., m-1, p=0,1 ..., p-1.
Embodiment: the present embodiment is for 31 rank FIR filter, analog input signal X [n] obtains 8 position digital signals through analog-to-digital conversion, shift register is entered as input data, result is delivered to string and module by shift register group, input data are carried out rearranging according to binary system power and position and exports to and go here and there module, and go here and there module input data are divided into 8 groups of bit flow datas, enter look-up table means respectively to carry out tabling look-up and add operation simultaneously, when entering binary digit power multiplier module, 8 data are ready, need process 8 data in one-period simultaneously, to avoid the data collision with next cycle.By Parameter N=31, N+1 is resolved into the product of P, M two positive integers, makes m=0,1 ..., M-1, p=0,1 ..., P-1; B=8 (figure place of digital signal), b=0,1 ..., 7; N represents the n-th data, and these parameters are substituted into formula , draw output signal Y [n].
Application binary position of the present invention power multiplication (* 2 n) module, just can ensure the correctness of Output rusults.Otherwise the realization of existing distributed algorithm just need increase time delay module to ensure the correctness of Output rusults.But adding of time delay module, employ too many shift unit, counteract the memory resource that shifter-adder module is saved.The present invention is the consumption for reducing memory resource and logical block, to the further optimization of time delay and shifter-adder module.

Claims (1)

1. one kind is applied to the distributed algorithm of FIR filter, based on existing FIR filter circuit, comprise analog-to-digital conversion module, shift register, string module go here and there module and look-up table means, it is characterized in that, also apply binary digit power multiplier module in described distributed algorithm, this distributed algorithm comprises the following steps:
(1) analog input signal X [n] is input in FIR filter, and analog input signal X [n] is converted to B position digital signal through analog-to-digital conversion module, and wherein B is positive integer;
(2) described B position digital signal is entered shift register as input data, result is delivered to string and module by shift register;
(3) described string module will input transfer of data to binary digit power multiplier module, and this module is carried out rearranging according to binary system power and position and exported to and go here and there module;
(4) described and go here and there module and will input data according to 2 0, 2 1..., 2 b-1, be divided into B group bit flow data;
(5) B group bit flow data enters into n group look-up table means respectively and carries out tabling look-up and add operation simultaneously, and according to the DA algorithmic formula of two dimension calculate B group and export data, namely draw filtered output signal Y [n]; In formula, b represents b bit of input data, and B represents total bit of input data, and n represents the n-th data; (N+1)/2=P*M, N is filter order in addition, and M is the input figure place of look-up table, and P is the number of look-up table under each parallel-serial conversion, l=0,1 ..., m-1, p=0,1 ..., p-1.
CN201510370425.6A 2015-06-30 2015-06-30 Distributed algorithm applied to FIR filters Pending CN105048994A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510370425.6A CN105048994A (en) 2015-06-30 2015-06-30 Distributed algorithm applied to FIR filters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510370425.6A CN105048994A (en) 2015-06-30 2015-06-30 Distributed algorithm applied to FIR filters

Publications (1)

Publication Number Publication Date
CN105048994A true CN105048994A (en) 2015-11-11

Family

ID=54455239

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510370425.6A Pending CN105048994A (en) 2015-06-30 2015-06-30 Distributed algorithm applied to FIR filters

Country Status (1)

Country Link
CN (1) CN105048994A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110007285A (en) * 2019-04-16 2019-07-12 哈尔滨工业大学 A kind of Ground Penetrating Radar Distributed filtering method based on FPGA
CN110059814A (en) * 2019-03-11 2019-07-26 中山大学 A kind of lookup tabular form convolution algorithm hardware configuration based on FPGA
CN110415717A (en) * 2019-08-26 2019-11-05 合肥工业大学 A kind of signal denoising filtering method based on distributed algorithm
CN111525910A (en) * 2020-04-28 2020-08-11 上海工程技术大学 Filter device for high-speed signal transmission equipment
CN111628751A (en) * 2020-06-19 2020-09-04 浪潮云信息技术股份公司 Distributed FIR filter for simplifying lookup table
WO2021056711A1 (en) * 2019-09-27 2021-04-01 珠海市一微半导体有限公司 Interpolation filter system implemented by digital circuit

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030177157A1 (en) * 2002-03-12 2003-09-18 Kenjiro Matoba Digital filter
CN103269212A (en) * 2013-05-14 2013-08-28 邓晨曦 Method for implementing low-cost low-power-consumption programmable multistage FIR filter
CN103560990A (en) * 2013-08-16 2014-02-05 北京邮电大学 Filter-based real-time OFDM access network system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030177157A1 (en) * 2002-03-12 2003-09-18 Kenjiro Matoba Digital filter
CN103269212A (en) * 2013-05-14 2013-08-28 邓晨曦 Method for implementing low-cost low-power-consumption programmable multistage FIR filter
CN103560990A (en) * 2013-08-16 2014-02-05 北京邮电大学 Filter-based real-time OFDM access network system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
凌春丽等: "二维滤波器分布式算法结构的改进与实现", 《中北大学学报》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110059814A (en) * 2019-03-11 2019-07-26 中山大学 A kind of lookup tabular form convolution algorithm hardware configuration based on FPGA
CN110007285A (en) * 2019-04-16 2019-07-12 哈尔滨工业大学 A kind of Ground Penetrating Radar Distributed filtering method based on FPGA
CN110415717A (en) * 2019-08-26 2019-11-05 合肥工业大学 A kind of signal denoising filtering method based on distributed algorithm
CN110415717B (en) * 2019-08-26 2021-10-22 合肥工业大学 Signal denoising and filtering method based on distributed algorithm
WO2021056711A1 (en) * 2019-09-27 2021-04-01 珠海市一微半导体有限公司 Interpolation filter system implemented by digital circuit
CN111525910A (en) * 2020-04-28 2020-08-11 上海工程技术大学 Filter device for high-speed signal transmission equipment
CN111628751A (en) * 2020-06-19 2020-09-04 浪潮云信息技术股份公司 Distributed FIR filter for simplifying lookup table

Similar Documents

Publication Publication Date Title
CN105048994A (en) Distributed algorithm applied to FIR filters
CN102412808B (en) FPGA (Field-Programmable Gate Array)-based high-performance multipath FIR (Finite Impulse Response) digital extraction filter and reading method thereof
CN101847986B (en) Circuit and method for realizing FFT/IFFT conversion
CN107590085B (en) A kind of dynamic reconfigurable array data path and its control method with multi-level buffer
CN102916914B (en) Data receiving and processing system of analog front end
CN102208005A (en) 2-dimensional (2-D) convolver
CN102931994B (en) Be applied to high speed signal sampling and synchronous framework and the method for signal processing chip
CN103984560A (en) Embedded reconfigurable system based on large-scale coarseness and processing method thereof
CN103760525B (en) Completion type in-place matrix transposition method
CN104268122A (en) Point-changeable floating point FFT (fast Fourier transform) processor
CN102262604A (en) Concurrent access method, system and interface device
WO2021232843A1 (en) Image data storage method, image data processing method and system, and related apparatus
CN110492867A (en) A kind of interpolation filter system with digital circuit
CN107066200A (en) A kind of collecting method and data collecting system based on FPGA
CN103956991A (en) FIR filter parallel realization method based on CPU/GPU heterogeneous platform
CN101958697A (en) Realization method and device of multiphase filter structure
CN102710236A (en) Wavelet transform implement structure based on FPGA
CN103761072A (en) Coarse granularity reconfigurable hierarchical array register file structure
CN102082577A (en) High-speed cyclic redundancy check (CRC) device and implementation method thereof
CN106406813A (en) Universal servo control arithmetic logic unit
CN103020014A (en) Method for realizing FFT (Fast Fourier Transform) with high point number
CN202385063U (en) Digital filter based on FPGA
CN103559161B (en) A kind of bus many width change-over circuit for FPGA configuration
CN203520396U (en) Integrated circuit for optimizing control signals of registers
CN205195957U (en) Large -scale audio frequency passway of FPGA is by matrix

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20151111

WD01 Invention patent application deemed withdrawn after publication