完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,
在我的设计中,spartn6有一个ti收发器tlk2211接口,它以ddr模式发送数据(RD),并采用两个反向clk(RBC0 / 1)来捕获每个上升沿中的数据。 附件中显示的波形, 我有点困惑,我应该如何捕获数据并同步到内部时钟? 有没有办法将两个时钟合并到一个时钟信号并用这个时钟捕获数据? 谢谢, 加斯 以上来自于谷歌翻译 以下为原文 Hi all, In my design there is a TI transcever tlk2211 interfaces to spartn6, which send data(RD) in ddr mode, and sourced with two inverted clk(RBC0/1) to capture the data in each of the rising edge. the waveform as shown in the attachment, I'm a little puzzled how should I capture the data and sync to the internal clock? is there any way to merge the two clock to a signle clock and capture the data with this clock? Thanks, Gauz |
|
相关推荐
4个回答
|
|
你问过几个技术问题。
我会试着总结一下。 对于听众,可以在此处找到TLK2211数据表。 我有点困惑,我应该如何捕获数据并同步到内部时钟? 您尚未提供描述内部时钟,指定内部时钟频率或指定TLK2211链路数据速率的任何详细信息。 这些是重要且有用的细节。 如果内部时钟可以跟上数据接收速率,典型的使用方法是具有独立(异步)输入和输出时钟的输入FIFO。 输入时钟来自TLK2211,输出时钟是FPGA的内部时钟。 如果您还不熟悉Spartan-6 FIFO,那么这是一个学习的好时机。 你有更具体的问题吗? 有没有办法将两个时钟合并为一个时钟并用这个时钟捕获数据? 这是一个由两部分组成的问题。 1.您可以使用差分接收器输入合并FPGA上的两个时钟,在这种情况下,必须正确缩放输入电平(在电路板上,使用电阻网络),以提供与之兼容的LVDS输入电平 Spartan-6接收器。 目前尚不清楚您需要合并来自TLK2211的两个时钟信号 - 您只能使用两个RBC时钟输入中的一个作为单端LVTTL输入。 这两个选项中的任何一个都应该可靠地工作。 2.使用Spartan-6 IDDR2模块以半速率时钟捕获双数据速率输入数据。 在HDL中没有用于推断IDDR2块的通用语法,您需要在源代码中显式实例化IDDR2原语。 这是一个讨论输入接口的线程,它在某些方面类似于TLK2211。 注意:强烈建议对FPGA和TLK2211之间的接口信号进行适当的信号终止。 - 鲍勃埃尔金德 签名:新手的自述文件在这里:http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369总结:1。 阅读手册或用户指南。 你读过手册了吗? 你能找到手册吗?2。 搜索论坛(并搜索网页)以寻找类似的主题。 不要在多个论坛上发布相同的问题。 不要在别人的主题上发布新主题或问题,开始新的主题!5。 学生:复制代码与学习设计不同.6“它不起作用”不是一个可以回答的问题。 提供有用的详细信息(请与网页,数据表链接).7。 您的代码中的评论不需要支付额外费用。 我没有支付论坛帖子的费用。 如果我写一篇好文章,那么我一无所获。 以上来自于谷歌翻译 以下为原文 You have asked several technical questions. I'll try to summarise them. For the listening audience, the TLK2211 datasheet may be found here. I'm a little puzzled how should I capture the data and sync to the internal clock? You have not provided any details describing the internal clock, specifying the internal clock frequency, or specifying the TLK2211 link data rate. These are important and useful details. If the internal clock can keep up with the data receive rate, the typical approach to use is an input FIFO with separate (asynchronous) input and output clocks. The input clock is from the TLK2211, and the output clock is the FPGA's internal clock. If you are not already familiar with Spartan-6 FIFOs, this is a good time to learn. Do you have more specific questions in mind ? Is there any way to merge the two clock to a single clock and capture the data with this clock? This is a two-part question. 1. You can merge the two clocks on the FPGA with the use of a differential receiver input, in which case the input levels must be scaled correctly (on the circuit board, with a resistor network) to provide LVDS input levels which are compatible with the Spartan-6 receiver. It is not clear that you need to merge the two clock signals from the TLK2211 -- you can use only one of the two RBC clock inputs, as a single-ended LVTTL input. Either of these two options should work reliably. 2. Use the Spartan-6 IDDR2 blocks for capturing dual data rate input data with a half-rate clock. There is no generic syntax for inferring IDDR2 blocks in HDL, you will need to explicitly instantiate the IDDR2 primitives in your source code. Here is a thread discussing an input interface which is in some ways similar to the TLK2211. NOTE: Proper signal termination is strongly advised for interface signals between the FPGA and the TLK2211. -- Bob Elkind SIGNATURE: README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369 Summary: 1. Read the manual or user guide. Have you read the manual? Can you find the manual? 2. Search the forums (and search the web) for similar topics. 3. Do not post the same question on multiple forums. 4. Do not post a new topic or question on someone else's thread, start a new thread! 5. Students: Copying code is not the same as learning to design. 6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please). 7. You are not charged extra fees for comments in your code. 8. I am not paid for forum posts. If I write a good post, then I have been good for nothing. |
|
|
|
嗨鲍勃,
谢谢你的指示。 TLK2211的时钟频率为125Mhz。 根据你的建议,我通过IDDR2捕获rxdata,RBC0 / 1作为clock0和clock1,并将捕获的数据Q1,Q0推送到async-fifo,RBC0作为wr_clk,目前的问题是IDDR2上的捕获数据Q0 / Q1总是0(尽管在第一个开始时切换),可能是什么问题? txdata可以完美地环回到rxdata,我可以从Chipscope波形中看到。 以下是CS截图。 以上来自于谷歌翻译 以下为原文 Hi Bob, Thanks for your directions. The clock frequency to TLK2211 is 125Mhz. According to your suggestion, I capture the rxdata via IDDR2 with RBC0/1 as the clock0 and clock1,and push the captured data Q1, Q0 to a async-fifo with RBC0 as the wr_clk, currently problem is that the captured data on IDDR2 Q0/Q1 are always 0s(though toggled at the first beginning), what's maybe the problem? the txdata could be perfectly loopback to rxdata, which I can see from Chipscope waveform. following is the CS screenshot. |
|
|
|
当同步前的第一个开始Q0 / Q1不为0时,也会附加波形(因此txdata不等于rxdata)。
我将IN_TERM = UNTUNED_SPLIT_50添加到rxdata,似乎不起作用。 谢谢, 加斯。 以上来自于谷歌翻译 以下为原文 also attach the waveform when Q0/Q1 are not 0s in the first beginning before sync(so the txdata doesn't equal to rxdata). and I added IN_TERM=UNTUNED_SPLIT_50 to rxdata, it seems doesn't work. Thanks, gauz. |
|
|
|
对不起,我的重置信号似乎有问题,它将输出数据重置为0。
无论如何,谢谢你!高兹 以上来自于谷歌翻译 以下为原文 Sorry, it seems there is some problem in my reset signal, which reset the output data to 0s. Thanks to you anyway! Gauz |
|
|
|
只有小组成员才能发言,加入小组>>
2388 浏览 7 评论
2804 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2270 浏览 9 评论
3338 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
2440 浏览 15 评论
有输入,但是LVDS_25的FPGA内部接收不到数据,为什么?
768浏览 1评论
请问vc707的电源线是如何连接的,我这边可能出现了缺失元件的情况导致无法供电
551浏览 1评论
求一块XILINX开发板KC705,VC707,KC105和KCU1500
386浏览 1评论
1975浏览 0评论
692浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-29 17:02 , Processed in 1.788477 second(s), Total 83, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号