summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/Vec.scala
diff options
context:
space:
mode:
authorRichard Lin2019-01-21 21:31:06 -0800
committerGitHub2019-01-21 21:31:06 -0800
commit99bb15f13491637f1c7ce58edb5ba494efc810dc (patch)
treeb257572551776759c29876fff68aa9f079498eb1 /src/test/scala/chiselTests/Vec.scala
parent9e992816e570284193e121cd9c24503fd8cb4427 (diff)
Support DontCare in Mux and cloneSupertype (#995)
Diffstat (limited to 'src/test/scala/chiselTests/Vec.scala')
-rw-r--r--src/test/scala/chiselTests/Vec.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/scala/chiselTests/Vec.scala b/src/test/scala/chiselTests/Vec.scala
index 395624f7..d8e3be10 100644
--- a/src/test/scala/chiselTests/Vec.scala
+++ b/src/test/scala/chiselTests/Vec.scala
@@ -265,4 +265,13 @@ class VecSpec extends ChiselPropSpec {
})
}
}
+
+ property("It should be possible to initialize a Vec with DontCare") {
+ elaborate(new Module {
+ val io = IO(new Bundle {
+ val out = Output(Vec(4, UInt(8.W)))
+ })
+ io.out := VecInit(Seq(4.U, 5.U, DontCare, 2.U))
+ })
+ }
}