tims: explictly name them for generated address map
This commit is contained in:
parent
6b79842e66
commit
5552f23294
@ -40,11 +40,13 @@ class ICache(val icacheParams: ICacheParams, val hartid: Int)(implicit p: Parame
|
|||||||
val masterNode = TLClientNode(TLClientParameters(name = s"Core ${hartid} ICache"))
|
val masterNode = TLClientNode(TLClientParameters(name = s"Core ${hartid} ICache"))
|
||||||
|
|
||||||
val size = icacheParams.nSets * icacheParams.nWays * icacheParams.blockBytes
|
val size = icacheParams.nSets * icacheParams.nWays * icacheParams.blockBytes
|
||||||
|
val device = new SimpleDevice("itim", Nil)
|
||||||
val slaveNode = icacheParams.itimAddr.map { itimAddr =>
|
val slaveNode = icacheParams.itimAddr.map { itimAddr =>
|
||||||
val wordBytes = icacheParams.fetchBytes
|
val wordBytes = icacheParams.fetchBytes
|
||||||
TLManagerNode(Seq(TLManagerPortParameters(
|
TLManagerNode(Seq(TLManagerPortParameters(
|
||||||
Seq(TLManagerParameters(
|
Seq(TLManagerParameters(
|
||||||
address = Seq(AddressSet(itimAddr, size-1)),
|
address = Seq(AddressSet(itimAddr, size-1)),
|
||||||
|
resources = device.reg,
|
||||||
regionType = RegionType.UNCACHED,
|
regionType = RegionType.UNCACHED,
|
||||||
executable = true,
|
executable = true,
|
||||||
supportsPutFull = TransferSizes(1, wordBytes),
|
supportsPutFull = TransferSizes(1, wordBytes),
|
||||||
|
@ -15,7 +15,7 @@ import util._
|
|||||||
|
|
||||||
class ScratchpadSlavePort(address: AddressSet)(implicit p: Parameters) extends LazyModule
|
class ScratchpadSlavePort(address: AddressSet)(implicit p: Parameters) extends LazyModule
|
||||||
with HasCoreParameters {
|
with HasCoreParameters {
|
||||||
val device = new MemoryDevice
|
val device = new SimpleDevice("dtim", Nil)
|
||||||
val node = TLManagerNode(Seq(TLManagerPortParameters(
|
val node = TLManagerNode(Seq(TLManagerPortParameters(
|
||||||
Seq(TLManagerParameters(
|
Seq(TLManagerParameters(
|
||||||
address = List(address),
|
address = List(address),
|
||||||
|
@ -8,10 +8,9 @@ import config._
|
|||||||
import diplomacy._
|
import diplomacy._
|
||||||
import util._
|
import util._
|
||||||
|
|
||||||
class TLRAM(address: AddressSet, executable: Boolean = true, beatBytes: Int = 4)(implicit p: Parameters) extends LazyModule
|
class TLRAM(address: AddressSet, executable: Boolean = true, beatBytes: Int = 4, name: Option[String] = None)(implicit p: Parameters) extends LazyModule
|
||||||
{
|
{
|
||||||
val device = new MemoryDevice
|
val device = name.map(new SimpleDevice(_, Nil)).getOrElse(new MemoryDevice)
|
||||||
|
|
||||||
val node = TLManagerNode(Seq(TLManagerPortParameters(
|
val node = TLManagerNode(Seq(TLManagerPortParameters(
|
||||||
Seq(TLManagerParameters(
|
Seq(TLManagerParameters(
|
||||||
address = List(address),
|
address = List(address),
|
||||||
|
Loading…
Reference in New Issue
Block a user