From 61897a3dd0b5a23978fbe9018d951338f8e8a77d Mon Sep 17 00:00:00 2001 From: RuigeLee Date: Fri, 19 Sep 2025 15:50:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/scala/backBoard/shin/SpiInterface.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/backBoard/shin/SpiInterface.scala b/src/main/scala/backBoard/shin/SpiInterface.scala index fa6931a..1edffa7 100644 --- a/src/main/scala/backBoard/shin/SpiInterface.scala +++ b/src/main/scala/backBoard/shin/SpiInterface.scala @@ -199,7 +199,7 @@ class QSpiInterface(edge: Boolean) extends SpiInterfaceBase{ & ~shiftCSn(1) ){ 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 } .elsewhen( isSpiRead ){ exRego := io.datar