From 98e4c7ad23b082d82446722f208c22ba9ddad509 Mon Sep 17 00:00:00 2001 From: qinjun-li Date: Thu, 23 May 2024 16:13:17 +0800 Subject: [PATCH] [rtl] fix the stall of sourceQueue. --- t1/src/lsu/LSU.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t1/src/lsu/LSU.scala b/t1/src/lsu/LSU.scala index ea850c7c4..62b36e8d4 100644 --- a/t1/src/lsu/LSU.scala +++ b/t1/src/lsu/LSU.scala @@ -399,7 +399,7 @@ class LSU(param: LSUParameter) extends Module { // 选出一个请求连到 a 通道上 val selectBits = Mux1H(requestSelect, Seq(loadUnit.tlPortA.bits, storeRequest.bits, otherUnit.tlPort.a.bits)) - port.valid := storeRequest.valid || ((loadTryToUse || otherTryToUse) && portFree) + port.valid := (storeRequest.valid || ((loadTryToUse || otherTryToUse) && portFree)) && sourceQueue.io.enq.ready port.bits := selectBits port.bits.source := selectIndex