From 444d8c837e2f96eceb8909340c0475286678be83 Mon Sep 17 00:00:00 2001 From: qinjun-li Date: Tue, 24 Dec 2024 11:29:58 +0800 Subject: [PATCH] [rtl] Fix the arrival time of lsu's lastreport. --- t1/src/T1.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t1/src/T1.scala b/t1/src/T1.scala index dc76eb784..af0cbf3cf 100644 --- a/t1/src/T1.scala +++ b/t1/src/T1.scala @@ -791,7 +791,10 @@ class T1(val parameter: T1Parameter) maskUnit.io.v0UpdateVec(index) <> lane.v0Update lsu.v0UpdateVec(index) <> lane.v0Update - lane.lsuLastReport := lsu.lastReport | maskUnit.io.lastReport + // Must arrive after the instruction request + val lsuLastPipe: UInt = Pipe(true.B, lsu.lastReport, parameter.laneRequestShifterSize(index)).bits + val maskLastPipe: UInt = Pipe(true.B, maskUnit.io.lastReport, parameter.laneRequestShifterSize(index)).bits + lane.lsuLastReport := lsuLastPipe | maskLastPipe lane.loadDataInLSUWriteQueue := lsu.dataInWriteQueue(index) // 2 + 3 = 5