From: Wesley W. Terpstra Date: Thu, 2 Nov 2017 22:44:02 +0000 (-0700) Subject: PMU: adapt to new chisel API (#45) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1d2f47f609638c43546d4a9d0a4018c73dee4bb;p=sifive-blocks.git PMU: adapt to new chisel API (#45) --- diff --git a/src/main/scala/devices/mockaon/PMU.scala b/src/main/scala/devices/mockaon/PMU.scala index 2020db7..bd9d339 100644 --- a/src/main/scala/devices/mockaon/PMU.scala +++ b/src/main/scala/devices/mockaon/PMU.scala @@ -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