From ec1f32ed67f585b68277b49c489027556044ca97 Mon Sep 17 00:00:00 2001 From: qinjun-li Date: Fri, 15 Nov 2024 13:10:11 +0800 Subject: [PATCH] [rtl] fix read queue. --- t1/src/mask/MaskUnit.scala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/t1/src/mask/MaskUnit.scala b/t1/src/mask/MaskUnit.scala index 61a8145e6..4a4c61203 100644 --- a/t1/src/mask/MaskUnit.scala +++ b/t1/src/mask/MaskUnit.scala @@ -775,7 +775,11 @@ class MaskUnit(parameter: T1Parameter) extends Module { } // pipe read fire - val pipeRead = Pipe(readChannel(index).fire, sourceLane, readVRFLatency) + val pipeRead = Pipe( + readChannel(index).fire && !maskDestinationType, + sourceLane, + readVRFLatency + ) val pipeOffset = Pipe(readChannel(index).fire, request.bits.dataOffset, readVRFLatency) write1HPipe(index) := Mux(pipeRead.valid, pipeRead.bits, 0.U(parameter.laneNumber.W)) pipeDataOffset(index) := pipeOffset.bits