RAM mapping is an area optimization. You can map to RAMs in HDL code by using:
UseRAM to map delays to RAM. For details, see UseRAM.
MapPersistentVarsToRAM to map persistent arrays in a
MATLAB Function block to RAM. For details, see MapPersistentVarsToRAM.
RAM blocks from the HDL Operations library:
Single Port RAM
Single Port RAM System
Dual Port RAM
Dual Port RAM System
Simple Dual Port RAM
Simple Dual Port RAM System
Dual Rate Dual Port RAM
Blocks with a RAM implementation.