Implementation of Digital IIR Filter Using VHDL on VIRTEX-6 (XC6VSX475T) FPGA

Similar documents
Transition Bandwidth Analysis of Infinite Impulse Response Filters

Design of Efficient Digital Interpolation Filters for Integer Upsampling. Daniel B. Turek

Introduction to Digital Filters

FAST Fourier Transform (FFT) and Digital Filtering Using LabVIEW

Infinite Impulse Response Filter Structures in Xilinx FPGAs

How to Design 10 khz filter. (Using Butterworth filter design) Application notes. By Vadim Kim

The Calculation of G rms

Analog Filters. A common instrumentation filter application is the attenuation of high frequencies to avoid frequency aliasing in the sampled data.

Department of Electrical and Computer Engineering Ben-Gurion University of the Negev. LAB 1 - Introduction to USRP

Reconfigurable Low Area Complexity Filter Bank Architecture for Software Defined Radio

Filter Comparison. Match #1: Analog vs. Digital Filters

Digital Signal Processing IIR Filter Design via Impulse Invariance

Understanding CIC Compensation Filters

Probability and Random Variables. Generation of random variables (r.v.)

SECTION 6 DIGITAL FILTERS

Time series analysis Matlab tutorial. Joachim Gross

Design of FIR Filters

Measuring Temperature withthermistors a Tutorial David Potter

DDS. 16-bit Direct Digital Synthesizer / Periodic waveform generator Rev Key Design Features. Block Diagram. Generic Parameters.

ELEN E4810: Digital Signal Processing Topic 8: Filter Design: IIR

Analog Signal Conditioning

Em bedded DSP : I ntroduction to Digital Filters

Frequency Response of Filters

Modeling a GPS Receiver Using SystemC

Implementation of Digital Signal Processing: Some Background on GFSK Modulation

A DESIGN OF DSPIC BASED SIGNAL MONITORING AND PROCESSING SYSTEM

chapter Introduction to Digital Signal Processing and Digital Filtering 1.1 Introduction 1.2 Historical Perspective

Combining the ADS1202 with an FPGA Digital Filter for Current Measurement in Motor Control Applications

1995 Mixed-Signal Products SLAA013

Analog and Digital Filters Anthony Garvert November 13, 2015

Impedance 50 (75 connectors via adapters)

AN-837 APPLICATION NOTE

NAPIER University School of Engineering. Electronic Systems Module : SE32102 Analogue Filters Design And Simulation. 4 th order Butterworth response

The front end of the receiver performs the frequency translation, channel selection and amplification of the signal.

Laboratory #5: RF Filter Design

Simple SDR Receiver. Looking for some hardware to learn about SDR? This project may be just what you need to explore this hot topic!

2.161 Signal Processing: Continuous and Discrete Fall 2008

IIR Half-band Filter Design with TMS320VC33 DSP

73M2901CE Programming the Imprecise Call Progress Monitor Filter

Active Noise Cancellation Project

SWISS ARMY KNIFE INDICATOR John F. Ehlers

Simulation of Frequency Response Masking Approach for FIR Filter design

Designing a Linear FIR filter

Lock - in Amplifier and Applications

High Speed and Efficient 4-Tap FIR Filter Design Using Modified ETA and Multipliers

Anatech Electronics, Inc.

Chebyshev Filter at MHz Frequency for Radar System

REMOTE ELECTROCARDIOGRAM MONITORING BASED ON THE INTERNET

Consumer Emergency Vehicle Alert System

PIEZO FILTERS INTRODUCTION

SIGNAL PROCESSING & SIMULATION NEWSLETTER

Similar benefits are also derived through modal testing of other space structures.

Uniboard based digital receiver

ADC and DAC. Quantization

FPGA Implementation of an Advanced Traffic Light Controller using Verilog HDL

Wireless Communication and RF System Design Using MATLAB and Simulink Giorgia Zucchelli Technical Marketing RF & Mixed-Signal

Introduction to IQ-demodulation of RF-data

QAM Demodulation. Performance Conclusion. o o o o o. (Nyquist shaping, Clock & Carrier Recovery, AGC, Adaptive Equaliser) o o. Wireless Communications

Synchronization of sampling in distributed signal processing systems

Implementation of the LMS Algorithm for Noise Cancellation on Speech Using the ARM LPC2378 Processor.

CTCSS REJECT HIGH PASS FILTERS IN FM RADIO COMMUNICATIONS AN EVALUATION. Virgil Leenerts WØINK 8 June 2008

A Parallel Processor for Distributed Genetic Algorithm with Redundant Binary Number

High-Level Synthesis for FPGA Designs

