From 5b6802e8f231805f638f8fe057bee342a56a78e7 Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Mon, 7 Aug 2017 16:19:10 -0700 Subject: Give default direction to children of Vecs in compatibility code --- src/test/scala/chiselTests/CompatibilitySpec.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') 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) + }) + } } -- cgit v1.2.3