www.ijecs.in International Journal Of Engineering And Computer Science ISSN:2319-7242

advertisement
www.ijecs.in
International Journal Of Engineering And Computer Science ISSN:2319-7242
Volume 4 Issue 2 February 2015, Page No. 10384-10387
Design of FIR filter using Matlab Simulink and Xilinx system
generator
Priti R. Chandak, Vipul P.Giradkar, Amol T.Wadmalwar
Department of Electronics Engineering
D.M.I.E.T.R ,Wardha
pritirchandak@gmail.com
Wardha,44201
Department of Electronics Engineering
D.M.I.E.T.R ,Wardha
vipulgiradkar143@gmail.com
Wardha,44201
Department of Electronics Engineering
D.M.I.E.T.R ,Wardha
amolwadmalwar10@gmail.com
Wardha,44201
Abstract- This paper presents the design of 6-Tap FIR filter using Matlab simulink and Xilinx system generator for removal of noise from input
signal. The implemented structure of 6 tap FIR filter uses the input signal with 48 Hz of frequency including noise. We designed structure uses
sampling frequency of 100 Hz with oversampling concept, passband frequency of 0.31 Hz while the stopband frequency is of 2 KHz. This is a
single rate FIR filter structure for 6 tap. The main objective of this designed filter is to reduce the noise from given signal. This Filter is designed
using the FDA tool with 1 dB passband
attenuation & 60 dB stopband Attenuation.
Keywords— Digital Signal Processing (DSP), FIR filter, Matlab simulink, Xilinx system generator and FDA too.l
1. INTRODUCTION
In DSP the major hitch for the developers is the designing
of the digital filters for receiver processing and to transmit
the various amount of data within desired frequency band
according to the filter specifications. Digital filters play
vitalrole in DSP, compared with analog filters, they are
preferred in numerous applications like data compression,
speech processing and image processing.DSP processors
offer high programmability, but the sequential execution
nature of their can adversely affect their throughput
performance.
1.1 FILTER
“Filter is a device that removes unwanted signal from
original signal”.Filters are a basic component of all signal
processing and telecommunication systems. The primary
functions of a filter one or more of the followings
(b)To decompose a signal into two or more sub-band
signals for sub-band signal processing
(c) To modify the frequency spectrum of a signal
(d) To model the input-output relation of a system
voice production, musical instruments, telephone line
echo, and room acoustics
1.2 DESIGN OF FIR FILTER
A Finite impulse response (FIR) filter is a filter
structure that can be used to implement almost any sort of
frequency response digitally. An FIR filter is usually
implemented by using a series of delays, multipliers and
adders to create the filter output. Figure 3.1 shows the basic
block
(a)To confine a signal into a prescribed frequency band
or channel
Priti R. Chandak, IJECS Volume 4 Issue 2 February, 2015 Page No.10384-10387
Page 10384
Fig (2)
Block
diagram of
FIR filter
diagram for
an FIR filter
of length N.
The delays
in operating on prior input samples. The hĸ values are the
coefficients used for multiplication, so that the output at
time n is the summation of all the delayed samples
multiplied by the appropriate coefficients.
The processer selecting the filters length and
coefficients is called as filter design. The goal is to set those
parameters such that certain desired stopband and passband
parameters will result from running the filter. Most
engineers utilize a program such as MATLAB to do there
filter design. But whatever tool is used, the results of the
design effort should be the same.
based input is given to the gateway-in block, the output
can be seen on the scope by passing through the gatewayout block.
FDA Tool is the important tool of MATLAB which
is used to design the filter of required specification. There
are different responses (i.e. Highpass, Lowpass, Bandpass,
Bandstop, Differentiator, Integrator, etc) and Design method
(i.e. IIR, FIR) for implementing the filter. By placing the
filter order, frequency specifications and magnitude
specifications, windows can be customized. Tools create
coefficients in the MATLAB workspace in matrix form
through the specifications provided.
2. IMPLIMENTATION OF FIR FILTER
The six-tap FIR filter can be be designed as below,
The processer selecting the filters length and
coefficients is called as filter design. The goal is to set those
parameters such that certain desired stopband and passband
parameters will result from running the filter. Most
engineers utilize a program such as MATLAB to do there
filter design. But whatever tool is used, the results of the
design effort should be the same.


