在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 4514|回复: 13

[求助] 初学异步fifo,问个设计问题,欢迎讨论~

[复制链接]
发表于 2015-10-16 13:16:10 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

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

x
最近在学习Cliff Cummings的那篇关于异步fifo的paper,感觉讲的很好,自己也试着写了下verilog,基本都能写下来。不过有一点不太懂,就是paper里面有一个叫winc的输入(write端的increment),从block diagram看,这个winc是负责write clock enable的开启的,并且也是write端的输入,但是这个winc是怎么生成的呢? 也就是说,是什么信号来控制winc的呢?这点paper里在最后提到了,但我也没有明白作者的意思。
下面这是block diagram
Block_Diagram.png

作者原文结尾有关winc这个信号是这样说的:


Full flag detection - the first version of this paper sent the full flag back to the sending logic, which meant that the sending logic had to use the full flag to generate the winc signal (used to enable memory writes) using combinational logic. The updated version of this FIFO design shows that the full signal is also sent to the FIFO memory to help determine if the memory should be written. This modification allows the full signal in the FIFO design and the winc signal from the sending logic to both be registered, which is a good design and synthesis coding practice, plus it simplifies the sending logic required to generate the winc signal. The updated block diagram can be seen in Figure 5.



先请教论坛各位大神们这个问题。我还有一个关于n-bit dual gray code的问题,也是关于这片paper的,会继续请教。

这里是paper下载:
Paper_async_fifo.pdf (305.19 KB, 下载次数: 51 )
发表于 2015-10-16 15:17:29 | 显示全部楼层
写使能啊,首先FIFO不能是满的,其次输入必须有写的request。
发表于 2015-10-16 15:27:31 | 显示全部楼层
一般外面会在有一个握手的模块,根据你输出的full 和empty 产生读写使能
发表于 2015-10-16 15:58:53 | 显示全部楼层
应该是告诉模块什么时候有写数据,否则写就必须一直有效,或一直无效。
发表于 2015-10-16 16:40:28 | 显示全部楼层
我之前做过的是,如果非满,就一直请求写数据,当data和data_valid来的时候,用data_valid & (!full)作为winc
发表于 2015-10-16 21:13:16 | 显示全部楼层
FIFO状态吧
发表于 2015-10-16 21:14:04 | 显示全部楼层
这本书不错
 楼主| 发表于 2015-10-17 00:50:07 | 显示全部楼层
回复 2# 老阮


    谢谢老阮! 也就是说winc是外部喂进来的信号对吧? 这样的话我这个fifo的toplevel应该是不包括winc的生成的了。
 楼主| 发表于 2015-10-17 00:55:06 | 显示全部楼层
回复 3# 南宫恨


    handshake应该是异步fifo里用来同步写指针和读指针的一个办法吧? 我的RTL用的不是握手,而是paper里的用两个flop的方法(wclk去同步写指针,rclk去同步读指针)。您说的握手具体是什么意思?
 楼主| 发表于 2015-10-17 00:58:31 | 显示全部楼层
回复 5# 南宫恨


    OK,我大概明白了这个框架。您做的这部分还有源码留着吗?不知道能不能学习下,截取一段就可以,不需全部。
yty_yty@126.com
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

×

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-4-28 03:50 , Processed in 0.030701 second(s), 9 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表