FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Wed Apr 22, 2009 11:14 pm |
|
|
| Quote: | | As expected all numbers in the CCS compiler are binary and all operations by the cpu are binary. | No doubt about it.
My question has been regarding the scaling used in the Cordic library, but I answered it in between.
I was suprized that decimal scaling factors (1e7 respectively 1e9) rather than 2**n (powers of two) are used in the library. I understand, that it's done for the users convenience. However, if you have to perform a multiply of "length" values, as in heli_potters application, it involves more complicated scaling operations where only a binary shift apllies with usual binary fixed point representation.
Of course, it's no problem to recalculate the Cordic factors and use a binary scaling factor of 2**30 instead of decimal 10e9 if needed. Cause I didn't yet use the Cordic library, I'm not aware of all advantages and disadvantages when using the one or the other. It's just contrary to the fixed point notations I know.
But thank you for providing the library, anyway. I guess, it can be helpful in some of my projects.
Frank |
|