赛灵思
直播中

刘倩

7年用户 191经验值
私信 关注
[问答]

如何以verilog代码访问存储在BRAM中的像素值?

嗨朋友们,
我正在尝试使用块内存生成器访问存储在ROM中的.coe文件。
我想为此编写一个verilog代码。
如何以verilog代码访问存储在BRAM中的像素值?
提前致谢。

以上来自于谷歌翻译


以下为原文

Hi friends,

I am trying to access .coe file i have stored in ROM using Block Memory Generator. I want to write a verilog code for this. How to access the pixel values stored in BRAM in verilog code?

Thanks in advance.

回帖(6)

黄淳

2019-2-26 10:06:34
sumimandal085写道:
嗨朋友们,
我正在尝试使用块内存生成器访问存储在ROM中的.coe文件。
我想为此编写一个verilog代码。
如何以verilog代码访问存储在BRAM中的像素值?
提前致谢。
嗯,请参阅综合指南,了解有关如何阅读BRAM的详细信息?
当然,您必须生成地址,然后找出如何处理读取数据。
----------------------------是的,我这样做是为了谋生。

以上来自于谷歌翻译


以下为原文

sumimandal085 wrote:
Hi friends,
 
I am trying to access .coe file i have stored in ROM using Block Memory Generator. I want to write a verilog code for this. How to access the pixel values stored in BRAM in verilog code?
 
Thanks in advance.
 
Uhhhh, look in the synthesis guide for details on how to read a BRAM? You'll have to generate addresses, of course, and then figure out what to do with the read data.
----------------------------Yes, I do this for a living.
举报

刘浩

2019-2-26 10:21:34
感谢您的回复。
我能够生成地址但是我只能读取.coe文件的第一个值。
如何阅读.coe文件的其他值?提前感谢

以上来自于谷歌翻译


以下为原文

Thanks for your reply. I am able to generate addresses however i am able to read only first value of .coe file. How to read other values of .coe file?

Thanks in advance
举报

黄淳

2019-2-26 10:33:04
sumimandal085写道:感谢您的回复。
我能够生成地址但是我只能读取.coe文件的第一个值。
如何阅读.coe文件的其他值?提前感谢
呃,确保地址改变了吗?
确保.coe文件的内容不同?
----------------------------是的,我这样做是为了谋生。

以上来自于谷歌翻译


以下为原文

sumimandal085 wrote:
Thanks for your reply. I am able to generate addresses however i am able to read only first value of .coe file. How to read other values of .coe file?

Thanks in advance
Uhhh, make sure the address changes? Make sure the contents of the .coe file are different?
----------------------------Yes, I do this for a living.
举报

刘浩

2019-2-26 10:48:21
感谢您的回复。
地址在每个时钟周期都会发生变化,而且.coe文件的内容也不同。
我无法读取第二个价值。谢谢

以上来自于谷歌翻译


以下为原文

Thanks for your reply. Address changes every clock cycle and also the contents of .coe file are different. i m unable to read second value onwards.

Thanks in advance
举报

更多回帖

发帖
×
20
完善资料,
赚取积分