What is the difference between wr_dout and r_dout ports of a Dual-port RAM in the hdldemolib? Please give a detailed explanation (if possible with an example)

 採用された回答

This is straightforward. The Dual Port RAM has two address inputs; wr_addr and rd_addr. wr_dout is the contents of the address wr_addr, and rd_dout is the contents of the address rd_addr.
The documentation is quite short and clear as to the specific behavior of all the ports, and tradeoffs between the various RAM blocks.
>> web(fullfile(docroot, 'simulink/slref/dualportram.html'))

2 件のコメント

Bala Vignesh
Bala Vignesh 2014 年 7 月 3 日
編集済み: Bala Vignesh 2014 年 7 月 3 日
Dear McBrayer, Thank you for your answer. I have a very basic question. If wr_dout is the contents of the wr_addr and rd_dout is the contents of the address rd_addr then why not have wr1_addr and wr2_addr and call them both as write operation? Especially, while cascading RAM blocks, I would like to know when is rd used and when is wr used.
Bala
There is only one write data port; you can only write one word of data at a time. This is why the ports are named the way that they are. The capability of the Simulink RAM blocks are specifically designed to match the synthesis templates that are shared by all major synthesis tools, so that the implementation maps to the underlying on-chip block RAMS.

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

その他の回答 (0 件)

製品

Community Treasure Hunt

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

Start Hunting!

Translated by