First, we show how to use known design specifications to determine filter order and 3dB cut-off

Spike-Based Sensing and Processing: What are spikes good for? John G. Harris Electrical and Computer Engineering Dept

Introduction to Data Acquisition

What the Nyquist Criterion Means to Your Sampled Data System Design. by Walt Kester

A DA Serial Multiplier Technique based on 32- Tap FIR Filter for Audio Application

AVR223: Digital Filters with AVR. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Implementation and Design of AES S-Box on FPGA

SOFTWARE FOR GENERATION OF SPECTRUM COMPATIBLE TIME HISTORY

International Journal of Advancements in Research & Technology, Volume 2, Issue3, March ISSN

Short-time FFT, Multi-taper analysis & Filtering in SPM12

LOW COST HARDWARE IMPLEMENTATION FOR DIGITAL HEARING AID USING

Using the Texas Instruments Filter Design Database

CHAPTER 6 Frequency Response, Bode Plots, and Resonance

Sampling Theory For Digital Audio By Dan Lavry, Lavry Engineering, Inc.

What you will do. Build a 3-band equalizer. Connect to a music source (mp3 player) Low pass filter High pass filter Band pass filter

Active Filters. Motivation:

DESIGN AND SIMULATION OF TWO CHANNEL QMF FILTER BANK FOR ALMOST PERFECT RECONSTRUCTION

The Effective Number of Bits (ENOB) of my R&S Digital Oscilloscope Technical Paper

Cancellation of Load-Regulation in Low Drop-Out Regulators

Co-simulation of Microwave Networks. Sanghoon Shin, Ph.D. RS Microwave

Aircraft cabin noise synthesis for noise subjective analysis

isim ACTIVE FILTER DESIGNER NEW, VERY CAPABLE, MULTI-STAGE ACTIVE FILTER DESIGN TOOL

AC : PRACTICAL DESIGN PROJECTS UTILIZING COMPLEX PROGRAMMABLE LOGIC DEVICES (CPLD)

Lecture 1-6: Noise and Filters

Switch Mode Power Supply Topologies

Non-Data Aided Carrier Offset Compensation for SDR Implementation

PC BASED PID TEMPERATURE CONTROLLER

CHAPTER 8 ANALOG FILTERS

Duobinary Modulation For Optical Systems

Section 3. Sensor to ADC Design Example

RF Measurements Using a Modular Digitizer

Sophomore Physics Laboratory (PH005/105)

Digital to Analog Converter. Raghu Tumati

Design and Development of Virtual Instrument (VI) Modules for an Introductory Digital Logic Course

Sampling and Interpolation. Yao Wang Polytechnic University, Brooklyn, NY11201

How To Calculate The Power Gain Of An Opamp

Introduction to Digital Audio

Transcription:

Implementation of Digital IIR Filter Using VHDL on VIRTEX-6 (XC6VSX475T) FPGA B.Satyasai P.Raviumar,.tech Asst.Professor, Electronics and communication, Electronics and communication, GR Institue of Technology, GR Institute of Technology, Rajam, India, Rajam, India, ms.satyasai@gmail.com. raviumar.p@gmrit.org Abstract The development of digital IIR (Infinite Impulse Response) filter is done on VIRTEX-6 FPGA using VHDL (Very High Speed Integrated Circuit Hardware Description Language) in XILIX Integrated Software Environment. IIR filter is analytically simulated by simulin environment in ATLAB. The digital data output of A/D converter is sent through IIR module in FPGA. Testing and debugging IIR module is done in custom made VIRTEX-6 data acquisition hardware. The results obtained are cross checed with ATLAB results. Speed of computation greatly increased by developing digital filter in FPGA. Advantages of FPGA approach to develop IIR filter include higher sampling rates than traditional DSP chips, lower cost than ASICs for moderate applications. Key words: DAQ, IIR filter, ATLAB, XILIX, VHDL, FPGA (VIRTEX-6). I. ITRODUCTIO A filter is used to remove the undesirable signals or the noise of the signal. In naval there is requirement to remove the unwanted portion of the underwater acoustic signals. We now there are two types of digital filters. ) FIR (Finite Impulse Response) filter and 2) IIR (Infinite Impulse Response) filter. Impulse response of an LTI system which donot reach ero past a certain point and continues[8]. Such a response is called as Infinite Impulse Response. IIR filters [] are better to implement than FIR filters to meet the specifications lie passband, stopband etc... Computational time is saved by using digital IIR filters [2] which is a large factor. IIR filters gives the output such that the input is deformed without filter frequency which by means called as non linear phase characteristic. These filters are not believed to be stable when the output is mainly dependent on frequency domain rather than time domain. IIR filters are computationally more efficient than FIR filters as they require as they require fewer coefficients due to the usage of poles and feedbac [5], [7]. Generalied equation of IIR filter is y H [ n] = b[ ] x[ n ] + a[ ] y[ n ] = 0 =. () b + b + a + K + b + K + a 0 ( ) = + b = 0 = = a Transfer function of the filter (2). (3) Where a and b are the filter coefficients., 2. are the eros, p, p 2..p are the poles. II. DATA ACQUISITIO HARDWARE SYSTE DAQ system wors on the basis to measure a physical phenomenon such as light, temperature, sound and pressure. It includes transducer, signal conditioning, data acquisition software. It captures a signal and converts the physical signal into electrical signal, analog signal is converted to digital by an A to D converter. The obtained signal is filtered by FPGA using VHDL. Ultimately physical phenomenon is measured and analyed through computer. a) Transducer Fig. DAQ system Transducer converts a physical signal into an electrical signal. These transducers generate the electrical signal to measure temperature, sound, light etc.., All the signals are not computed in unique pattern. So these electrical signals are classified as 08

