搜索
bottom↓
回复: 5

用fpga写sdram控制器,用了Northwest的核,关于刷新有点疑问

[复制链接]

出0入0汤圆

发表于 2012-12-12 17:58:29 | 显示全部楼层 |阅读模式
用fpga写sdram控制器,用了Northwest的核,关于刷新的问题。

想问下各位大大,这个ip核会不会自己在刷新,还是说,需要自己再多写一个刷新计数器,控制其刷新。

谢谢了。

附:Northwest的sdram控制器代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x

阿莫论坛20周年了!感谢大家的支持与爱护!!

知道什么是神吗?其实神本来也是人,只不过神做了人做不到的事情 所以才成了神。 (头文字D, 杜汶泽)

出0入0汤圆

发表于 2012-12-19 19:25:32 | 显示全部楼层
看了文檔的說明, 主要你的想要找的答案在下:

The control interface module also contains a 16-bit down counter and control circuit that is used to generate periodic
refresh commands to the command module.
The 16-bit down counter is loaded with the value from REG2 and counts
down to zero. The REFRESH_REQ output is asserted when the counter reaches zero and remains asserted until the
command module acknowledges the request. The acknowledge from the command module causes the down counter
to be reloaded with REG2 and the process repeats. REG2 is a 16-bit value that represents the period between
REFRESH commands that the SDR SDRAM Controller issues. The value is set by the equation
int(refresh_period/clock_period).

For example, if an SDRAM device that is connected to the SDR SDRAM Controller has a 64-ms, 4096-cycle refresh
requirement, the device must have a REFRESH command issued to it at least every
64 ms/4096 = 15.625 μs.
If the SDRAM and SDR SDRAM Controller are clocked by a 100-MHz clock, the maximum value of REG2 is
15.625 μs/0.01μs = 1562d.

只要你對REG2設定好刷新的數值後, 這個IP會自動幫你產生REFRESH Command.

出0入0汤圆

 楼主| 发表于 2012-12-19 23:48:20 | 显示全部楼层
chenshengyang 发表于 2012-12-19 19:25
看了文檔的說明, 主要你的想要找的答案在下:

The control interface module also contains a 16-bit down  ...

我已经发现了。不过还是谢谢啦。。。看文档太不仔细了。。汗。。。

出0入0汤圆

发表于 2013-4-17 16:21:23 | 显示全部楼层
我已经被这个sdram折腾很久了,O(∩_∩)O谢谢

出0入0汤圆

发表于 2013-4-17 16:22:51 | 显示全部楼层
感激之情无以言表……

出0入0汤圆

发表于 2013-4-18 17:08:24 | 显示全部楼层
行不行的啊,在裸奔情况下可以直接读写吗?
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片。注意:要连续压缩2次才能满足要求!!】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-7-24 07:12

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表