Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. 25 points C Coding: Note that there is a workpage following this page Consider the C program: /t fir3.c - FIR filter emulating a

image text in transcribed

1. 25 points C Coding: Note that there is a workpage following this page Consider the C program: /t fir3.c - FIR filter emulating a DSP chip double fir3(M, h, w, x) double *h, *w, x; int M int i; double y read input data shift instruction MAC instruction return y (a) Assume that the function is called with input M 2,h 1 4 2 w-3 11, and 7. What is the returned value y? (b) Is this code implementing a linear or a circular buffer? How can you tell? (c Now, suppose that the input is extended, so thatz-7 5 1 -2 3 2 8 i. Make a table of the numerical values of the contents of the array w for the successive time instants 0 S n 10. In each row, indicate the output y (you will want to have a column for y) Assume a linear buffer for w ii. Now, add rows for the circular buffer, iii. What changes? 1. 25 points C Coding: Note that there is a workpage following this page Consider the C program: /t fir3.c - FIR filter emulating a DSP chip double fir3(M, h, w, x) double *h, *w, x; int M int i; double y read input data shift instruction MAC instruction return y (a) Assume that the function is called with input M 2,h 1 4 2 w-3 11, and 7. What is the returned value y? (b) Is this code implementing a linear or a circular buffer? How can you tell? (c Now, suppose that the input is extended, so thatz-7 5 1 -2 3 2 8 i. Make a table of the numerical values of the contents of the array w for the successive time instants 0 S n 10. In each row, indicate the output y (you will want to have a column for y) Assume a linear buffer for w ii. Now, add rows for the circular buffer, iii. What changes

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions

Question

What proof is provided by a trial balance?

Answered: 1 week ago