Sunteți pe pagina 1din 4

International Journal of Management, Technology And Engineering ISSN NO : 2249-7455

Design and Implementation of FIR Filter using FPGA


R. Srikala madhuri ¹ , B. Usha rani 1 , K. Harika 1, J. Sunil Kumar 2

1.Department of Electronics and Communication Engineering , Vignan Institute of Management


and Technology for Women , E-mail: srikalamadhuri@gmail.com, bonuga.ushareddy@gmail.com,
korivi.harika@gmail.com
2. Department of Electronics and Communication Engineering, Assistant professor, Vignan
Institute of Management and Technology for Women, E-mail: sunil5718@gmail.com

ABSTRACT
FIR filter (Finite impulse response) - The from source to destination it lost some
finite impulse response filter is the most basic information due to the presence of noise in the
components in digital signal processing channel. This information should be retained in
systems and are widely used in its original form by the signal until it reaches to
communications , image processing and the destination so that there is a complete
pattern recognition. Based on FPGA (editable information transfer without any loss in signal.
logic device ). In Digital signal processing, A signal has high frequency range, low
Filter is used almost in all devices. Filters are frequency range and mid frequency range.
used to extract the useful part from the input Sometime useful information is contained by
signal and the required part of the signal is using only high frequencies or low frequencies
reached to the receiver. For linear or mid frequencies range. This useful
characteristics devices, FIR filter is used information is extracted by filters. These filters
which is nothing but a combination of are different for analog and digital signals. For
multiplier and adder[1]. In this project, FIR DSP applications we use digital filters. FIR filter
filter has been designed by using Vedic is a type of digital filter which is used for linear
multiplier and CLA adder. Combination of characteristics applications. Various types of
Vedic multiplier and Carry look ahead adder techniques have been proposed for the designing
makes FIR filter faster. RTL synthesis has of FIR filter. Designing of FIR filter by using
been done by using Xilinx 14.7 and MAC[2] unit is easy as compare to window
simulation is done by using Xilinx I sim. In techniques.
this work we compare the Finite impulse MAC unit is multiplier accumulation unit. It
response filter with MAC unit consisting of comprises of multiplier and adder. To make FIR
Vedic multiplier with FIR filter with adder. filter faster a multiplier and an adder, selected
By the proposed work of FIR filter with MAC for MAC unit should be faster. A reconfigurable
unit we can get effective results in terms of booth multiplier has been selected which is a
Area, Delay and Power consumption aspects. high speed multiplier. Carry Look Ahead adder
is used for the purpose of final addition. This
Keywords—Vedic multiplier; carry look ahead combination has made the device faster.
adder; MAC unit; FIR Filter;
II. Literature Survey:

I. INTRODUCTION Multipliers are extensively used in


Microprocessors, DSP and Communication
Digital signal processing is an important part applications. For higher order Multiplications, a
of electronic devices whereas a signal is an huge number of adders are to be used to perform
integral part of DSP. A signal is information the partial product addition. The need of low
which we want to transfer from source to power and high speed Multiplier is increasing as
destination through a medium called channel. the need of high speed processors are increasing.
When any signal containing information travels

Volume IX, Issue X, OCTOBER/2019 Page No: 321


International Journal of Management, Technology And Engineering ISSN NO : 2249-7455

The Vedic multiplication technique is based on amount of time required to determine carry bits.
16 Vedic sutras or aphorisms, which are actually It can be contrasted with the simpler, but usually
word formulae describing natural ways of slower, ripple-carry-adder (RCA)[5], for which
solving a whole range of mathematical problems. the carry bit is calculated alongside the sum bit,
The mathematical operations using, [3]Vedic and each stage must wait until the previous carry
Method are very fast and requires less hardware, bit has been calculated to begin calculating its
this can be used to improve the computational own sum bit and carry bit. The carry-lookahead
speed of processors. This paper describes the adder calculates one or more carry bits before
design and implementation of 4x4 bit Vedic the sum, which reduces the wait time to
multiplier based on Urdhva- Tiryakbhyam sutra calculate the result of the larger-value bits of the
(Vertically and Crosswise technique) of Vedic adder.
Mathematics. The use of Vedic mathematics lies
in the fact that it reduces the typical calculations C. Finite Impulse Response (FIR) Filter.
in conventional mathematics to very simple ones.
This is so because the Vedic formulae are The filter in which impulse response is of finite
claimed to be based on the natural principles on duration is defined as Finite Impulse Response.
which the human mind works. Vedic FIR filters can be designed with different
Mathematics is a methodology of arithmetic methods. The objective of FIR filter is to
rules that allow more efficient speed produce ideal results2,3. The transfer function of
implementation. It also provides some effective FIR filter is when the order of the filter increases
algorithms which can be applied to various the complexity and amount needed for
branches of engineering such as computing. processing the input is also increased. The
function of an FIR filter is to accept the input
III. IMPLEMENTATION OF PROPOSED signal and blocking specific frequency and
MAC UNIT: passing the real signal minus those components
to the output side. Where FIR is a digital filter
Proposed MAC unit is a combination of Vedic the filter operates on the digital input and
multiplier and Carry Look Ahead Adder. Vedic provides the digital output.
multiplier has been described in subsection A
and complete MAC unit which is proposed has FIR Filter Design
been described in subsection B.
The FIR filter are generally designed using basic
A. Vedic multiplier. building blocks such as multiplier, adders and
the series number of delays. Figure 1 shows
In multiplier, Carry Look-ahead helps in the general FIR filter of length N. The delays
improving the speed of addition operation. considered in the filter operate on the input data.
Using this algorithm(Vedic multiplier – UT The Coefficient value added to the filter is used
Sutra), the carry bits for the successive stages for multiplication.
can be calculated in advance depending on the
input signals. CLA calculates the next carry by
exploiting the fact that the carry generated at
any bit-position depends on the three inputs to
that position[4].
Pi=Xi XOR Yi (Carry Propagation), Gi=Xi
AND Yi (Carry Generation), Si=Xi XOR Yi
XOR Ci (Sum Generation) and Ci+1=Gi OR (Pi
AND Ci) (Next Carry)
Figure 1. Conventional FIR filter.
B. Carry look ahead adder.

