summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests
diff options
context:
space:
mode:
authorSchuyler Eldridge2019-07-31 15:46:11 -0400
committerSchuyler Eldridge2019-07-31 15:53:26 -0400
commitc875e6af9aaad80de1d305d9b5f80962dabe4b4c (patch)
tree6148e743a137c7ce0c288cfd568bade366b3d69f /src/test/scala/chiselTests
parent4a919c83318c6964d9a864c50cb3ba719b1fdbfe (diff)
Add UInt deprecated compatibility tests
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
Diffstat (limited to 'src/test/scala/chiselTests')
-rw-r--r--src/test/scala/chiselTests/CompatibilitySpec.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/scala/chiselTests/CompatibilitySpec.scala b/src/test/scala/chiselTests/CompatibilitySpec.scala
index 88228475..97eb58d0 100644
--- a/src/test/scala/chiselTests/CompatibilitySpec.scala
+++ b/src/test/scala/chiselTests/CompatibilitySpec.scala
@@ -554,4 +554,17 @@ class CompatibiltySpec extends ChiselFlatSpec with GeneratorDrivenPropertyChecks
elaborate(new Foo)
}
+ behavior of "UInt"
+
+ it should "support legacy methods" in {
+ class Foo extends Module {
+ val io = new Bundle{}
+
+ info("!= works")
+ (UInt(1) != UInt(1)) shouldBe a [Bool]
+ }
+
+ elaborate(new Foo)
+ }
+
}