完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
使用Coregen,我为独立时钟生成了一个FIFO,目标是分布式RAM(V7 2000T设备)。
输入和输出的数据都是84位宽。 写入数据在wr clk = 200 MHz的每4个时钟上连续写入。 当fifo不为空时,用rd clk = 50 MHz连续读出数据。 从模拟开始,在5次写入后,fifo空置为空。 如何正确计算深度? 最初,我的深度为16,所有人都在董事会工作。 然后进行实验,我改变了wr和rd时钟,使得它们来自单独的板载振荡器。 这导致了fifo溢出。 我将深度更新为128,然后再次运行。 如果有人可以告诉我发生了什么,以及这个FIFO设置是否可以可靠地处理来自不同来源的时钟,我真的很感激。 我打算有相同的来源,但想知道有什么限制。 问候, 标记 以上来自于谷歌翻译 以下为原文 Using Coregen, I generated a FIFO for independent clocks targeting Distributed RAM (V7 2000T device). The data in and out are both 84 bits wide. The write data is continuously written on every 4th clock of the wr clk = 200 MHz. When fifo not empty, data is continuously read out with rd clk = 50 MHz. From simulation, the fifo empty deasserts after 5 writes. How do I correctly calculate the depth? Initially, I had a depth of 16 and all worked on the board. Then to experiment, I changed the wr and rd clocks such that they were derived from separate on-board oscillators. This resulted in a fifo overflow. I updated the depth to 128 and it’s working again. I’d really appreciate if someone can enlighten me as to what’s transpiring and if this FIFO setup can reliably handle clocks from separate sources. I plan to have the same source but would like to know what are the limitations otherwise. Regards, Mark |
|
相关推荐
3个回答
|
|
你好马克,
附件是FPGA到FPGA接口的框图。 注意,计划是使用相同的振荡器源。 我模拟了osc1 = 50.1 MHz和osc2 = 49.9 MHz,我发现了下溢错误,如果我运行了足够长的溢出条件。 我的问题仍然存在。 如何正确计算1)时钟源相同时的深度以及2)时钟源是否不同? 我已经阅读了一些有关fifo深度的论坛帖子,但我仍然没有牢牢掌握我的逻辑需要什么。 问候, 标记 serial2par_fifo_two_fpga.pdf 97 KB 以上来自于谷歌翻译 以下为原文 Hello Mark, Attached is a block diagram for the FPGA to FPGA interface. Note, the plan is to use the same oscillator source. I simulated with osc1 = 50.1 MHz and osc2 = 49.9 MHz and I found underflow error and if I ran long enough the overflow condition. My question still remains. How do I correctly calcuate the depth required for 1) when clock sources are the same and 2) if clock sources are different? I've read through some of the forum posts regarding fifo depth, but I still don't have a firm grasp on what's required for my logic. Regards, Mark serial2par_fifo_two_fpga.pdf 97 KB |
|
|
|
你的SIM卡显示失败。
从那里开始,了解故障模式。 再现错误是90%的工作 - 所以你几乎就在那里。 计算fifo大小没有简单的公式 - 除了“平均”带宽输入的一般规则,必须等于你的“平均”带宽。 如果存在不平衡,则会溢出(或下溢)。 如何定义“平均”是非常依赖于系统的,为什么没有简单的公式。 可以这样想吧 - 如果你试图读取50.1 MHz的东西,而你只是以49.9 MHz的速度写入 - 它只能在它失败之前工作很久,对吗? 那是几点? 在开始阅读之前,你能让它填满多少? 问候, 标记 以上来自于谷歌翻译 以下为原文 Your sim shows the failure. Start there, and understand the failure mode. Reproducing an error is 90% of the work - so you're almost there. There's no simple formula for calculating fifo sizes - other than the general rule that your "average" bandwidth in, must equal your "average" bandwidth out. If there's an inbalance, you're going to overflow (or underflow). How "average" is defined is very system dependant, and why there's no simple formula. Think of it this way - if you're trying to READ something at 50.1 MHz, and you're only writing at 49.9 MHz - it's only going to work for so long before it fails, correct? What is that time? How much do you let it fill before starting your read? Regards, Mark |
|
|
|
在时钟来自同一个振荡器的情况下,我假设只要它写入并以相同的速率读出,它就会更加确定,直到fifo深度并且它不会溢出/下溢。
这是我最初发现的,当我为两个FPGA使用相同的振荡器时,FIFO深度= 16并且它在电路板上工作。 因为,数据宽度最初是84位,可以选择180位,我还需要针对Kintex7器件,所以我想确定我没有不必要的FIFO深度。 问候, 标记 以上来自于谷歌翻译 以下为原文 In the case where the clocks are derived from the same oscillator, I'm assuming it would be more deterministic as far as fifo depth and it not overflowing/underflowing as long as it's writing in and reading out at the same rate. This is what I found initially, when I used the same oscillator for both FPGAs, the FIFO depth = 16 and it worked on the board. Since, the data width is initially 84 bits with an option to go to 180 bits, I also need to target a Kintex7 device and so I want to be certain I don't unnecessarily have a large FIFO depth. Regards, Mark |
|
|
|
只有小组成员才能发言,加入小组>>
2413 浏览 7 评论
2820 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2292 浏览 9 评论
3371 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
2456 浏览 15 评论
有输入,但是LVDS_25的FPGA内部接收不到数据,为什么?
1035浏览 1评论
请问vc707的电源线是如何连接的,我这边可能出现了缺失元件的情况导致无法供电
577浏览 1评论
求一块XILINX开发板KC705,VC707,KC105和KCU1500
434浏览 1评论
1998浏览 0评论
721浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-18 19:22 , Processed in 1.456597 second(s), Total 81, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号