From fc85e085ae525c39a24778c5e35bec87145d1652 Mon Sep 17 00:00:00 2001 From: Schuyler Eldridge Date: Wed, 31 Jul 2019 14:00:36 -0400 Subject: Add debug deprecated compatibility tests Signed-off-by: Schuyler Eldridge --- src/test/scala/chiselTests/CompatibilitySpec.scala | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/test/scala/chiselTests/CompatibilitySpec.scala') 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) + } + } -- cgit v1.2.3