修复aqspi读操作时间点
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user