make sure TraceGen gets correct addresses
This commit is contained in:
parent
0a85e92652
commit
410e3e5366
@ -210,8 +210,9 @@ class WithTraceGen extends Config(
|
|||||||
val nWays = 1
|
val nWays = 1
|
||||||
val blockOffset = site(CacheBlockOffsetBits)
|
val blockOffset = site(CacheBlockOffsetBits)
|
||||||
val baseAddr = site(GlobalAddrMap)("mem").start
|
val baseAddr = site(GlobalAddrMap)("mem").start
|
||||||
|
val nBeats = site(MIFDataBeats)
|
||||||
List.tabulate(4 * nWays) { i =>
|
List.tabulate(4 * nWays) { i =>
|
||||||
Seq.tabulate(2) { j => (i * nSets + j * 8) << blockOffset }
|
Seq.tabulate(nBeats) { j => (j * 8) + ((i * nSets) << blockOffset) }
|
||||||
}.flatten.map(addr => baseAddr + BigInt(addr))
|
}.flatten.map(addr => baseAddr + BigInt(addr))
|
||||||
}
|
}
|
||||||
case UseAtomics => true
|
case UseAtomics => true
|
||||||
|
Loading…
Reference in New Issue
Block a user