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.

square root and CSB

Other Parts Discussed in Thread: CONTROLSUITE

In spru430e, in the "CSB ACC" instruction page (6-83) there is reference to its usage in square root computation. I have an implementation of squareroot by multiply-compare-binary search-converge. I was looking for a hint of alternative approach in the sample program for that instruction in that page. But not very helpful.

Will the usage of "CSB" instruction expedite square root computation greatly? Can some DSP expert in the forum share some thoughts?

Thanks

Sayee

  • Sayee,

    In a sqrt calculation it would just be used for normalization.  That is, find out how many sign bits and then shift left by that many. 

    You might be interested in using the IQmath sqrt function.  It is available in controlSUITE (www.ti.com/controlSUITE

    After install, the default location of the software is:

    C:\ti\controlSUITE\libs\math\IQmath\v15c\doc

    Regards,

    -Lori