bugfix:spicmd解析比特错误

This commit is contained in:
RuigeLee
2026-02-09 16:32:02 +08:00
parent d59e2f0d46
commit 52a86fb622

View File

@@ -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) })
}
}