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.

TMS320C6748: Is it necessary to write algorithm in assembly language? Can we write algorithm in C

Part Number: TMS320C6748

Hello, expert,

        I see that most of the algorithm libraries provided by Ti are written in assembly. If using MATLAB to generate C code, such as ANC algorithm based on LMS, can it be used for real-time processing. I mean, after verifying the algorithm with MATLAB, can the exported C code be directly used on tms320c6748 to realize real-time operation, or must replace the library provided by Ti to realize real-time operation.

  • There is absolutely no need to write DSP code in assembly. The TI C6000 compiler for C6748 devices is mature as the core has been leveraged by customers for over 10 years now. The C compiler gives you upto 90% optimal performance and the performance manager in the toolchain also provides guidance for further optimization. 

    To get maximum performance, please make sure you use -o3 -mv6740 in the compiler settings and have the code and data located closest to the DSP or have the cache enabled when placing code in external memory.  Generally simple techniques like alignment of data buffers and restricting data types of buffers and pointer passed to functions will help compiler optimize the code. Please refer to the following application notes for guidance:

    https://www.ti.com/lit/an/sprabf2/sprabf2.pdf 

    Hope this helps.

    Regards,

    Rahul 

  • Thank you very much for your reply!