@alexmiculescuminor评论:非阻塞作业用'
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨!
我不明白非阻塞分配是如何按顺序或并行执行的? 永远@(posedge clk) 开始 x = 2; y = x; 结束 VS 永远@(posedge clk) 叉子 x = 2; y = x; 加入 VS 赋值x = 2; 赋值y = x; 我不了解硬件级别的情况。 在什么情况下可能会出现种族情况? 如果所有这些按顺序执行有什么好处? 谢谢! 以上来自于谷歌翻译 以下为原文 Hi! I don't understand how non blocking assignments are executed in sequence or in parallel? always @(posedge clk)beginx = 2;y = x;endvsalways @(posedge clk)forkx = 2;y = x;join vs assign x = 2; assign y = x; I don't grasp what is happening at the hardware level. In what cases race condition might occur? If all those are executed in sequence what are the advantages? Thank you! |
|
相关推荐
2个回答
|
|
@alexmiculescuminor评论:非阻塞作业用' |
|
|
|
在硬件中它是全部并行的。
但是,综合工具能够使并行硬件像顺序执行一样 - 因此阻塞分配“看起来”是顺序的,即使它们不是。不应该出现条件。 据我所知,不可能导致实际上可以合成的竞争条件; 竞争条件往往会导致合成期间出现多个驱动程序错误。 您可以在硬件中获得竞争条件(例如,在相关时钟边沿之前没有完全到达触发器的信号)但如果设计被正确约束并且它通过时序则不会发生这种情况。 简而言之,如果你看到竞争条件,工具可能会抛出错误或警告。 以上来自于谷歌翻译 以下为原文 In hardware it's all parallel. However, the synthesis tool is able to make the parallel hardware act like it's doing sequential execution - so blocking assignments "look" sequential even though they aren't. Race conditions should not occur. As far as I know, it's not possible to cause a race condition that can actually be synthesized; race conditions tend to result in multiple-driver errors during synthesis. You can get race conditions in hardware (eg. a signal that doesn't quite reach the flip-flop before the relevant clock edge) but those shouldn't occur if the design is correctly constrained and it passes timing. In short, if you're seeing race conditions, the tools will probably be throwing either errors or warnings. |
|
|
|
只有小组成员才能发言,加入小组>>
2420 浏览 7 评论
2823 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2294 浏览 9 评论
3374 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
2461 浏览 15 评论
有输入,但是LVDS_25的FPGA内部接收不到数据,为什么?
1158浏览 1评论
请问vc707的电源线是如何连接的,我这边可能出现了缺失元件的情况导致无法供电
584浏览 1评论
求一块XILINX开发板KC705,VC707,KC105和KCU1500
450浏览 1评论
2005浏览 0评论
729浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 05:41 , Processed in 1.269814 second(s), Total 80, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号