Skip to content

Commit

Permalink
Fix #412 tightly coupled HAS_SIDE_EFFECT fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed Jun 17, 2024
1 parent 625fc84 commit ee95e56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/vexriscv/plugin/DBusCachedPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ class DBusCachedPlugin(val config : DataCacheConfig,
cache.io.cpu.memory.mmuRsp.isIoAccess setWhen(pipeline(DEBUG_BYPASS_CACHE) && !cache.io.cpu.memory.isWrite)

if(tightlyGen){
when(input(MEMORY_TIGHTLY).orR){
when(input(MEMORY_ENABLE) && input(MEMORY_TIGHTLY).orR){
cache.io.cpu.memory.isValid := False
input(HAS_SIDE_EFFECT) := False
}
Expand Down Expand Up @@ -603,7 +603,7 @@ class DBusCachedPlugin(val config : DataCacheConfig,
insert(MEMORY_LOAD_DATA) := rspShifted

if(tightlyGen){
when(input(MEMORY_TIGHTLY).orR){
when(input(MEMORY_ENABLE) && input(MEMORY_TIGHTLY).orR){
cache.io.cpu.writeBack.isValid := False
exceptionBus.valid := False
redoBranch.valid := False
Expand Down

0 comments on commit ee95e56

Please sign in to comment.