Lecture 5 - Assembly Programming(II), Intro to Digital Filters

Similar documents
Lecture 7 - IIR Filters

Discrete-time signals and systems

Lecture 19 IIR Filters

Lecture 11 FIR Filters

Lecture 7 Discrete Systems

EE 521: Instrumentation and Measurements

EE482: Digital Signal Processing Applications

Lecture 8 - IIR Filters (II)

Digital Signal Processing Lecture 9 - Design of Digital Filters - FIR

Digital Signal Processing Lecture 10 - Discrete Fourier Transform

Grades will be determined by the correctness of your answers (explanations are not required).

Discrete Time Systems

Module 4 : Laplace and Z Transform Problem Set 4

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EC2314- DIGITAL SIGNAL PROCESSING UNIT I INTRODUCTION PART A

Digital Signal Processing Lecture 3 - Discrete-Time Systems

Signals and Systems. Spring Room 324, Geology Palace, ,

E : Lecture 1 Introduction

DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING EXAMINATIONS 2010

Grades will be determined by the correctness of your answers (explanations are not required).

Like bilateral Laplace transforms, ROC must be used to determine a unique inverse z-transform.

EEL3135: Homework #4

Digital Signal Processing Lecture 4

Chap 2. Discrete-Time Signals and Systems

ECE 350 Signals and Systems Spring 2011 Final Exam - Solutions. Three 8 ½ x 11 sheets of notes, and a calculator are allowed during the exam.

The Z transform (2) 1

Discrete Time Systems

Chapter 7: The z-transform

ELEG 305: Digital Signal Processing

Lecture 8 Finite Impulse Response Filters

Analog vs. discrete signals

Lecture 8 - IIR Filters (II)

Digital Signal Processing

Sistemas de Aquisição de Dados. Mestrado Integrado em Eng. Física Tecnológica 2015/16 Aula 6-26 de Outubro

LTI Systems (Continuous & Discrete) - Basics

DIGITAL SIGNAL PROCESSING UNIT III INFINITE IMPULSE RESPONSE DIGITAL FILTERS. 3.6 Design of Digital Filter using Digital to Digital

Lecture 16: Filter Design: Impulse Invariance and Bilinear Transform

EE 225D LECTURE ON DIGITAL FILTERS. University of California Berkeley

Digital Filters Ying Sun

ESE 531: Digital Signal Processing

Very useful for designing and analyzing signal processing systems

EE123 Digital Signal Processing. M. Lustig, EECS UC Berkeley

Lecture 9 Infinite Impulse Response Filters

Digital Signal Processing Lecture 5

Convolution. Define a mathematical operation on discrete-time signals called convolution, represented by *. Given two discrete-time signals x 1, x 2,

ECE-314 Fall 2012 Review Questions for Midterm Examination II

2.161 Signal Processing: Continuous and Discrete Fall 2008

Digital Signal Processing. Midterm 1 Solution

GATE EE Topic wise Questions SIGNALS & SYSTEMS

Ch. 7: Z-transform Reading

Digital Signal Processing I Final Exam Fall 2008 ECE Dec Cover Sheet

Review of Fundamentals of Digital Signal Processing

Lecture 2 OKAN UNIVERSITY FACULTY OF ENGINEERING AND ARCHITECTURE

PS403 - Digital Signal processing

ELEG 305: Digital Signal Processing

Review of Discrete-Time System

Cast of Characters. Some Symbols, Functions, and Variables Used in the Book

QUESTION BANK SIGNALS AND SYSTEMS (4 th SEM ECE)

Problem Value

信號與系統 Signals and Systems

ESE 531: Digital Signal Processing

UNIT-II Z-TRANSFORM. This expression is also called a one sided z-transform. This non causal sequence produces positive powers of z in X (z).

ECGR4124 Digital Signal Processing Exam 2 Spring 2017

Z Transform (Part - II)

Use: Analysis of systems, simple convolution, shorthand for e jw, stability. Motivation easier to write. Or X(z) = Z {x(n)}

Chapter 7: IIR Filter Design Techniques

ECGR4124 Digital Signal Processing Final Spring 2009

LECTURE NOTES DIGITAL SIGNAL PROCESSING III B.TECH II SEMESTER (JNTUK R 13)

ECE4270 Fundamentals of DSP Lecture 20. Fixed-Point Arithmetic in FIR and IIR Filters (part I) Overview of Lecture. Overflow. FIR Digital Filter

Discrete-Time Systems

Properties of LTI Systems

Aspects of Continuous- and Discrete-Time Signals and Systems

( ) John A. Quinn Lecture. ESE 531: Digital Signal Processing. Lecture Outline. Frequency Response of LTI System. Example: Zero on Real Axis

ELC 4351: Digital Signal Processing

