1
0

don't use splat and bug out if too many address map entries

This commit is contained in:
Howard Mao 2016-07-11 18:10:42 -07:00
parent 46fc9744e2
commit b47f8fbc41
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class BaseConfig extends Config (
lazy val globalAddrMap = {
val memBase = 0x80000000L
val memSize = 0x10000000L
val io = AddrMap((AddrMapEntry("int", internalIOAddrMap) +: site(ExtMMIOPorts).entries):_*)
val io = new AddrMap(AddrMapEntry("int", internalIOAddrMap) +: site(ExtMMIOPorts).entries)
val addrMap = AddrMap(
AddrMapEntry("io", io),
AddrMapEntry("mem", MemRange(memBase, memSize, MemAttr(AddrMapProt.RWX, true))))

View File

@ -251,7 +251,7 @@ class Uncore(implicit val p: Parameters) extends Module
} else if (mmio_tl_start <= i && i < mmio_tl_end) {
TopUtils.connectTilelink(io.mmio_tl(i-mmio_tl_start), ports(i))
} else {
TopUtils.connectTilelinkNasti(Module(new NastiErrorSlave).io, ports(i))
require(false, "Unconnected external MMIO port")
}
}
}