This commit is contained in:
RuigeLee
2025-09-19 15:50:54 +08:00
parent 9b48306396
commit 61897a3dd0

View File

@@ -199,7 +199,7 @@ class QSpiInterface(edge: Boolean) extends SpiInterfaceBase{
& ~shiftCSn(1)
){
when( (if( edge ) { bitSel.andR } else { bitSel === 0.U }) ){
when((byteSel === 0.U || byteSel === 1.U || byteSel === 2.U) ){
when( byteSel === 0.U || byteSel === 1.U || ( if( edge ) { false.B } else { byteSel === 2.U } ) ){
exRego := 0.U //地址1cmd
} .elsewhen( isSpiRead ){
exRego := io.datar