Memory dump of Simulink block 'Single Port RAM'
3 views (last 30 days)
Michel Bondy on 26 Nov 2021
I have added a 'Single port RAM' block to my simulink model.
I am feeding it data through the 'din' while setting the 'addr' line to the address where I want to write the data (in my case the address is counting down from 100 to 1). All while holding the 'wr_en' line to 1.
The model runs and produces no errors.
Is there a way to visualize the contents of the memory after the simulation has run? The Data Inspector doesn't seem to have a way to look into the memory of the 'Single port RAM' to see what is in there.
Harikrishnan Balachandran Nair on 30 Nov 2021
'To workspace' Blocks in simulink can be used to write the signal data to the base workspace. Using this block, you can log the signal 'din' that is being written to the 'single port RAM', to the base workspace, so that further analysis can be done on this data.
Hope this helps!