Skip to content

Commit

Permalink
DebugPlugin now export stopTime
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed Jul 8, 2024
1 parent 6ff85ab commit 6d0d178
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/scala/vexriscv/plugin/DebugPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ class DebugPlugin(var debugClockDomain : ClockDomain, hardwareBreakpointCount :

var io : DebugExtensionIo = null
var injectionPort : Stream[Bits] = null
var stopTime : Bool = null


object IS_EBREAK extends Stageable(Bool)
Expand Down Expand Up @@ -233,6 +234,7 @@ class DebugPlugin(var debugClockDomain : ClockDomain, hardwareBreakpointCount :
val resetIt = RegInit(False)
val haltIt = RegInit(False)
val stepIt = RegInit(False)
stopTime = out(CombInit(haltIt)).setName("stopTime")

val isPipBusy = RegNext(stages.map(_.arbitration.isValid).orR || iBusFetcher.incoming())
val godmode = RegInit(False) setWhen(haltIt && !isPipBusy)
Expand Down

0 comments on commit 6d0d178

Please sign in to comment.