1
0

Remove dead code from BTB

This commit is contained in:
Andrew Waterman 2016-04-27 00:28:12 -07:00
parent fe8c91f620
commit 8acec8eb36

View File

@ -177,12 +177,6 @@ class BTB(implicit p: Parameters) extends BtbModule {
val updatePageHit = pageMatch(r_btb_update.bits.pc) val updatePageHit = pageMatch(r_btb_update.bits.pc)
val updateHits = tagMatch(r_btb_update.bits.pc, updatePageHit) val updateHits = tagMatch(r_btb_update.bits.pc, updatePageHit)
private var lfsr = LFSR16(r_btb_update.valid)
def rand(width: Int) = {
lfsr = lfsr(lfsr.getWidth-1,1)
Random.oneHot(width, lfsr)
}
val updateHit = r_btb_update.bits.prediction.valid val updateHit = r_btb_update.bits.prediction.valid
val nextRepl = Counter(r_btb_update.valid && !updateHit, entries)._1 val nextRepl = Counter(r_btb_update.valid && !updateHit, entries)._1