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.

如何确认28377的TMU参与运算了?

如何确认28377的TMU参与运算了?需要像IQ_MATH那样添加引用什么library吗?还是说TMU是硬件实现的,只要sin,cos之类的函数TMU就会自动参与运算?

  • 您好,
    When TMU support is enabled and the --fp_mode=relaxed option is selected, the compiler will automatically replace library calls to these operations with hardware instructions. If the floating point mode is strict (the default setting, --fp_mode=strict), the compiler will issue performance advice if it encounters any opportunities for replacing library calls with TMU instructions. Advice will be issued once per operation type per file.
    关于TMU的使用请参考以下链接中的说明:
    processors.wiki.ti.com/.../C2000_Performance_Tips_and_Tricks
    processors.wiki.ti.com/.../C2000_FFT:_VCU,_FPU_or_FixedPoint
  • 1.如何确认28377TMU参与运算?
    Debug模式View->Diassembly调试,运行到调用TMU指令代码,在Diassembly窗口中可以查看对应汇编语言调用语句即可确认TMU是否参与运算;
    2.需要像IQ_MATH那样添加引用什么library吗?
    不需要添加引用库,只需要设置project->Properties->Build->C2000 Compiler->Processor Options:①Specify TMU support选定为“tmu0”;②Specify floating point support选定为“fpu32”;
    project->Properties->Build->C2000 Compiler->Optimization:Floating Point mode 选定为“relexed”(sin、cos函数TMU会自动参与运算);
  • 不需要用 __sin(src)或者__sinpuf32(src)这样的命令形式来调用吗?

    之前不知道,程序里也是一直这么使用命令操作的……