修正
This commit is contained in:
@@ -199,7 +199,7 @@ class QSpiInterface(edge: Boolean) extends SpiInterfaceBase{
|
|||||||
& ~shiftCSn(1)
|
& ~shiftCSn(1)
|
||||||
){
|
){
|
||||||
when( (if( edge ) { bitSel.andR } else { bitSel === 0.U }) ){
|
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 //地址1,cmd
|
exRego := 0.U //地址1,cmd
|
||||||
} .elsewhen( isSpiRead ){
|
} .elsewhen( isSpiRead ){
|
||||||
exRego := io.datar
|
exRego := io.datar
|
||||||
|
|||||||
Reference in New Issue
Block a user