提交 a99312e1 编写于 作者: Z ZhangZifei

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

上级 392105f6
...@@ -222,11 +222,13 @@ class ReservationStationCtrl ...@@ -222,11 +222,13 @@ class ReservationStationCtrl
} }
// wakeup // wakeup
srcQueue.zipWithIndex.map{ case (src, i) => for(i <- 0 until IssQueSize) {
val hitVec = io.data.srcUpdate(idxQueue(i)) val hitVec = io.data.srcUpdate(idxQueue(i))
src.zipWithIndex.map{ case (s, j) => for(j <- 0 until srcNum) {
when (hitVec(j) && validQueue(i)) { s := true.B } when (hitVec(j) && validQueue(i)) {
XSDebug(validQueue(i) && hitVec(j), p"srcHit: i:${i.U} j:${j.U}\n") 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.
先完成此消息的编辑!
想要评论请 注册