analog and digital signals. The maximum possible information you get from a signal are state, rate, level, frequency, shape. Using FDA (Filter Design Analysis) Tool we can select the specifications of the filter. The required specifications are passband (ripple), stopband (attenuation) [3]. b) Signal Conditioning : A signal cannot directly connected to a DAQ device. So that the signal is to be altered. To connect a signal suitably to a DAQ device the Signal conditioning is used. Signal Conditioning is the significant technology in computing any signal. It is important to convert a signal into the acceptable format of DAQ device. Amplification strengthens the transducer signals so that they match the input range of the A/D converter [0]. c) Data Acquisition Software : The data acquisition software transforms the PC and DAQ hardware into a complete DAQ, analysis, and display system. It can be the most critical factor in obtaining reliable, high performance operation. The main advantage of it is flexibility. III. IPLEETATIO OF IIR FILTER I ATLAB Digital IIR filters are partitioned into some of the solutions lie chebyshev filters(type I and type II), Butterworth filters, elliptical filters. Chebyshev type II filter is also nown as inverse chebyshev type I. For the implementation of IIR filter we need the difference equation. Chebyshev filters are having steeper roll off. Chebyshev type I filter has more passband ripple [6]. a) Filter specification. b) Order caliculation c) Coefficient calculation. d) Structure selection. e) Simulation (optional). f) Implementation. a)filter specification Fig 2. Filter Specifications Rp = ; % amax[db] Rs = 50; % amin[db] Fs = 44; % sampling frequency fp = 5; % passband frequency fs = 8, % stopband attenuation wp = 2*fp/Fs; %normalied passband ws = 2*fs/Fs; % normalied attenuation b) Order calculation: By default it shows the order of such filter in an FDA tool. While given some particular specifications the calculation is [,Wn] = chebord(wp,ws,rp,rs); This chebyshev type I filter order is obtained as 7. c) Coefficient calculation: The coefficients are calculated as [b,a] = cheby (,Rp,Wn).(4) The filter transfer function coefficients are obtained as b = 0-3* [0.076 0.232 0.3696 0.660 0.660 0.3696 0.232 0.076]; and a= [.0000-5.552 3.764-20.0229 8.2902-0.4726 3.479-0.578]. d) Structure selection : There are three types of structures used in IIR filters. ) Direct form 2) Cascade form 3) Parallel form. The generalied transfer function of IIR filter is H ( ) = + b = 0 = a (5) 09

