diff options
| author | Schuyler Eldridge | 2019-07-31 15:46:26 -0400 |
|---|---|---|
| committer | Schuyler Eldridge | 2019-07-31 15:53:26 -0400 |
| commit | 2056bd8750fc7d7b78334a75e6449a711a872972 (patch) | |
| tree | 612e5b6b7e4695c7199229e7a20e29738c772b90 /src/test/scala/chiselTests/CompatibilitySpec.scala | |
| parent | c875e6af9aaad80de1d305d9b5f80962dabe4b4c (diff) | |
Add SInt 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 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/scala/chiselTests/CompatibilitySpec.scala b/src/test/scala/chiselTests/CompatibilitySpec.scala index 97eb58d0..c602efa3 100644 --- a/src/test/scala/chiselTests/CompatibilitySpec.scala +++ b/src/test/scala/chiselTests/CompatibilitySpec.scala @@ -567,4 +567,17 @@ class CompatibiltySpec extends ChiselFlatSpec with GeneratorDrivenPropertyChecks elaborate(new Foo) } + behavior of "SInt" + + it should "support legacy methods" in { + class Foo extends Module { + val io = new Bundle{} + + info("!= works") + (SInt(-1) != SInt(-1)) shouldBe a [Bool] + } + + elaborate(new Foo) + } + } |
