Skip to content

Commit 75a6a38

Browse files
author
Cai Luoshan
committed
mergeA: fix bug about merge permission_check
1 parent 2994420 commit 75a6a38

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/scala/coupledL2/RequestBuffer.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@ class RequestBuffer(flow: Boolean = true, entries: Int = 4)(implicit p: Paramete
9898
s.valid && s.bits.isPrefetch && sameAddr(a, s.bits) && !s.bits.willFree &&
9999
a.fromA && (a.opcode === AcquireBlock || a.opcode === AcquirePerm)
100100
)).asUInt.orR
101-
def mergeA_latepf(a: TaskBundle): Bool = VecInit(io.mshrInfo.map(s =>
102-
s.valid && s.bits.isPrefetch && sameAddr(a, s.bits) && !s.bits.willFree && !s.bits.dirHit && !s.bits.s_refill &&
103-
a.fromA && (a.opcode === AcquireBlock || a.opcode === AcquirePerm) && !s.bits.mergeA && !(in.param === NtoT && s.bits.param === NtoB)
104-
)).asUInt.orR
105101

106102
// count ways
107103
// def countWaysOH(cond: (MSHRInfo => Bool)): UInt = {
@@ -133,7 +129,7 @@ class RequestBuffer(flow: Boolean = true, entries: Int = 4)(implicit p: Paramete
133129
val canFlow = flow.B && !full && !conflict(in) && !chosenQValid && !Cat(io.mainPipeBlock).orR
134130
val doFlow = canFlow && io.out.ready
135131
io.hasLatePF := latePrefetch(in) && io.in.valid && !sameAddr(in, RegNext(in))
136-
io.hasMergeA := mergeA_latepf(in) && io.in.valid && !sameAddr(in, RegNext(in))
132+
io.hasMergeA := mergeA && io.in.valid && !sameAddr(in, RegNext(in))
137133

138134
// val depMask = buffer.map(e => e.valid && sameAddr(io.in.bits, e.task))
139135
// remove duplicate prefetch if same-addr A req in MSHR or ReqBuf

0 commit comments

Comments
 (0)