This transfer function is decomposed as the product of number of transfer functions in the cascade form. P( ) P ( ) P2 ( ) P2 ( ) H ( ) = =... (6) D( ) D ( ) D ( ) D ( ) 2 Such that each transfer function is the first order or the second order function. Hence the error is greatly minimied at each stage using cascade structures. 2 H + β + β2 ( ) = p. (7) 0 + α + 2 α 2 The second order filter is usually called as the bi quadratic filter or biquad filter. A biquad filter is as follows. According to given specifications the order of the filter obtained is 7. We use the cascade form structure IIR filters such that the function results in three biquad filters (second order filters) and one first order filter. 3 a4 = [.0000 -.4707 0.9420]; e) Simulation: let us tae an input signal. Input signal code in ATLAB IPUT t=0:/44000:0.005; f = 2000; f2 = 9000; y = 2*sin (2*pi*f*t) +2*sin (2*pi*f2*t); Input signal is the sum of two individual signals with different frequencies 2 KH and 9 KH. Output code of ATLAB is as follows [9]. OUTPUT yy = filter (b, a*g4, y); yy2 = filter (b2, a2*g4, yy); yy3 = filter (b3, a3*g4, yy2); yy4 = filter (b4, a4*g4, yy3); Fig 3. Second order (Biquad) filter atlab code to modify b,a values into second order sections is [sos,g] = tf2sos(b,a); Constant g is distributed among the sections as g 4 =g^0.25. Where g is g =.7600*0-5 b and a values are obtained as follows b = [.000.0090 0]; a = [.0000-0.8577 0]; b2 = [.0000 2.03.03]; a2 = [.0000 -.6545 0.7642]; b3 = [.0000.9960 0.996]; a3 = [.0000 -.5320 0.8396]; b4 = [.0000.9837 0.9838]; f)implementation : Depending on these caliculations IIR filter program is developed in VHDL [4] language and is dumped inti an FPGA(Field Programmable Gate Array) using VHDL (Very High Speed Integrated Circuit Hardware Description Language) on Xilinx ISE(Integrated Software Environment) platform. IV. APPLICATIO OF IIR FILTER USIG VIRTEX-6 The underwater acoustic signals are to be filtered. A real time signal is captured and is converted into an electrical signal. The filtering is to be done in VIRTEX-6 FPGA using VHDL language [], [2]. The input signal is converted in a 32 bit data. The hexadecimal multiplication addition and subtraction are done in VHDL using CORE GEERATORS. These reduce the precision while multiplication, addition and subtraction. The captured real time signal is observed and is between 2 to 25 H frequency. A this particular band of frequencies 2 H to 25h a band-pass chebyshev filter is used to filter the input acoustic signal. Order of the filter is measured by FDA tool in ATLAB. At these particular ranges order of the filter obtained is 4. 0

c) Virtex-6 FPGA Input and Output Fig 4. Filter order calculation in ATLAB According to these specifications the filter coefficients are measured in ATLAB and the same are used in VHDL for simulation. Fig 8. Virtex-6 FPGA result d) Resource utiliation in Spartan-6 and Vitex- 6 FPGAs V. ADVATAGES OF VIRTEX-6 FPGA Virtex-6 FPGA meets the target easily. It stays within power budget without sacrificing the performance. It optimies the power, bandwidth and cost. Vitex-6 family FPGAs are easy to use relatively is operated on high speed connectivity technologies. VI. RESULTS a) Sum of two sinusoidal signals is given as input of IIR chebyshev type I filter. The output obtained is a pure sine wave. Spartan-6 Virtex-6 e) atlab and Virtex-6 FPGA output comparision Fig 6. Chebeshev filter result in ATLAB b) Simulation results in VHDL using XILIX ISE platform. Fig 7. VHDL Simulation results The same real time signal is filtered in both ATLAB and in VIRTEX-6 FPGA. The results are observed. VII. COCLUSIO The IIR filter is implemented on VIRTEX-6 FPGA to reduce the noise of underwater acoustic signal. From the results we observed that the IIR filter greatly reduces the noise of the signal and is efficiently implemented in FPGAs. Utiliation of resources in virtex-6 board are less compared to Spartan-6 board. So the computational time is less. Chebyshev type-i band-pass filter eliminates the unwanted signal. FPGA results are cross checed with ATLAB results. By using digital filters in FPGAs the computational speed increases.

References [] Bojan Jovanović, and ilun Jevtić An approach to Digital Low-Pass IIR Filter Design IEEE Small Systems Simulation Symposium pages:6-66, February 200. [2] Winder, S., Analog and Digital Filter Design, Supertex Inc., Ipswich, 2002. [3] Ingle, V., Proais, J., Digital signal processing using ATLAB, 2e, Thomson, Boston, 2007 [4] Pedroni, V., Circuit Design with VHDL, IT Press, London, 2004. [5] Sanjit K.itra, Digital signal processing, A computer based approach, Tata cgraw-hill,998. [6] John Wiley & Sons, Inc Introduction to Digital signal Processing and Filter design, B.A. Shenoi, 2006. [7] Oppenheim, A.V., Schafer, R.W., and Buc, J.R. Discrete- Time Signal Processing, Prentice Hall, 999 [8] Louis Litwin, FIR and IIR digital filters, IEEE potentials, 2002 [9] Amos gilat, ATLAB an introduction with applications. [0] Chi-Jui Chou, Satish ohanarishnan, Joseph B. Evans, FPGA implementation of digital filters, Proc. of ICSPAT, 993. [] Xilinx system generator, basic tutorial, www.xilinx.com [2] Xilinx white paper number 23, www.xilinx.com 2