File tree 2 files changed +6
-6
lines changed
rtl/tc_l2/src/main/scala/core/if
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ class BTB extends Module {
40
40
}
41
41
42
42
// signals about BTB lookup
43
- val lookupIdx = io.lookupPc(ConstVal .BTBIdxLen - 1 , 0 )
44
- val lookupPcSel = io.lookupPc
45
- val btbHit = valids(lookupIdx) && lines(lookupIdx).pc === lookupPcSel
43
+ protected val lookupIdx = io.lookupPc(ConstVal .BTBIdxLen - 1 , 0 )
44
+ protected val lookupPcSel = io.lookupPc
45
+ protected val btbHit = valids(lookupIdx) && lines(lookupIdx).pc === lookupPcSel
46
46
47
47
// BTB lookup
48
48
io.lookupBranch := btbHit
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ class GHR extends Module {
12
12
val idx = Output (UInt (ConstVal .GHRLen .W ))
13
13
})
14
14
15
- protected val ghr = Reg (UInt (ConstVal .GHRLen .W ))
15
+ protected val shiftReg = Reg (UInt (ConstVal .GHRLen .W ))
16
16
17
17
when(io.branch) {
18
- ghr := Cat (ghr (ConstVal .GHRLen - 2 , 0 ), io.taken)
18
+ shiftReg := Cat (shiftReg (ConstVal .GHRLen - 2 , 0 ), io.taken)
19
19
}
20
20
21
- io.idx := ghr
21
+ io.idx := shiftReg
22
22
}
You can’t perform that action at this time.
0 commit comments