Question: Th e following C code implements a four-tap FIR filter on input array sig_in. Assume that all arrays are 16-bit fixed point values. Assume you

Th e following C code implements a four-tap FIR filter on input array sig_in. Assume that all arrays are 16-bit fixed point values.

for (i= 3;i<128;i++) sig_out[i]=sig_in[i-3] +sig_in[i-1] * f[2]+sig_in[i] * f[3]; * f [0]+sig_in[i- 2] * f[1]

Assume you are to write an optimized implementation this code in assembly language on a processor that has SIMD instructions and 128-bit registers. Without knowing the details of the instruction set, briefly describe how you would implement this code, maximizing the use of sub word operations and minimizing the amount of data that is transferred between registers and memory. State all your assumptions about the instructions you use.

for (i= 3;i

Step by Step Solution

3.42 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Instruction assumptions 1 8lane 16bit multiplies 2 sum reducti... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Organization Design Questions!