提交 0a85f766 编写于 作者: Y Yinan Xu

dispatch2Ls: allow 2Load + 2Store

上级 a30ad2ff
......@@ -84,8 +84,7 @@ class Dispatch2Ls extends XSModule {
*/
for (i <- 0 until exuParameters.LsExuCnt) {
val enq = io.enqIQCtrl(i)
// TODO: cache only has 1 load and 1 store
enq.valid := (if (i % 2 == 1) false.B else validVec(i))
enq.valid := validVec(i)
enq.bits := io.fromDq(indexVec(i)).bits
enq.bits.src1State := io.intRegRdy(readPort(i))
if (i < exuParameters.LduCnt) {
......@@ -105,8 +104,7 @@ class Dispatch2Ls extends XSModule {
* Part 4: response to dispatch queue
*/
for (i <- 0 until dpParams.LsDqDeqWidth) {
// TODO: cache only has 1 load and 1 store
io.fromDq(i).ready := rsValidVec(i) && Mux(rsIndexVec(i)(0) === 1.U, false.B, io.enqIQCtrl(rsIndexVec(i)).ready)
io.fromDq(i).ready := rsValidVec(i) && io.enqIQCtrl(rsIndexVec(i)).ready
XSInfo(io.fromDq(i).fire(),
p"pc 0x${Hexadecimal(io.fromDq(i).bits.cf.pc)} leaves Ls dispatch queue $i with nroq ${io.fromDq(i).bits.roqIdx}\n")
......
......@@ -277,8 +277,7 @@ class IssueQueue
// assign outputs
// TODO currently set to zero
io.numExist := 0.U//Mux(isFull, (qsize-1).U, tailPtr)
io.numExist := Mux(isFull, (qsize-1).U, tailPtr)
// Debug sigs
XSInfo(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册