Skip to content

Commit

Permalink
sync before l1 d$ rework/cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed Jun 27, 2024
1 parent 3746ec1 commit 8f8b3be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/main/scala/vexiiriscv/Param.scala
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ class ParamSimple(){
lsuMemDataWidthMin = 64
lsuL1Sets = 64
lsuL1Ways = 4
lsuL1RefillCount = 2
lsuL1WritebackCount = 2
lsuL1RefillCount = 4
lsuL1WritebackCount = 4
lsuL1Coherency = false
lsuStoreBufferSlots = 2
lsuStoreBufferOps = 32
Expand All @@ -176,7 +176,7 @@ class ParamSimple(){
withMmu = true
privParam.withSupervisor = true
privParam.withUser = true
xlen = 32
xlen = 64


privParam.withDebug = true
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/vexiiriscv/execute/lsu/LsuPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,8 @@ class LsuPlugin(var layer : LaneLayer,

val mmuFailure = mmuPageFault || tpk.ACCESS_FAULT || tpk.REDO
l1.ABORD := FROM_LSU && !PREFETCH && (!isValid || isCancel || pmaL1.rsp.fault || l1.FAULT || mmuFailure || preCtrl.MISS_ALIGNED || withStoreBuffer.mux(wb.loadHazard || fenceTrap.valid, False))
??? PREFETCH / pmaL1 / miss aligned / mmu failure
l1.SKIP_WRITE := l1.ATOMIC && !l1.LOAD && scMiss || withStoreBuffer.mux(!FROM_WB && wb.hit || wb.selfHazard, False) || FROM_LSU && onTrigger.HIT || PREFETCH
//TODO ??? PREFETCH / pmaL1 / miss aligned / mmu failure
l1.SKIP_WRITE := l1.ATOMIC && !l1.LOAD && scMiss || withStoreBuffer.mux(!FROM_WB && wb.hit || wb.selfHazard, False) || FROM_LSU && onTrigger.HIT || FROM_LSU && PREFETCH

if (withStoreBuffer) l1.ABORD setWhen (FROM_WB && wb.selfHazard)

Expand Down

0 comments on commit 8f8b3be

Please sign in to comment.