From 7bb64679f9d7a557f5150e96710545450fee5cb4 Mon Sep 17 00:00:00 2001 From: Ruige Lee Date: Sat, 11 Oct 2025 09:49:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8Dis=5Fbusy=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=97=B6=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tb/shinTest/ShinTopSpiTb.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tb/shinTest/ShinTopSpiTb.v b/tb/shinTest/ShinTopSpiTb.v index 1ce6724..c2bb75f 100644 --- a/tb/shinTest/ShinTopSpiTb.v +++ b/tb/shinTest/ShinTopSpiTb.v @@ -562,7 +562,6 @@ end always @(negedge sck) begin if( isBusy ) begin if( transCnt == length & &bitCnt ) begin - isBusy <= #(`SCKFRE/2) 1'b0; spi_csn[idx] <= #(`SCKFRE/2) 1'b1; end end @@ -610,6 +609,8 @@ always @(posedge sck) begin exChangeRegi <= isQspi ? {exChangeRegi[3:0], qspi_mux_miso} : {exChangeRegi[6:0], spi_mux_miso}; end end + end else begin + isBusy <= #5 1'b0; end end end