Skip to content

Commit

Permalink
Update SpinalHDL
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed May 23, 2023
1 parent b81029f commit 760a0fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/scala/vexriscv/ip/DataCache.scala
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,9 @@ case class FenceFlags() extends Bundle {
def forceAll(): Unit ={
List(SW,SR,SO,SI,PW,PR,PO,PI).foreach(_ := True)
}
def clearAll(): Unit ={
def clearFlags(): this.type ={
List(SW,SR,SO,SI,PW,PR,PO,PI).foreach(_ := False)
this
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/vexriscv/plugin/DBusCachedPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ class DBusCachedPlugin(val config : DataCacheConfig,
}

when(!input(MEMORY_FENCE) || !arbitration.isFiring){
cache.io.cpu.writeBack.fence.clearAll()
cache.io.cpu.writeBack.fence.clearFlags()
}

when(arbitration.isValid && (input(MEMORY_FENCE) || aquire)){
Expand Down

0 comments on commit 760a0fc

Please sign in to comment.