diff options
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/scala/chiselTests/CompatibilitySpec.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/scala/chiselTests/CompatibilitySpec.scala b/src/test/scala/chiselTests/CompatibilitySpec.scala index 9a00ac0f..9584e82a 100644 --- a/src/test/scala/chiselTests/CompatibilitySpec.scala +++ b/src/test/scala/chiselTests/CompatibilitySpec.scala @@ -382,4 +382,20 @@ class CompatibiltySpec extends ChiselFlatSpec with GeneratorDrivenPropertyChecks elaborate(new Foo) } + behavior of "Queue" + + it should "support deprecated constructors" in { + class Foo extends Module { + val io = IO(new Bundle{}) + + info("reset: Option[Bool] constructor works") + val option = Module(new Queue(UInt(), 4, false, false, Some(Bool(true)))) + + info("reset: Bool constructor works") + val explicit = Module(new Queue(UInt(), 4, false, false, Bool(true))) + } + + elaborate(new Foo) + } + } |
