Give initial value to the "AXI4 Random Access Memory" block in simulink

1 回表示 (過去 30 日間)
ALi Falahati
ALi Falahati 2023 年 2 月 1 日
編集済み: Govind KM 2024 年 11 月 7 日
I wanted to try out the newly introduced simulink block "AXI4 Random Access Memory". In my design I use the DDR3 simulation model which I copied from one of example designs. I wanted to replace it with this new block but I couldn't find any option to initialize the memory with initial data.
Is there no way to initialze the memory? That seems like a cruical functionality for a memory block in simulation.
  2 件のコメント
Bharath Venkataraman
Bharath Venkataraman 2023 年 2 月 7 日
Could you please give more information on what block you are using? Where did you copy this block from?
The following command may be helpful in getting the information - click on the block first so that gcb is set:
BlockType = get_param(gcb, 'BlockType')
ALi Falahati
ALi Falahati 2023 年 2 月 15 日
The block in the screenshot is taken from one of the MATLAB examples related to https://www.mathworks.com/help/soc/ug/model-design-for-axi4-master-interface-generation.html
Simplified AXI4 Master interface.
But the block I have a question about is this

サインインしてコメントする。

回答 (1 件)

Govind KM
Govind KM 2024 年 11 月 7 日
編集済み: Govind KM 2024 年 11 月 7 日
Functionality for memory initialization and logging has been added to the AXI4 Random Access Memory block in MATLAB R2023a. To initialize the memory, select Initialize memory content in the block parameters, and specify the initial value in the Initial value box. I would suggest upgrading to MATLAB R2023a or later to make use of these parameters.
Kindly refer to the following documentation for more information about the block parameters, along with newer functionality such as memory logging:
Hope this resolves the issue.

製品


リリース

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by