修正qspi测试用例读取方式

This commit is contained in:
Ruige Lee
2025-05-19 15:04:15 +08:00
parent a6c3b9d2a3
commit acfe40fb5d

View File

@@ -353,8 +353,8 @@ always @(posedge sck) begin
if( &bitCnt ) begin
byteCnt <= byteCnt +1;
transCnt <= transCnt + 1;
rxBuf[byteCnt] <= isQspi ? {exChangeRegi[3:0], qspi_mux_miso} : {exChangeRegi[6:0], spi_mux_miso};
if( txBuf[2] === 1 & nextByteCnt >= 4) begin
rxBuf[byteCnt] <= exChangeRegi;
$display("spi read out %x", exChangeRegi);
end
if( txBuf[2] === 1 & nextByteCnt >= 3) begin