From d1d2f47f609638c43546d4a9d0a4018c73dee4bb Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Thu, 2 Nov 2017 15:44:02 -0700 Subject: [PATCH] PMU: adapt to new chisel API (#45) --- src/main/scala/devices/mockaon/PMU.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.30.2