Main Content

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. The Getting Started with RAM and ROM example includes a ROM built using a 1-D Lookup Table block and a Unit Delay block. To open the example, type the following command at the MATLAB® prompt:

openExample('hdlcoder/GettingStartedWithRAMAndROMInSimulinkExample',...
'supportingFile','hdlcoderrom.slx');