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 ***************************************************************************************/ 16 17package xiangshan.mem 18 19import org.chipsalliance.cde.config.Parameters 20import chisel3._ 21import chisel3.util._ 22import utils._ 23import utility._ 24import xiangshan._ 25import xiangshan.backend.rob.RobPtr 26import xiangshan.backend.Bundles._ 27import xiangshan.ExceptionNO._ 28import xiangshan.mem._ 29import xiangshan.backend.fu.FuType 30import xiangshan.backend.fu.FuConfig._ 31import xiangshan.backend.datapath.NewPipelineConnect 32import freechips.rocketchip.diplomacy.BufferParams 33 34class MBufferBundle(implicit p: Parameters) extends VLSUBundle{ 35 val data = UInt(VLEN.W) 36 val mask = UInt(VLENB.W) 37 val flowNum = UInt(flowIdxBits.W) 38 val exceptionVec = ExceptionVec() 39 val uop = new DynInst 40 // val vdOffset = UInt(vOffsetBits.W) 41 val sourceType = VSFQFeedbackType() 42 val flushState = Bool() 43 val vdIdx = UInt(3.W) 44 val elemIdx = UInt(elemIdxBits.W) // element index 45 // for exception 46 val vstart = UInt(elemIdxBits.W) 47 val vl = UInt(elemIdxBits.W) 48 val vaNeedExt = Bool() 49 val vaddr = UInt(XLEN.W) 50 val gpaddr = UInt(GPAddrBits.W) 51 val isForVSnonLeafPTE= Bool() 52 val fof = Bool() 53 val vlmax = UInt(elemIdxBits.W) 54 55 def allReady(): Bool = (flowNum === 0.U) 56} 57 58abstract class BaseVMergeBuffer(isVStore: Boolean=false)(implicit p: Parameters) extends VLSUModule{ 59 val io = IO(new VMergeBufferIO(isVStore)) 60 61 // freeliset: store valid entries index. 62 // +---+---+--------------+-----+-----+ 63 // | 0 | 1 | ...... | n-2 | n-1 | 64 // +---+---+--------------+-----+-----+ 65 val freeList: FreeList 66 val uopSize: Int 67 val enqWidth = io.fromSplit.length 68 val deqWidth = io.uopWriteback.length 69 val pipeWidth = io.fromPipeline.length 70 lazy val fuCfg = if (isVStore) VstuCfg else VlduCfg 71 72 def EnqConnect(source: MergeBufferReq, sink: MBufferBundle) = { 73 sink.data := source.data 74 sink.mask := source.mask 75 sink.flowNum := source.flowNum 76 sink.exceptionVec := ExceptionNO.selectByFu(0.U.asTypeOf(ExceptionVec()), fuCfg) 77 sink.uop := source.uop 78 sink.sourceType := 0.U.asTypeOf(VSFQFeedbackType()) 79 sink.flushState := false.B 80 sink.vdIdx := source.vdIdx 81 sink.elemIdx := Fill(elemIdxBits, 1.U) 82 sink.fof := source.fof 83 sink.vlmax := source.vlmax 84 sink.vl := source.uop.vpu.vl 85 sink.vaddr := source.vaddr 86 sink.vstart := 0.U 87 } 88 def DeqConnect(source: MBufferBundle): MemExuOutput = { 89 val sink = WireInit(0.U.asTypeOf(new MemExuOutput(isVector = true))) 90 sink.data := source.data 91 sink.mask.get := source.mask 92 sink.uop := source.uop 93 sink.uop.exceptionVec := ExceptionNO.selectByFu(source.exceptionVec, fuCfg) 94 sink.uop.vpu.vmask := source.mask 95 sink.debug := 0.U.asTypeOf(new DebugBundle) 96 sink.vdIdxInField.get := source.vdIdx // Mgu needs to use this. 97 sink.vdIdx.get := source.vdIdx 98 sink.uop.vpu.vstart := source.vstart 99 sink.uop.vpu.vl := source.vl 100 sink 101 } 102 def ToLsqConnect(source: MBufferBundle): FeedbackToLsqIO = { 103 val sink = WireInit(0.U.asTypeOf(new FeedbackToLsqIO)) 104 val hasExp = ExceptionNO.selectByFu(source.exceptionVec, fuCfg).asUInt.orR 105 sink.robidx := source.uop.robIdx 106 sink.uopidx := source.uop.uopIdx 107 sink.feedback(VecFeedbacks.COMMIT) := !hasExp 108 sink.feedback(VecFeedbacks.FLUSH) := hasExp 109 sink.feedback(VecFeedbacks.LAST) := true.B 110 sink.vstart := source.vstart // TODO: if lsq need vl for fof? 111 sink.vaddr := source.vaddr 112 sink.vaNeedExt := source.vaNeedExt 113 sink.gpaddr := source.gpaddr 114 sink.isForVSnonLeafPTE := source.isForVSnonLeafPTE 115 sink.vl := source.vl 116 sink.exceptionVec := ExceptionNO.selectByFu(source.exceptionVec, fuCfg) 117 sink 118 } 119 120 121 val entries = Reg(Vec(uopSize, new MBufferBundle)) 122 val needCancel = WireInit(VecInit(Seq.fill(uopSize)(false.B))) 123 val allocated = RegInit(VecInit(Seq.fill(uopSize)(false.B))) 124 val freeMaskVec = WireInit(VecInit(Seq.fill(uopSize)(false.B))) 125 val uopFinish = RegInit(VecInit(Seq.fill(uopSize)(false.B))) 126 val needRSReplay = RegInit(VecInit(Seq.fill(uopSize)(false.B))) 127 // enq, from splitPipeline 128 // val allowEnqueue = 129 val cancelEnq = io.fromSplit.map(_.req.bits.uop.robIdx.needFlush(io.redirect)) 130 val canEnqueue = io.fromSplit.map(_.req.valid) 131 val needEnqueue = (0 until enqWidth).map{i => 132 canEnqueue(i) && !cancelEnq(i) 133 } 134 135 val freeCount = uopSize.U - freeList.io.validCount 136 137 for ((enq, i) <- io.fromSplit.zipWithIndex){ 138 freeList.io.doAllocate(i) := false.B 139 140 freeList.io.allocateReq(i) := true.B 141 142 val offset = PopCount(needEnqueue.take(i)) 143 val canAccept = freeList.io.canAllocate(offset) 144 val enqIndex = freeList.io.allocateSlot(offset) 145 enq.req.ready := freeCount >= (i + 1).U // for better timing 146 147 when(needEnqueue(i) && enq.req.ready){ 148 freeList.io.doAllocate(i) := true.B 149 // enqueue 150 allocated(enqIndex) := true.B 151 uopFinish(enqIndex) := false.B 152 needRSReplay(enqIndex) := false.B 153 154 EnqConnect(enq.req.bits, entries(enqIndex))// initial entry 155 } 156 157 enq.resp.bits.mBIndex := enqIndex 158 enq.resp.bits.fail := false.B 159 enq.resp.valid := freeCount >= (i + 1).U // for better timing 160 } 161 162 //redirect 163 for (i <- 0 until uopSize){ 164 needCancel(i) := entries(i).uop.robIdx.needFlush(io.redirect) && allocated(i) 165 when (needCancel(i)) { 166 allocated(i) := false.B 167 freeMaskVec(i) := true.B 168 uopFinish(i) := false.B 169 needRSReplay(i):= false.B 170 } 171 } 172 freeList.io.free := freeMaskVec.asUInt 173 //pipelineWriteback 174 // handle the situation where multiple ports are going to write the same uop queue entry 175 // select the oldest exception and count the flownum of the pipeline writeback. 176 val mergePortMatrix = Wire(Vec(pipeWidth, Vec(pipeWidth, Bool()))) 177 val mergedByPrevPortVec = Wire(Vec(pipeWidth, Bool())) 178 (0 until pipeWidth).map{case i => (0 until pipeWidth).map{case j => 179 mergePortMatrix(i)(j) := (j == i).B || 180 (j > i).B && 181 io.fromPipeline(j).bits.mBIndex === io.fromPipeline(i).bits.mBIndex && 182 io.fromPipeline(j).valid 183 }} 184 (0 until pipeWidth).map{case i => 185 mergedByPrevPortVec(i) := (i != 0).B && Cat((0 until i).map(j => 186 io.fromPipeline(j).bits.mBIndex === io.fromPipeline(i).bits.mBIndex && 187 io.fromPipeline(j).valid)).orR 188 } 189 dontTouch(mergePortMatrix) 190 dontTouch(mergedByPrevPortVec) 191 192 // for exception, select exception, when multi port writeback exception, we need select oldest one 193 def selectOldest[T <: VecPipelineFeedbackIO](valid: Seq[Bool], bits: Seq[T], sel: Seq[UInt]): (Seq[Bool], Seq[T], Seq[UInt]) = { 194 assert(valid.length == bits.length) 195 assert(valid.length == sel.length) 196 if (valid.length == 0 || valid.length == 1) { 197 (valid, bits, sel) 198 } else if (valid.length == 2) { 199 val res = Seq.fill(2)(Wire(ValidIO(chiselTypeOf(bits(0))))) 200 for (i <- res.indices) { 201 res(i).valid := valid(i) 202 res(i).bits := bits(i) 203 } 204 val oldest = Mux(valid(0) && valid(1), 205 Mux(sel(0) < sel(1), 206 res(0), res(1)), 207 Mux(valid(0) && !valid(1), res(0), res(1))) 208 (Seq(oldest.valid), Seq(oldest.bits), Seq(0.U)) 209 } else { 210 val left = selectOldest(valid.take(valid.length / 2), bits.take(bits.length / 2), sel.take(sel.length / 2)) 211 val right = selectOldest(valid.takeRight(valid.length - (valid.length / 2)), bits.takeRight(bits.length - (bits.length / 2)), sel.takeRight(sel.length - (sel.length / 2))) 212 selectOldest(left._1 ++ right._1, left._2 ++ right._2, left._3 ++ right._3) 213 } 214 } 215 216 val pipeValid = io.fromPipeline.map(_.valid) 217 val pipeBits = io.fromPipeline.map(_.bits) 218 val wbElemIdx = pipeBits.map(_.elemIdx) 219 val wbMbIndex = pipeBits.map(_.mBIndex) 220 val wbElemIdxInField = wbElemIdx.zip(wbMbIndex).map(x => x._1 & (entries(x._2).vlmax - 1.U)) 221 222 val portHasExcp = pipeBits.zip(mergePortMatrix).map{case (port, v) => 223 (0 until pipeWidth).map{case i => 224 val pipeHasExcep = ExceptionNO.selectByFu(port.exceptionVec, fuCfg).asUInt.orR 225 (v(i) && ((pipeHasExcep && io.fromPipeline(i).bits.mask.orR) || TriggerAction.isDmode(port.trigger))) // this port have exception or merged port have exception 226 }.reduce(_ || _) 227 } 228 229 for((pipewb, i) <- io.fromPipeline.zipWithIndex){ 230 val entry = entries(wbMbIndex(i)) 231 val entryVeew = entry.uop.vpu.veew 232 val entryIsUS = LSUOpType.isAllUS(entry.uop.fuOpType) 233 val entryHasException = ExceptionNO.selectByFu(entry.exceptionVec, fuCfg).asUInt.orR 234 val entryExcp = entryHasException && entry.mask.orR 235 val entryVaddr = entry.vaddr 236 val entryVstart = entry.vstart 237 val entryElemIdx = entry.elemIdx 238 239 val sel = selectOldest(mergePortMatrix(i), pipeBits, wbElemIdxInField) 240 val selPort = sel._2 241 val selElemInfield = selPort(0).elemIdx & (entries(wbMbIndex(i)).vlmax - 1.U) 242 val selExceptionVec = selPort(0).exceptionVec 243 val selVaddr = selPort(0).vaddr 244 val selElemIdx = selPort(0).elemIdx 245 246 val isUSFirstUop = !selPort(0).elemIdx.orR 247 // Only the first unaligned uop of unit-stride needs to be offset. 248 // When unaligned, the lowest bit of mask is 0. 249 // example: 16'b1111_1111_1111_0000 250 val firstUnmask = genVFirstUnmask(selPort(0).mask).asUInt 251 val vaddrOffset = Mux(entryIsUS, firstUnmask, 0.U) 252 val vaddr = selVaddr + vaddrOffset 253 val vstart = Mux(entryIsUS, selPort(0).vstart, selElemInfield) 254 255 // select oldest port to raise exception 256 when((((entryElemIdx >= selElemIdx) && entryExcp && portHasExcp(i)) || (!entryExcp && portHasExcp(i))) && pipewb.valid && !mergedByPrevPortVec(i)) { 257 entry.uop.trigger := selPort(0).trigger 258 entry.elemIdx := selElemIdx 259 when(!entry.fof || vstart === 0.U){ 260 // For fof loads, if element 0 raises an exception, vl is not modified, and the trap is taken. 261 entry.vstart := vstart 262 entry.exceptionVec := ExceptionNO.selectByFu(selExceptionVec, fuCfg) 263 entry.vaddr := vaddr 264 entry.vaNeedExt := selPort(0).vaNeedExt 265 entry.gpaddr := selPort(0).gpaddr 266 entry.isForVSnonLeafPTE := selPort(0).isForVSnonLeafPTE 267 }.otherwise{ 268 entry.vl := vstart 269 } 270 } 271 } 272 273 // for pipeline writeback 274 for((pipewb, i) <- io.fromPipeline.zipWithIndex){ 275 val wbIndex = pipewb.bits.mBIndex 276 val flowNumOffset = Mux(pipewb.bits.usSecondInv, 277 2.U, 278 PopCount(mergePortMatrix(i))) 279 val sourceTypeNext = entries(wbIndex).sourceType | pipewb.bits.sourceType 280 val hasExp = ExceptionNO.selectByFu(pipewb.bits.exceptionVec, fuCfg).asUInt.orR 281 282 // if is VLoad, need latch 1 cycle to merge data. only flowNum and wbIndex need to latch 283 val latchWbValid = if(isVStore) pipewb.valid else RegNext(pipewb.valid) 284 val latchWbIndex = if(isVStore) wbIndex else RegEnable(wbIndex, pipewb.valid) 285 val latchFlowNum = if(isVStore) flowNumOffset else RegEnable(flowNumOffset, pipewb.valid) 286 val latchMergeByPre = if(isVStore) mergedByPrevPortVec(i) else RegEnable(mergedByPrevPortVec(i), pipewb.valid) 287 when(latchWbValid && !latchMergeByPre){ 288 entries(latchWbIndex).flowNum := entries(latchWbIndex).flowNum - latchFlowNum 289 } 290 291 when(pipewb.valid){ 292 entries(wbIndex).sourceType := sourceTypeNext 293 entries(wbIndex).flushState := pipewb.bits.flushState 294 } 295 when(pipewb.valid && !pipewb.bits.hit){ 296 needRSReplay(wbIndex) := true.B 297 } 298 pipewb.ready := true.B 299 XSError((entries(latchWbIndex).flowNum - latchFlowNum > entries(latchWbIndex).flowNum) && latchWbValid && !latchMergeByPre, "FlowWriteback overflow!!\n") 300 XSError(!allocated(latchWbIndex) && latchWbValid, "Writeback error flow!!\n") 301 } 302 // for inorder mem asscess 303 io.toSplit := DontCare 304 305 //uopwriteback(deq) 306 for (i <- 0 until uopSize){ 307 when(allocated(i) && entries(i).allReady()){ 308 uopFinish(i) := true.B 309 } 310 } 311 val selPolicy = SelectOne("circ", uopFinish, deqWidth) // select one entry to deq 312 private val pipelineOut = Wire(Vec(deqWidth, DecoupledIO(new MemExuOutput(isVector = true)))) 313 private val writeBackOut = Wire(Vec(deqWidth, DecoupledIO(new MemExuOutput(isVector = true)))) 314 private val writeBackOutExceptionVec = writeBackOut.map(_.bits.uop.exceptionVec) 315 for(((port, lsqport), i) <- (pipelineOut zip io.toLsq).zipWithIndex){ 316 val canGo = port.ready 317 val (selValid, selOHVec) = selPolicy.getNthOH(i + 1) 318 val entryIdx = OHToUInt(selOHVec) 319 val selEntry = entries(entryIdx) 320 val selAllocated = allocated(entryIdx) 321 val selFire = selValid && canGo 322 when(selFire){ 323 freeMaskVec(entryIdx) := selAllocated 324 allocated(entryIdx) := false.B 325 uopFinish(entryIdx) := false.B 326 needRSReplay(entryIdx):= false.B 327 } 328 //writeback connect 329 port.valid := selFire && selAllocated && !needRSReplay(entryIdx) && !selEntry.uop.robIdx.needFlush(io.redirect) 330 port.bits := DeqConnect(selEntry) 331 //to lsq 332 lsqport.bits := ToLsqConnect(selEntry) // when uopwriteback, free MBuffer entry, write to lsq 333 lsqport.valid:= selFire && selAllocated && !needRSReplay(entryIdx) 334 //to RS 335 val feedbackOut = WireInit(0.U.asTypeOf(io.feedback(i).bits)).suggestName(s"feedbackOut_${i}") 336 val feedbackValid = selFire && selAllocated 337 feedbackOut.hit := !needRSReplay(entryIdx) 338 feedbackOut.robIdx := selEntry.uop.robIdx 339 feedbackOut.sourceType := selEntry.sourceType 340 feedbackOut.flushState := selEntry.flushState 341 feedbackOut.dataInvalidSqIdx := DontCare 342 feedbackOut.sqIdx := selEntry.uop.sqIdx 343 feedbackOut.lqIdx := selEntry.uop.lqIdx 344 345 io.feedback(i).valid := RegNext(feedbackValid) 346 io.feedback(i).bits := RegEnable(feedbackOut, feedbackValid) 347 348 NewPipelineConnect( 349 port, writeBackOut(i), writeBackOut(i).fire, 350 Mux(port.fire, 351 selEntry.uop.robIdx.needFlush(io.redirect), 352 writeBackOut(i).bits.uop.robIdx.needFlush(io.redirect)), 353 Option(s"VMergebufferPipelineConnect${i}") 354 ) 355 io.uopWriteback(i) <> writeBackOut(i) 356 io.uopWriteback(i).bits.uop.exceptionVec := ExceptionNO.selectByFu(writeBackOutExceptionVec(i), fuCfg) 357 } 358 359 QueuePerf(uopSize, freeList.io.validCount, freeList.io.validCount === 0.U) 360} 361 362class VLMergeBufferImp(implicit p: Parameters) extends BaseVMergeBuffer(isVStore=false){ 363 override lazy val uopSize = VlMergeBufferSize 364 println(s"VLMergeBuffer Size: ${VlMergeBufferSize}") 365 override lazy val freeList = Module(new FreeList( 366 size = uopSize, 367 allocWidth = VecLoadPipelineWidth, 368 freeWidth = deqWidth, 369 enablePreAlloc = false, 370 moduleName = "VLoad MergeBuffer freelist" 371 )) 372 373 //merge data 374 val flowWbElemIdx = Wire(Vec(pipeWidth, UInt(elemIdxBits.W))) 375 val flowWbElemIdxInVd = Wire(Vec(pipeWidth, UInt(elemIdxBits.W))) 376 val pipewbValidReg = Wire(Vec(pipeWidth, Bool())) 377 val wbIndexReg = Wire(Vec(pipeWidth, UInt(vlmBindexBits.W))) 378 val mergeDataReg = Wire(Vec(pipeWidth, UInt(VLEN.W))) 379 380 val maskWithexceptionMask = io.fromPipeline.map{ x=> 381 Mux( 382 TriggerAction.isExp(x.bits.trigger) || TriggerAction.isDmode(x.bits.trigger), 383 ~x.bits.vecTriggerMask, 384 Fill(x.bits.mask.getWidth, !ExceptionNO.selectByFuAndUnSelect(x.bits.exceptionVec, fuCfg, Seq(breakPoint)).asUInt.orR) 385 ).asUInt & x.bits.mask 386 } 387 388 for((pipewb, i) <- io.fromPipeline.zipWithIndex){ 389 /** step0 **/ 390 val wbIndex = pipewb.bits.mBIndex 391 val alignedType = pipewb.bits.alignedType 392 val elemIdxInsideVd = pipewb.bits.elemIdxInsideVd 393 flowWbElemIdx(i) := pipewb.bits.elemIdx 394 flowWbElemIdxInVd(i) := elemIdxInsideVd.get 395 396 val oldData = PriorityMux(Seq( 397 (pipewbValidReg(0) && (wbIndexReg(0) === wbIndex)) -> mergeDataReg(0), 398 (pipewbValidReg(1) && (wbIndexReg(1) === wbIndex)) -> mergeDataReg(1), 399 (pipewbValidReg(2) && (wbIndexReg(2) === wbIndex)) -> mergeDataReg(2), 400 true.B -> entries(wbIndex).data // default use entries_data 401 )) 402 val mergedData = mergeDataWithElemIdx( 403 oldData = oldData, 404 newData = io.fromPipeline.map(_.bits.vecdata.get), 405 alignedType = alignedType(1,0), 406 elemIdx = flowWbElemIdxInVd, 407 valids = mergePortMatrix(i) 408 ) 409 /* this only for unit-stride load data merge 410 * cycle0: broden 128-bits to 256-bits (max 6 to 1) 411 * cycle1: select 128-bits data from 256-bits (16 to 1) 412 */ 413 val (brodenMergeData, brodenMergeMask) = mergeDataByIndex( 414 data = io.fromPipeline.map(_.bits.vecdata.get).drop(i), 415 mask = maskWithexceptionMask.drop(i), 416 index = io.fromPipeline(i).bits.elemIdxInsideVd.get, 417 valids = mergePortMatrix(i).drop(i) 418 ) 419 /** step1 **/ 420 pipewbValidReg(i) := RegNext(pipewb.valid) 421 wbIndexReg(i) := RegEnable(wbIndex, pipewb.valid) 422 mergeDataReg(i) := RegEnable(mergedData, pipewb.valid) // for not Unit-stride 423 val brodenMergeDataReg = RegEnable(brodenMergeData, pipewb.valid) // only for Unit-stride 424 val brodenMergeMaskReg = RegEnable(brodenMergeMask, pipewb.valid) 425 val mergedByPrevPortReg = RegEnable(mergedByPrevPortVec(i), pipewb.valid) 426 val regOffsetReg = RegEnable(pipewb.bits.reg_offset.get, pipewb.valid) // only for Unit-stride 427 val isusMerge = RegEnable(alignedType(2), pipewb.valid) 428 429 val usSelData = Mux1H(UIntToOH(regOffsetReg), (0 until VLENB).map{case i => getNoAlignedSlice(brodenMergeDataReg, i, 128)}) 430 val usSelMask = Mux1H(UIntToOH(regOffsetReg), (0 until VLENB).map{case i => brodenMergeMaskReg(16 + i - 1, i)}) 431 val usMergeData = mergeDataByByte(entries(wbIndexReg(i)).data, usSelData, usSelMask) 432 when(pipewbValidReg(i) && !mergedByPrevPortReg){ 433 entries(wbIndexReg(i)).data := Mux(isusMerge, usMergeData, mergeDataReg(i)) // if aligned(2) == 1, is Unit-Stride inst 434 } 435 } 436} 437 438class VSMergeBufferImp(implicit p: Parameters) extends BaseVMergeBuffer(isVStore=true){ 439 override lazy val uopSize = VsMergeBufferSize 440 println(s"VSMergeBuffer Size: ${VsMergeBufferSize}") 441 override lazy val freeList = Module(new FreeList( 442 size = uopSize, 443 allocWidth = VecStorePipelineWidth, 444 freeWidth = deqWidth, 445 enablePreAlloc = false, 446 moduleName = "VStore MergeBuffer freelist" 447 )) 448 override def DeqConnect(source: MBufferBundle): MemExuOutput = { 449 val sink = Wire(new MemExuOutput(isVector = true)) 450 sink.data := DontCare 451 sink.mask.get := DontCare 452 sink.uop := source.uop 453 sink.uop.exceptionVec := source.exceptionVec 454 sink.debug := 0.U.asTypeOf(new DebugBundle) 455 sink.vdIdxInField.get := DontCare 456 sink.vdIdx.get := DontCare 457 sink.uop.vpu.vstart := source.vstart 458 sink 459 } 460} 461