赛灵思
直播中

陆兰兰

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

如何避免Spartan默认初始化BRAM?

嗨,
我需要读取BRAM的上电值,但是在编程阶段它们默认为0。
有办法防止这种情况吗?
谢谢

以上来自于谷歌翻译


以下为原文

Hi,

I need to read the power-up values of BRAMs, however they default to 0 in the programming phase. Is there a way to prevent this?

Thanks

回帖(2)

赵雪培

2019-7-23 11:49:26
嗨,
我认为您可以选择在使用coregen向导Block Memory Generator时为BRAM选择初始化值。
查看本指南的第31页-http://www.xilinx.com/support/documentation/user_guides/ug473_7Series_Memory_Resources.pdf
和链接第10页-http://www.xilinx.com/support/documentation/ip_documentation/blk_mem_gen/v8_2/pg058-blk-mem-gen.pdf
祝你好运!
谢谢,AnirudhPS:请将此标记作为答案,以防它有助于解决您的问题。如果帖子引导您找到解决方案,请给予赞誉。

以上来自于谷歌翻译


以下为原文

Hi,
 
I think you have the option to select the initilazation values for the BRAM's when you use coregen wizard Block Memory Generator.
 
Check Pg 31 of this guide - http://www.xilinx.com/support/documentation/user_guides/ug473_7Series_Memory_Resources.pdf
 
and Pg 10 of this link - http://www.xilinx.com/support/documentation/ip_documentation/blk_mem_gen/v8_2/pg058-blk-mem-gen.pdf
 
Good Luck!
 
 
Thanks,
Anirudh

PS: Please MARK this as an answer in case it helped resolve your query.Give kudos in case the post guided you to a solution.
举报

李森

2019-7-23 11:57:13
对于bitgen,有一个未记录的选项可用于不将块RAM初始化为全零。
为了使其工作,您还需要启用比特流压缩选项。
-g compress
-g skip_bram_init:是的
------您是否尝试在Google中输入问题?
如果没有,你应该在发布之前。太多结果?
尝试添加网站:www.xilinx.com

以上来自于谷歌翻译


以下为原文

There is an undocumented option for bitgen that you can use to not initialize the block RAM to all zeros.  In order for this to work you also need to enable the bitstream compress option.
 
-g compress
-g skip_bram_init:yes
------Have you tried typing your question into Google?  If not you should before posting.
Too many results?  Try adding site:www.xilinx.com
举报

更多回帖

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