提交 a99312e1 编写于 作者: Z ZhangZifei

RS-sep: fix bug of srcQueue idx when moveMask is true

上级 392105f6
......@@ -222,11 +222,13 @@ class ReservationStationCtrl
}
// wakeup
srcQueue.zipWithIndex.map{ case (src, i) =>
for(i <- 0 until IssQueSize) {
val hitVec = io.data.srcUpdate(idxQueue(i))
src.zipWithIndex.map{ case (s, j) =>
when (hitVec(j) && validQueue(i)) { s := true.B }
XSDebug(validQueue(i) && hitVec(j), p"srcHit: i:${i.U} j:${j.U}\n")
for(j <- 0 until srcNum) {
when (hitVec(j) && validQueue(i)) {
srcQueue(i.U - moveMask(i))(j) := true.B
XSDebug(p"srcHit: i:${i.U} j:${j.U}\n")
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册