7 Synthesis and Implementation of IIR Filter Using VHDL
7 Synthesis and Implementation of IIR Filter Using VHDL
1. Introduction
Field programmable gate array (FPGA) possessadequate performance and logic capacity to
applysomeDigital Signal Processing (DSP) algorithms efficiently [1].
FPGA has two advantages that make it suitable for DSP, the first one is that its architecture is well
appropriated for vastly parallel implementation of DSP purposes with high performance, the second is
that designers can make a tradeoff between performance vs. device area by choosing the suitable level
of parallelism to employ their tasks. Designers can achieve higher performance and optimization design
with low cost [2]
Very High-Speed Integrated Circuit Hardware Description Language (VHDL) is one prevalent
programming language that supports Register Transfer Level RTL hardware descriptions [3].
Theessential motivation to utilize VHDL is thatit is a regular, vendor/technology independent language,
and is hencereusable and portable [4].
Digital filter is a very significant part of DSP, thereforethe need to implement it has been appeared. The
two basic types of digital filtersareinfinite impulse response (IIR)and finite impulse response (FIR).
Where, An IIR needs an infinite sum to be achieved. An FIR filter involves a finite number of sample
values, where the filter equation convolutionis used to find a finite sum per output sample [5]. Digital
filter design is an uncomplicated task because it isimplemented using influential software tools [6].
In [7], Savadi A., and others designed an IIR filter using the convolution method, which is called
convolution filter, they showed the effectiveness of the Urdhava-Tiryagbhyamtechnique for
multiplication that carries a difference in the real process of multiplication itself. This
multiplicationwasachieved in Xilinx 13.4 ISE and applied on vertex-5 FPGA.
In [8] Toledo-Pérez et al, implemented a developed IIR filter on FPGA, and used MATLAB functions
to obtain and prove the filter coefficients then transferred these coefficients to an FPGA filter design.
The filter was applied within a Basys 3 Artix-7 FPGA Trainer kit of the Xilinx family. In [9] P. Jubair
Ahamed, M. Abdul Haseeb, presented hybrid programming methods which use MATLAB and VB in
digital filter design. The proposed algorithm decreases the difficulty of computing as well as
partlypreserves the multiplier combinationarchitecture, which leads to effective construction in FPGA.
Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution
of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
Published under licence by IOP Publishing Ltd 1
1st International Ninevah Conference on Engineering and Technology (INCET 2021) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 1152 (2021) 012026 doi:10.1088/1757-899X/1152/1/012026
Debarshi D. and Himadri S. D. introduced an enhanced design of reconfigurable IIR filter that
isbroadlyutilized in real-time applications in [10]. The designed filter is designed using hardware
description language thenverified on Virtex-5 board from Xilinx family.
In this paper, IIR digital filter design using the FDA tool is presented. parallel and programmable
multiplexing IIR filter architectures are simulated and implemented on an FPGA kit using ISE14.7i and
VHDL.The other sections of the paper is structured as follows: Section 2 describes the digital filter
design methodology. IIR filter is synthesized using VHDL in section 3. The simulation and
implementation results using a Xilinx FPGA device are given in sections 4 and 5. Finally, section 6
concludes this paper.
N N
y ( n) = a x ( n − i ) − b y ( n − i ) (1)
i i
i=0 i =1
where the x(n-i)’s is recent or previous filter inputs, y(n) is the recent filter output, the y(n-i)’s are
previous filter outputs, N is the filter’s order, the a i ’s are the filter’s feed-forward coefficients
corresponding to the zeros of the filter, the b ’s are the filter’s feedback coefficients corresponding to
i
As it can be noticed from the above equation, the digital filter design relies on the coefficients of the
filter. Constant coefficients calculation of a digital filter includes an extensive amount of computation,
these computations are generally accomplished using a software tool. MATLAB has a packed tool for
filter design, The Filter Design and Analysis (FDA) tool [14]. The (FDA) is a graphical user interface
(GUI) tool available in the signal processing toolbox of MATLAB, it could be used for designing and
analyzing filters. Filter specifications are fed as inputs to the FDA. Figure 2 shows the filter design
window of the FDA tool, when the filter design is completed from the FDA window, one can select
filter type (FIR or IIR) and all specifications of the filter design. For hardware implementation, the
lowpass filter has been selected and designed with specification design as shown in Table 1.
2
1st International Ninevah Conference on Engineering and Technology (INCET 2021) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 1152 (2021) 012026 doi:10.1088/1757-899X/1152/1/012026
3
1st International Ninevah Conference on Engineering and Technology (INCET 2021) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 1152 (2021) 012026 doi:10.1088/1757-899X/1152/1/012026
4
1st International Ninevah Conference on Engineering and Technology (INCET 2021) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 1152 (2021) 012026 doi:10.1088/1757-899X/1152/1/012026
a0
DFF DFF
a1 -b1
c c
DFF DFF
-b2
a2
c
c
DFF DFF
a3 -b3
c c
5
1st International Ninevah Conference on Engineering and Technology (INCET 2021) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 1152 (2021) 012026 doi:10.1088/1757-899X/1152/1/012026
coefficients
mux
y reg
a3
input b3
a2
x(n) output b2
a1
y(n) b1
a0
mux
accu
6
1st International Ninevah Conference on Engineering and Technology (INCET 2021) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 1152 (2021) 012026 doi:10.1088/1757-899X/1152/1/012026
Figure 9 demonstrates the relationship between the required number of gates and the filter length, where
the number of gatesis increased asthe filter length increased, but this increasing is greater for the parallel
form compared with the multiplexing form. The same thing in 4-input (Look Up Tables) LUT utilization
as shown in Figure (10). From simulation results, the throughput in parallel form equal maximum
frequency/1clk cycles, for multiplexing form the throughput equal maximum frequency/8 clk cycles.
therefore, the parallel approach high performance with no constraint in hardware consumed, in contrast,
the programmable multiplexed approach is more efficient in terms of resources needed and utilized, but
the performance is lower.
11
parallel form 5000
parallel form
10 programmable multiplexing form
programmable multiplexing form
4500
9
8 4000
7 3500
6
3000
5
2500
4
3 2000
2
1500
1
1000
0 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 7
1 2 3 4 5 6 7 8 filter length
filter length(order)
200 260
11
parallel form parallel form
programmable multiplexing form 240
10 programmable multiplexing form
180
2209
160
2008
total n. of 4input LUT
N. of occupied slices
140
1807
N. of multiplication
120 1606
100 1405
1204
80
1003
60
802
40 601
2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 7 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 7
filter length filter length
0
1 2 3 4 5 6 7 8
Figure 9. N. of Gates as function of taps Figure 10. N. of 4-input LUT as a function filter length(order)
of filter order
5. Conclusions
Today digital filter design is greatly facilitated by the availability of numerous computer software
programs. FDA package is such tool, which used for designing and analyzing filter in this paper.
Synthesis, simulated IIR lowpass Butterworth filter using ISE14.7 and VHDL language, then
implemented on the FPGA to achieve hardware verification. The target device is spartan3e
xc3s500efg320. The research is focused on the architecture part of the design. The proposed design of
the filter includes two architectures parallel architecture, and programmable multiplexing architecture,
with different filter lengths. The direct approach high performance with no constraint in hardware, in
contrast, the programmable multiplexing approach minimizes hardware requirement while yielding less
performance. In future works, practical application of IIR filter can be introduced and other architectures
of IIR filters can be implemented which can be compared with FIR filter architecture.
7
1st International Ninevah Conference on Engineering and Technology (INCET 2021) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 1152 (2021) 012026 doi:10.1088/1757-899X/1152/1/012026
6. References
[1] Turney R D, Dick C, David BP and HwangJModeling and implementations of DSP FPGA
Solution XilinxInc san Jose, CA95124, USA 1-16
[2] WoodR andMcullisterJ2008FPGA based Implementation of Signal Processing Systemsjohn
Wileyand sons ISBN 978-0-470-03009-7.
[3] HauckS andDehonA2008Reconfigurable Computing, the theory and practice of FPGA based
ComputationElsevierInc ISBN 978-0-12-370522-8.
[4] PedroniV2004Circuit Design with VHDLMassachusetts institute of technology (MIT) press ISBN
0-262-16224-5.
[5] Kunchevo A andYanchev G2008 Synthesis and Implementation of DSP Algorithms in advanced
Programmable Architectures Proceeding InInternational Scientific Conference Computer
ScienceISCCS.
[6] Poučki VM, Žemva A, Lutovac MD and Karčnik T 2008 Chebyshev IIR filter sharpening
implemented on FPGA transfer 100 1-11
[7] Savadi A,Yanamshetti R and Biradar S 2016Design and implementation of 64 bit IIR filters using
Vedic multipliersProcedia Computer Science 85 790-797
[8] Toledo-Pérez DC, Martínez-Prado MA, Rodríguez-Reséndiz J, Arriaga ST andMárquez-
Gutiérrez MÁ2017 IIR digital filter design implemented on FPGA for myoelectric signalsIn
2017 XIII International Engineering Congress (CONIIN)IEEE 1-7
[9] JubairAhamed P and Abdul Haseeb M2020 Implementation of Digital IIR Filter Design Based on
Field Programmable Gate ArrayMaterials Today: Proceedings,ISSN 2214-7853.
[10] Datta D and Dutta HS 2021 High performance IIR filter implementation on FPGA Journal of
Electrical Systems and Information Technology 8(1)1-9
[11] Vinger KA and Torresen J 2003Implementing evolution of FIR-filters efficiently in an FPGA In
NASA/DoD Conference on Evolvable Hardware IEEE26-29
[12] DemirsoyS,DempsterA and KaleI2004Efficient implementation of digital filters using novel
reconfigurable multiplier blocks (REMB)In Conference Record of the Thirty-Eighth Asilomar
Conference on Signals, Systems and Computers IEEE. (1) 461-464
[13] MokhtariN andRahmanianS2006Hardware Implementation Analysis for Digital FiltersIn
Proceedings of the 14th Iranian Conference on Electrical Engineering (ICEE’06).
[14] WanhammarL1999DSP Integrated Circuitsacademic press series in engineering ISBN 0-12-
734530-2, UK.