From e35e7b2ee34c9451bc925d6cb3cfba08e720262c Mon Sep 17 00:00:00 2001 From: Yunsup Lee Date: Wed, 7 Sep 2016 19:28:12 -0700 Subject: [PATCH] Fix routing in non-contiguous MMIO regions This is a temporary fix, which can generate more hardware than necessary, but this is OK for now, since this code will soon be replaced with tilelink2 code. --- src/main/scala/junctions/addrmap.scala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/scala/junctions/addrmap.scala b/src/main/scala/junctions/addrmap.scala index aa1ceac7..aae062b4 100644 --- a/src/main/scala/junctions/addrmap.scala +++ b/src/main/scala/junctions/addrmap.scala @@ -153,4 +153,8 @@ class AddrMap( } new AddrMapProt().fromBits(protForRegion.reduce(_|_)) } + + override def containsAddress(x: UInt) = { + flatten.map(_.region.containsAddress(x)).reduce(_||_) + } }