Skip to content

Commit d7effaa

Browse files
authored
Merge pull request #3758 from chipsalliance/chisel7-fix
Fix for chisel7 compatibility
2 parents 82b1f82 + 31e4012 commit d7effaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/rocket/CSR.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@ class VConfig(implicit p: Parameters) extends CoreBundle {
325325

326326
object VType {
327327
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)
328+
val res = WireInit(0.U.asTypeOf(new VType))
329+
val in = that.asTypeOf(new VType)
330330
val vill = (in.max_vsew.U < in.vsew) || !in.lmul_ok || in.reserved =/= 0.U || in.vill
331331
when (!vill || ignore_vill.B) {
332332
res := in

0 commit comments

Comments
 (0)