From b1825607abff52021a40422930d5d124ccc58935 Mon Sep 17 00:00:00 2001 From: RuigeLee Date: Fri, 5 Sep 2025 09:58:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=AD=E6=96=AD=E4=B8=A2?= =?UTF-8?q?=E8=84=89=E5=86=B2=E9=97=AE=E9=A2=98=EF=BC=8C=E4=BD=86=E6=AF=8F?= =?UTF-8?q?=E6=AC=A1=E8=84=89=E5=86=B2=E5=AE=BD=E5=BA=A6=E6=AF=94=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=A4=9A=E4=B8=80=E6=8B=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/scala/backBoard/shin/Interface.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/scala/backBoard/shin/Interface.scala b/src/main/scala/backBoard/shin/Interface.scala index 3014171..782d85c 100644 --- a/src/main/scala/backBoard/shin/Interface.scala +++ b/src/main/scala/backBoard/shin/Interface.scala @@ -1229,15 +1229,15 @@ trait InterfaceInterrupt{ this: InterfaceBase => intHWErr(0) | //下行接收硬件错误 intHWErr(1) //上行接收硬件错误 - when( intPulseResetCnt === intPulseWidth ){ - intPulse := false.B - } .elsewhen( trigIntPulse ){ + when( trigIntPulse ){ intPulse := true.B - } + } .elsewhen( intPulseResetCnt === intPulseWidth ){ + intPulse := false.B + } when( trigIntPulse ){ intPulseResetCnt := 0.U - } .elsewhen( (intPulseResetCnt < intPulseWidth) & (intPulse === true.B) ){ + } .elsewhen( (intPulseResetCnt <= intPulseWidth) & (intPulse === true.B) ){ intPulseResetCnt := intPulseResetCnt + 1.U }