Embedded Target for Texas Instruments C6000 DSPs | ![]() ![]() |
To Profile Your Generated Code
Before profiling your generated code, you configure your model and the Real-Time Workshop to support the profiling features in Embedded Target for TI C6000 DSP.
Seven tasks compose the process of profiling the code you generate.
profile
to view the profile report.
To demonstrate profiling generated code, this procedure uses the wavelet denoising model c6711dskwdnoisf.mdl
that is included with the Embedded Target for TI C6000 DSP demo programs. If you are using the C6701 EVM as your target, use the model C6710evmwdnoisf
instead throughout this procedure. Simulators work as well, just choose the appropriate model for your simulator.
Begin by loading the model, entering
at the MATLAB prompt. The model opens on your desktop.
Enabling Profiling for Your Generated Code
TI C6000 code generation
.
Creating Atomic Subsystems for Profiling
Profiling your generated code depends on two features--DSP/BIOS being enabled and your model having one or more subsystems defined as atomic subsystems. To learn more about subsystems and atomic subsystems, refer to your Simulink documentation in the Help browser.
In this tutorial, you create two atomic subsystems--one from the Analysis Filter Bank block and a second from the Soft Threshold block.
Building and Profiling Your Generated Code
You have enabled profiling in your model and configured two atomic subsystems in the model as well. Now, use the profiling feature in Embedded Target for TI C6000 DSP to see how your code runs and check the performance for bottlenecks and slowdowns as the code runs on your target.
Allow the application to run for a few seconds or as long as necessary to execute the model segments of interest a few times. Then stop the program.
The profile report appears in the Help browser. It should look very much like the report sample shown here; your results may differ based on your target and your settings in the model.
![]() | Reading Your Profile Report | Using DSP/BIOS with Your Target Application | ![]() |