IIR Digital Filter Design Using Xilinx System Generator For FPGA Implementation
IIR Digital Filter Design Using Xilinx System Generator For FPGA Implementation
Abstract—In general Application Specific Integrated Circuits filter design requires linear phase characteristics. Whereas IIR
(ASIC) and Digital Signal Processors (DSP) are usually used for filters shows nonlinear characteristics. By using IIR filter, the
implementing digital filters. As compared to the conventional filter order is significantly reduced than that of FIR filter for
methods available the speed of computation of digital filter is
the same frequency response.
increased by implementing on Field Programmable Logic Gate
Array (FPGA). This paper provides a novel design and In several cases the IIR filters can meet the desired
implementation of digital filter in FPGA using a high level specifications with lower order terms, while FIR filters
description tool like Xilinx System Generator. The designed filter contains higher order terms to meet the same specifications.
with desired specification is analyzed in Simulink environment in This is the main advantage of IIR filter over FIR filter. Since
MATLAB. A method for implementing IIR filter in FPGA using the FIR filter contains higher order terms, the computational
System Generator is proposed. The Xilinx system generator is
complexity is more. The computational savings is an
used for synthesizing and simulation for FPGA filter analysis.
The FPGA shows its high performance in terms of speed, important factor in the filter design. IIR filters with lower filter
memory, resource management, and power consumption. order are able to show better frequency response than FIR
filters with same frequency response. In digital signal
Index Terms—Digital Filter; Field Programmable Logic Gate processing, the implementation of IIR filter consistently
Array; Infinite Impulse Response filter; Xilinx System Generator reduces the calculations per time step. Unlike FIR filter, the
IIR filters have nonlinear phase characteristics [6-7]. They
I. INTRODUCTION might almost have linear phase characteristics if the data
0054
Type I and Type II, Bessel and Elliptic filter. All these filters A cascaded Direct form II realization technique is
approximate the ideal “brick wall” filter in various ways. implemented in the Xilinx system generator for higher order
filter when area, speed are considered as major constraint [8-
x(n) hb(n) y(n) 9]. The filter coefficients can be designed using Filter Design
X(Z) B(Z) Y(Z) and Analysis (FDA) tool available in the MATLAB. For third
order low pass Butterworth filter [10-11], the filter design
contains 2 separate sections. The coefficients in each section
are implemented in cascaded Direct form II configuration.
Different types of filter can be designed using the FDA tool as
ha(n)
per the requirements.
A(Z)
III. FPGA IMPLEMENTATION OF IIR FILTER
Fig. 1. Block diagram of IIR filter
The Xilinx System Generator environment from MATLAB
By using signal processing tool in MATLAB we can is taken for simulation of the designed filter. The FDA tool in
implement all these different type of filters and can select the signal processing toolbox gives the filter coefficients as
anyone of them according to the specification required. These per the filter specifications. For filtering out the transients
filters can be implemented in both analog domain and digital occurred in a three phase supply, a third order low pass
domain and in low pass, high pass, band pass, band stop Butterworth filter is designed. This filter is used in prior to a
configuration according to the requirements. The block recursive wavelet transform. So the filter specification
diagram of IIR filter is shown in Fig. 1. according to the requirement is given below:
A third order Butterworth low pass IIR filter with cutoff
frequency 320Hz and sampling frequency 16 KHz is designed Filter Specifications:
in this paper. This can be implemented in various ways as Cut off frequency fc = 320 Hz
mentioned above. The direct form I structure is shown below Sampling frequency fs= 16 KHz
(Fig. 2).
b0
X(n) Y(n)
+
Z¯' Z¯'
b1 -a1
+
Z¯' Z¯'
b2 -a2
+
Fig. 2. Direct Form I
X(n)
b0
Y(n)
The FDA tool in MATLAB which shows in Fig. 4 is used
+ + to design the filter coefficients for specified requirements. And
also any filter like IIR or FIR of low pass, high pass, band
-a1
Z¯'
b1
pass, band stop filter with pass band attenuation, stop band
+ + attenuation can be designed easily. As per the order of filter,
the number of sections in the filter is designed. The
Z¯' architecture for implementing digital filter in System
-a2 b2 Generator is designed using Xilinx block set. The Xilinx block
set consists of adders, multipliers, constants and delays.
Fig. 3. Direct form II
Authorized licensed use limited to: BRACT's Vishwakarma Institute Pune. Downloaded on July 22,2024 at 10:37:16 UTC from IEEE Xplore. Restrictions apply.
0055
Fig. 7. Input Signal to the IIR filter
Fig. 5. Realization of IIR filter in Xilinx system generator
V. HARDWARE RESULT
The designed digital filter in Xilinx System Generator is
now implementing in FPGA using WAVECT. The FPGA
based platform offers high-speed serial input/output ports,
embedded processors, arithmetic modules, and plenty of
Fig. 6. Realization of filter in cascade form (Direct form II) memory. The system generator model in MATLAB
generates VHDL code for the Xilinx blocks. The VHDL code
IV. SIMULATION RESULTS is converted into a bin file and that is dumped into Zynq7000
Here in order to filter out the disturbances like switching FPGA board in the WAVECT. The WAVECT consists of
transients with sudden variation in the load, an IIR digital voltage sensors, current sensors, 12-bit Analog to Digital
filter is simulated in Xilinx System Generator. A three phase Converter (ADC) and Zynq7000 FPGA board. The probes
source makes the input to the system. The designed IIR filter connected to the WAVECT shows the results. Using
is capable of filtering out the arriving signal as per the filter WAVECT software in PC the hardware results are obtained.
specifications. In this work a combination of three different The implementation algorithm as a flowchart is shown
sinusoidal signals (50Hz, 320Hz, and 5 KHz) are given as below in Fig. 9. A third order Butterworth filter with cutoff
inputs to IIR filter as given in Fig. 7.The desired cut off frequency 320Hz and sampling frequency 16 KHz was
frequency is maintained at 320Hz thereby removing higher implemented on WAVECT using Xilinx system generator
frequency signals. The filtered response is shows in Fig. 8. (refer Fig. 10).
Authorized licensed use limited to: BRACT's Vishwakarma Institute Pune. Downloaded on July 22,2024 at 10:37:16 UTC from IEEE Xplore. Restrictions apply.
0056
Developing Algorithm
Fig. 11 and Fig. 12 show the hardware implementation using
PC and WAVECT and realization of filter response within the
cutoff frequency using WAVECT respectively.
System Generator
VI. CONCLUSION
This paper describes an approach for IIR digital filter
design using Xilinx system generator and subsequent synthesis
Code Generation
on FPGA. The three phase supply is given as input signal
which may contain transients due to switching, load variation
or lightning, which is filtered to a specific band of frequencies
Xilinx implementation Flow using IIR filter designed in a Xilinx- FPGA platform. The
proposed IIR filter is analysed using Xilinx system generator
model and their performances are verified in terms of
Bitstream Generation computational complexity, power consumption and resource
requirement on FPGA. Implementation of digital filters in
FPGA has increased the computational speed. The filter
design provides flexibility to implement a real time digital
Download bitstream to an
FPGA filter for any applications like image processing, noise
reduction in biomedical field, audio-video filtering etc.
Fig. 9. Flowchart
REFERENCES
[1] Michael Francis, “Infinite Impulse Response Filter structures in Xilinx
FPGAs”, WP330 (v1.2) August 10,2009
[2] Priti R. Chandak, Vipul P.Giradkar, Amol T.Wadmalwar “Design of
FIR filter using Matlab Simulink and Xilinx system Generator”,
International Journal Of Engineering And Computer Science (IJECS),
ISSN:2319-7242, Vol.4 Issue 2 February 2015.
[3] H.H. Loomis and B. Sinha, “High speed recursive digital filter
realization circuits, systems and signal processing”, Vol.3, pp.267-294,
1984.
[4] Harish V Dixit, Dr.Vikas Gupta, “IIR filters using Xilinx System
Generator for FPGA implementation”, International Journal of
Engineering Research and Applications (IJERA) Vol.2,Issue 5,
September-October 2012, pp.303-307.
Fig. 10. Hardware implementation using PC and WAVECT
[5] Edilberto Carlos Vivas González, Diego Mauricio Rivera Pinzón, Edwar
Jacinto Gómez, “Implementation and simulation of IIR digital Filters in
FPGA Using MatLab System Generator”, IEEE 2014
[6] Mariza Wijayanti, Abdul Hakim, Sunny Arief Sudiro, “Designing and
Simulation of Band-pass Infinite Impulse Response Digital Filter Using
FPGA” , International Conference on Mechanical, Electronics and
Computer Engineering (ICMECE), 2012
[7] Lai Xiaoping, Lin Zhiping, “Desing of IIR Digital Filters with
prescribed phase error and reduced group-delay error”, 8th World
Congress On Intelligent Control And Automation, July 2010 Volume 9.
[8] Mochamad Karjadi, Nur Sultan Salahuddin, Eri Prasetyo Wibowo,
Hamzah Afandi, “ Digital Filter Design of Infinite Impulse Response
(IIR) Infrasound to Detect Fetal Heart Rate”, International Journal of
Fig. 11. Realization of input signal in WAVECT Engineering Research & Science (IJOER), ISSN: [2395-6992], Vol-2,
Issue-3, March- 2016
[9] P.Bujjibabu, N.Sravani, “Architecture based performance evaluation of
IIR digital filters for DSP applications”, International Conference On
Big Data Analytics and computational Intelligence (ICBDACI), 2017.
[10] Kaustubh Gaikwad, Mahesh Chavan, “Design and Implementation of
Digital Butterworth IIR filter using Xilinx System Generator for noise
reduction in ECG Signal”, World Scientific and Engineering Acadamy
and Society (WSEAS) Trans. On Electronics, Vol.8, 2017
[11] Sheikh Md. Rabiul Islam, Robin Sarker, Shumit Saha, A. F. M. Nokib
Uddin, “Design of a programmable digital IIR filter based on FPGA”,
IEEE/OSA/IAPR International Conference on Informatics, Electronics
& Vision (ICIEV), Bangladesh, Volume: Page: 716 – 721.
Fig. 12. Realization of filtered signal in WAVECT
Authorized licensed use limited to: BRACT's Vishwakarma Institute Pune. Downloaded on July 22,2024 at 10:37:16 UTC from IEEE Xplore. Restrictions apply.
0057