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条评论)
登录后参与讨论