修复sspi读丢失第一byte的问题

This commit is contained in:
RuigeLee
2026-02-02 09:37:53 +08:00
parent 7c47137db7
commit ffb4db197d

View File

@@ -156,7 +156,7 @@ class SSpiInterface extends SpiInterfaceBase{
exRego := 0.U //第一个byte 地址0 exRego := 0.U //第一个byte 地址0
} .elsewhen( isSckPosedge & ~shiftCSn(1) ){ } .elsewhen( isSckPosedge & ~shiftCSn(1) ){
when( bitSel.andR ){ when( bitSel.andR ){
when((byteSel === 0.U || byteSel === 1.U || byteSel === 2.U || byteSel === 3.U ) ){ when((byteSel === 0.U || byteSel === 1.U || byteSel === 2.U ) ){ //第3byte准备第4byte开始发送
exRego := 0.U //地址1cmd exRego := 0.U //地址1cmd
} .elsewhen( isSpiRead ){ } .elsewhen( isSpiRead ){
exRego := io.datar exRego := io.datar