Skip to content

Commit 084135d

Browse files
committed
fix(SinkA): cmoAll FSM returns to IDLE when finished
1 parent 7e7cbdf commit 084135d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/scala/coupledL2/SinkA.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,11 @@ class SinkA(implicit p: Parameters) extends L2Module {
188188
when (stateVal === sWAITMSHR && !mshrValid) {
189189
state.foreach { _ := sCMOREQ }
190190
}
191+
when (stateVal === sDONE && !l2Flush) {
192+
state.foreach { _ := sIDLE }
193+
set.foreach { _ := 0.U }
194+
way.foreach { _ := 0.U }
195+
}
191196

192197
// Performance counters
193198
// num of reqs

0 commit comments

Comments
 (0)