Skip to content

Commit

Permalink
[rtl] fix read queue.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinjun-li committed Nov 15, 2024
1 parent b3a8c04 commit ec1f32e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion t1/src/mask/MaskUnit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec1f32e

Please sign in to comment.