This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Best numeric representation for FIR and IIR filtering

Expert 1110 points

Hi,

I don’t know if here is the right place to ask these questions. If I want to use the fixed-point arithmetic (for faster executions), what kind of numeric representation will be the best choice for implementing and IIR or FIR filter in DSP? Should I really take care of this matter in my programming? As far as I know multiplications for integer numbers are dangerous, so is it better to convert all of my numbers to fractional representations (assuming that the computations in this conversion are not important and they can be done before and then the result would be saved in the chip memory) ?

I would appreciate your help.

Regards,

Vala 

  • Hi,

    Thanks for your post.

    In general, you can use C64X+ DSPLIB for fixed-point filter computations & C674x DSPLIB for floating point.

    For downloads of c64x, c64x+ & c674x DSP LIB, kindly refer the below link:

    http://www.ti.com/tool/sprc265

    Source codes and precompiled libraries are available in the above DSP library packages  and C64X+ DSPLIB package has source codes for all functions (fixed-point FIR-filter, for example). You can simply add this sources to your project. For more performance you can set -o3 optimization for sources from DSP lib.

    After installaing the c64x+ dsp lib. package, you could find the source code examples for all fixed point arithmetic computations and filter functions from the below path:

    ~\ti\dsplib_c64Px_3_1_1_1\packages\ti\dsplib\src\

    Kindly check the c64x+ DSP library programmer's reference as below:

    http://www.ti.com/lit/ug/sprueb8b/sprueb8b.pdf (please check Table 3 -5)

    Thanks & regards,

    Sivaraj K

    ----------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.

    ----------------------------------------------------------------------------------------------------------

  • Hi Sivaraj,

    Thanks for the answer, I will read them.

    Regards,

    Vala