1
0

MockAON: Accept the non-debug interrupt as an input to overall reset.

This commit is contained in:
Megan Wachs 2017-04-07 16:42:32 -07:00
parent dbd16e305d
commit 9ba47b76c6
2 changed files with 3 additions and 1 deletions

View File

@ -44,4 +44,5 @@ trait HasPeripheryMockAONModule extends HasTopLevelNetworksModule {
outer.coreplex.module.io.rtcToggle := outer.aon.module.io.rtc.asUInt.toBool
outer.aon.module.io.ndreset := outer.coreplex.module.io.ndreset
}

View File

@ -56,6 +56,7 @@ class MockAONWrapper(w: Int, c: MockAONParams)(implicit p: Parameters) extends L
val in = node.bundleIn
val ip = intnode.bundleOut
val rtc = Clock(OUTPUT)
val ndreset = Bool(INPUT)
}
val aon_io = aon.module.io
@ -99,7 +100,7 @@ class MockAONWrapper(w: Int, c: MockAONParams)(implicit p: Parameters) extends L
val lfclk = aon_io.lfclk
val aonrst_catch = Module (new ResetCatchAndSync(3))
aonrst_catch.reset := erst | aon_io.wdog_rst
aonrst_catch.reset := erst | aon_io.wdog_rst | io.ndreset
aonrst_catch.clock := lfclk
aon.module.reset := aonrst_catch.io.sync_reset