hdl.RAM is a system object and all RAM system blocks can be configured within variations of the system object. They have identical behavior w.r.to regular RAM blocks but have additional capabilities apart from being able to use hdl.RAM from MATLAB to HDL workflow.
You can find the details of the block here. Faster simulaiton performance for large RAMs, ability to specify initial values for the RAM contents and RAM bank capability with vector address and data signals.
web(fullfile(docroot, 'simulink/slref/dualportramsystemsimpledualportramsystemsingleportramsystem.html'))
web(fullfile(docroot, 'hdlcoder/ref/hdl.ram-system-object.html'))
Best Answer