for better control

 

为了防止仿真进入不必要的死循环,可通过触发某事件结束仿真。例如:

event terminate-sim;

initial begin

   @(terminate-sim)

   #5 $finish;

end

这是很好的仿真风格。

posted on 2011-03-23 12:01  freshair_cn  阅读(143)  评论(0编辑  收藏  举报

导航