提交 6ed73282 编写于 作者: Z ZhangZifei

RS: fix bug of rs redirect bug of stateQueue

上级 a1f32e2f
...@@ -170,7 +170,7 @@ class ReservationStationCtrl ...@@ -170,7 +170,7 @@ class ReservationStationCtrl
// redirect and feedback // redirect and feedback
for (i <- 0 until iqSize) { for (i <- 0 until iqSize) {
val cnt = cntQueue(idxQueue(i)) val cnt = cntQueue(idxQueue(i))
when (!(deqIdx === i.U && deqValid)) {
if (i != 0) { // TODO: combine the two case if (i != 0) { // TODO: combine the two case
val nextIdx = i.U - moveMask(i-1) val nextIdx = i.U - moveMask(i-1)
when (stateQueue(i)===s_replay) { when (stateQueue(i)===s_replay) {
...@@ -194,6 +194,7 @@ class ReservationStationCtrl ...@@ -194,6 +194,7 @@ class ReservationStationCtrl
} }
when (redHitVec(i)) { stateQueue(nextIdx) := s_idle } when (redHitVec(i)) { stateQueue(nextIdx) := s_idle }
}} }}
}
} }
// output // output
...@@ -454,4 +455,4 @@ class ReservationStationData ...@@ -454,4 +455,4 @@ class ReservationStationData
p"${Binary(io.ctrl.srcUpdate(i).asUInt)}|${uop(i).pdest}:${uop(i).ctrl.rfWen}:" + p"${Binary(io.ctrl.srcUpdate(i).asUInt)}|${uop(i).pdest}:${uop(i).ctrl.rfWen}:" +
p"${uop(i).ctrl.fpWen}|${uop(i).roqIdx} |${Hexadecimal(uop(i).cf.pc)}\n") p"${uop(i).ctrl.fpWen}|${uop(i).roqIdx} |${Hexadecimal(uop(i).cf.pc)}\n")
} }
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册