Main Content

Create and Use Code Generation Reports

Report Generation

The HDL Coder™ software creates and displays an HTML code generation report when you select one or more of the following options. You can specify the UI options in the HDL Code Generation > Report pane of the Configuration Parameters dialog box.

GUI optionmakehdl PropertyDependency
Generate traceability reportTraceability

Generate HDL code must be enabled.

Generate resource utilization reportResourceReport

Generate HDL code and Generated model must be enabled.

Generate high-level timing critical path reportCriticalPathEstimation

Generate HDL code and Generated model must be enabled.

Generate optimization reportOptimizationReport

Generate HDL code and Generated model must be enabled.

Generate model Web viewHDLGenerateWebview

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 the following optional sections:

  • Traceability report

  • Resource utilization report

  • High-level timing critical path report

  • Optimization report

  • Model web view

Summary

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.

Code Interface Report

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 the following subsections:

  • High-level Resource Report: This section The Summary section summarizes multipliers, adders/subtractors, 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. This section displays the total 1-bit registers that is calculated as the sum of products over the bit widths of the registers and their frequency of occurrence.

  • Target-Specific Report: When you request target-specific code generation on the model, this subsection shows the resource utilization report.

Optimization Report

When you select Generate optimization report, HDL Coder adds an Optimization Report section, with three subsections:

  • Distributed Pipelining: If a subsystem has the DistributedPipelining option 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: Summary, status, and path delay information about the subsystems after target code generation.

  • Delay Balancing: Lists the number of pipeline delays and phase delays added at the output ports to match the delays.

Related Topics