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