提交 19f3df6f 编写于 作者: W William Wang

Lsroq: fix scommit debug counter

上级 28107c40
......@@ -326,11 +326,6 @@ class Lsroq extends XSModule {
// send commited store inst to sbuffer
// select up to 2 writebacked store insts
// scommitPending, scommitIn, scommitOut are for debug only
val scommitPending = RegInit(0.U(log2Up(LsroqSize).W))
val scommitIn = PopCount(VecInit(storeCommit).asUInt)
val scommitOut = PopCount(VecInit((0 until 2).map(i => io.sbuffer(i).fire())).asUInt)
scommitPending := scommitPending + scommitIn - scommitOut
val commitedStoreQueue = Module(new MIMOQueue(
UInt(InnerLsroqIdxWidth.W),
entries = LsroqSize,
......@@ -340,6 +335,12 @@ class Lsroq extends XSModule {
perf = true
))
// scommit counter for debugging
val scommitPending = RegInit(0.U(log2Up(LsroqSize).W))
val scommitIn = PopCount(VecInit(storeCommit).asUInt)
val scommitOut = PopCount(VecInit((0 until 2).map(i => commitedStoreQueue.io.deq(i).fire())).asUInt)
scommitPending := scommitPending + scommitIn - scommitOut
commitedStoreQueue.io.flush := false.B
// When store commited, mark it as commited (will not be influenced by redirect),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册