rocketchip: remove pbus; TL2 has swallowed it completely
This commit is contained in:
parent
10d084b9f3
commit
c3dacca39a
@ -167,7 +167,7 @@ abstract class BaseCoreplexModule[+L <: BaseCoreplex, +B <: BaseCoreplexBundle](
|
|||||||
for ((t, m) <- (uncoreTileIOs.map(_.slave).flatten) zip (tileSlavePorts map (cBus port _)))
|
for ((t, m) <- (uncoreTileIOs.map(_.slave).flatten) zip (tileSlavePorts map (cBus port _)))
|
||||||
t <> m
|
t <> m
|
||||||
|
|
||||||
io.master.mmio <> cBus.port("pbus")
|
io.master.mmio <> cBus.port("TL2")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Coreplex doesn't know when to stop running
|
// Coreplex doesn't know when to stop running
|
||||||
|
@ -121,7 +121,7 @@ class WithComparator extends Config(
|
|||||||
case BuildGroundTest =>
|
case BuildGroundTest =>
|
||||||
(p: Parameters) => Module(new ComparatorCore()(p))
|
(p: Parameters) => Module(new ComparatorCore()(p))
|
||||||
case ComparatorKey => ComparatorParameters(
|
case ComparatorKey => ComparatorParameters(
|
||||||
targets = Seq("mem", "io:pbus:TL2:testram").map(name =>
|
targets = Seq("mem", "io:TL2:testram").map(name =>
|
||||||
site(GlobalAddrMap)(name).start.longValue),
|
site(GlobalAddrMap)(name).start.longValue),
|
||||||
width = 8,
|
width = 8,
|
||||||
operations = 1000,
|
operations = 1000,
|
||||||
|
@ -71,7 +71,7 @@ class IOGetAfterPutBlockRegression(implicit p: Parameters) extends Regression()(
|
|||||||
io.mem.grant.ready := Bool(true)
|
io.mem.grant.ready := Bool(true)
|
||||||
|
|
||||||
io.cache.req.valid := !get_sent && started
|
io.cache.req.valid := !get_sent && started
|
||||||
io.cache.req.bits.addr := UInt(addrMap("io:pbus:TL2:bootrom").start)
|
io.cache.req.bits.addr := UInt(addrMap("io:TL2:bootrom").start)
|
||||||
io.cache.req.bits.typ := MT_WU
|
io.cache.req.bits.typ := MT_WU
|
||||||
io.cache.req.bits.cmd := M_XRD
|
io.cache.req.bits.cmd := M_XRD
|
||||||
io.cache.req.bits.tag := UInt(0)
|
io.cache.req.bits.tag := UInt(0)
|
||||||
|
@ -80,11 +80,7 @@ abstract class BaseTopModule[+L <: BaseTop, +B <: BaseTopBundle[L]](
|
|||||||
val coreplex = p(BuildCoreplex)(outer.c, p)
|
val coreplex = p(BuildCoreplex)(outer.c, p)
|
||||||
val coreplexIO = Wire(coreplex.io)
|
val coreplexIO = Wire(coreplex.io)
|
||||||
|
|
||||||
val pBus =
|
outer.legacy.module.io.legacy <> coreplexIO.master.mmio
|
||||||
Module(new TileLinkRecursiveInterconnect(1, p(GlobalAddrMap).subMap("io:pbus"))(
|
|
||||||
p.alterPartial({ case TLId => "L2toMMIO" })))
|
|
||||||
pBus.io.in.head <> coreplexIO.master.mmio
|
|
||||||
outer.legacy.module.io.legacy <> pBus.port("TL2")
|
|
||||||
|
|
||||||
println("Generated Address Map")
|
println("Generated Address Map")
|
||||||
for (entry <- p(GlobalAddrMap).flatten) {
|
for (entry <- p(GlobalAddrMap).flatten) {
|
||||||
|
@ -90,15 +90,14 @@ object GenerateGlobalAddrMap {
|
|||||||
}).flatten.toList
|
}).flatten.toList
|
||||||
|
|
||||||
lazy val tl2AddrMap = new AddrMap(uniquelyNamedTL2Devices, collapse = true)
|
lazy val tl2AddrMap = new AddrMap(uniquelyNamedTL2Devices, collapse = true)
|
||||||
lazy val pBusIOAddrMap = new AddrMap(Seq(AddrMapEntry("TL2", tl2AddrMap)), collapse = true)
|
|
||||||
|
|
||||||
val memBase = 0x80000000L
|
val memBase = 0x80000000L
|
||||||
val memSize = p(ExtMemSize)
|
val memSize = p(ExtMemSize)
|
||||||
Dump("MEM_BASE", memBase)
|
Dump("MEM_BASE", memBase)
|
||||||
|
|
||||||
val cBus = AddrMapEntry("cbus", cBusIOAddrMap)
|
val cBus = AddrMapEntry("cbus", cBusIOAddrMap)
|
||||||
val pBus = AddrMapEntry("pbus", pBusIOAddrMap)
|
val tlBus = AddrMapEntry("TL2", tl2AddrMap)
|
||||||
val io = AddrMapEntry("io", AddrMap((cBus +: (!pBusIOAddrMap.isEmpty).option(pBus).toSeq):_*))
|
val io = AddrMapEntry("io", AddrMap(cBus, tlBus))
|
||||||
val mem = AddrMapEntry("mem", MemRange(memBase, memSize, MemAttr(AddrMapProt.RWX, true)))
|
val mem = AddrMapEntry("mem", MemRange(memBase, memSize, MemAttr(AddrMapProt.RWX, true)))
|
||||||
AddrMap((io +: (p(NMemoryChannels) > 0).option(mem).toSeq):_*)
|
AddrMap((io +: (p(NMemoryChannels) > 0).option(mem).toSeq):_*)
|
||||||
}
|
}
|
||||||
@ -108,7 +107,7 @@ object GenerateConfigString {
|
|||||||
def apply(p: Parameters, c: CoreplexConfig, peripheryManagers: Seq[TLManagerParameters]) = {
|
def apply(p: Parameters, c: CoreplexConfig, peripheryManagers: Seq[TLManagerParameters]) = {
|
||||||
val addrMap = p(GlobalAddrMap)
|
val addrMap = p(GlobalAddrMap)
|
||||||
val plicAddr = addrMap("io:cbus:plic").start
|
val plicAddr = addrMap("io:cbus:plic").start
|
||||||
val clint = CoreplexLocalInterrupterConfig(0, addrMap("io:pbus:TL2:clint").start)
|
val clint = CoreplexLocalInterrupterConfig(0, addrMap("io:TL2:clint").start)
|
||||||
val xLen = p(XLen)
|
val xLen = p(XLen)
|
||||||
val res = new StringBuilder
|
val res = new StringBuilder
|
||||||
res append "plic {\n"
|
res append "plic {\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user