Skip to content

Commit

Permalink
Fix vlMax computation
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed May 14, 2024
1 parent 4bd4675 commit 10bc824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/rocket/RocketCore.scala
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ class Rocket(tile: RocketTile)(implicit p: Parameters) extends CoreModule()(p)
val (ex_new_vl, ex_new_vconfig) = if (usingVector) {
val ex_avl = Mux(ex_ctrl.rxs1,
Mux(ex_reg_inst(19,15) === 0.U,
Mux(ex_reg_inst(11,6) === 0.U, csr.io.vector.get.vconfig.vl, ~(0.U((1+log2Ceil(maxVLMax)).W))),
Mux(ex_reg_inst(11,6) === 0.U, csr.io.vector.get.vconfig.vl, csr.io.vector.get.vconfig.vtype.vlMax),
ex_rs(0)
),
ex_reg_inst(19,15))
Expand Down

0 comments on commit 10bc824

Please sign in to comment.