summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/CompatibilitySpec.scala
diff options
context:
space:
mode:
authorSchuyler Eldridge2019-07-31 14:00:36 -0400
committerSchuyler Eldridge2019-07-31 15:53:26 -0400
commitfc85e085ae525c39a24778c5e35bec87145d1652 (patch)
tree33c3b0440abfdb20dd2da8d36779e609be28fa14 /src/test/scala/chiselTests/CompatibilitySpec.scala
parent43146ebc08716b06f63f1965e698d9f0d9a4f40c (diff)
Add debug 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.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 3cc8fb89..7194cb3c 100644
--- a/src/test/scala/chiselTests/CompatibilitySpec.scala
+++ b/src/test/scala/chiselTests/CompatibilitySpec.scala
@@ -450,4 +450,17 @@ class CompatibiltySpec extends ChiselFlatSpec with GeneratorDrivenPropertyChecks
elaborate(new Foo)
}
+ behavior of "debug"
+
+ it should "still exist" in {
+ class Foo extends Module {
+ val io = IO(new Bundle{})
+
+ val data = UInt(width = 2)
+ debug(data)
+ }
+
+ elaborate(new Foo)
+ }
+
}