Main Content

Initialize all RAM blocks

Generate initial signal value for RAM blocks

Model Configuration Pane: Global Settings / Coding style

Description

Enable or suppress generation of initial signal value for RAM blocks. If you specify a nonzero initial value for the RAM, this setting is ignored.

Settings

on (default) | off

Default: On

on

For RAM blocks, generate initial values of '0' for both the RAM signal and the output temporary signal.

off

For RAM blocks, do not generate initial values for either the RAM signal or the output temporary signal.

Tips

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

This parameter applies to these RAM blocks in the HDL Coder > HDL RAMs Block Library in the Simulink Library Browser:

  • Dual Port RAM

  • Simple Dual Port RAM

  • Single Port RAM

  • Dual Rate Dual Port RAM

Recommended Settings

No recommended settings.

Programmatic Use

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

Version History

Introduced in R2012a