修复aqspi读操作时间点

This commit is contained in:
RuigeLee
2025-09-19 17:17:51 +08:00
parent e45f407a1d
commit 9a93481b68

View File

@@ -138,13 +138,16 @@ trait SyncSpiAsync{ this: SyncSpiInterfaceBase =>
}
}
when( byteSel >= 2.U & bitSel.andR & (spiCnt < spiLen) & isSpiRead ){
when(
(byteSel === 2.U & bitSel === 0.U & (spiCnt <= spiLen) & qspi.mosi === "h8".U) ||
(byteSel > 2.U & bitSel === 0.U & (spiCnt <= spiLen) & isSpiRead)
){
when( ~isPing_async ){
isEnR_async(0) := true.B
} .otherwise{
isEnR_async(1) := true.B
}
} .elsewhen( bitSel === 0.U ){
} .elsewhen( bitSel.andR ){
isEnR_async(0) := false.B
isEnR_async(1) := false.B
}