Allow additional internal MMIO devices to be created without changing BaseConfig
This commit is contained in:
1 parent
cc0f8962fb
commit
0a85e92652
5 files changed
+33
-21
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user