From 113a6e0dda8f571d7c002459b81ab3776cee3fc3 Mon Sep 17 00:00:00 2001 From: bacon Date: Fri, 8 Aug 2025 11:17:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BF=A1=E6=81=AF=E8=BE=93?= =?UTF-8?q?=E5=87=BA,=E5=A2=9E=E5=8A=A0=E8=B6=85=E6=97=B6=E9=80=80?= =?UTF-8?q?=E5=87=BA=E9=80=9A=E8=AE=AF=E7=9A=84=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tb/shinTest/ShinTopSpiTb.v | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tb/shinTest/ShinTopSpiTb.v b/tb/shinTest/ShinTopSpiTb.v index 1e07602..b7ca97d 100644 --- a/tb/shinTest/ShinTopSpiTb.v +++ b/tb/shinTest/ShinTopSpiTb.v @@ -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