Main Content

RAM and ROM Blocks

Mimic RAMs and ROMs on hardware using blocks in HDL RAMs library

The HDL Coder block library contains many blocks that you can add to your Simulink® modeling environment and develop your HDL algorithm. You can use blocks from the HDL Coder library to mimic RAM and ROM blocks on the target device.

To filter the Simulink Library Browser to show only HDL-supported blocks, enter hdllib.

Functions

hdllibDisplay blocks that are compatible with HDL code generation

Simulink Configuration Parameters

expand all

Blocks

expand all

Dual Port RAMDual port RAM with two output ports
Dual Port RAM SystemDual Port RAM block based on the hdl.RAM system object with ability to provide initial value
Dual Rate Dual Port RAMDual Port RAM that supports two rates
HDL FIFOStores sequence of input samples in first in, first out (FIFO) register
Simple Dual Port RAMDual port RAM with single output port
Simple Dual Port RAM SystemSimple Dual Port RAM block based on the hdl.RAM system object with ability to provide initial value
Single Port RAMSingle port RAM
Single Port RAM SystemSingle Port RAM block based on hdl.RAM system object with ability to provide initial value

Topics

Build a ROM Block with Simulink Blocks

HDL Coder™ does not provide a ROM block, but you can easily build one using basic Simulink blocks.

Use Simulink Templates for HDL Code Generation

Use Simulink templates for HDL code generation to create efficient hardware designs.

Featured Examples