1
0

RegisterRouter: correctly create interrupts vector

This commit is contained in:
Wesley W. Terpstra
2017-09-27 12:27:16 -07:00
parent 0268959c24
commit ce01ab2700
4 changed files with 4 additions and 4 deletions

View File

@ -105,7 +105,7 @@ class TLRegModule[P, B <: TLRegBundleBase](val params: P, bundleBuilder: => B, r
extends LazyModuleImp(router) with HasRegMap
{
val io = IO(bundleBuilder)
val interrupts = if (router.intnode.in.isEmpty) Vec(0, Bool()) else router.intnode.in(0)._1
val interrupts = if (router.intnode.out.isEmpty) Vec(0, Bool()) else router.intnode.out(0)._1
val address = router.address
def regmap(mapping: RegField.Map*) = router.node.regmap(mapping:_*)
}