RAM mapping threshold - Specify the minimum RAM size for mapping to block RAMs - MATLAB (original) (raw)

Main Content

Specify the minimum RAM size for mapping to block RAMs

Model Configuration Pane: Optimization / General

Description

Specify the minimum RAM size for mapping to block RAMs. HDL Coderâ„¢ determines whether to use registers or RAM resources on the FPGA by comparing the RAM size of your design with the RAM mapping threshold that you specify.

You can specify the RAM mapping threshold by using either:

Settings

256 (default)

The RAM mapping threshold must be:

HDL Coder uses the threshold to determine whether or not to map the following elements to block RAMs instead of to registers:

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

For example, you can set the RAMMappingThreshold to a delay length of 500 cycles and a word length of 50 bits, "500x50", when you generate HDL code for the symmetric_fir subsystem inside the sfir_fixed model using either of these methods.

No recommendations.

Programmatic Use

Parameter: RAMMappingThreshold
Type: integer, string
Value: integer greater than or equal to 0, string of MxN format
Default: 256

Version History

Introduced in R2012b