processor Function Library and Embedded IDE Link CC

Embedded IDE Link CC supports processor function library (TFL) replacement during code generation. Real-Time Workshop introduced processor Function Libraries (TFL) in TLC code generation to provide blocks the ability to request type-specific math expressions from a central database without knowledge of how to emit code for a specific math symbol.

TFL replacement requires Real-Time Workshop Embedded Coder.

Some code generation stages launch TFL queries. Based on the processor you select, TFL replaces the default Real-Time Workshop sum and multiply functions with processor-specific compiler intrinsics and assembly code functions. For more general information about TFL, look for TFL in the Interface options in Configuring Real-Time Workshop Code Generation Parameters.

TFL Replacement Functions

When you enable TFL replacement, Real-Time Workshop software uses compiler intrinsics and assembly code functions provided by Embedded IDE Link CC to replace the sums and multiplies in your generated code. The replacement functions provide optimized operations that enable your generated code to run more efficiently and quickly.

Enabling TFL for Code Generation

You use an option in the Configuration Parameters for your model to enable TFL replacement during code generation. Perform the following steps to enable the TFL replacement process when you generate code from a model

To use the TFL replacement capability when you generate code, you must install Real-Time Workshop Embedded Coder software and select the system target file ccslink_ert.tlc.

  1. Open the Configuration Parameters for your model by selecting Simulation > Configuration Parameters from the model menu bar.

  2. On the Select tree in the Configuration Parameters dialog box, choose Real-Time Workshop.

  3. Set the System target file to ccslink_ert.tlc. Use Browse to select the file.

  4. On the Select tree, choose Interface.

  5. From the Target function library list, select the TI processor family that matches your processor.

  6. Click OK to save your changes and close the dialog box.

With TFL enabled, your generated code uses the TFL replacement libraries provided for your processor.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS
 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS