1/*************************************************************************************** 2* Copyright (c) 2020-2021 Institute of Computing Technology, Chinese Academy of Sciences 3* Copyright (c) 2020-2021 Peng Cheng Laboratory 4* 5* XiangShan is licensed under Mulan PSL v2. 6* You can use this software according to the terms and conditions of the Mulan PSL v2. 7* You may obtain a copy of Mulan PSL v2 at: 8* http://license.coscl.org.cn/MulanPSL2 9* 10* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, 11* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, 12* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. 13* 14* See the Mulan PSL v2 for more details. 15***************************************************************************************/ 16package xiangshan.frontend 17 18import chipsalliance.rocketchip.config.Parameters 19import chisel3._ 20import chisel3.util._ 21import chisel3.experimental.chiselName 22import xiangshan._ 23import utils._ 24import scala.math._ 25 26@chiselName 27class FetchRequestBundle(implicit p: Parameters) extends XSBundle { 28 val startAddr = UInt(VAddrBits.W) 29 val fallThruAddr = UInt(VAddrBits.W) 30 val fallThruError = Bool() 31 val ftqIdx = new FtqPtr 32 val ftqOffset = ValidUndirectioned(UInt(log2Ceil(PredictWidth).W)) 33 val target = UInt(VAddrBits.W) 34 val oversize = Bool() 35 36 def fallThroughError() = { 37 def carryPos = instOffsetBits+log2Ceil(PredictWidth)+1 38 def getLower(pc: UInt) = pc(instOffsetBits+log2Ceil(PredictWidth), instOffsetBits) 39 val carry = (startAddr(carryPos) =/= fallThruAddr(carryPos)).asUInt 40 val startLower = Cat(0.U(1.W), getLower(startAddr)) 41 val endLowerwithCarry = Cat(carry, getLower(fallThruAddr)) 42 require(startLower.getWidth == log2Ceil(PredictWidth)+2) 43 require(endLowerwithCarry.getWidth == log2Ceil(PredictWidth)+2) 44 startLower >= endLowerwithCarry || (endLowerwithCarry - startLower) > (PredictWidth+1).U 45 } 46 def fromFtqPcBundle(b: Ftq_RF_Components) = { 47 this.startAddr := b.startAddr 48 this.fallThruAddr := b.getFallThrough() 49 this.oversize := b.oversize 50 this 51 } 52 def fromBpuResp(resp: BranchPredictionBundle) = { 53 // only used to bypass, so some fields remains unchanged 54 this.startAddr := resp.pc 55 this.target := resp.target 56 this.ftqOffset := resp.genCfiIndex 57 this.fallThruAddr := resp.fallThroughAddr 58 this.oversize := resp.ftb_entry.oversize 59 this 60 } 61 override def toPrintable: Printable = { 62 p"[start] ${Hexadecimal(startAddr)} [pft] ${Hexadecimal(fallThruAddr)}" + 63 p"[tgt] ${Hexadecimal(target)} [ftqIdx] $ftqIdx [jmp] v:${ftqOffset.valid}" + 64 p" offset: ${ftqOffset.bits}\n" 65 } 66} 67 68class PredecodeWritebackBundle(implicit p:Parameters) extends XSBundle { 69 val pc = Vec(PredictWidth, UInt(VAddrBits.W)) 70 val pd = Vec(PredictWidth, new PreDecodeInfo) // TODO: redefine Predecode 71 val ftqIdx = new FtqPtr 72 val ftqOffset = UInt(log2Ceil(PredictWidth).W) 73 val misOffset = ValidUndirectioned(UInt(log2Ceil(PredictWidth).W)) 74 val cfiOffset = ValidUndirectioned(UInt(log2Ceil(PredictWidth).W)) 75 val target = UInt(VAddrBits.W) 76 val jalTarget = UInt(VAddrBits.W) 77 val instrRange = Vec(PredictWidth, Bool()) 78} 79 80class Exception(implicit p: Parameters) extends XSBundle { 81 82} 83 84class FetchToIBuffer(implicit p: Parameters) extends XSBundle { 85 val instrs = Vec(PredictWidth, UInt(32.W)) 86 val valid = UInt(PredictWidth.W) 87 val pd = Vec(PredictWidth, new PreDecodeInfo) 88 val pc = Vec(PredictWidth, UInt(VAddrBits.W)) 89 val foldpc = Vec(PredictWidth, UInt(MemPredPCWidth.W)) 90 //val exception = new Exception 91 val ftqPtr = new FtqPtr 92 val ftqOffset = Vec(PredictWidth, ValidUndirectioned(UInt(log2Ceil(PredictWidth).W))) 93 val ipf = Vec(PredictWidth, Bool()) 94 val acf = Vec(PredictWidth, Bool()) 95 val crossPageIPFFix = Vec(PredictWidth, Bool()) 96} 97 98// class BitWiseUInt(val width: Int, val init: UInt) extends Module { 99// val io = IO(new Bundle { 100// val set 101// }) 102// } 103// Move from BPU 104abstract class GlobalHistory(implicit p: Parameters) extends XSBundle with HasBPUConst { 105 def update(br_valids: Vec[Bool], real_taken_mask: Vec[Bool]): GlobalHistory 106} 107 108class ShiftingGlobalHistory(implicit p: Parameters) extends GlobalHistory { 109 val predHist = UInt(HistoryLength.W) 110 111 def update(shift: UInt, taken: Bool, hist: UInt = this.predHist): ShiftingGlobalHistory = { 112 val g = Wire(new ShiftingGlobalHistory) 113 g.predHist := (hist << shift) | taken 114 g 115 } 116 117 def update(br_valids: Vec[Bool], real_taken_mask: Vec[Bool]): ShiftingGlobalHistory = { 118 require(br_valids.length == numBr) 119 require(real_taken_mask.length == numBr) 120 val last_valid_idx = PriorityMux( 121 br_valids.reverse :+ true.B, 122 (numBr to 0 by -1).map(_.U(log2Ceil(numBr+1).W)) 123 ) 124 val first_taken_idx = PriorityEncoder(false.B +: real_taken_mask) 125 val smaller = Mux(last_valid_idx < first_taken_idx, 126 last_valid_idx, 127 first_taken_idx 128 ) 129 val shift = smaller 130 val taken = real_taken_mask.reduce(_||_) 131 update(shift, taken, this.predHist) 132 } 133 134 // static read 135 def read(n: Int): Bool = predHist.asBools()(n) 136 137 final def === (that: ShiftingGlobalHistory): Bool = { 138 predHist === that.predHist 139 } 140 141 final def =/= (that: ShiftingGlobalHistory): Bool = !(this === that) 142} 143 144// circular global history pointer 145class CGHPtr(implicit p: Parameters) extends CircularQueuePtr[CGHPtr]( 146 p => p(XSCoreParamsKey).HistoryLength 147){ 148 override def cloneType = (new CGHPtr).asInstanceOf[this.type] 149} 150class CircularGlobalHistory(implicit p: Parameters) extends GlobalHistory { 151 val buffer = Vec(HistoryLength, Bool()) 152 type HistPtr = UInt 153 def update(br_valids: Vec[Bool], real_taken_mask: Vec[Bool]): CircularGlobalHistory = { 154 this 155 } 156} 157 158class FoldedHistory(val len: Int, val compLen: Int, val max_update_num: Int)(implicit p: Parameters) 159 extends XSBundle with HasBPUConst { 160 require(compLen >= 1) 161 require(len > 0) 162 // require(folded_len <= len) 163 require(compLen >= max_update_num) 164 val folded_hist = UInt(compLen.W) 165 166 def info = (len, compLen) 167 def oldest_bit_to_get_from_ghr = (0 until max_update_num).map(len - _ - 1) 168 def oldest_bit_pos_in_folded = oldest_bit_to_get_from_ghr map (_ % compLen) 169 def oldest_bit_wrap_around = oldest_bit_to_get_from_ghr map (_ / compLen > 0) 170 def oldest_bit_start = oldest_bit_pos_in_folded.head 171 172 def get_oldest_bits_from_ghr(ghr: Vec[Bool], histPtr: CGHPtr) = { 173 // TODO: wrap inc for histPtr value 174 oldest_bit_to_get_from_ghr.map(i => ghr((histPtr + (i+1).U).value)) 175 } 176 177 def circular_shift_left(max_shift_value: Int)(src: UInt, shamt: UInt) = { 178 val srcLen = src.getWidth 179 require(max_shift_value <= srcLen) 180 val src_doubled = Cat(src, src) 181 val shifted_vec = (0 to max_shift_value).map(i => src_doubled(srcLen*2-1-i, srcLen-i)) 182 val sel_vec = (0 to max_shift_value).map(_.U === shamt) 183 Mux1H(sel_vec, shifted_vec) 184 } 185 186 187 def update(ghr: Vec[Bool], histPtr: CGHPtr, num: UInt, taken: Bool): FoldedHistory = { 188 // do xors for several bitsets at specified bits 189 def bitsets_xor(len: Int, bitsets: Seq[Seq[Tuple2[Int, Bool]]]) = { 190 val res = Wire(Vec(len, Bool())) 191 // println(f"num bitsets: ${bitsets.length}") 192 // println(f"bitsets $bitsets") 193 val resArr = Array.fill(len)(List[Bool]()) 194 for (bs <- bitsets) { 195 for ((n, b) <- bs) { 196 resArr(n) = b :: resArr(n) 197 } 198 } 199 // println(f"${resArr.mkString}") 200 // println(f"histLen: ${this.len}, foldedLen: $folded_len") 201 for (i <- 0 until len) { 202 // println(f"bit[$i], ${resArr(i).mkString}") 203 if (resArr(i).length > 2) { 204 println(f"[warning] update logic of foldest history has two or more levels of xor gates! " + 205 f"histlen:${this.len}, compLen:$compLen") 206 } 207 if (resArr(i).length == 0) { 208 println(f"[error] bits $i is not assigned in folded hist update logic! histlen:${this.len}, compLen:$compLen") 209 } 210 res(i) := resArr(i).foldLeft(false.B)(_^_) 211 } 212 res.asUInt 213 } 214 val oldest_bits = get_oldest_bits_from_ghr(ghr, histPtr) 215 216 // mask off bits that do not update 217 val oldest_bits_masked = oldest_bits.zipWithIndex.map{ 218 case (ob, i) => ob && (i.U < num) 219 } 220 // if a bit does not wrap around, it should not be xored when it exits 221 val oldest_bits_set = (0 until max_update_num).filter(oldest_bit_wrap_around).map(i => (oldest_bit_pos_in_folded(i), oldest_bits_masked(i))) 222 223 // println(f"old bits pos ${oldest_bits_set.map(_._1)}") 224 225 // only the last bit could be 1, as we have at most one taken branch at a time 226 val newest_bits_masked = VecInit((0 until max_update_num).map(i => taken && (i+1).U === num)).asUInt 227 // if a bit does not wrap around, newest bits should not be xored onto it either 228 val newest_bits_set = (0 until max_update_num).filter(oldest_bit_wrap_around).map(i => (compLen-1-i, newest_bits_masked(i))) 229 230 // println(f"new bits set ${newest_bits_set.map(_._1)}") 231 // 232 val original_bits_masked = VecInit(folded_hist.asBools.zipWithIndex.map{ 233 case (fb, i) => fb && !(num >= (len-i).U) 234 }) 235 val original_bits_set = (0 until compLen).map(i => (i, original_bits_masked(i))) 236 237 238 // histLen too short to wrap around 239 val new_folded_hist = 240 if (len <= compLen) { 241 ((folded_hist << num) | taken)(compLen-1,0) 242 // circular_shift_left(max_update_num)(Cat(Reverse(newest_bits_masked), folded_hist(compLen-max_update_num-1,0)), num) 243 } else { 244 // do xor then shift 245 val xored = bitsets_xor(compLen, Seq(original_bits_set, oldest_bits_set, newest_bits_set)) 246 circular_shift_left(max_update_num)(xored, num) 247 } 248 val fh = WireInit(this) 249 fh.folded_hist := new_folded_hist 250 fh 251 } 252 253 // def update(ghr: Vec[Bool], histPtr: CGHPtr, valids: Vec[Bool], takens: Vec[Bool]): FoldedHistory = { 254 // val fh = WireInit(this) 255 // require(valids.length == max_update_num) 256 // require(takens.length == max_update_num) 257 // val last_valid_idx = PriorityMux( 258 // valids.reverse :+ true.B, 259 // (max_update_num to 0 by -1).map(_.U(log2Ceil(max_update_num+1).W)) 260 // ) 261 // val first_taken_idx = PriorityEncoder(false.B +: takens) 262 // val smaller = Mux(last_valid_idx < first_taken_idx, 263 // last_valid_idx, 264 // first_taken_idx 265 // ) 266 // // update folded_hist 267 // fh.update(ghr, histPtr, smaller, takens.reduce(_||_)) 268 // } 269 // println(f"folded hist original length: ${len}, folded len: ${folded_len} " + 270 // f"oldest bits' pos in folded: ${oldest_bit_pos_in_folded}") 271 272 273} 274 275class TableAddr(val idxBits: Int, val banks: Int)(implicit p: Parameters) extends XSBundle{ 276 def tagBits = VAddrBits - idxBits - instOffsetBits 277 278 val tag = UInt(tagBits.W) 279 val idx = UInt(idxBits.W) 280 val offset = UInt(instOffsetBits.W) 281 282 def fromUInt(x: UInt) = x.asTypeOf(UInt(VAddrBits.W)).asTypeOf(this) 283 def getTag(x: UInt) = fromUInt(x).tag 284 def getIdx(x: UInt) = fromUInt(x).idx 285 def getBank(x: UInt) = if (banks > 1) getIdx(x)(log2Up(banks) - 1, 0) else 0.U 286 def getBankIdx(x: UInt) = if (banks > 1) getIdx(x)(idxBits - 1, log2Up(banks)) else getIdx(x) 287} 288 289@chiselName 290class BranchPrediction(implicit p: Parameters) extends XSBundle with HasBPUConst { 291 val br_taken_mask = Vec(numBr, Bool()) 292 293 val slot_valids = Vec(totalSlot, Bool()) 294 295 val targets = Vec(totalSlot, UInt(VAddrBits.W)) 296 297 val is_jal = Bool() 298 val is_jalr = Bool() 299 val is_call = Bool() 300 val is_ret = Bool() 301 val is_br_sharing = Bool() 302 303 // val call_is_rvc = Bool() 304 val hit = Bool() 305 306 def br_slot_valids = slot_valids.init 307 def tail_slot_valid = slot_valids.last 308 309 def br_valids = { 310 VecInit( 311 if (shareTailSlot) 312 br_slot_valids :+ (tail_slot_valid && is_br_sharing) 313 else 314 br_slot_valids 315 ) 316 } 317 318 def taken_mask_on_slot = { 319 VecInit( 320 if (shareTailSlot) 321 (br_slot_valids zip br_taken_mask.init).map{ case (t, v) => t && v } :+ ( 322 (br_taken_mask.last && tail_slot_valid && is_br_sharing) || 323 tail_slot_valid && !is_br_sharing 324 ) 325 else 326 (br_slot_valids zip br_taken_mask).map{ case (v, t) => v && t } :+ 327 tail_slot_valid 328 ) 329 } 330 331 def taken = br_taken_mask.reduce(_||_) || slot_valids.last // || (is_jal || is_jalr) 332 333 def fromFtbEntry(entry: FTBEntry, pc: UInt) = { 334 slot_valids := entry.brSlots.map(_.valid) :+ entry.tailSlot.valid 335 targets := entry.getTargetVec(pc) 336 is_jal := entry.tailSlot.valid && entry.isJal 337 is_jalr := entry.tailSlot.valid && entry.isJalr 338 is_call := entry.tailSlot.valid && entry.isCall 339 is_ret := entry.tailSlot.valid && entry.isRet 340 is_br_sharing := entry.tailSlot.valid && entry.tailSlot.sharing 341 } 342 // override def toPrintable: Printable = { 343 // p"-----------BranchPrediction----------- " + 344 // p"[taken_mask] ${Binary(taken_mask.asUInt)} " + 345 // p"[is_br] ${Binary(is_br.asUInt)}, [is_jal] ${Binary(is_jal.asUInt)} " + 346 // p"[is_jalr] ${Binary(is_jalr.asUInt)}, [is_call] ${Binary(is_call.asUInt)}, [is_ret] ${Binary(is_ret.asUInt)} " + 347 // p"[target] ${Hexadecimal(target)}}, [hit] $hit " 348 // } 349 350 def display(cond: Bool): Unit = { 351 XSDebug(cond, p"[taken_mask] ${Binary(br_taken_mask.asUInt)} [hit] $hit\n") 352 } 353} 354 355@chiselName 356class BranchPredictionBundle(implicit p: Parameters) extends XSBundle with HasBPUConst with BPUUtils{ 357 val pc = UInt(VAddrBits.W) 358 359 val valid = Bool() 360 361 val hasRedirect = Bool() 362 val ftq_idx = new FtqPtr 363 // val hit = Bool() 364 val preds = new BranchPrediction 365 366 val folded_hist = new AllFoldedHistories(foldedGHistInfos) 367 val histPtr = new CGHPtr 368 val phist = UInt(PathHistoryLength.W) 369 val rasSp = UInt(log2Ceil(RasSize).W) 370 val rasTop = new RASEntry 371 val specCnt = Vec(numBr, UInt(10.W)) 372 // val meta = UInt(MaxMetaLength.W) 373 374 val ftb_entry = new FTBEntry() // TODO: Send this entry to ftq 375 376 def real_slot_taken_mask(): Vec[Bool] = { 377 VecInit(preds.taken_mask_on_slot.map(_ && preds.hit)) 378 } 379 380 // len numBr 381 def real_br_taken_mask(): Vec[Bool] = { 382 if (shareTailSlot) 383 VecInit( 384 preds.taken_mask_on_slot.map(_ && preds.hit).init :+ 385 (preds.br_taken_mask.last && preds.tail_slot_valid && preds.is_br_sharing && preds.hit) 386 ) 387 else 388 VecInit(real_slot_taken_mask().init) 389 } 390 391 def br_count(): UInt = { 392 val last_valid_idx = PriorityMux( 393 preds.br_valids.reverse :+ true.B, 394 (numBr to 0 by -1).map(_.U(log2Ceil(numBr+1).W)) 395 ) 396 val first_taken_idx = PriorityEncoder(false.B +: real_br_taken_mask) 397 Mux(last_valid_idx < first_taken_idx, 398 last_valid_idx, 399 first_taken_idx 400 ) 401 } 402 403 def hit_taken_on_jmp = 404 !real_slot_taken_mask().init.reduce(_||_) && 405 real_slot_taken_mask().last && !preds.is_br_sharing 406 def hit_taken_on_call = hit_taken_on_jmp && preds.is_call 407 def hit_taken_on_ret = hit_taken_on_jmp && preds.is_ret 408 def hit_taken_on_jalr = hit_taken_on_jmp && preds.is_jalr 409 410 def fallThroughAddr = getFallThroughAddr(pc, ftb_entry.carry, ftb_entry.pftAddr) 411 412 def target(): UInt = { 413 val targetVec = preds.targets :+ fallThroughAddr :+ (pc + (FetchWidth*4).U) 414 val selVec = real_slot_taken_mask() :+ (preds.hit && !real_slot_taken_mask().asUInt.orR) :+ true.B 415 PriorityMux(selVec zip targetVec) 416 } 417 def genCfiIndex = { 418 val cfiIndex = Wire(ValidUndirectioned(UInt(log2Ceil(PredictWidth).W))) 419 cfiIndex.valid := real_slot_taken_mask().asUInt.orR 420 // when no takens, set cfiIndex to PredictWidth-1 421 cfiIndex.bits := 422 ParallelPriorityMux(real_slot_taken_mask(), ftb_entry.getOffsetVec) | 423 Fill(log2Ceil(PredictWidth), (!real_slot_taken_mask().asUInt.orR).asUInt) 424 cfiIndex 425 } 426 427 def display(cond: Bool): Unit = { 428 XSDebug(cond, p"[pc] ${Hexadecimal(pc)}\n") 429 folded_hist.display(cond) 430 preds.display(cond) 431 ftb_entry.display(cond) 432 } 433} 434 435@chiselName 436class BranchPredictionResp(implicit p: Parameters) extends XSBundle with HasBPUConst { 437 // val valids = Vec(3, Bool()) 438 val s1 = new BranchPredictionBundle() 439 val s2 = new BranchPredictionBundle() 440 val s3 = new BranchPredictionBundle() 441 442 def selectedResp = 443 PriorityMux(Seq( 444 ((s3.valid && s3.hasRedirect) -> s3), 445 ((s2.valid && s2.hasRedirect) -> s2), 446 (s1.valid -> s1) 447 )) 448 def selectedRespIdx = 449 PriorityMux(Seq( 450 ((s3.valid && s3.hasRedirect) -> BP_S3), 451 ((s2.valid && s2.hasRedirect) -> BP_S2), 452 (s1.valid -> BP_S1) 453 )) 454 def lastStage = s3 455} 456 457class BpuToFtqBundle(implicit p: Parameters) extends BranchPredictionResp with HasBPUConst { 458 val meta = UInt(MaxMetaLength.W) 459} 460 461object BpuToFtqBundle { 462 def apply(resp: BranchPredictionResp)(implicit p: Parameters): BpuToFtqBundle = { 463 val e = Wire(new BpuToFtqBundle()) 464 e.s1 := resp.s1 465 e.s2 := resp.s2 466 e.s3 := resp.s3 467 468 e.meta := DontCare 469 e 470 } 471} 472 473class BranchPredictionUpdate(implicit p: Parameters) extends BranchPredictionBundle with HasBPUConst { 474 val mispred_mask = Vec(numBr+1, Bool()) 475 val false_hit = Bool() 476 val new_br_insert_pos = Vec(numBr, Bool()) 477 val old_entry = Bool() 478 val meta = UInt(MaxMetaLength.W) 479 val full_target = UInt(VAddrBits.W) 480 481 def fromFtqRedirectSram(entry: Ftq_Redirect_SRAMEntry) = { 482 folded_hist := entry.folded_hist 483 histPtr := entry.histPtr 484 phist := entry.phist 485 rasSp := entry.rasSp 486 rasTop := entry.rasEntry 487 specCnt := entry.specCnt 488 this 489 } 490 491 override def display(cond: Bool) = { 492 XSDebug(cond, p"-----------BranchPredictionUpdate-----------\n") 493 XSDebug(cond, p"[mispred_mask] ${Binary(mispred_mask.asUInt)} [false_hit] $false_hit\n") 494 XSDebug(cond, p"[new_br_insert_pos] ${Binary(new_br_insert_pos.asUInt)}\n") 495 super.display(cond) 496 XSDebug(cond, p"--------------------------------------------\n") 497 } 498} 499 500class BranchPredictionRedirect(implicit p: Parameters) extends Redirect with HasBPUConst { 501 // override def toPrintable: Printable = { 502 // p"-----------BranchPredictionRedirect----------- " + 503 // p"-----------cfiUpdate----------- " + 504 // p"[pc] ${Hexadecimal(cfiUpdate.pc)} " + 505 // p"[predTaken] ${cfiUpdate.predTaken}, [taken] ${cfiUpdate.taken}, [isMisPred] ${cfiUpdate.isMisPred} " + 506 // p"[target] ${Hexadecimal(cfiUpdate.target)} " + 507 // p"------------------------------- " + 508 // p"[robPtr] f=${robIdx.flag} v=${robIdx.value} " + 509 // p"[ftqPtr] f=${ftqIdx.flag} v=${ftqIdx.value} " + 510 // p"[ftqOffset] ${ftqOffset} " + 511 // p"[level] ${level}, [interrupt] ${interrupt} " + 512 // p"[stFtqIdx] f=${stFtqIdx.flag} v=${stFtqIdx.value} " + 513 // p"[stFtqOffset] ${stFtqOffset} " + 514 // p"\n" 515 516 // } 517 518 def display(cond: Bool): Unit = { 519 XSDebug(cond, p"-----------BranchPredictionRedirect----------- \n") 520 XSDebug(cond, p"-----------cfiUpdate----------- \n") 521 XSDebug(cond, p"[pc] ${Hexadecimal(cfiUpdate.pc)}\n") 522 // XSDebug(cond, p"[hist] ${Binary(cfiUpdate.hist.predHist)}\n") 523 XSDebug(cond, p"[br_hit] ${cfiUpdate.br_hit} [isMisPred] ${cfiUpdate.isMisPred}\n") 524 XSDebug(cond, p"[pred_taken] ${cfiUpdate.predTaken} [taken] ${cfiUpdate.taken} [isMisPred] ${cfiUpdate.isMisPred}\n") 525 XSDebug(cond, p"[target] ${Hexadecimal(cfiUpdate.target)} \n") 526 XSDebug(cond, p"[shift] ${cfiUpdate.shift}\n") 527 XSDebug(cond, p"------------------------------- \n") 528 XSDebug(cond, p"[robPtr] f=${robIdx.flag} v=${robIdx.value}\n") 529 XSDebug(cond, p"[ftqPtr] f=${ftqIdx.flag} v=${ftqIdx.value} \n") 530 XSDebug(cond, p"[ftqOffset] ${ftqOffset} \n") 531 XSDebug(cond, p"[stFtqIdx] f=${stFtqIdx.flag} v=${stFtqIdx.value}\n") 532 XSDebug(cond, p"[stFtqOffset] ${stFtqOffset}\n") 533 XSDebug(cond, p"---------------------------------------------- \n") 534 } 535} 536