上电复位状态下,上下行直通,设置为主站或者写清复位中断可以解除

This commit is contained in:
Ruige Lee
2025-08-07 10:27:37 +08:00
parent a66761f173
commit 0b84a1dc6f
2 changed files with 3 additions and 1 deletions

View File

@@ -194,6 +194,7 @@ class InterfaceIO extends Bundle{
val isSMReset = Output( Vec(8, Bool()) )
val latchPin = Input(Vec(2, Bool()))
val isPoReset = Output(Bool())
}
@@ -1058,6 +1059,7 @@ trait InterfaceSystem{ this: InterfaceBase =>
if( i != 31 ) {RegInit(false.B)} else { RegInit(true.B) }
}
cReg.intStatus := Cat( intStatus.reverse )
io.isPoReset := intStatus(31)
cReg.intMode :=
Cat(

View File

@@ -452,7 +452,7 @@ with ShinTopSlave
with ShinTopWatchDog{
when( interface.io.cReg.modeSel === false.B ){ //slave
when( (slaveParser.io.intHWTrig(0) | slaveParser.io.intHWTrig(1)) ){ //硬件错误
when( (slaveParser.io.intHWTrig(0) | slaveParser.io.intHWTrig(1)) | interface.io.isPoReset ){ //硬件错误
downCDRIn.io.serDat := false.B
upCDRIn.io.serDat := false.B
when( slaveParser.io.isLoop ){ //回环