diff options
| author | Schuyler Eldridge | 2019-07-31 13:41:53 -0400 |
|---|---|---|
| committer | Schuyler Eldridge | 2019-07-31 15:53:26 -0400 |
| commit | a16743208a0b3a5f075585dd0c3f7c96b4f5994a (patch) | |
| tree | d42b2ef0b272f90f05379111ce1c2c16542e3310 /src/test/scala/chiselTests/CompatibilitySpec.scala | |
| parent | 182e8781473b72e3a086dbf806081639d52aac06 (diff) | |
Add Queue deprecated compatibility tests
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
Diffstat (limited to 'src/test/scala/chiselTests/CompatibilitySpec.scala')
| -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) + } + } |