Carry-lookahead adder (CLA) or fast adder is a Y[n] = ∑ x[n-k]* h[n]


type of adder used digital logic. A carry-look
ahead adder improves speed by reducing the For 8 bit computation again product is 32 bit.

Volume IX, Issue X, OCTOBER/2019 Page No: 322


International Journal of Management, Technology And Engineering ISSN NO : 2249-7455

We have to extract the part from 24th to 9th bit. IV.SIMULATION & RESULT
This is the useful part and we get the 16 bit
output result of FIR filter. Fig 2 shows a flow ANALYSIS
chart in which we have shown reconfigurable
A. SIMULATION
Booth multiplier with the concept of
Write and invoke code for submodules using
configuration register. For 16 bit input
configuration register will be high for MSB bit
Verilog HDL language and then write the Top
that is 100 and no part of the product will be level module code to connect all submodules.
extracted. According to the FIR filter block diagram use
Verilog HDL description to compile and then
D. Proposed MAC unit Proposed. use XILINX ISE14.7 software simulation.
Finally we need a top level module to connect
MAC unit is designed as shown in fig 2. As all submodules. It is important to note that the
shown in figure first of all two inputs to the process of writing the top level module to
MAC unit get multiplied by using Vedic submodules connection ports one by one
multiplier and then the multiplication result is mapping is correct therefore the neutron
get added to the previous stored result of module variable name the program code needs
MAC unit. This can be understood with the to be distinguished and cannot be confused.
following example: an input ai has been taken After completing the Verilog HDL code for all
which is constant throughout the computation modules and top level module , you will still
another input bi which is FIR filter coefficient. need the top level modules motivation test file,
These two inputs get multiplied by using which gives you input incentives so that you
reconfigurable booth multiplier and then the can simulate it. Finally completed Verilog
result is feed to the Carry Look Ahead Adder. HDL test bench preparation , After simulation
There is another variable ain. Initially ain is the code to be dumped into the 32 BIT FPGA
set to the zero and it works as second input to for hardware implementation.
the adder. In next cycle, ain is now previous
output of MAC unit. Hence a register is used B. ANALYSIS
in main programming to store the previous
result which works as second input to the In figure 3 we can see the corresponding
adder in each next cycle. waveforms of each signal of 16 BIT FIR filter,
where temp1, temp2 are the required filter
inputs as multiplied and added corresponding
inputs as(x1*h1) simultaneously as past
Vedic Multiplier output is accumulated with present outputs.

In figure 4 represents the instantiation of 16


BIT FILTER as a 32 BIT FIR filter output.

Fig.2. Architecture of proposed MAC unit

Volume IX, Issue X, OCTOBER/2019 Page No: 323


International Journal of Management, Technology And Engineering ISSN NO : 2249-7455

is high speed unit which makes FIR filter


faster.

REFERENCES
[1] Santosh B., B.M., Chirag S., “FPGA
implementation of efficient FIR filter with
quantized fixed point coefficients” IEEE
international conference on emerging
trend in communication, pp. 1-6, 2013
[2] M Sai Kumar, D. Ashok Kumar, P.S.,
“Design and performance analysis of
multiply accumulate MAC unit”, IEEE
International Conference on Circuit,
Power and Computing Technologies, pp.
Figure 3 : Simulation waveform of 16-bit FIR
1084- 1089, 2014
Filter
[3] Swee. K.L.S., Lo Hai Hiung,
“Performance comparison review of
32-bit multiplier designs”, IEEE
international conference on intelligent and
advanced systems, vol. 2, pp. 836-841,
June 2012
[4] Andrew D. Booth, “A signed binary
multiplication technique”, quart. Journal
Mech. and applied math., vol. 4, pt. 2, pp.
236-240, 1950
[5] B. Rashidi, B. Rashidi, M.
Pourormazd, “Design and implementation
of low power digital FIR filter based on
low power multipliers and adders on
Xilinx FPGA”, IEEE international
Figure 4 : Simulation waveform of 32-bit FIR conference on electronics computer
Filter tecnology, vol. 2, pp. 18-22, 2011
[6] Mohamed Aly and Ahmed Sayed, “A
study of signed multipliers on FPGAs”,
IEEE international conference on
electronic design, systems and application,
pp. 33-38, 2012
V. CONCLUSION:

A FIR filter has been designed by using Vedic


multiplier, which is working on the concept of
crosswise multiplication. Proposed FIR filter
has been designed by using behavioral
modeling. Synthesis of proposed work has
been done successfully. Proposed MAC unit
can work for n number of bits. For this project,
synthesis has been done for 32- bit. MAC unit

Volume IX, Issue X, OCTOBER/2019 Page No: 324

S-ar putea să vă placă și