增加信息输出,增加超时退出通讯的条件
This commit is contained in:
@@ -752,18 +752,17 @@ task wait_comm_finished();
|
||||
//$display("%x %x", rxBuf[3], rxBuf[6]);
|
||||
if ((rxBuf[3] & 8'h02) == 8'h02)
|
||||
begin
|
||||
$display("1111111111");
|
||||
is_run = 0;
|
||||
end
|
||||
if ((rxBuf[6] & 8'h60) != 8'h00)
|
||||
begin
|
||||
$display("222222222");
|
||||
$display("error occur.");
|
||||
is_run = 0;
|
||||
end
|
||||
if (($realtime - st) >= 5000000.0)
|
||||
begin
|
||||
$display("333333333");
|
||||
//is_run = 0;
|
||||
$display("comm timeout.");
|
||||
is_run = 0;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user