bugfix:spicmd解析比特错误
This commit is contained in:
@@ -156,7 +156,7 @@ abstract class SpiInterfaceBase extends Module with RequireAsyncReset{
|
||||
when( shiftCSn(2) & ~shiftCSn(1) || (~shiftCSn(2) & shiftCSn(1)) ){ //CS下跳或上跳
|
||||
spiCmd := 0.U
|
||||
} .elsewhen( isSckPosedge & ~shiftCSn(1) & byteSel === 2.U & bitSel === 0.U ){ //CS为低,且SCK上跳的第0byte
|
||||
spiCmd := shiftMOSI
|
||||
spiCmd := (if( OPER114 ) {shiftMOSI} else { shiftDat.extract(3) })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user