Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Clear state FIR filter

thorant
Beginner
623 Views
Hi

Im using the IPP FIR filter functions. I initialize a filter using FIRInitAlloc. The first time I use the filter it works fine. The second time it igves just garbage. why?
My code is quite simple and looks like this:

st = ippsFIR_32f_I(tmpfi,length,fir_state);
check_err(st);
st = ippsFIR_32f_I(tmpfr,length,fir_state);
check_err(st);

The first call gives correct results, the second only garbage.

Do I need to reset the filter between each time?
I Have initialized my filter this way:

ippsFIRInitAlloc_32f(&fir_state,fir_taps,num_taps,0);

I have not specified a delay line, does that matter?

Thanks

Thor Andreas Tangen
0 Kudos
2 Replies
thorant
Beginner
623 Views
An update on the issue; If I reset the delay line between each filtering to zero, everything works fine. But is this supposed to be necesary?

Thanks

Thor Andreas Tangen
0 Kudos
Vladimir_Dudnik
Employee
623 Views

Hello,

there is comment from our expert:

Yes,it is necessarytouse ippsSetDelayLine() ifyou want to start from clear list.

Regards,
Vladimir

0 Kudos
Reply