GlobalAddrMap
This commit is contained in:
parent
31be6407ec
commit
66ea39638e
@ -11,7 +11,6 @@ case object NWays extends Field[Int]
|
|||||||
case object RowBits extends Field[Int]
|
case object RowBits extends Field[Int]
|
||||||
case object Replacer extends Field[() => ReplacementPolicy]
|
case object Replacer extends Field[() => ReplacementPolicy]
|
||||||
case object AmoAluOperandBits extends Field[Int]
|
case object AmoAluOperandBits extends Field[Int]
|
||||||
case object L2DirectoryRepresentation extends Field[DirectoryRepresentation]
|
|
||||||
case object NPrimaryMisses extends Field[Int]
|
case object NPrimaryMisses extends Field[Int]
|
||||||
case object NSecondaryMisses extends Field[Int]
|
case object NSecondaryMisses extends Field[Int]
|
||||||
case object CacheBlockBytes extends Field[Int]
|
case object CacheBlockBytes extends Field[Int]
|
||||||
@ -169,6 +168,8 @@ class MetadataArray[T <: Metadata](onReset: () => T)(implicit p: Parameters) ext
|
|||||||
io.write.ready := !rst
|
io.write.ready := !rst
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case object L2DirectoryRepresentation extends Field[DirectoryRepresentation]
|
||||||
|
|
||||||
trait HasL2HellaCacheParameters extends HasCacheParameters with HasCoherenceAgentParameters {
|
trait HasL2HellaCacheParameters extends HasCacheParameters with HasCoherenceAgentParameters {
|
||||||
val idxMSB = idxBits-1
|
val idxMSB = idxBits-1
|
||||||
val idxLSB = 0
|
val idxLSB = 0
|
||||||
|
@ -8,8 +8,7 @@ case object RTCPeriod extends Field[Int]
|
|||||||
class RTC(csr_MTIME: Int)(implicit p: Parameters) extends HtifModule {
|
class RTC(csr_MTIME: Int)(implicit p: Parameters) extends HtifModule {
|
||||||
val io = new NastiIO
|
val io = new NastiIO
|
||||||
|
|
||||||
private val addrMap = new AddrHashMap(p(NastiAddrMap))
|
val addrMap = new AddrHashMap(p(GlobalAddrMap))
|
||||||
|
|
||||||
val addrTable = Vec.tabulate(nCores) { i =>
|
val addrTable = Vec.tabulate(nCores) { i =>
|
||||||
UInt(addrMap(s"conf:csr$i").start + csr_MTIME * scrDataBytes)
|
UInt(addrMap(s"conf:csr$i").start + csr_MTIME * scrDataBytes)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user