Merge branch 'main' of https://github.com/ucb-bar/radiance into main

This commit is contained in:
Richard Yan
2024-05-08 11:32:13 -07:00
2 changed files with 13 additions and 10 deletions

View File

@@ -193,9 +193,12 @@ class RadianceTile private (
}
val imemTagWidth = UUID_WIDTH + NW_WIDTH
// val LSUQ_SIZE = 4 * numWarps * (numCoreLanes / numLsuLanes)
// assert(LSUQ_SIZE == p(SIMTCoreKey).get.nSrcIds)
val LSUQ_SIZE = p(SIMTCoreKey).get.nSrcIds
require(numWarps >= numLsuLanes,
s"Vortex core requires numWarps (${numWarps}) >= numLsuLanes (${numLsuLanes})")
val LSUQ_SIZE = 8 * (numCoreLanes / numLsuLanes)
require(LSUQ_SIZE == p(SIMTCoreKey).get.nSrcIds,
s"LSUQ_SIZE (${LSUQ_SIZE}) != nSrcIds (${p(SIMTCoreKey).get.nSrcIds})"
+ " which can result in TileLink srcId underutilization")
val LSUQ_TAG_BITS = log2Ceil(LSUQ_SIZE) + 1 /*DCACHE_BATCH_SEL_BITS*/
val dmemTagWidth = UUID_WIDTH + LSUQ_TAG_BITS
// dmem and smem shares the same tag width, DCACHE_NOSM_TAG_WIDTH