Allow additional internal MMIO devices to be created without changing BaseConfig

This commit is contained in:
Howard Mao committed 2016-08-04 11:04:52 -07:00
1 parent cc0f8962fb
commit 0a85e92652
5 files changed
+33 -21

No files matched your search

+1
View File
@@ -125,6 +125,7 @@ class AddrMap(entriesIn: Seq[AddrMapEntry], val start: BigInt = BigInt(0)) exten
}
def apply(name: String): MemRegion = mapping(name)
def contains(name: String): Boolean = mapping.contains(name)
def port(name: String): Int = slavePorts(name)
def subMap(name: String): AddrMap = mapping(name).asInstanceOf[AddrMap]
def isInRegion(name: String, addr: UInt): Bool = mapping(name).containsAddress(addr)