Skip to content

Commit

Permalink
[rtl] fix ffoIndex width.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinjun-li authored and sequencer committed Oct 16, 2024
1 parent c312572 commit 69a7240
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion t1/src/laneStage/LaneExecutionBridge.scala
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class LaneExecuteRequest(parameter: LaneParameter, isLastSlot: Boolean) extends

class LaneExecuteResponse(parameter: LaneParameter, isLastSlot: Boolean) extends Bundle {
val data: UInt = UInt(parameter.datapathWidth.W)
val ffoIndex: UInt = UInt(log2Ceil(parameter.vLen / 8).W)
val ffoIndex: UInt = UInt(log2Ceil(parameter.vLen / parameter.laneNumber).W)
val crossWriteData: Option[Vec[UInt]] = Option.when(isLastSlot)(Vec(2, UInt(parameter.datapathWidth.W)))
val ffoSuccess: Option[Bool] = Option.when(isLastSlot)(Bool())
val fpReduceValid: Option[Bool] = Option.when(parameter.fpuEnable && isLastSlot)(Bool())
Expand Down
2 changes: 1 addition & 1 deletion t1/src/laneStage/LaneStage3.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class LaneStage3Enqueue(parameter: LaneParameter, isLastSlot: Boolean) extends B
val data: UInt = UInt(parameter.datapathWidth.W)
val pipeData: UInt = UInt(parameter.datapathWidth.W)
val mask: UInt = UInt((parameter.datapathWidth / 8).W)
val ffoIndex: UInt = UInt(log2Ceil(parameter.vLen / 8).W)
val ffoIndex: UInt = UInt(log2Ceil(parameter.vLen / parameter.laneNumber).W)
val crossWriteData: Vec[UInt] = Vec(2, UInt(parameter.datapathWidth.W))
val sSendResponse: Bool = Bool()
val ffoSuccess: Bool = Bool()
Expand Down

0 comments on commit 69a7240

Please sign in to comment.