Digital Control & Digital Filters. Lectures 21 & 22

Review of Frequency Domain Fourier Series: Continuous periodic frequency components

Signals and Systems. Problem Set: The z-transform and DT Fourier Transform

Each problem is worth 25 points, and you may solve the problems in any order.

z-transforms Definition of the z-transform Chapter

ENT 315 Medical Signal Processing CHAPTER 2 DISCRETE FOURIER TRANSFORM. Dr. Lim Chee Chin

EC Signals and Systems

INFINITE-IMPULSE RESPONSE DIGITAL FILTERS Classical analog filters and their conversion to digital filters 4. THE BUTTERWORTH ANALOG FILTER

Digital Signal Processing Lecture 8 - Filter Design - IIR

Introduction to DSP Time Domain Representation of Signals and Systems

/ (2π) X(e jω ) dω. 4. An 8 point sequence is given by x(n) = {2,2,2,2,1,1,1,1}. Compute 8 point DFT of x(n) by

EE482: Digital Signal Processing Applications

Fourier Series Representation of

ECE503: Digital Signal Processing Lecture 5

Digital Signal Processing. Lecture Notes and Exam Questions DRAFT

hapter 8 Simulation/Realization 8 Introduction Given an nth-order state-space description of the form x_ (t) = f (x(t) u(t) t) (state evolution equati

! z-transform. " Tie up loose ends. " Regions of convergence properties. ! Inverse z-transform. " Inspection. " Partial fraction

DIGITAL SIGNAL PROCESSING. Chapter 6 IIR Filter Design

Question Bank. UNIT 1 Part-A

Discrete-Time Signals and Systems. Frequency Domain Analysis of LTI Systems. The Frequency Response Function. The Frequency Response Function

ECGR4124 Digital Signal Processing Midterm Spring 2010

NAME: ht () 1 2π. Hj0 ( ) dω Find the value of BW for the system having the following impulse response.

Problem Value Score No/Wrong Rec 3

Solutions. Number of Problems: 10

ECE 3620: Laplace Transforms: Chapter 3:

Differential and Difference LTI systems

Problem Value

Transcription:

GoBack

Lecture 5 - Assembly Programming(II), Intro to Digital Filters James Barnes (James.Barnes@colostate.edu) Spring 2009 Colorado State University Dept of Electrical and Computer Engineering ECE423 1 / 20

Assembly Programming (II) Instuction Pipeline Hardware Pipeline Phases Delay Slots (NOPs) and the Pipeline Assembly Example - Inner Product Assembly Example - Inner Product Assembly Function Optimized Inner Product Assembly Function Addressing Modes Address Mode Register AMR Addressing Configuration Fields (SPRU189f) Assembly Programming (II) Introduction to Digital Filters Colorado State University Dept of Electrical and Computer Engineering ECE423 2 / 20

Instuction Pipeline Hardware Colorado State University Dept of Electrical and Computer Engineering ECE423 3 / 20

Pipeline Phases Pipeline advances once per cpu clock (4.44ns) Stage Phase Symbol Fetch Program Address Generation PG Fetch Program Address Sent PS Fetch Program Wait PW Fetch Program Data Receive PR Decode Dispatch DP Decode Decode DC Execute Execute 1 E1 Execute Execute Execute 10 E10 Colorado State University Dept of Electrical and Computer Engineering ECE423 4 / 20

Delay Slots (NOPs) and the Pipeline NOPs may be needed because 1. Instruction requires multiple execute steps (ex: MPYx, LDx/STx) OR 2. Pipeline may need to be flushed (branch not taken). Example below. Colorado State University Dept of Electrical and Computer Engineering ECE423 5 / 20

Assembly Example - Inner Product Colorado State University Dept of Electrical and Computer Engineering ECE423 6 / 20

Assembly Example - Inner Product Assembly Function Colorado State University Dept of Electrical and Computer Engineering ECE423 7 / 20

Optimized Inner Product Assembly Function Colorado State University Dept of Electrical and Computer Engineering ECE423 8 / 20

Addressing Modes We have seen linear indirect addressing. An example LDW.D1 *A4++(2),A2 This loads the memory location in A4 into A2 and then skips 2 WORDS (adds 8 to A4) In many filtering applications, a more useful addressing mode is Circular Addressing. Circular addressing is useful in computing convolution sums such as N y[n] = h[k]x[n k] because it allows adding of a new datapoint at the end of the k=0 circular FIFO just by moving the pointer to the oldest added data point. Colorado State University Dept of Electrical and Computer Engineering ECE423 9 / 20

Address Mode Register Circular convolution can be setup by writing a CSR (Control/Status Register) called AMR. Example of setting up AMR for circular convolution (described in Lab4). Must use B side and S2. MVKL.S2 0x0004,B2 MVKH.S2 0x0005,B2 MVC.S2 B2,AMR This will set up a circular buffer 2 5 = 32 HWORDs deep and select A5 as the pointer. MVC is the only way to write bits into the CSRs. Text Appendix B has a nice summary of the CSRs, but they can all be found in SPRU189f Colorado State University Dept of Electrical and Computer Engineering ECE423 10 / 20

AMR Addressing Configuration Fields (SPRU189f) Colorado State University Dept of Electrical and Computer Engineering ECE423 11 / 20

Assembly Programming (II) Introduction to Digital Filters Review: Analog Computer Wiring Diagram Representing Discrete-time LTI: Digital Computer Wiring Diagram Finite Impulse Response Digital Filter Frequency Response of Filter Specifying a (Digital) Filter FIR Design Methods Overview Hand Design Methods (next lecture) Linear Phase FIR Filter (next lecture) Introduction to Digital Filters Colorado State University Dept of Electrical and Computer Engineering ECE423 12 / 20

Review: Analog Computer Wiring Diagram A Continuous-time Linear Time-Invariant system can be represented two ways: 1. Differential equation in the time domain dy y(t) + a 1 dt + + a N dn y dx dt N = b 0 x(t) + b 1 dt + + b M dm x dt M 2. Polynomial equation in the S-domain (1 + a 1 s + + a N S N )Y (s) = (b 0 + b 1 s + + b M s M )X(s) Colorado State University Dept of Electrical and Computer Engineering ECE423 13 / 20

Representing Discrete-time LTI: Digital Computer Wiring Diagram 1. Difference equation in the time domain y[n] + a 1 y[n 1] + + a N y[n N] = b 0 x[n] + b 1 x[n 1] + + b M x[n M] 2. Polynomial equation in the Z-domain (1 + a 1 z 1 + + a N z N )Y (z) = (b 0 + b 1 Z 1 + + b M z M )X(z) The transfer function H(z)=Y(z)/X(z) can therefore be written as H(z) = 1+ M k=0 N k=1 b k z k a k z k Colorado State University Dept of Electrical and Computer Engineering ECE423 14 / 20

Finite Impulse Response Digital Filter The b-part is sometimes called the feed-forward part, and the a-part the feedback part. If the a s are all zero, we have a Finite-Impulse Response (F.I.R) filter, so called because the response to any finite-duration stimulus such as a unit impulse δ[n] will die out in a finite time. For a FIR filter, the b coefficients are just the coefficients of the impulse response function h[n]. We can write the impulse response in the z-domain as H[z] = M b k z k = k=0 M h[k]z k k=0 The response of the filter to an arbitrary input sequence x[n] is given by the convolution sum y[n] = M k=0 h[k]x[n k] Fun facts about FIR filters For real input and output signals, the h[k] coefficients are real For a causal filter, h[k] is non-zero for a range k=0 M FIR filters are unconditionally-stable (poles of the transfer function are all at z=0) If the h[k] coefficients satisfy certain conditions, the filter transfer function will have linear phase vs frequency, so the filter will look like a pure delay for all frequencies it will pass (to be shown later). Colorado State University Dept of Electrical and Computer Engineering ECE423 15 / 20

Frequency Response of Filter In the continuous-time domain, we measure the LTI frequency response by evaluating the Laplace Transform on the positive imaginary axis, i.e. H(ω) = H(s = jω). For the Bode plot, we plot H(ω) and arg(h(ω)). For DT LTI systems, we measure the frequency response by evaluating the Z-Transform on the unit circle, i.e. H(ω) = H(z = e jω ). Here ω is the digital (angular) frequency, which ranges from [ π, π] radians/sec. For the Bode plot, we again plot H(ω) and arg(h(ω) for 0 < ω < π. Colorado State University Dept of Electrical and Computer Engineering ECE423 16 / 20

Specifying a (Digital) Filter How do we specify (design) a filter must specify the frequency and/or phase response. For many applications, such as audio, the phase response is not important, but for others (control systems), it is critical. Generally specify the ripple (max and min attenuation) in the passband and stopband and the width of the rolloff. Colorado State University Dept of Electrical and Computer Engineering ECE423 17 / 20

FIR Design Methods Overview Colorado State University Dept of Electrical and Computer Engineering ECE423 18 / 20

Hand Design Methods (next lecture) 1. Impulse Invariance - sampling in the time domain 2. Fourier Series Method - sampling in the frequency domain 3. Pole/Zero Placement in z-domain Colorado State University Dept of Electrical and Computer Engineering ECE423 19 / 20

Linear Phase FIR Filter (next lecture) Colorado State University Dept of Electrical and Computer Engineering ECE423 20 / 20