Skip to content

Commit

Permalink
Support v-impls which issue vconfig to backend
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed Mar 20, 2024
1 parent 527560a commit 0b2d940
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/rocket/RocketCore.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ class Rocket(tile: RocketTile)(implicit p: Parameters) extends CoreModule()(p)
io.fpu.v_sew := csr.io.vector.map(_.vconfig.vtype.vsew).getOrElse(0.U)

io.vector.foreach { v =>
v.ex.valid := ex_reg_valid && ex_ctrl.vec && !ctrl_killx
v.ex.valid := ex_reg_valid && (ex_ctrl.vec || rocketParams.vector.get.issueVConfig.B && ex_reg_set_vconfig) && !ctrl_killx
v.ex.inst := ex_reg_inst
v.ex.vconfig := csr.io.vector.get.vconfig
v.ex.vstart := Mux(mem_reg_valid && mem_ctrl.vec || wb_reg_valid && wb_ctrl.vec, 0.U, csr.io.vector.get.vstart)
Expand Down
3 changes: 2 additions & 1 deletion src/main/scala/rocket/VectorUnit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ case class RocketCoreVectorParams(
vLen: Int,
vMemDataBits: Int,
decoder: Parameters => RocketVectorDecoder,
useDCache: Boolean
useDCache: Boolean,
issueVConfig: Boolean
)

class VectorCoreIO(implicit p: Parameters) extends CoreBundle()(p) {
Expand Down

0 comments on commit 0b2d940

Please sign in to comment.