summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scala/chiselTests/CompatibilitySpec.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/scala/chiselTests/CompatibilitySpec.scala b/src/test/scala/chiselTests/CompatibilitySpec.scala
index f3934f76..abbc040a 100644
--- a/src/test/scala/chiselTests/CompatibilitySpec.scala
+++ b/src/test/scala/chiselTests/CompatibilitySpec.scala
@@ -249,4 +249,15 @@ class CompatibiltySpec extends ChiselFlatSpec with GeneratorDrivenPropertyChecks
}
elaborate { new DirectionLessConnectionModule() }
}
+
+ "Vec ports" should "give default directions to children so they can be used in chisel3.util" in {
+ import Chisel._
+ elaborate(new Module {
+ val io = new Bundle {
+ val in = Vec(1, UInt(width = 8)).flip
+ val out = UInt(width = 8)
+ }
+ io.out := RegEnable(io.in(0), true.B)
+ })
+ }
}