Main Content

Initialize all RAM blocks

Generate initial signal value for RAM blocks

Model Configuration Pane: Global Settings / Coding style


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.


on (default) | off

Default: On


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


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


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