Menu

(Solved) : Write Program Apply Finite Impulse Response Fir Filter Data Set Stored Memory Mainly Two I Q37156815 . . .

Write a program which will apply Finite Impulse Response (FIR)filter on a data set which is stored in memory. There are mainlytwo important structural components; delay line and set ofcoefficients. N-tap filter has N-1 delay units in the delay lineand uses last N inputs for the calculation of the output. Delayline is used to store the input data used for the calculation ofthe output. For an N-tap FIR filter with coefficients h(k), outputis described by: y(n)=h(0)x(n)+h(1)x(n-1)+ h(2)x(n-2)+……+h(N-1)x(n-(N-1)).

What to do:

1. Load the coefficients

2. Update the circular buffer (delay line)

3. Read the input and put it to the top of the delay line.

4. Multiply each value in the delay line with the correspondingcoefficient and accumulate the result.

5. Output the accumulated result and go to the step 3.

Example:

We have 10 numbers and 3-tap FIR filter is applied:

Source List 37 17 42 25 18 64 26 83 Delav Line Coefficients 0.5 Target List 0.2 0.3 Source List 94 26 42 18 37 17 83 Delay Li

implement a 3-tap filter as shown in the previous example.

You can take the source list from the data that you haveinserted in to the address 0x20000008.

Source list will contain 10 numbers each of which is 3-bitslong. You can read the first number from the first 3-bits availablein address 0x20000008. The next value will be read from the samememory address between the 1st and the 4th bit. You need to readthe first 12 bits from memory to generate 10 numbers of 3-bitseach.

You can select the coefficients as: 0.5, 0.3 and 0.2

Write the rounded result you will obtain in the target list to0x20000000. The first 4-bits (0 th -3 rd bit) will store the firstcalculated result in the target list, the second result will bestored in the next 4-bits (4 th -7 rd bit) and so on. You will need40-bits to store 10 values in the target list.

Source List 37 17 42 25 18 64 26 83 Delav Line Coefficients 0.5 Target List 0.2 0.3 Source List 94 26 42 18 37 17 83 Delay Line 25 Coefficients 0.5 Target List 0.3 0.2 12.5 Source List 26 2s 94 18 64 37 Delay Line 94 Coefficients 25 0.5 Target List 0.3 0.2 12.554.5 Source List 37 28 18 64 17 83 26 Delay Line 94 18 25 Coefficients 0.5 0.3 0.2 Target List 12.554.542.2 Source List 25 18 64 26 Delay Line 83 42 Coefficients 0.2 0.5 Target List 0.3 2.554.5 42.256.2 1.3 32.425.5 52.7 51.1 56.7 Show transcribed image text Source List 37 17 42 25 18 64 26 83 Delav Line Coefficients 0.5 Target List 0.2 0.3 Source List 94 26 42 18 37 17 83 Delay Line 25 Coefficients 0.5 Target List 0.3 0.2 12.5 Source List 26 2s 94 18 64 37 Delay Line 94 Coefficients 25 0.5 Target List 0.3 0.2 12.554.5 Source List 37 28 18 64 17 83 26 Delay Line 94 18 25 Coefficients 0.5 0.3 0.2 Target List 12.554.542.2 Source List 25 18 64 26 Delay Line 83 42 Coefficients 0.2 0.5 Target List 0.3 2.554.5 42.256.2 1.3 32.425.5 52.7 51.1 56.7

Expert Answer


Answer to Write a program which will apply Finite Impulse Response (FIR) filter on a data set which is stored in memory. There are…

OR