Main Content

Minimize intermediate signals

Optimize HDL code for debuggability or code coverage

Model Configuration Pane: Global Settings / Coding style

Description

Specify whether to optimize HDL code for debuggability or code coverage.

Settings

off (default) | on

Default: Off

on

Optimize the code coverage by minimizing intermediate signals. For example, with this setting as off, suppose that the generated code is:

const3 <= to_signed(24, 7);
subtractor_sub_cast <= resize(const3, 8);
subtractor_sub_cast_1 <= resize(delayout, 8);
subtractor_sub_temp <= subtractor_sub_cast - subtractor_sub_cast_1;

With this setting as on, HDL Coder™ optimizes the output to:

subtractor_sub_temp <= 24 - (resize(delayout, 8));

The code generator removes the intermediate signals const3, subtractor_sub_cast, and subtractor_sub_cast_1.

off

Optimize the code for debuggability by preserving intermediate signals.

Tips

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

Recommended Settings

No recommended settings.

Programmatic Use

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

Version History

Introduced in R2012a