summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/CompatibilitySpec.scala
diff options
context:
space:
mode:
authorJack Koenig2017-08-07 16:19:10 -0700
committerJack Koenig2017-08-08 10:30:54 -0700
commit5b6802e8f231805f638f8fe057bee342a56a78e7 (patch)
treebec698065d234e94e1264b150de039f5cac6c071 /src/test/scala/chiselTests/CompatibilitySpec.scala
parent156435b80e32175883be21c7ab53784dd94f5c53 (diff)
Give default direction to children of Vecs in compatibility code
Diffstat (limited to 'src/test/scala/chiselTests/CompatibilitySpec.scala')
-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)
+ })
+ }
}