原创 奇怪的code

2007-11-3 18:16 2172 2 2 分类: 工程师职场

always
@ (count_en)  #20 count="count"+1;


  initial
    begin count="4"'b0;
          count_en=1'b0;
           count_en=1'b0;
         #5 count_en=1'b1;
        #2 count_en=1'b0;
        #30 count_en=1'b1;
        #30 count_en=1'b0;
        #20 count_en=1'b1;
 
      #120 $stop;
    end
---------------------------
$time20 count="4"'b0001
$time57 count="4"'b0010
$time87 count="4"'b0011
--------------------------
$time25 count="4"'b0001
$time57 count="4"'b0010
$time87 count="4"'b0011
--------------------------
两种结果都会出现

文章评论0条评论)

登录后参与讨论
我要评论
0
2
关闭 站长推荐上一条 /2 下一条