修复sspi读丢失第一byte的问题
This commit is contained in:
@@ -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 //地址1,cmd
|
exRego := 0.U //地址1,cmd
|
||||||
} .elsewhen( isSpiRead ){
|
} .elsewhen( isSpiRead ){
|
||||||
exRego := io.datar
|
exRego := io.datar
|
||||||
|
|||||||
Reference in New Issue
Block a user