summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSchuyler Eldridge2019-07-31 13:41:53 -0400
committerSchuyler Eldridge2019-07-31 15:53:26 -0400
commita16743208a0b3a5f075585dd0c3f7c96b4f5994a (patch)
treed42b2ef0b272f90f05379111ce1c2c16542e3310
parent182e8781473b72e3a086dbf806081639d52aac06 (diff)
Add Queue deprecated compatibility tests
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
-rw-r--r--src/test/scala/chiselTests/CompatibilitySpec.scala16
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)
+ }
+
}