修正看门狗0

This commit is contained in:
Ruige Lee
2025-06-05 10:02:58 +08:00
parent 09229187e5
commit 7d2079b223
2 changed files with 24 additions and 7 deletions

View File

@@ -70,8 +70,6 @@ class SlaveParserIO extends Bundle{
val intHWTrig = Output(Vec(2, Bool()))
val intHWClr = Input (Vec(2, Bool()))
val isRecWdtTrigger = Output(Bool())
}
abstract class SlaveParserBase extends Module{
@@ -707,9 +705,8 @@ trait SlaveParserProbe{ this: SlaveParserBase =>
// val ProbeRecAim = 511.U
val probeRecCnt = RegInit(0.U(32.W))
val isWatchDogOverflow = probeRecCnt === io.cReg.wdtTarCnt(0)
io.isRecWdtTrigger := isWatchDogOverflow
val probeRecCnt = RegInit(0.U(9.W))
val isWatchDogOverflow = probeRecCnt.andR