完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,大家好,
我希望有一个人可以帮助我。 我的FPGA内部有一个系统时钟,运行频率为60MHz,我需要为具有相同8.333ns持续时间的AFE生成控制信号。 我想告诉你这是不是一个坏主意: S_OUT 非常感谢! 以上来自于谷歌翻译 以下为原文 Hi everyone, I hope someone can help me. I have a system clock inside my FPGA that is running at 60MHz and I need to generate a control signal to an AFE that has the same 8.333ns duration. I would like to know from you if this is a bad idea: s_out <= not clk when (s_comp = '1') else '0';process(clk) beginif rising_edge(clk) thenif s_count = 5 thens_count <= 0;s_comp <= '0';elses_count <= s_count + 1;s_comp <= '0';end if;end if;end process; Thanks a lot! |
|
相关推荐
4个回答
|
|
不,这不是一个好主意。
从专用时钟网到门的路由几乎不可能受到限制。 您想要做什么(生成1/2时钟周期输出脉冲)可以使用ODDR原语完成。 有关您正在使用的技术,请参阅“SelectIO资源用户指南”中的单元格说明 不使用AND门,而是使用ODDR。 ODDR在CLK的上升沿驱动D1输入,在下降沿驱动D2,所以为了做你想做的事,你可以使用现有的计数器。 您希望时钟前半部分(上升沿之后)的数据为0,因此将D1连接到0.在时钟的后半部分(下降沿之后),您希望输出仅在1时为1 s_comp被断言,因此将其用作D2输入。 当然,ODDR只能直接连接到输出缓冲器,但这就是我想要做的事情(因为在FPGA内部有一个半时钟周期信号是没有意义的。 Avrum 在原帖中查看解决方案 以上来自于谷歌翻译 以下为原文 No, this is not a good idea. The routing from the dedicated clock net through the gate will be nearly impossible to constrain. What you want to do (generate a 1/2 clock period output pulse) can be done with an ODDR primitive. See the description of the cell in the SelectIO Resources User Guide for the technology that you are using Instead of using the AND gate, use the ODDR. The ODDR drives the D1 input to the output on the rising edge of CLK and the D2 on the falling edge, so to do what you want, you can use your existing counter. You want the data during the first half of the clock (after the rising edge) to be 0, so tie D1 to 0. During the second half of the clock (after the falling edge), you want the output to be 1 only when s_comp is asserted, so use this as the D2 input. Of course, the ODDR can only be connected directly to an output buffer, but that is what I assume you want to do (since it doesn't make sense to have a half clock period signal inside the FPGA. Avrum View solution in original post |
|
|
|
只是一个纠正:
S_OUT 以上来自于谷歌翻译 以下为原文 Just a correction: s_out <= not clk when (s_comp = '1') else '0';process(clk) beginif rising_edge(clk) thenif s_count = 5 thens_count <= 0;s_comp <= '1'; -- Editelses_count <= s_count + 1;s_comp <= '0';end if;end if;end process; |
|
|
|
不,这不是一个好主意。
从专用时钟网到门的路由几乎不可能受到限制。 您想要做什么(生成1/2时钟周期输出脉冲)可以使用ODDR原语完成。 有关您正在使用的技术,请参阅“SelectIO资源用户指南”中的单元格说明 不使用AND门,而是使用ODDR。 ODDR在CLK的上升沿驱动D1输入,在下降沿驱动D2,所以为了做你想做的事,你可以使用现有的计数器。 您希望时钟前半部分(上升沿之后)的数据为0,因此将D1连接到0.在时钟的后半部分(下降沿之后),您希望输出仅在1时为1 s_comp被断言,因此将其用作D2输入。 当然,ODDR只能直接连接到输出缓冲器,但这就是我想要做的事情(因为在FPGA内部有一个半时钟周期信号是没有意义的。 Avrum 以上来自于谷歌翻译 以下为原文 No, this is not a good idea. The routing from the dedicated clock net through the gate will be nearly impossible to constrain. What you want to do (generate a 1/2 clock period output pulse) can be done with an ODDR primitive. See the description of the cell in the SelectIO Resources User Guide for the technology that you are using Instead of using the AND gate, use the ODDR. The ODDR drives the D1 input to the output on the rising edge of CLK and the D2 on the falling edge, so to do what you want, you can use your existing counter. You want the data during the first half of the clock (after the rising edge) to be 0, so tie D1 to 0. During the second half of the clock (after the falling edge), you want the output to be 1 only when s_comp is asserted, so use this as the D2 input. Of course, the ODDR can only be connected directly to an output buffer, but that is what I assume you want to do (since it doesn't make sense to have a half clock period signal inside the FPGA. Avrum |
|
|
|
非常感谢avrumw,这正是我想要做的!
我想过使用ODDR,但之前并没有那么清楚。 现在它是... 干杯, croto 以上来自于谷歌翻译 以下为原文 Thank you so much avrumw, that is exactly what I want to do! I thought about using the ODDR, but it wasn't that clear before. Now it is... Cheers, croto |
|
|
|
只有小组成员才能发言,加入小组>>
2395 浏览 7 评论
2810 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2277 浏览 9 评论
3352 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
2445 浏览 15 评论
有输入,但是LVDS_25的FPGA内部接收不到数据,为什么?
777浏览 1评论
请问vc707的电源线是如何连接的,我这边可能出现了缺失元件的情况导致无法供电
557浏览 1评论
求一块XILINX开发板KC705,VC707,KC105和KCU1500
403浏览 1评论
1984浏览 0评论
702浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-3 00:59 , Processed in 1.803876 second(s), Total 83, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号