MATLAB: Is there a block that captures memory read/write operation in SimHDL

HDL Codermemoryramsimhdl

The requirement is to simulate the RAM using blocksets that are compatible with the SimHDL

Best Answer

SimHDL does not provide such a Memory block.
As a workaround, the read operation can be done using the Selector block from Simulink->Signal Routing->Selector library. For the write operation, you can use the Assignment block from the Simulink->Math Operations->Assignment library as this provides the memory write functionality.
It is possible to create a subsystem that contains both the Selector and the Assignment blocks with appropriate logic to simulate such a Memory block that performs read/write operations at specified address locations.
Please refer to the attached file for an example.