Skip to content

Commit

Permalink
PMU: adapt to new chisel API (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
terpstra committed Nov 2, 2017
1 parent 90e6ea1 commit d1d2f47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/scala/devices/mockaon/PMU.scala
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ class PMU(val c: PMUConfig) extends Module {
val resetCauses = new ResetCauses().asInput
}

val core = Module(new PMUCore(c)(resetIn = Reg(next = Reg(next = reset))))
val coreReset = Reg(next = Reg(next = reset))
val core = Module(new PMUCore(c)(resetIn = coreReset))

io <> core.io
core.io.wakeup.reset := false // this is implied by resetting the PMU

Expand Down

0 comments on commit d1d2f47

Please sign in to comment.