Skip to content

Commit

Permalink
fix vs1 and vs2 error
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-Wye committed Aug 2, 2024
1 parent 79cdfd8 commit 9b269de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t1/src/LaneZvbb.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class LaneZvbb(val parameter: LaneZvbbParam)
val response: LaneZvbbResponse = Wire(new LaneZvbbResponse(parameter.datapathWidth))
val request : LaneZvbbRequest = connectIO(response).asTypeOf(parameter.inputBundle)

val zvbbSrc: UInt = request.src(0) // vs2
val zvbbRs: UInt = request.src(1) // vs1 or rs1
val zvbbSrc: UInt = request.src(0) // vs1 or rs1
val zvbbRs: UInt = request.src(1) // vs2

val zvbbBRev = VecInit(zvbbSrc(parameter.datapathWidth-1, 0).asBools.reverse).asUInt // element's bit reverse
val zvbbBRev8 = VecInit(zvbbSrc(parameter.datapathWidth-1, 0).asBools.grouped(8).map(s => VecInit(s.reverse)).toSeq).asUInt // byte's bit reverse
Expand Down

0 comments on commit 9b269de

Please sign in to comment.