We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 82b1f82 + 31e4012 commit d7effaaCopy full SHA for d7effaa
src/main/scala/rocket/CSR.scala
@@ -325,8 +325,8 @@ class VConfig(implicit p: Parameters) extends CoreBundle {
325
326
object VType {
327
def fromUInt(that: UInt, ignore_vill: Boolean = false)(implicit p: Parameters): VType = {
328
- val res = 0.U.asTypeOf(new VType)
329
- val in = that.asTypeOf(res)
+ val res = WireInit(0.U.asTypeOf(new VType))
+ val in = that.asTypeOf(new VType)
330
val vill = (in.max_vsew.U < in.vsew) || !in.lmul_ok || in.reserved =/= 0.U || in.vill
331
when (!vill || ignore_vill.B) {
332
res := in
0 commit comments