diff --git a/src/main/scala/vexriscv/plugin/CsrPlugin.scala b/src/main/scala/vexriscv/plugin/CsrPlugin.scala index afe3e6c..20912f3 100644 --- a/src/main/scala/vexriscv/plugin/CsrPlugin.scala +++ b/src/main/scala/vexriscv/plugin/CsrPlugin.scala @@ -857,7 +857,7 @@ class CsrPlugin(val config: CsrPluginConfig) extends Plugin[VexRiscv] with Excep wakeService.askWake() } } - stoptime = out(debugMode && dcsr.stoptime).setName("stoptime") + stoptime = out(RegNext(debugMode && dcsr.stoptime) init(False)).setName("stoptime") //Very limited subset of the trigger spec val trigger = (debugTriggers > 0) generate new Area {