SPRADI0A July 2024 – November 2024
C2000 devices also contain accelerators such as Trigonometric Math Unit (TMU) to perform floating point trigonometric operations faster. To ensure that the generated code is using the TMU instructions, the hardware implementation tab in the hardware settings contains the option to enable TMU. This ensures that wherever trigonometric operations are to be performed, the TMU instructions are invoked. By default, TMU is enabled for the devices having TMU accelerator unless manually unchecked.
While TMU can specifically be invoked by calling the intrinsic function as described in the C2000 compiler user guide, by enabling the TMU function in the Simulink window still uses the conventional trigonometric operations and not the TMU intrinsics. The TMU is enabled by using the appropriate compiler flag in the build configuration and ensures that the hardware accelerator is correctly invoked for performing trigonometric operations.