L2 subblock access bugfix
This commit is contained in:
parent
17072a0041
commit
3ab1aca7de
@ -412,7 +412,7 @@ class L2XactTrackerIO extends HierarchicalXactTrackerIO {
|
|||||||
abstract class L2XactTracker extends XactTracker with L2HellaCacheParameters {
|
abstract class L2XactTracker extends XactTracker with L2HellaCacheParameters {
|
||||||
def connectDataBeatCounter[S <: L2HellaCacheBundle](inc: Bool, data: S, beat: UInt, full_block: Bool) = {
|
def connectDataBeatCounter[S <: L2HellaCacheBundle](inc: Bool, data: S, beat: UInt, full_block: Bool) = {
|
||||||
if(data.refillCycles > 1) {
|
if(data.refillCycles > 1) {
|
||||||
val (multi_cnt, multi_done) = Counter(inc, data.refillCycles)
|
val (multi_cnt, multi_done) = Counter(full_block && inc, data.refillCycles)
|
||||||
(Mux(!full_block, beat, multi_cnt), Mux(!full_block, inc, multi_done))
|
(Mux(!full_block, beat, multi_cnt), Mux(!full_block, inc, multi_done))
|
||||||
} else { (UInt(0), inc) }
|
} else { (UInt(0), inc) }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user