Which one? You have a vector, a[ ], of 50000 random integers, which can modern CPUs do faster and why? //find max of vector of random ints max=0; for (inda=0;

Slides:



Advertisements
Similar presentations
Design of Digital IIR Filter
Advertisements

| Page Angelo Farina UNIPR | All Rights Reserved | Confidential Digital sound processing Convolution Digital Filters FFT.
Chapter 8. FIR Filter Design
Processor Architecture Needed to handle FFT algoarithm M. Smith.
Digital Signal Processing IIR Filter IIR Filter Design by Approximation of Derivatives Analogue filters having rational transfer function H(s) can be.
EE513 Audio Signals and Systems Digital Signal Processing (Synthesis) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
FILTERS Presented by: Mohammed Alani Supervised By: Dr. Nazila Safavi
Digital Filters. Filters Filters shape the frequency spectrum of a sound signal. Filters shape the frequency spectrum of a sound signal. –Filters generally.
So far We have introduced the Z transform
Digital signal processing -G Ravi kishore. INTRODUCTION The goal of DSP is usually to measure, filter and/or compress continuous real-world analog signals.
Digital Signal Processing – Chapter 11 Introduction to the Design of Discrete Filters Prof. Yasser Mostafa Kadah
Sampling, Reconstruction, and Elementary Digital Filters R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
Digital Kommunikationselektronik TNE027 Lecture 4 1 Finite Impulse Response (FIR) Digital Filters Digital filters are rapidly replacing classic analog.
Implementation of Basic Digital Filter Structures R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2003.
EECS 20 Chapter 9 Part 21 Convolution, Impulse Response, Filters Last time we Revisited the impulse function and impulse response Defined the impulse (Dirac.
Professor: Dr Kepuska Presented by Kyle Farnum. Audio Manipulation through utilizing three types of filters: Low-pass filters Band- pass filters High-
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
Lecture 29 Review: Frequency response Frequency response examples Frequency response plots & signal spectra Filters Related educational materials: –Chapter.
T Digital Signal Processing and Filtering
Finite Impuse Response Filters. Filters A filter is a system that processes a signal in some desired fashion. –A continuous-time signal or continuous.
Digital Signals and Systems
Practical Signal Processing Concepts and Algorithms using MATLAB
DSP. What is DSP? DSP: Digital Signal Processing---Using a digital process (e.g., a program running on a microprocessor) to modify a digital representation.
Discrete-Time and System (A Review)
Processor Architecture Needed to handle FFT algoarithm M. Smith.
Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain.
EE Audio Signals and Systems Digital Signal Processing (Synthesis) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
UNIT-5 Filter Designing. INTRODUCTION The Digital filters are discrete time systems used mainly for filtering of arrays. The array or sequence are obtained.
Functional Brain Signal Processing: EEG & fMRI Lesson 3 Kaushik Majumdar Indian Statistical Institute Bangalore Center M.Tech.
Digital Filters. Filters Filters shape the frequency spectrum of a sound signal. –Filters generally do not add frequency components to a signal that are.
Unit-V DSP APPLICATIONS. UNIT V -SYLLABUS DSP APPLICATIONS Multirate signal processing: Decimation Interpolation Sampling rate conversion by a rational.
Concepts of Multimedia Processing and Transmission IT 481, Lecture 2 Dennis McCaughey, Ph.D. 29 January, 2007.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin Lecture 4 EE 345S Real-Time.
1 Lecture 1: February 20, 2007 Topic: 1. Discrete-Time Signals and Systems.
1 Introduction to Digital Filters Filter: A filter is essentially a system or network that selectively changes the wave shape, amplitude/frequency and/or.
Quiz 1 Review. Analog Synthesis Overview Sound is created by controlling electrical current within synthesizer, and amplifying result. Basic components:
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 20:Spectral Filtering Ken Greenebaum.
Digital filters Honza Černocký, ÚPGM. Aliases Numerical filters Discrete systems Discrete-time systems etc. 2.
ECE 448: Lab 7 Design and Testing of an FIR Filter.
EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department.
CHAPTER 2 Discrete-Time Signals and Systems in the Time-Domain
Technological Educational Institute Of Crete Department Of Applied Informatics and Multimedia Neural Networks Laboratory Slide 1 FOURIER TRANSFORMATION.
1 Digital Signal Processing. 2 Digital Signal Processing Topic 6: Filters-Introduction 1. Simple Filters 2. Ideal Filters 3. Linear Phase and FIR filter.
Analog and Digital Filters used in Audio Contexts Tufts University – ME 93 October 22, 2015.
Subband Coding Jennie Abraham 07/23/2009. Overview Previously, different compression schemes were looked into – (i)Vector Quantization Scheme (ii)Differential.
Digital Signal Processing
Filtering x y.
1 5. Application Examples 5.1. Programmable compensation for analog circuits (Optimal tuning) 5.2. Programmable delays in high-speed digital circuits (Clock.
What is filter ? A filter is a circuit that passes certain frequencies and rejects all others. The passband is the range of frequencies allowed through.
Lecture 09b Finite Impulse Response (FIR) Filters
Generalized Linear Phase Quote of the Day The mathematical sciences particularly exhibit order, symmetry, and limitation; and these are the greatest forms.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin Lecture 3
Finite Impuse Response Filters. Filters A filter is a system that processes a signal in some desired fashion. –A continuous-time signal or continuous.
Real-time Digital Signal Processing Digital Filters.
DSP First, 2/e Lecture 11 FIR Filtering Intro. May 2016 © , JH McClellan & RW Schafer 2 License Info for DSPFirst Slides  This work released.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring.
Digital Signal Processing
Signal Processing First
Digital Signal Processing
Lecture 11 FIR Filtering Intro
CEN352 Dr. Nassim Ammour King Saud University
Lecture 12 Linearity & Time-Invariance Convolution
Embedded Systems Design
Digital Signal Processors
Lect5 A framework for digital filter design
Lecture 13 Frequency Response of FIR Filters
Signal Processing First
Tania Stathaki 811b LTI Discrete-Time Systems in Transform Domain Ideal Filters Zero Phase Transfer Functions Linear Phase Transfer.
Lecture 22 IIR Filters: Feedback and H(z)
Presentation transcript:

Which one? You have a vector, a[ ], of random integers, which can modern CPUs do faster and why? //find max of vector of random ints max=0; for (inda=0; inda<50000;inda++) { if (a[inda] > max) { max = a[inda]; index=inda; } //find avg of vector of random ints sum=0; for (inda=0; inda<50000;inda++) { sum = sum + a[inda]; } avg = ((double) sum) / 50000;

Introduction to Digital Filtering SMD077 – Computer Architecture 31-Oct-2001 Dennis M. Akos Luleå University of Technology

Motivation Digital filtering is the “application” or “algorithm” that will be used in the majority of the labs Very representative programmable processor operation that has wide ranging real world applications This is a computer architecture course (not a course in programming or signal processing!?!) –Goal is to map algorithms to the hardware Requires comprehensive understanding of the hardware, or architecture, itself Compiler support does not exist, or is limited, for specialized hardware –Few will be designing programmable processor (definitely an option) but many will be using programmable processors Labs will be based around a Finite Impulse Response (FIR) Filter Basic understanding is achieved via time/frequency domain transforms

What this lecture is and is not! This is not a comprehensive overview of digital filters –“Gloss over” much of the mathematics and theory involved with design and implementation of filters –Many good references are available It is a simple introduction to motivate/help you to better understand the upcoming labs

Finite Impulse Response (FIR) Filter Digital filter operates on a stream, or vector, of data representing some continuous signal –Sampled sinusoid –Audio signal (compact disk) There are four basic filter implementations: lowpass, highpass, bandpass, and bandstop (as well as many different classes (FIR, IIR, …) and subclasses (Butterworth, Chevychev,…) It is easiest to examine and consider the impact of different types of filters by their frequency domain characteristics –Consider the “audio equalizer” analogy –What is the frequency domain representation of the sinusoid? Sum of sinusoids? Input Sampled Signal x[n] Output (Filtered) Sampled Signal y[n] FIR Filter

Example: 3 rd Order FIR Filter Structure FIR Filters can be of arbitrary order and extendable to an indefinite number of elements Filter order trade-off –Higher order results in sharper transitions between pass and stop bands –Higher order is more computationally complex b n ’s are constants and completely define how the filter will act on the input (lowpass, highpass, …) Input Sampled Signal x[n] Output (Filtered) Sampled Signal y[n] xxxx +++ delay x[n - 1]x[n - 2]x[n - 3] b3b3 b2b2 b1b1 b0b0 Perfect structure for SIMD (Single-Instruction Multiple-Data) operations

FIR Filter Input & Output Sequences Input signal can be specified as a vector of the resulting samples Note that there can be a “transient” in the output until the filter has all delay slots filled –Has implications for filtering short sequences –Higher order filters will have a longer transient x[0] x[2] x[4] x[1] x[3] x[5] time Sampled Input Signal … y0]y[2] y[4] y[1] y[3] y[5] time Resulting Output Signal … transient portion

FIR Filter Resulting Algorithm /************************************************************************** fir_filter - Perform fir filtering sample by sample on floats Requires array of filter coefficients and pointer to history. Returns one output sample for each input sample. float fir_filter(float input,float *coef,int n,float *history) float input new float input sample float *coef pointer to filter coefficients int n number of coefficients in filter float *history history array pointer Returns float value giving the current output. *************************************************************************/ float fir_filter(float input,float *coef,int n,float *history) { int i; float *hist_ptr,*hist1_ptr,*coef_ptr; float output; hist_ptr = history; hist1_ptr = hist_ptr; /* use for history update */ coef_ptr = coef + n - 1; /* point to last coef */ /* form output accumulation */ output = *hist_ptr++ * (*coef_ptr--); for(i = 2 ; i < n ; i++) { *hist1_ptr++ = *hist_ptr; /* update history array */ output += (*hist_ptr++) * (*coef_ptr--); } output += input * (*coef_ptr); /* input tap */ *hist1_ptr = input; /* last history */ return(output); } from “C Algorithms for Real-Time DSP” by P. Embree