Main Content

Transform non zero initial value delay

Specify Transform Delay blocks to have zero initial value

Since R2020b

Model Configuration Pane: Optimization / General

Description

The Transform non zero initial value delay parameter specifies whether to transform Delay blocks that have nonzero initial value to Delay blocks that have a zero initial value.

Settings

On (default) | Off
On

Transform Delay blocks with nonzero Initial condition in your Simulink® model to Delay blocks with zero Initial condition and some additional logic in the generated HDL code.

By using this transformation, HDL Coder™ can perform optimizations such as sharing, distributed pipelining, and clock-rate pipelining more effectively, and prevent an assertion from being triggered in the validation model.

Off

Do not transform Delay blocks with nonzero Initial condition in your Simulink model.

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 set the TransformNonZeroInitValDelay property to on when you generate HDL code for the symmetric_fir subsystem inside the sfir_fixed model using either of these methods.

  • Pass the property as an argument to the makehdl function.

    makehdl('sfir_fixed/symmetric_fir', ... 
            'TransformNonZeroInitValDelay','on')
  • When you use hdlset_param, you can set the parameter on the model and then generate HDL code using makehdl.

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

Recommended Settings

No recommendations.

Programmatic Use

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

Version History

Introduced in R2020b

See Also