Skip to content

Commit

Permalink
fix(DataStorage): fix MCP2 gated clock (#252)
Browse files Browse the repository at this point in the history
Since now io.req.valid lasts two cycles,
it shall no longer be used to generate gated clock.
Instead, we should use io.en now.
  • Loading branch information
Ivyfeather authored Sep 23, 2024
1 parent 233fb3f commit 940467b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/coupledL2/DataStorage.scala
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class DataStorage(implicit p: Parameters) extends L2Module {
readMCP2 = true
))

val masked_clock = ClockGate(false.B, io.req.valid, clock)
val masked_clock = ClockGate(false.B, io.en, clock)
array.clock := masked_clock

val arrayIdx = Cat(io.req.bits.way, io.req.bits.set)
Expand Down

0 comments on commit 940467b

Please sign in to comment.