Skip to content

Commit

Permalink
[rtl]Modify the calculation of overlap in slide.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinjun-li committed Jan 25, 2024
1 parent ab10f08 commit b3ea154
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions t1/src/V.scala
Original file line number Diff line number Diff line change
Expand Up @@ -863,8 +863,9 @@ class V(val parameter: VParameter) extends Module with SerializableModule[VParam
val accessLane = if (parameter.laneNumber > 1) dataPosition(log2Ceil(parameter.laneNumber) + 1, 2) else 0.U(1.W)
// 32 bit / group
val dataGroup = (dataPosition >> (log2Ceil(parameter.laneNumber) + 2)).asUInt
val offset = dataGroup(1, 0)
val accessRegGrowth = (dataGroup >> 2).asUInt
val offsetWidth: Int = parameter.laneParam.vrfParam.vrfOffsetBits
val offset = dataGroup(offsetWidth - 1, 0)
val accessRegGrowth = (dataGroup >> offsetWidth).asUInt
val decimalProportion = offset ## accessLane
// 1/8 register
val decimal = decimalProportion(decimalProportion.getWidth -1, 0 max (decimalProportion.getWidth - 3))
Expand Down

0 comments on commit b3ea154

Please sign in to comment.