Skip to content

Commit

Permalink
[rocketv] fix exRegRsMSB in bypass(todo).
Browse files Browse the repository at this point in the history
  • Loading branch information
qinjun-li authored and Avimitin committed Aug 20, 2024
1 parent 1d8e14f commit 3c0dee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rocketv/src/RocketCore.scala
Original file line number Diff line number Diff line change
Expand Up @@ -786,9 +786,9 @@ class Rocket(val parameter: RocketParameter)
val bypassSource = PriorityEncoder(idBypassSources(i))
exRegRsBypass(i) := doBypass
exRegRsLSB(i) := bypassSource
exRegRsMSB(i) := idRs(i) >> log2Ceil(bypassSources.size)
when(idRen(i) && !doBypass) {
exRegRsLSB(i) := idRs(i)(log2Ceil(bypassSources.size) - 1, 0)
exRegRsMSB(i) := idRs(i) >> log2Ceil(bypassSources.size)
}
}
when(idIllegalInstruction || idVirtualInstruction) {
Expand Down

0 comments on commit 3c0dee6

Please sign in to comment.