Skip to content

Commit

Permalink
fix cache bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
LoveLonelyTime committed May 17, 2024
1 parent 0dc82b8 commit 98012ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/bergamot/cache/Cache.scala
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class SetCache(wayDepth: Int, cacheLineDepth: Int, cacheCellDepth: Int) extends
switch(statusReg) {
is(Status.idle) {
// Priority: Flush >| Read > Write
when(io.flush.req) {
when(io.flush.req && !flushWorkingReg) {
flushWorkingReg := true.B
flushReg := 0.U
}
Expand Down

0 comments on commit 98012ee

Please sign in to comment.