allow groundtest to use non-blocking DCache
This commit is contained in:
parent
67871654dd
commit
f62c74b82a
@ -92,7 +92,9 @@ class GroundTestTile(id: Int, resetSignal: Bool)
|
|||||||
val memPorts = ListBuffer.empty ++= test.io.mem
|
val memPorts = ListBuffer.empty ++= test.io.mem
|
||||||
|
|
||||||
if (nCached > 0) {
|
if (nCached > 0) {
|
||||||
val dcache = Module(new HellaCache()(dcacheParams))
|
val dcache_io =
|
||||||
|
if (p(NMSHRs) == 0) Module(new DCache()(dcacheParams)).io
|
||||||
|
else Module(new HellaCache()(dcacheParams)).io
|
||||||
val dcacheArb = Module(new HellaCacheArbiter(nCached)(dcacheParams))
|
val dcacheArb = Module(new HellaCacheArbiter(nCached)(dcacheParams))
|
||||||
|
|
||||||
dcacheArb.io.requestor.zip(test.io.cache).foreach {
|
dcacheArb.io.requestor.zip(test.io.cache).foreach {
|
||||||
@ -101,13 +103,13 @@ class GroundTestTile(id: Int, resetSignal: Bool)
|
|||||||
dcacheIF.io.requestor <> cache
|
dcacheIF.io.requestor <> cache
|
||||||
requestor <> dcacheIF.io.cache
|
requestor <> dcacheIF.io.cache
|
||||||
}
|
}
|
||||||
dcache.io.cpu <> dcacheArb.io.mem
|
dcache_io.cpu <> dcacheArb.io.mem
|
||||||
io.cached.head <> dcache.io.mem
|
io.cached.head <> dcache_io.mem
|
||||||
|
|
||||||
// SimpleHellaCacheIF leaves invalidate_lr dangling, so we wire it to false
|
// SimpleHellaCacheIF leaves invalidate_lr dangling, so we wire it to false
|
||||||
dcache.io.cpu.invalidate_lr := Bool(false)
|
dcache_io.cpu.invalidate_lr := Bool(false)
|
||||||
|
|
||||||
ptwPorts += dcache.io.ptw
|
ptwPorts += dcache_io.ptw
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only Tile 0 needs to write tohost
|
// Only Tile 0 needs to write tohost
|
||||||
|
Loading…
Reference in New Issue
Block a user