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.

TMS320F28069: CLA operation performance

Part Number: TMS320F28069

Tool/software:

Hi Champ,

I asking for my customer about CLA.

1. Does CLA have a speed difference between int/short/float operation with those data types ? or as long as dealing with floating-point operation, then it wouldn't have much affect on CLA operation performance ?

2. User uses lots of  #if for conditional expression, any intrinsic instruction set to speed up ? From the understanding, it takes much time for dealing with #if conditional expression.

Thanks and regards,

Johnny

  • Hi Johnny,

    I will look into this and get back to you.

    Best Regards,

    Delaney

  • Hi Johnny,

    I apologize for the long delay.

    1. Does CLA have a speed difference between int/short/float operation with those data types ? or as long as dealing with floating-point operation, then it wouldn't have much affect on CLA operation performance ?

    It depends on the operations done, but the CLA is very good at floating-point but not so great at non-floating-point (fixed point math, string manipulations, general code, moving things around etc).  Also note that the CLA also doesn't have an integer multiply. If dealing with floating point variables, in general you should not see performance issues.

    I would suggest looking at how many compiler instructions are generated in the disassembly window for each line of code to make sure that no instructions require a large amount of CLA instructions. As long as each line of CLA code translates to only a small number of CLA assembly instructions, they shouldn't experience any performance issues.

    2. User uses lots of  #if for conditional expression, any intrinsic instruction set to speed up ? From the understanding, it takes much time for dealing with #if conditional expression.

    Are they concerned with the speed of compilation? #if statements will be handled at compile time so there should be no performance hit during the code execution associated with these statements.

    Best Regards,

    Delaney