Predictor hash check

This commit is contained in:
waleed-lm 2020-10-05 11:00:31 +05:00
parent 01fe318c28
commit 82fdda8291
4 changed files with 30896 additions and 30892 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -93,9 +93,9 @@ class el2_ifu_bp_ctl extends Module with el2_lib {
val btb_rd_addr_f = el2_btb_addr_hash(io.ifc_fetch_addr_f) val btb_rd_addr_f = el2_btb_addr_hash(io.ifc_fetch_addr_f)
io.test_hash := btb_rd_addr_f io.test_hash := btb_rd_addr_f
// Second pc = pc +4 // Second pc = pc +4
val fetch_addr_p1_f = io.ifc_fetch_addr_f + 2.U val fetch_addr_p1_f = io.ifc_fetch_addr_f(30,1) + 1.U
// Hash the second pc // Hash the second pc
val btb_rd_addr_p1_f = el2_btb_addr_hash(fetch_addr_p1_f) val btb_rd_addr_p1_f = el2_btb_addr_hash(Cat(fetch_addr_p1_f,0.U))
io.test_hash_p1 := btb_rd_addr_p1_f io.test_hash_p1 := btb_rd_addr_p1_f
// TODO // TODO
val btb_sel_f = Cat(~bht_dir_f(0),bht_dir_f(0)) val btb_sel_f = Cat(~bht_dir_f(0),bht_dir_f(0))