增加1个字节,简单的规避aqspi的csn被过早拉高的问题

This commit is contained in:
2025-10-17 16:46:42 +08:00
parent 580eee795f
commit 220a5057ab

View File

@@ -627,7 +627,7 @@ task spi_trans( input [15:0] saddress, input [7:0] scmd, input [12:0] slength, i
if (sidx >=(`ALL_DEV_NUM * 3)) begin if (sidx >=(`ALL_DEV_NUM * 3)) begin
txBuf[2] <= (scmd | slength[12:8]); txBuf[2] <= (scmd | slength[12:8]);
txBuf[3] <= slength[7:0]; txBuf[3] <= slength[7:0];
length <= slength + 4; length <= slength + 4 + 1;
end else begin end else begin
txBuf[2] <= scmd; txBuf[2] <= scmd;
length <= slength + 3; length <= slength + 3;