Skip to content

Commit

Permalink
[rtl] fix elementMask for vrf instructionWriteReport.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinjun-li authored and sequencer committed Oct 18, 2024
1 parent 312ccba commit 4bb5c51
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions t1/src/Lane.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1154,9 +1154,11 @@ class Lane(val parameter: LaneParameter) extends Module with SerializableModule[
lastWriteOH
)
)
val shifterMask: UInt = (((selectMask ## Fill(32, true.B))
// 8 register
val paddingSize: Int = elementSizeForOneRegister * 8
val shifterMask: UInt = (((selectMask ## Fill(paddingSize, true.B))
<< laneRequest.bits.vd(2, 0) ## 0.U(log2Ceil(elementSizeForOneRegister).W))
>> 32).asUInt
>> paddingSize).asUInt

vrf.instructionWriteReport.bits.elementMask := shifterMask

Expand Down

0 comments on commit 4bb5c51

Please sign in to comment.