CN110620566A - FIR filtering system based on combination of random calculation and remainder system - Google Patents

FIR filtering system based on combination of random calculation and remainder system Download PDF

Info

Publication number
CN110620566A
CN110620566A CN201910910326.0A CN201910910326A CN110620566A CN 110620566 A CN110620566 A CN 110620566A CN 201910910326 A CN201910910326 A CN 201910910326A CN 110620566 A CN110620566 A CN 110620566A
Authority
CN
China
Prior art keywords
remainder
conversion unit
random
result
conversion
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
CN201910910326.0A
Other languages
Chinese (zh)
Other versions
CN110620566B (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.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN201910910326.0A priority Critical patent/CN110620566B/en
Publication of CN110620566A publication Critical patent/CN110620566A/en
Application granted granted Critical
Publication of CN110620566B publication Critical patent/CN110620566B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H17/00Networks using digital techniques
    • H03H17/02Frequency selective networks
    • H03H17/06Non-recursive filters
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H17/00Networks using digital techniques
    • H03H2017/0072Theoretical filter design
    • H03H2017/0081Theoretical filter design of FIR filters

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Complex Calculations (AREA)

Abstract

The invention discloses an FIR filtering system based on the combination of random calculation and a remainder system. The invention converts the input binary number into remainder representation through a forward conversion unit, converts the data of the corresponding channel into probability domain bit stream through a random calculation forward conversion unit, then replaces the original multiplication and addition operations by an AND gate and a random calculation backward conversion unit, and finally converts the final result back to binary output through a remainder system backward conversion unit, thereby greatly reducing the resources required by constructing the traditional filter and simultaneously reducing the time delay increased by random calculation.

Description

FIR filtering system based on combination of random calculation and remainder system
Technical Field
The invention belongs to the technical field of digital signal processing, and particularly relates to an FIR filtering system based on combination of random calculation and a remainder system.
Background
A Finite Impulse Response (FIR) filter is one of the most commonly used and important filters in digital signal processing systems because it can be designed to have an arbitrary amplitude-frequency characteristic while ensuring an accurate and strict linear phase characteristic, and its unit sampling Response is Finite and is a stable system. In practical use, the main goal of the FIR digital filter is not only to obtain filter coefficients satisfying performance criteria, but also to reduce hardware resources and energy consumption as much as possible.
The Remainder Number System (RNS) is an unweighted operation, and each modular operation has natural independence and parallelism, and no carry exists between the modular operations. In the residue number system, a large integer X passes through a set of pairwise coprime residue numbers m1,m2,m3…mLIs divided into a set of small integers of independent parallel operation x1,X2,x3…xLIn addition and multiplication operations, no carry propagation exists among all parallel modules, so that the time delay of a key path is reduced, and the method is widely applied and researched in digital signal processing with a large number of multiplication and addition operations.
Stochastic Computing (SC) is a weightless, low-cost, noise-immune approximation Computing method in which a number is converted into a probability domain bit stream for computation, and if the generated probability domain bit stream is a centrally distributed sequence and a uniformly distributed sequence, then an accurate multiply-add result can be obtained by a simple and or gate. The random calculation can greatly reduce resource consumption, but also brings huge delay and reduces the operation speed. The random operation is combined with a remainder System (SC-RNS), the parallelism of the remainder System and the low overhead of the random computation are combined, the resource consumption is greatly reduced, and the delay increased by the random computation is reduced.
Disclosure of Invention
The invention aims to provide an FIR filter system based on random computation and remainder system combination (SC-RNS) so as to reduce the resources required for constructing the traditional filter and simultaneously reduce the time delay increased by the random computation.
In order to achieve the above object, the present invention provides an FIR filtering system based on random computation and remainder system combination, comprising:
a remainder system forward conversion unit, a random calculation forward conversion unit, an arithmetic unit, a random calculation backward conversion unit and a remainder system backward conversion unit;
the remainder system forward conversion unit is used for generating a remainder base { m }according to the generated remainder base1,m2,m3,…,mi,…,mLConverting the input binary number X to obtain a conversion result { X }1,x2,x3,…,xi,…,xL};
The random calculation forward conversion unit is used for converting the conversion result { x ] of the remainder system forward conversion unit1,x2,x3,…,xi,…,xLCarrying out secondary conversion to obtain a secondary conversion result { s }1,s2,s3,…,si,…,sLIn which s isiIs formed by xiConverting the obtained probability domain bit stream;
the operation unit is used for calling AND gate operation under each channel;
the random calculation backward conversion unit is used for converting the corresponding channel random calculation result into a remainder system and simultaneously performing accumulation and modulus operation;
and the remainder system backward conversion unit is used for converting the number under the remainder system into a binary representation to obtain a filtering result.
Further, the residue system forward conversion unit generates a residue base specifically as follows:
and constructing a finite impulse response filter system, and selecting the residue number base according to the digit number of the output data of the filter system to ensure that the digit number of the output data is in the dynamic range of the residue number base.
Further, when the output data is 32 bits, the residue basis is {2 }11-1,211,211+1}。
Further, when the output data is 32 bits, the length of the corresponding random computation bit stream is {2047, 2048, 2049}, and the remainder is converted into a random computation bit stream of the corresponding length.
Further, the performing of the second conversion by the random calculation forward conversion unit specifically includes:
conversion result { x for the remainder system forward conversion unit1,x2,x3,…,xi,…,xLData x in (c) }iPerforming secondary conversion to obtain a secondary conversion result { s1,s2,s3,…,si,…,sLAnd (c) in the secondary conversion result, the data is binary number X and passes through the residue base miTo obtain xiThen by xiConversion into a probability domain bitstream si
Furthermore, the arithmetic unit uses an AND gate and the random calculation under each channel and then carries out multiplication and addition operation on the conversion unit to obtain an operation result.
Furthermore, the residue number system backward conversion unit converts the operation result into binary output, and preferentially converts the operation result after the secondary conversion to obtain a filtering result.
The invention has the beneficial effects that: the invention converts the input binary number into remainder representation through a forward conversion unit, converts the number represented by the remainder into bit stream representation of random calculation again, replaces the original multiplication and addition operations by using a simple AND gate, and finally converts the final result back into binary output through a backward conversion unit, thereby greatly reducing the resources required by constructing the traditional filter and simultaneously reducing the increased time delay.
Drawings
FIG. 1 is a block diagram of an FIR filtering system based on random calculation combined with a remainder system according to the present invention;
in the figure: 110-a forward conversion unit; 120-a secondary conversion unit; 130-an arithmetic unit; 140-probability calculation backward conversion unit, 150-remainder system backward conversion unit;
fig. 2 is a diagram of a forward conversion unit for converting a binary number X into a remainder domain and then into a probability domain bit stream according to the present invention.
FIG. 3 is a diagram of a random calculation backward conversion unit according to the present invention;
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows:
as shown in fig. 1, an FIR filtering system based on random computation combined with a remainder system includes:
a remainder system (RNS) forward conversion unit 110, a random computation (SC) forward conversion unit 120, an operation unit 130, a random computation (SC) backward conversion unit 140, and a remainder system (RNS) backward conversion unit 150;
the input of the present invention is a binary number X, which is processed by the remainder system forward conversion unit 110.
Remainder base m in remainder system forward conversion unit 1101,m2,m3,…,mi,…,mLConverting binary number X into remainder X1,x2,x3,…,xi,…,xLDenotes that the video stream is converted into a corresponding bit stream after passing through the random-computation forward conversion unit 120.
The residue system forward conversion unit generates a residue base specifically as follows:
and constructing a required FIR filter by using FDATOOL of MATLAB to generate a corresponding Verilog code, and selecting a residue basis according to the digit of output data of the filter in the code to ensure that the product of the residue basis is larger than the value of the maximum bit width, namely the digit of the output data is in the dynamic range of the residue basis.
In the preferred embodiment of this embodiment, a FIR filter with 32 bits of output data is used, and the residue basis is {2 }11-1,211,211+1, which can represent a dynamic range of The corresponding randomly calculated bit stream is of length {2047, 2048, 2049}, and the remainder is converted into a randomly calculated bit stream of corresponding length. The binary number X after residue base conversion is { X1,x2,x3,x4,x5}。
The random calculation forward conversion unit 120 converts the system forward conversion unit's conversion result { x) according to the remainder1,x2,x3,…,xi,…,xLIth item data x iniPerforming secondary conversion to obtain a secondary conversion result { s1,s2,s3,…,si,…,sLAnd f, wherein the ith item of data in the secondary conversion result is a remainder base m of binary number X passing through the ith channeliTo obtain xiThen by xiConversion into a probability domain bitstream siAs shown in fig. 2.
The operation unit 130 obtains the result of the multiplication operation by using and gates in the respective channels.
In the preferred embodiment of this embodiment, the operation unit 130 performs multiplication and addition operations on each channel by using the and gate and the post-conversion unit 140 for random calculation, so as to obtain an operation result.
The random calculation backward conversion unit 140 converts the corresponding channel random calculation result to a remainder system, and performs the accumulation and modulo operations at the same time, as shown in fig. 3.
The remainder system back-conversion unit 150 converts the numbers under the remainder system to a binary representation, resulting in the final result of the operation.
In a preferred embodiment of this embodiment, the residue number system backward conversion unit converts the operation result into a binary output, and preferentially converts the operation result after the second conversion to obtain a filtering result.
The invention uses accumulators and comparators to implement a forward conversion of random calculations, modulo-211-1 and die 211Because the bit width of the adder and the multiplier is 11 bits, 11-bit counters are adopted. And a die 211The bit width of +1 is 12 bits, so modulo 212The conversion to +1 uses a 12-bit counter for random calculation. Multiplication operation is realized by the operation unit 130 through an AND gate under each residue channel, and addition operation, namely corresponding filtering operation, is realized by the backward conversion unit through random calculation.
The invention converts the bit stream generated at last by random computation into a remainder system, and then converts the final result back to a binary system to obtain the final filtering result, namely, the random computation backward conversion unit 140 converts the random computation result into a representation under the remainder system, and the backward conversion unit 150 converts the number under the remainder system into a binary representation to obtain the filtering result.
In summary, the invention first uses the Matlab fdato ool tool box to design the required FIR filter and generate the corresponding Verilog code, and selects the residue number base according to the number of bits of the output data in the generated code, so that the output number is in the dynamic range of the residue number base; then according to the selected residue basis, determining the length of the bit stream randomly calculated by each channel; then, according to the codes, the construction of other units is completed, including a remainder system forward conversion unit 110, a random calculation forward conversion unit 120, a random calculation backward conversion unit 140 and a remainder system backward conversion unit 150; the binary number X enters the FIR filtering system constructed by the present invention, is converted into remainder representation by the remainder system forward conversion unit 110, the remainder representation is converted into a bit stream by the random computation forward conversion unit 120, then the original multiplication and addition operations are replaced by the and gate and random computation backward conversion unit 140, and finally the final result is converted back to binary output by the remainder system backward conversion unit 150 to obtain the filtering result.
It will be appreciated by those of ordinary skill in the art that the embodiments described herein are intended to assist the reader in understanding the principles of the invention and are to be construed as being without limitation to such specifically recited embodiments and examples. Those skilled in the art can make various other specific changes and combinations based on the teachings of the present invention without departing from the spirit of the invention, and these changes and combinations are within the scope of the invention.

Claims (7)

1. An FIR filtering system based on random computation combined with a residue number system, comprising:
a remainder system forward conversion unit, a random calculation forward conversion unit, an arithmetic unit, a random calculation backward conversion unit and a remainder system backward conversion unit;
the remainder system forward conversion unit is used for generating a remainder base { m }according to the generated remainder base1,m2,m3,...,mi,...,mLConverting the input binary number X to obtain a conversion result { X }1,x2,x3,...,xi,...,xL};
The random calculation forward conversion unit is used for converting the conversion result { x ] of the remainder system forward conversion unit1,x2,x3,...,xi,...,xLCarrying out secondary conversion to obtain a secondary conversion result { s }1,s2,s3,...,si,...,sLIn which s isiIs formed by xiConverting the obtained probability domain bit stream;
the operation unit is used for calling AND gate operation under each channel;
the random calculation backward conversion unit is used for converting the corresponding channel random calculation result into a remainder system and simultaneously performing accumulation and modulus operation;
and the remainder system backward conversion unit is used for converting the number under the remainder system into a binary representation to obtain a filtering result.
2. The FIR filtering system based on random computation combined with the remainder system as claimed in claim 1, wherein the remainder system forward conversion unit generates the remainder base as follows:
and constructing a finite impulse response filter system, and selecting the residue number base according to the digit number of the output data of the filter system to ensure that the digit number of the output data is in the dynamic range of the residue number base.
3. The FIR filtering system based on random computation combined with remainder system as claimed in claim 2, wherein when the output data is 32 bits, the remainder base is {2 }11-1,211,211+1}。
4. The FIR filtering system based on random computation combined with remainder system as claimed in claim 3, wherein when the output data is 32 bits, the length of the corresponding random computation bit stream is {2047, 2048, 2049}, and the remainder is converted into a random computation bit stream of the corresponding length.
5. The FIR filtering system based on the combination of random computation and remainder system as claimed in claim 4, wherein said random computation forward conversion unit performs a second conversion specifically as follows:
conversion result { x for the remainder system forward conversion unit1,x2,x3,...,xi,...,xLData x in (c) }iPerforming secondary conversion to obtain a secondary conversion result { s1,s2,s3,...,si,...,sLAnd (c) in the secondary conversion result, the data is binary number X and passes through the residue base miTo obtain xiThen by xiConversion into a probability domain bitstream si
6. The FIR filtering system based on the combination of random calculation and remainder system as claimed in claim 5, wherein said operation unit uses AND gate and said random calculation backward conversion unit to perform multiplication and addition operation under each channel to obtain operation result.
7. The FIR filtering system based on the combination of random calculation and remainder system as claimed in claim 6, wherein said remainder system backward conversion unit converts the operation result into binary output, and preferentially converts the operation result after the second conversion to obtain the filtering result.
CN201910910326.0A 2019-09-25 2019-09-25 FIR filtering system based on combination of random calculation and remainder system Active CN110620566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910910326.0A CN110620566B (en) 2019-09-25 2019-09-25 FIR filtering system based on combination of random calculation and remainder system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910910326.0A CN110620566B (en) 2019-09-25 2019-09-25 FIR filtering system based on combination of random calculation and remainder system

Publications (2)

Publication Number Publication Date
CN110620566A true CN110620566A (en) 2019-12-27
CN110620566B CN110620566B (en) 2021-07-02

Family

ID=68924084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910910326.0A Active CN110620566B (en) 2019-09-25 2019-09-25 FIR filtering system based on combination of random calculation and remainder system

Country Status (1)

Country Link
CN (1) CN110620566B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113128141A (en) * 2021-04-19 2021-07-16 电子科技大学 Median filtering system based on error-free random calculation
CN113327261A (en) * 2021-05-20 2021-08-31 电子科技大学 Error-free provincial resource image edge detection operator method based on random calculation

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0166563A2 (en) * 1984-06-21 1986-01-02 Texas Instruments Incorporated Residue number system universal digital filter
US5987487A (en) * 1996-03-11 1999-11-16 Cirrus Logic, Inc. Methods and apparatus for the processing of digital signals
CN101552604A (en) * 2009-05-13 2009-10-07 上海理工大学 Forward direction value conversion module of data conversion system and realization method thereof
CN102214083A (en) * 2011-05-19 2011-10-12 电子科技大学 Backward conversion method and device for residue number system
CN103001605A (en) * 2012-11-02 2013-03-27 同济大学 DA-RNS (distributed arithmetic-residue number system) algorithm based FIR (finite impulse response) filter realizing method
US8618961B1 (en) * 2012-03-12 2013-12-31 Audience, Inc. Sample rate conversion using infinite impulse response filters
CN103647522A (en) * 2013-11-19 2014-03-19 吕晓兰 Four-mold remainder system based FIR filter and design method thereof
CN109510610A (en) * 2018-11-07 2019-03-22 电子科技大学 A kind of kernel adaptive filtering method based on soft projection Weighted Kernel recurrence least square

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0166563A2 (en) * 1984-06-21 1986-01-02 Texas Instruments Incorporated Residue number system universal digital filter
US5987487A (en) * 1996-03-11 1999-11-16 Cirrus Logic, Inc. Methods and apparatus for the processing of digital signals
CN101552604A (en) * 2009-05-13 2009-10-07 上海理工大学 Forward direction value conversion module of data conversion system and realization method thereof
CN102214083A (en) * 2011-05-19 2011-10-12 电子科技大学 Backward conversion method and device for residue number system
US8618961B1 (en) * 2012-03-12 2013-12-31 Audience, Inc. Sample rate conversion using infinite impulse response filters
CN103001605A (en) * 2012-11-02 2013-03-27 同济大学 DA-RNS (distributed arithmetic-residue number system) algorithm based FIR (finite impulse response) filter realizing method
CN103647522A (en) * 2013-11-19 2014-03-19 吕晓兰 Four-mold remainder system based FIR filter and design method thereof
CN109510610A (en) * 2018-11-07 2019-03-22 电子科技大学 A kind of kernel adaptive filtering method based on soft projection Weighted Kernel recurrence least square

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
KUNCAI ZHONG等: "Optimizing Stochastic Computing-Based FIR Filters", 《2018 IEEE 23RD INTERNATIONAL CONFERENCE ON DIGITAL SIGNAL PROCESSING (DSP)》 *
陈建文: "基于余数系统的FIR滤波器的研究", 《中国博士学位论文全文数据库信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113128141A (en) * 2021-04-19 2021-07-16 电子科技大学 Median filtering system based on error-free random calculation
CN113327261A (en) * 2021-05-20 2021-08-31 电子科技大学 Error-free provincial resource image edge detection operator method based on random calculation

Also Published As

Publication number Publication date
CN110620566B (en) 2021-07-02

Similar Documents

Publication Publication Date Title
Samimi et al. Res-DNN: A residue number system-based DNN accelerator unit
CN110765709B (en) FPGA-based base 2-2 fast Fourier transform hardware design method
CN110620566B (en) FIR filtering system based on combination of random calculation and remainder system
Haveliya A Novel Design for High Speed Multiplier for Digital Signal Processing Applications
Gokhale et al. Design of Vedic-multiplier using area-efficient Carry Select Adder
Rao et al. FPGA implementation of complex multiplier using minimum delay Vedic real multiplier architecture
Kunchigi et al. 32-bit MAC unit design using vedic multiplier
CN112799634B (en) Based on base 2 2 MDC NTT structured high performance loop polynomial multiplier
Pathan et al. FPGA Based performance analysis of multiplier policies for FIR filter
CN103955585B (en) FIR (finite impulse response) filter structure for low-power fault-tolerant circuit
CN110677138B (en) FIR filter based on error-free probability calculation
RU2299461C1 (en) Modulus multiplexer
Balaji et al. Design of FIR filter with Fast Adders and Fast Multipliers using RNS Algorithm
Kumar et al. Performance analysis of FIR filter using booth multiplier
CN108616265B (en) Circuit structure of RNS DWT filter bank based on five-modulus residue number basis
CN109787585A (en) A kind of FIR filtering system based on nested type residue number system
Raj et al. A paradigm of distributed arithmetic (DA) approaches for digital FIR filter
Ghosh et al. FPGA implementation of RNS adder based MAC unit in ternary value logic domain for signal processing algorithm and its performance analysis
Anuhya et al. ASIC implementation of efficient floating point multiplier
Silviyasara et al. Efficient architecture reverse converter design using Han Carlson structure with carry look ahead adder
Nikam et al. Design and Implementation of 32bit Complex Multiplier using Vedic Algorithm
Moayedi et al. Design and evaluation of novel effective Montgomery modular multiplication architecture
Alia et al. On the lower bound to the VLSI complexity of number conversion from weighted to residue representation
CN116865979B (en) MDC-NTT device based on post quantum digital signature
Guo et al. Implementation of 2-D DCT based on FPGA

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