![1.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/233327/image.jpeg)
How to use tmu of CCS in Matlab? How to use sincos_rts block in simulink?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Srinivaskarthik potluri
il 8 Ago 2019
Commentato: Venkatesh Chilapur
il 12 Ago 2019
How to use tmu of CCS in Matlab? How to use sincos_rts block in simulink?
0 Commenti
Risposta accettata
Venkatesh Chilapur
il 9 Ago 2019
Hi,
If your hardware supports it, turn on the TMU support (--tmu_support=tmu0 and --fp_mode=relaxed) in addition to FPU support (--fpu_support=fpu32) and then call the sin(), cos()- what the compiler does in this case is replace those calls with TMU instructions.
You can add them under C Compiler under Toolchain details in ‘Code Generation’ tab. please refer below fig.
Also, FastRTS is included in the build using the Linker option in Build configuration as shown below:
![1.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/233327/image.jpeg)
Regards,
Venkatesh C
Più risposte (0)
Vedere anche
Categorie
Scopri di più su C Code Generation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!