移动a/bqspi读的时序

This commit is contained in:
RuigeLee
2026-02-13 15:59:45 +08:00
parent 051dea4bda
commit a46c7008b8

View File

@@ -79,8 +79,8 @@ trait SyncSpiAsync{ this: SyncSpiInterfaceBase =>
val isAsyncRead = withClockAndReset(negedge_sck, qspi.csn.asAsyncReset){RegInit(false.B)}
when( bitSel.andR ){ //4线操作
when((byteSel === 0.U || byteSel === 1.U || byteSel === 2.U ) ){
when( bitSel === 0.U ){ //4线操作
when((byteSel === 0.U || byteSel === 1.U || byteSel === 2.U || byteSel === 3.U ) ){
exRego := 0.U //地址0, 地址1cmd
} .elsewhen( isSpiRead ){
when( ~isAsyncRead ){ //取巧//应该增强约束