Skip to content

Commit

Permalink
MEFreeList: use tailPtr instead of tailPtrNext in free reg cnt
Browse files Browse the repository at this point in the history
  • Loading branch information
YikeZhou committed Sep 6, 2021
1 parent 31ebfb1 commit e92092e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -282,7 +282,7 @@ class MEFreeList(implicit val p: config.Parameters) extends MultiIOModule with M
Mux(walk, headPtr - PopCount(freeReq.zip(eliminatedMove).map{ case (rq, em) => rq && !em }),
headPtr + PopCount(needAllocatingVec))) // when io.redirect is valid, needAllocatingVec is all-zero

freeRegCnt := distanceBetween(tailPtrNext, headPtrNext)
freeRegCnt := distanceBetween(tailPtr, headPtrNext)
canAllocate := RegNext(freeRegCnt >= RenameWidth.U)

headPtr := headPtrNext
Expand Down

0 comments on commit e92092e

Please sign in to comment.