Main Content

Generate resource utilization report

Generate report with resource utilization information

Model Configuration Pane: HDL Code Generation / Report

Description

The Generate resource utilization report parameter enables or disables generation of these sections in an HTML code generation report:

  • High-level Resource Report

  • Target-specific Report

  • Native Floating-Point Resource Report

The High-level Resource Report section contains a summary of hardware resources and detailed information about the number of multipliers, adders, registers, and other resources that the generated HDL code uses.

If you have floating-point data types in your model, you can generate HDL code with native floating-point support. You can map your design to native floating-point libraries or Intel® and Xilinx® FPGA floating-point libraries. The Target-specific Report section includes a target-specific report corresponding to FPGA floating-point library mapping and Native Floating-Point Resource Report section lists the floating-point operators that your Simulink blocks map to.

Dependencies

To enable this parameter, select these model configuration parameters:

Settings

on (default) | off
on

Create these sections in the HTML code generation report:

  • High-level Resource Report

  • Target-specific Report

  • Native Floating-Point Resource Report

The code generation report contains information about the generated code.

To generate the report, on the HDL Code tab in the Simulink toolstrip, click the Generate HDL Code button.

off

Do not create these sections in the HTML code generation report:

  • High-level Resource Report

  • Target-specific Report

  • Native Floating-Point Resource Report

Tips

To set this property, use the functions hdlset_param or makehdl. To view the property value, use the function hdlget_param.

For example, you can generate a resource utilization report when generating HDL code for the symmetric_fir subsystem inside the sfir_fixed model by using either of these methods:

  • Pass in the ResourceReport parameter as an argument to makehdl.

    makehdl('sfir_fixed/symmetric_fir','ResourceReport','on')

  • Enable the ResourceReport parameter by using hdlset_param, and then use makehdl.

    hdlset_param('sfir_fixed','ResourceReport','on')
    makehdl('sfir_fixed/symmetric_fir')

Programmatic Use

Parameter: ResourceReport
Type: character vector
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced in R2012a

expand all