A frequency response plot, like the one shown in figure 1,
which varies that the filter meets the desired specifications,
including ripple and transition bandwidth.
The filters length and coefficients. The longer the filter , the
more finely the response can be tuned.
Fig. 6-tap FIR Low pass Filter
The magnitude response of the 6-tap FIR Low pass
FIR filter is obtained as below as per the specifications.
With the length N, and coefficients, float h[N]={…},
decided upon, the implementation of the FIR filter is fairly
straightforward.
1.3 DESIGN ON SIMULINK
Simulink is a block diagram environment for multi-domain
simulation and Model-Based Design. In Simulink, we can
design the filter in the simulink with the automatic
generation of codes, simulation and continuous test. In
MATLAB, there are the customizable block libraries and
solvers for modeling and simulating dynamic systems. It can
make the blocks and exports simulation results to MATLAB
for the further analysis. The blocks which are required are
discussed below.

The ‘Xilinx system generator’ [9] is a highlevel tool for designing high-performance DSP
systems using FPGAs. The system generator tool
enables us to integrate Xilinx with Simulink, it
creates a .ise file which is used in Xilinx using the
model file of Simulink.

Xilinx block sets works only in the
gateway blocks, i.e. gateway-in and gateway-out.
Any sample
Fig. Magnitude Response of 6-tap FIR filter
Like magnitude response we can get the round-off
noise power spectrum, filter information, filter coefficients,
impulse response, step response, pole zero plot and phase
response, etc. we have shown below the round-off noise
power spectrum, filter information and filter coefficients
obtained in the 6-tap FIR Lowpass filter.
Priti R. Chandak, IJECS Volume 4 Issue 2 February, 2015 Page No.10384-10387
Page 10385
Fig. Round-off Noise Power Spectrum
Fig. 6-tap FIR Lowpass filter input signal
The noisy input signal and the output filtered signal obtaine
is shown below,
Fig. Noisy Input signal
Fig. Filter Information
Fig. Filtered Output Signal
Fig: Resource Estimator
Fig. Filter Coefficients
2. SIMULATION AND RESULTS
3. CONCLUSION
This FIR filter is implemented using Matlab Simulink
model and Xilinx System Generator for selected audio
application. The input audio signal is a noisy signal and it is
filtered using FIR compiler block which is designed using
FDA tool according to the sampling rate, passband
frequency, stopband frequency, attenuations, transition
width and filter orders and finally we got noiseless signal.
The proposed FIR filter structure is verified using Xilinx
system generator model and their performances are verified
in terms of storage requirement, computational complexity
and power consumption using resource estimator from
System Generator tool box.
REFERENCES
[1] Tasher Ali Sheikh, Arindum Mukherjee , “Designing an
The 6-tap FIR filter is designed. We have got all the
Appropiate Order of Fir Filter Using Windowing Method
specifications. The sampled input signal and the noise displayed on the
”,International Journal of Soft Computing and Engineering
scope is shown below
,Volume-4, March 2014 .
[2] Manoj Barnela, Suresh Kumar, Akhil Kaushik, Satvika,
“Implementation and Performance Estimation of FIR Digital
Filters using MATLAB Simulink” International Journal of
Engineering and Advanced Technology, volume 3,2014 .
Priti R. Chandak, IJECS Volume 4 Issue 2 February, 2015 Page No.10384-10387
Page 10386
[3] Anurag Aggarwal Astha Satija Tushar Nagpal , “ FIR
Filter Designing using Xilinx System Generator ”,
International Journal of Computer Applications Volume 68,
2013
[4] Prasit Kumar Bandyopadhyay; Arindam Biswas; Pramit
Kumar Bandyopadhyay,Durbadal Mandal,And Rajib Kar,”
FPGA Based High Frequency Noise Elimination System
From Speech Signal Using Xilinx System Generator”,
International Journal of Scientific Research and
Application, Volume 1 , 2012
[5] R.Raja Sulochana , Vasujadevi Midasala, S Nagakishore
Bhavanam, Jeevan Reddy K, “Design and Implementation
of FPGA based Low Power Digital FIR Filter” Journal of
Electronics and Communication Engineering, volume
4,2012.
[6] Suraj R.Gaikwad, Snehal R. Gaikwad, Kunal N. Dekate
“Design of FIR Filter for Audio Applicion International
Journal of Emerging Trends in Engineering and
Development Issue 4, Vol.6. Oct. -Nov. 2014
[7] Xilinx, Inc.,“DSP Design Flows in FPGA Tutorial
Slides”. San Jose, California, USA, pp. 1-82, 2003.
[8] Xilinx Inc., “System Generator for DSP”: User Guide,
Release 10.1,Snn Jose, Clifornia, USA, PP.1-40:
www.xilinx.com, 2008 [9] Xilinx, Inc.,
[9]“Xilinx ISE 9.2i Software Manuals: Constraints Guide,
and Development System Reference Guide”. San Jose,
California, USA, pp. 1-844
Priti R. Chandak, IJECS Volume 4 Issue 2 February, 2015 Page No.10384-10387
Page 10387
Download