Specify the minimum RAM size required for mapping to RAMs instead of registers
N
Default: 256.
N
must be an integer greater than
or equal to 0.
RAMMappingThreshold
defines the minimum
RAM size required for mapping to RAM instead of registers. This threshold
applies to:
Delay blocks
Persistent variables in MATLAB Function blocks
To set this property, use hdlset_param
or makehdl
. To view the property value, use hdlget_param
.
To change the RAM mapping threshold for a model, use the hdlset_param
function.
For example:
hdlset_param('sfir_fixed', 'RAMMappingThreshold', 1024);
That command sets the threshold for the sfir_fixed
model
to 1024 bits.
UseRAM in the HDL Coder™ documentation
MapPersistentVarsToRAM in the HDL Coder documentation