diff options
Diffstat (limited to 'src/test/scala')
| -rw-r--r-- | src/test/scala/chiselTests/CompatibilitySpec.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/scala/chiselTests/CompatibilitySpec.scala b/src/test/scala/chiselTests/CompatibilitySpec.scala index eb38cab1..339f2af1 100644 --- a/src/test/scala/chiselTests/CompatibilitySpec.scala +++ b/src/test/scala/chiselTests/CompatibilitySpec.scala @@ -322,4 +322,18 @@ class CompatibiltySpec extends ChiselFlatSpec with GeneratorDrivenPropertyChecks }) } + "Chisel3 IO constructs" should "be useable in Chisel2" in { + import Chisel._ + elaborate(new Module { + val io = IO(new Bundle { + val in = Input(Bool()) + val foo = Output(Bool()) + val bar = Flipped(Bool()) + }) + Chisel.assert(io.in.dir == INPUT) + Chisel.assert(io.foo.dir == OUTPUT) + Chisel.assert(io.bar.dir == INPUT) + }) + } + } |
