1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我们总是在verilog代码中使用'always @(posedge clk)',如果clk信号不是一个好的方波(或者它可能是高度失真的,有时像正弦波),那么FPGA仍然可以检测到
clk? FPGA如何检测clk信号的上升沿? 请给出一些建议。 谢谢。 以上来自于谷歌翻译 以下为原文 We always use 'always@(posedge clk)' in the verilog codes, if the clk signal is not a good square wave(or it may be highly distorted, sometimes like a sine wave), can the FPGA still dectect the riding edge of the clk? How does FPGA detect rising edge of the clk signal? Please give some advice. Thanks. |
|
相关推荐
5个回答
|
|
FPGA没有检测到时钟的上升沿,这只是任何寄存器触发器的基本功能定义。
------您是否尝试在Google中输入问题? 如果没有,你应该在发布之前。太多结果? 尝试添加网站:www.xilinx.com 以上来自于谷歌翻译 以下为原文 The FPGA isn't detecting the rising edge of the clock, this is just the basic functionality definition of any register flip/flop. ------Have you tried typing your question into Google? If not you should before posting. Too many results? Try adding site:www.xilinx.com |
|
|
|
由于fpga由luts组成,即在每个lut中查找表,因此有一个d ff可以检测时钟的上升沿。
如果输入方波的变化快于压摆率而不是检测到变化,则为每个i / o定义压摆率。 以上来自于谷歌翻译 以下为原文 as fpga is made up of luts i.e. look up table in every lut there is a d ff that detects the rising edge of the clock.. slew rate is defined for every i/o if the changes in the input square wave is faster than the slew rate than it will not detect that changes. |
|
|
|
嗨,
你写的内容有些令人困惑,如果在某些部分没有错误的话。 1)FF不在LUT内。 LUT和FF都是切片内的独立部分。 除此之外,切片还具有其他组件,如进位链和路由多路复用器。 切片及其组件的数量和功能选项可能因不同的FPGA系列而异 2)信号的转换速率是输出驱动功率和连接路由和输入的(容性)负载的结果。 因此,输入信号的变化速度不会超过其自身的压摆率。 您描述的行为是一种更复杂的情况。 让我试着改写一下。 当您从具有高压摆率的某个源驱动输入,并且该信号比输入的信号的回转速度快时,输入信号将不会被电路识别。 现在回到原始的海报问题:时钟输入上缓慢变化的信号怎么样? 通常,FF上的时钟输入表现得像任何普通的CMOS输入。 有效的输入电压范围在数据手册中定义,如果您的信号在这些电压范围之间的禁区内保持太长,您的输入可能会开始振荡。 (取决于硅片上使用的技术)。 但! FPGA上的FF通常连接到由特殊时钟驱动器驱动的时钟网络。 它们具有适当的转换速率,可在0和1之间快速变化,因此不会产生负面影响。 您正在将时钟信号连接到专用时钟输入(IBUFG),这些输入连接到特殊时钟网络驱动器(BUFG)或DCM。 我不知道这些IBUFG是否具有能够将慢速上升时钟(例如施密特触发器)的影响降至最低的任何能力。 但另一个问题出现了: 这种输入允许的最大上升时间是多少? 如果没有在数据表中找到一个困难的问题,但也许一些假设是有帮助的。 (我将只使用粗略的估计数字,而不是真正的前沿利润) 1)FPGA可以在1MHz时钟下运行良好(今天速度非常慢)。 2)要获得一个漂亮的方波,应达到10次谐波(傅立叶频率合成),这将导致信号上升时间足以满足FPGA的要求。 (粗略估计:100 ns) 因此,如果你有一个周期小于100 ns的时钟信号,它的上升时间比我上面的脆弱计算要好,即使它只是一个正弦波。 一旦信号达到'0'和'1'的电压余量,输入驱动器将切换并在FPGA内部产生精细的时钟边沿,事情变得非常快。 ;-) 另外需要考虑的事情: 您谈到了高失真时钟信号:您专注于低通效果,将矩形渲染为类似正弦波的信号。 这没问题。 但是当失真涉及尖峰,弹跳和这样的东西时,FF可能会将这些视为额外的时钟边沿并在不需要的时间触发,从而导致电路出现故障。 有一个很好的综合 Eilert 以上来自于谷歌翻译 以下为原文 Hi, what you wrote is a little confusing, if not wrong in some parts. 1) The FFs are not inside the LUTs. LUTs and FFs are both separate parts inside a slice. Besides these a slice has other components like a carry chain and routing muxes. The number and functional options of a slice and its components may vary between different FPGA Famlies 2) The slew rate of a signal is the result of the driving power of an output and the (capacitive) load of the connected routes and inputs. Therefore the incoming signal can't change faster than it's own slew rate. The behavior you describe is a more complex situation. Let me try to rephrase it. When you have an input driven from some source with a high slew rate, and that signal is faster than the slewrates of the signals BEHIND that input, the incoming signal will not be recognized by the circuit. Now back to the original posters question: What about slow changing signals on Clock inputs? In general, a clock input on a FF behaves like any ordinary CMOS input. The valid input voltage ranges are defined in the data sheets, and if your signal stays too long in the forbidden area between these voltage ranges, your input may begin to oscillate. (depends on the technology used on the silicon). BUT! The FFs on an FPGA are normally connected to a Clock net, driven by special clock drivers. These have appropriate slew rates to change fast enough between 0 and 1, so there will be no negative effects. You are connecting your Clock signal to dedicated clock inputs (IBUFG), and these go to special clock net drivers (BUFG) or DCMs. I don't know if these IBUFGs have any capabilities that would minimize the effects of slow rising clocks (e.g. Schmitt trigger). But another question arises: What is the allowed maximum rise time for such an input? If not to be found in the datasheets a dificult question, but maybe some assumptions are helpful. (I will use only rough estimated numbers, not real cutting edge margins) 1) A FPGA can run fine with a 1MHz Clock (which is quite slow for today). 2) To have a nice square wave the 10th harmonic should be reached (Fourier Frequency synthesis ) and this will result in a signal rise time that is sufficient for an FPGA. (rough estimation: 100 ns) So if you have a clock signal with a period of less than 100 ns it will have a better rise time than in my flimsy calculation above, even if it is just a sine wave. Once the signal hit's the voltage margins for '0' and '1' the input driver wil toggle and generate a fine clock edge inside the FPGA, where things go really fast. ;-) Another thing to consider: You talked about high distorted Clock signals: You focussed on Low pass effects, rendering the rectangle to a sinewave-like signal. This is no problem. But when the distortions involve spikes, bouncing and such stuff, The FFs may see these as additional clock edges and become triggered at unwanted times, thus causing malfunction in your circuit. Have a nice synthesis Eilert |
|
|
|
我再一次看到了我误解了它的基础知识,你是对的,因为ff不是lut的一部分......
但至于压摆率,我写道“如果输入方波的变化比压摆率快,那么就不会发现变化” 我认为这与你改写的内容相同,即“当你从高压摆率的某些来源驱动输入时, 并且该信号比信号的回转速度更快 输入时,电路不会识别输入信号。“ 以上来自于谷歌翻译 以下为原文 again i looked in to the lut basics i had misunderstood it, you are right that ff is not a part of lut... but as for slew rate i wrote"if the changes in the input square wave is faster than the slew rate than it will not detect that changes" which is i think same as what you rephrased i.e."When you have an input driven from some source with a high slew rate, and that signal is faster than the slewrates of the signals BEHIND that input, the incoming signal will not be recognized by the circuit." |
|
|
|
嗨,
是的,你可能的意思相同。 但是我需要一些时间才能明白你的陈述, 在向初学者解释这些事情时,应该更详细地概述该主题以防止误解。 因此我抓住机会并添加了一些解释。 问候 Eilert 以上来自于谷歌翻译 以下为原文 Hi, yes, you probably meant the same. But it took some time for me to get the point of your statement, When explaining such things to beginners the topic should be outlined in more detail to prevent misunderstandings. Therefore I took the chance and added some explanations. Regards Eilert |
|
|
|
只有小组成员才能发言,加入小组>>
2420 浏览 7 评论
2823 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2294 浏览 9 评论
3374 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
2461 浏览 15 评论
有输入,但是LVDS_25的FPGA内部接收不到数据,为什么?
1162浏览 1评论
请问vc707的电源线是如何连接的,我这边可能出现了缺失元件的情况导致无法供电
585浏览 1评论
求一块XILINX开发板KC705,VC707,KC105和KCU1500
451浏览 1评论
2005浏览 0评论
729浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 09:28 , Processed in 1.884674 second(s), Total 84, Slave 68 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号