Skip to content

Commit

Permalink
vperm: fix the width of slide element
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziyue-Zhang authored and xiaofeibao-xjtu committed May 27, 2024
1 parent e1bc413 commit 1fd2c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/yunsuan/vector/VectorPerm/Permutation.scala
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ class Permutation extends Module {
}

// vslideup/vslide1up
val slide_ele = Mux(vslide1up || vslide1dn, 1.U, vs1(xLen, 0))
val slide_ele = Mux(vslide1up || vslide1dn, 1.U, vs1(xLen - 1, 0))
val slide_bytes = slide_ele << vsew
val vslideup_vd_reg0 = Wire(Vec(vlenb, UInt(8.W)))
val vslide1up_vd_reg0 = Wire(Vec(vlenb, UInt(8.W)))
Expand Down

0 comments on commit 1fd2c63

Please sign in to comment.