Presentation is loading. Please wait.

Presentation is loading. Please wait.

* L. E. Turner and M. R. Smith, University of Calgary, Alberta, Canada

Similar presentations


Presentation on theme: "* L. E. Turner and M. R. Smith, University of Calgary, Alberta, Canada"— Presentation transcript:

1 * L. E. Turner and M. R. Smith, University of Calgary, Alberta, Canada
07/16/96 This presentation will probably involve audience discussion, which will create action items. Use PowerPoint to keep track of these action items during your presentation In Slide Show, click on the right mouse button Select “Meeting Minder” Select the “Action Items” tab Type in action items as they come up Click OK to dismiss this box This will automatically create an Action Item slide at the end of your presentation with your points entered. Assignment 3 help L. E. Turner and M. R. Smith, University of Calgary, Alberta, Canada 2/22/2019 SHARC99 Conference Copyright M. Smith *

2 SHARC99 Conference Copyright M. Smith smith@enel.ucalgary.ca
Example -- IIR filter Direct Form third-order digital Infinite duration Impulse Response Chebychev filter 2/22/2019 SHARC99 Conference Copyright M. Smith

3 Programming – Label NODES
Yout Xin Y Y Y3 K1 K K2 2/22/2019 SHARC99 Conference Copyright M. Smith

4 SHARC99 Conference Copyright M. Smith smith@enel.ucalgary.ca
Establish Equations Yout = Xin + K1 + K2 + K3 Yout Xin Y Y Y3 K1 K K2 2/22/2019 SHARC99 Conference Copyright M. Smith

5 Delay line update – order important
Y3 = Y2 Y2 = Y1 Y1 = Yout Yout Xin Y Y Y3 K1 K K2 2/22/2019 SHARC99 Conference Copyright M. Smith

6 SHARC99 Conference Copyright M. Smith smith@enel.ucalgary.ca
Update Values K1 = -B1*Y1 K2 = -B2 * Y2 K3 = -B3 * Y3 Yout Xin Y Y Y3 K1 K K2 2/22/2019 SHARC99 Conference Copyright M. Smith

7 SHARC99 Conference Copyright M. Smith smith@enel.ucalgary.ca
Final Code -- 1 float Xin[32] = {1.0, 0, 0, 0 …}; float Yout[32] = {0, 0, 0, 0, … }; K1 = K2 = K3 = Y1 = Y2 = Y3 = 0; for (count = 0; count < 32; count++ ) { Yout[count] = Xin[count] + K1 + K2 + K3; K1 = -B1 * Y K2 = -B2 * Y K3 = -B3 * Y Y3 = Y2; Y2 = Y1; Y1 = Yout[count]; } 2/22/2019 SHARC99 Conference Copyright M. Smith

8 SHARC99 Conference Copyright M. Smith smith@enel.ucalgary.ca
Final Code -- 2 float Xin[32] = {1.0, 0, 0, 0 …}; float Yout[32] = {0, 0, 0, 0, … }; K1 = K2 = K3 = Y1 = Y2 = Y3 = 0; for (count = 0; count < 32; count++ ) { Yout[count] = Xin[count] + K1 + K2 + K3; Y3 = Y2; Y2 = Y1; Y1 = Yout[count]; K1 = -B1 * Y K2 = -B2 * Y K3 = -B3 * Y3 } 2/22/2019 SHARC99 Conference Copyright M. Smith

9 SHARC99 Conference Copyright M. Smith smith@enel.ucalgary.ca
Test 1 2/22/2019 SHARC99 Conference Copyright M. Smith

10 SHARC99 Conference Copyright M. Smith smith@enel.ucalgary.ca
Test 2 2/22/2019 SHARC99 Conference Copyright M. Smith

11 SHARC99 Conference Copyright M. Smith smith@enel.ucalgary.ca
Test 3 2/22/2019 SHARC99 Conference Copyright M. Smith

12 SHARC99 Conference Copyright M. Smith smith@enel.ucalgary.ca
Real nastiness At point 218 – the IIR filter blows up through a floating point underflow issue 2/22/2019 SHARC99 Conference Copyright M. Smith

13 SHARC99 Conference Copyright M. Smith smith@enel.ucalgary.ca
Nastyness 2/22/2019 SHARC99 Conference Copyright M. Smith

14 Theoretical Filter Response
Filter Coefficients b1 = PASS BAND b2 = b3 = ZOOMED PASS BAND 2/22/2019 SHARC99 Conference Copyright M. Smith

15 SHARC99 Conference Copyright M. Smith smith@enel.ucalgary.ca
Full Spectrum 2/22/2019 SHARC99 Conference Copyright M. Smith

16 SHARC99 Conference Copyright M. Smith smith@enel.ucalgary.ca
Pass Band 2/22/2019 SHARC99 Conference Copyright M. Smith

17 Direct Form Filter Coefficient Quantization
7-bits QUANTIZED COEFFICIENTS IDEAL Filter responses using quantized filter coefficients are calculated using the tool DIGICAP available from the L. E. Turner at University of Calgary 2/22/2019 SHARC99 Conference Copyright M. Smith

18 SHARC99 Conference Copyright M. Smith smith@enel.ucalgary.ca
Truncated 2/22/2019 SHARC99 Conference Copyright M. Smith

19 SHARC99 Conference Copyright M. Smith smith@enel.ucalgary.ca
Rounded 2/22/2019 SHARC99 Conference Copyright M. Smith


Download ppt "* L. E. Turner and M. R. Smith, University of Calgary, Alberta, Canada"

Similar presentations


Ads by Google