Main Content

Transform non zero initial value delay

Specify Transform Delay blocks to have zero initial value

Since R2020b

Model Configuration Pane: Optimization / General


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.


On (default) | Off

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.


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


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', ... 
  • When you use hdlset_param, you can set the parameter on the model and then generate HDL code using makehdl.


Recommended Settings

No recommendations.

Programmatic Use

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

Version History

Introduced in R2020b

See Also