Quantcast
Channel: Altera Forums
Viewing all articles
Browse latest Browse all 19390

how to read the memory initialized by "lpm_ram_dq"

$
0
0
If I have a block of memory initialized by an instance of lpm_ram_dq.
// instantiating lpm_ram_dq
lpm_ram_dq ram (.data(datain), .address(addr), .we(we), .inclock(inclk), .outclock(outclk), .q(dataout));
If I want to read out data at "addr (e.g. addr = 2)" to an output variable outdata using nonblocking assignment, how should do it? Is there a similar format like "outdata <= mem[2]" or "assign outdata = mem[2]"?

Viewing all articles
Browse latest Browse all 19390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>