From a16743208a0b3a5f075585dd0c3f7c96b4f5994a Mon Sep 17 00:00:00 2001 From: Schuyler Eldridge Date: Wed, 31 Jul 2019 13:41:53 -0400 Subject: Add Queue deprecated compatibility tests Signed-off-by: Schuyler Eldridge --- src/test/scala/chiselTests/CompatibilitySpec.scala | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src') 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) + } + } -- cgit v1.2.3