Reduce node count by avoiding elsewhen :-(
This commit is contained in:
parent
8dcc0cbb53
commit
0c13c00d08
@ -150,6 +150,9 @@ class BTB(implicit conf: BTBConfig) extends Module {
|
|||||||
val waddr = Mux(updateHit, update.bits.prediction.bits.entry, nextRepl)
|
val waddr = Mux(updateHit, update.bits.prediction.bits.entry, nextRepl)
|
||||||
|
|
||||||
for (i <- 0 until conf.entries) {
|
for (i <- 0 until conf.entries) {
|
||||||
|
when ((pageReplEn & (idxPagesOH(i) | tgtPagesOH(i))).orR) {
|
||||||
|
idxValid(i) := false
|
||||||
|
}
|
||||||
when (waddr === i) {
|
when (waddr === i) {
|
||||||
idxValid(i) := updateValid
|
idxValid(i) := updateValid
|
||||||
when (updateTarget) {
|
when (updateTarget) {
|
||||||
@ -161,8 +164,6 @@ class BTB(implicit conf: BTBConfig) extends Module {
|
|||||||
useRAS(i) := update.bits.isReturn
|
useRAS(i) := update.bits.isReturn
|
||||||
isJump(i) := update.bits.isJump
|
isJump(i) := update.bits.isJump
|
||||||
}
|
}
|
||||||
}.elsewhen ((pageReplEn & (idxPagesOH(i) | tgtPagesOH(i))).orR) {
|
|
||||||
idxValid(i) := false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user