Skip to content

Commit

Permalink
CDB update condition fix
Browse files Browse the repository at this point in the history
  • Loading branch information
martonbognar committed Feb 7, 2025
1 parent a804ba0 commit c49f06e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class LoadManager(
when(state === State.EXECUTING && loadStage.arbitration.isDone && !activeFlush) {
rdbStream.valid := True
rdbStream.payload.robIndex := storedMessage.robIndex
rdbStream.payload.willCdbUpdate := True
for (register <- retirementRegisters.keys) {
rdbStream.payload.registerMap.element(register) := loadStage.output(register)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ class ReservationStation(
cdbStream.valid := True
}

dispatchStream.payload.willCdbUpdate := cdbStream.valid
dispatchStream.payload.willCdbUpdate := cdbStream.valid || pipeline
.service[LsuService]
.operationOutput(exeStage) === LsuOperationType.LOAD
dispatchStream.valid := True

// Override the assignment of resultCdbMessage to make sure data can be sent in later cycles
Expand Down

0 comments on commit c49f06e

Please sign in to comment.