1
0

Incorporate feedback to make the NExtPerhipheryInterrupts come from DeviceBlock itself

This commit is contained in:
Megan Wachs
2016-08-26 10:09:03 -07:00
parent 41aa80c5d7
commit 53ee54dbd1
3 changed files with 7 additions and 3 deletions

View File

@ -116,7 +116,7 @@ class BasePlatformConfig extends Config (
}
case BuildCoreplex => (p: Parameters) => Module(new DefaultCoreplex(p))
case NExtTopInterrupts => 2
case NExtPeripheryInterrupts => 0
case NExtPeripheryInterrupts => site(ExtraDevices).nInterrupts
// Note that PLIC asserts that this is > 0.
case NExtInterrupts => site(NExtTopInterrupts) + site(NExtPeripheryInterrupts)
case AsyncDebugBus => false
@ -269,7 +269,6 @@ class WithTestRAM extends Config(
extra: Bundle, p: Parameters) {
val testram = Module(new TileLinkTestRAM(ramSize)(p))
testram.io <> mmioPorts("testram")
interrupts.foreach(x => x := Bool(false))
}
}
new TestRAMDevice