| Contents | Index |
The Embedded Coder code generation report is an enhanced version of the HTML code generation report generated by the Simulink Coder build process. For basic information on working with the HTML code generation report, see Report Generation in the Simulink Coder documentation.
With the Embedded Coder software, you can configure your model to include the following sections in the report:
The Code Interface Report section provides information about the generated code interface, including model entry point functions and input/output data. For more information, see Analyze the Generated Code Interface.
The Traceability Report section allows you to account for Eliminated / Virtual Blocks that are untraceable versus the listed Traceable Simulink Blocks / Stateflow Objects / MATLAB Scripts, providing a complete mapping between model elements and code. For more information, see Customize Traceability Reports.
The Static Code Metrics Report section provides statistics of the generated code. Metrics are estimated from static analysis of the generated code. For more information, see Analyze Static Code Metrics of the Generated Code.
The Code Replacements Report section allows you to account for code replacement library (CRL) functions that were used during code generation, providing a mapping between each replacement instance and the Simulink block that triggered the replacement. For more information, see Analyze Code Replacements in the Generated Code.
The model Web view displays an interactive model diagram within the code generation report and supports traceability between the source code and the model. Therefore, you can share your model and generated code outside of the MATLAB environment. For more information, see Generate HTML Code Generation Report with Model Web View.
In the Generated Files section on the Contents pane, you can click the names of source code files generated from your model to view their contents in a MATLAB Web browser window. In the displayed source code:
If you enable code-to-model traceability, hyperlinks within the displayed source code navigate to the blocks or subsystems from which the code was generated. For more information, see Include Traceability in HTML Code Generation Report and Trace Code to Model Objects Using Hyperlinks.
If you enable model-to-code traceability, you can navigate to the generated code for any block in the model. For more information, see Trace Model Objects to Generated Code.
If you set the Code coverage tool parameter on the Code Generation > SIL and PIL Verification pane, you can view the code coverage data and annotations. For more information, see Use a Code Coverage Tool in SIL and PIL Simulations.
![]() | Report Generation | Include Traceability in HTML Code Generation Report | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |