Main Content

RAM Mapping

R2026b
Map large delays, persistent variables in MATLAB code, and pipeline delays to RAM

RAM mapping is an area optimization that maps storage and delay elements in your Simulink® model or MATLAB® code to random access memory (RAM) rather than to individual registers on hardware. RAM mapping can reduce the amount of area that your design uses in the target hardware by reducing the number of registers that elements consume and store those elements in RAM blocks.

Functions

coder.hdl.ramconfigSpecify RAM mapping configuration for persistent array variables (Since R2023b)

Model Settings

Map pipeline delays to RAMMap pipeline registers in generated HDL code to RAM
RAM mapping thresholdSpecify minimum RAM size for mapping to block RAMs
Map lookup tables to RAM Map lookup tables to block RAM

Topics

Featured Examples