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.

TMS320F280049: About CLA, is it better to have multiple small tasks or less tasks with more code lines?

Part Number: TMS320F280049


Hi all! 

I'm embedding a control loop in CLA in which I perform multiple actions (read ADCs, ADCs data conversion, filtering if needed, variable writing, PI's calculus, CLAtoCPU RAM writing, refreshing local variables...)

I was wondering the best deployment option in terms of CLA execution speed, having less funcion calls but bigger size tasks or more function calls but smaller task?

I assume that the second option is more time consuming but gives me more flexibility for synchronizing CPU and CLA tasks, in case shared values are needed between each processor's task.

Regards, 

Ruben

  • Hi Ruben,

    The right answer depends on your architecture. The CLA tasks cannot be interrupted so that will need to be taken into account when determining partitioning of code across tasks. The other aspect is synchronization between C28 and CLA as you mentioned.

    Thanks,

    Ashwini