Memory dump of Simulink block 'Single Port RAM'
2 次查看(过去 30 天)
显示 更早的评论
Michel Bondy
2021-11-26
评论: Harikrishnan Balachandran Nair
2021-12-21
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.
Thanks.
0 个评论
采纳的回答
Harikrishnan Balachandran Nair
2021-11-30
Hi,
'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!
2 个评论
Harikrishnan Balachandran Nair
2021-12-21
One possible workaround would be to store both 'Addresses' and 'Input Data' to the Workspace using 'To workspace' Blocks. This way, you can form the relation between the 'Address' and Input Data'.
You can also try using 'Map containers' to store the relationship between the Address and Data using the available workspace variables.
Hope this helps!
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!