Create and Use Code Generation Reports
The HDL Coder™ software creates and displays an HTML code generation report when you select one or more options listed in the table. In the Configuration Parameters dialog box, you can specify the UI options in the HDL Code Generation > Report pane.
|GUI option||makehdl Property||Dependency|
|Generate traceability report|
Generate HDL code must be enabled.
|Generate resource utilization report|
|Generate high-level timing critical path report|
|Generate optimization report|
|Generate model Web view|
Generate HDL code must be enabled.
When you generate code, the Code Generation Report appears in a separate window.
Code Generation Report
The Code Generation Report is an HTML file that includes a Summary, a Clock Summary, a Code Interface Report, and one or more of these optional sections:
Resource utilization report
High-level timing critical path report
Model web view
The Summary lists information about the model, the DUT, the date of code generation, and top-level coder settings. The Summary also lists model properties that have nondefault values.
The Code Interface Report shows the DUT input and output port names, data types, and bit widths. The report displays links corresponding to each input port and output port in your Simulink® model.
Timing and Area Report
When you select Generate resource utilization report, HDL Coder adds a Timing and Area Report section to the Code Generation Report. This section of the report contains these subsections:
High-level Resource Report: The Summary section summarizes multipliers, adders and substractors, and registers consumed by the device under test (DUT).
The Detailed Report section contains more information on the resources that each subsystem uses. Wherever possible, the detailed report links back to corresponding blocks in your model. The Detailed Report section also contains:
A Registers section that displays the total 1-bit register that is calculated as the sum of products over the bit widths of the registers and their frequency of occurrence.
A Static Shift operators section and a Dynamic Shift operators section. A static shift is a shift value that is a mask constant. The shift logic does not change. A dynamic shift is a shift value specified as input to a block. Dynamic shifts are more resource-expensive than static shifts and should be used sparingly.
Target-Specific Report: When you request target-specific code generation on the model, this subsection shows the resource utilization report.
When you select Generate optimization report, HDL Coder adds an Optimization Report section, that contains these subsections:
Distributed Pipelining: If a subsystem has the
DistributedPipeliningoption enabled, this subsection displays comparative listings of registers before and after you apply the distributed pipelining transform.
Streaming and Sharing: Summary and detailed information about the subsystems for which you specify sharing or streaming optimizations and the delay balancing summary.
Target Code Generation: Displays target device summary and target mapping status for the subsystem that has floating-point data types.
Delay Balancing: Provides detailed information on pipeline latency and phase delays added at the output ports to match delays along the parallel paths.
Adaptive Pipelining: Displays status of the adaptive pipelining optimization, blocks for which pipeline registers are inserted, and the number of pipeline registers.
Hierarchy Flattening: Displays hierarchy flattening status, subsystems that have FlattenHierarchy set to
off, and the inline HDL files.