Skip to content

Commit

Permalink
Pass vxrm to vector impl
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed Nov 28, 2023
1 parent f51bca4 commit 9dc08fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/scala/rocket/RocketCore.scala
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,7 @@ class Rocket(tile: RocketTile)(implicit p: Parameters) extends CoreModule()(p)
csr.io.tval := v.wb.tval
}
}
v.wb.vxrm := csr.io.vector.get.vxrm
csr.io.vector.get.set_vxsat := v.set_vxsat
when (v.set_vconfig.valid) {
csr.io.vector.get.set_vconfig.valid := true.B
Expand Down
1 change: 1 addition & 0 deletions src/main/scala/rocket/VectorUnit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class VectorCoreIO(implicit p: Parameters) extends CoreBundle()(p) {
val xcpt = Output(Bool())
val cause = Output(UInt(log2Ceil(Causes.all.max).W))
val tval = Output(UInt(coreMaxAddrBits.W))
val vxrm = Input(UInt(2.W))
}
val set_vstart = Valid(UInt(log2Ceil(maxVLMax).W))
val set_vxsat = Output(Bool())
Expand Down

0 comments on commit 9dc08fe

Please sign in to comment.