From 392ea3c9b5b04e374eeb1bf3b0d87ac9fbf45513 Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Wed, 1 Dec 2021 14:49:34 -0800 Subject: Require the chisel3 compiler plugin (#2271) As the chisel3 compiler plugin is now required, we can delete unused code for reflective autoclonetype as well as the noPluginTests.--- .../scala/chiselTests/NoPluginBundleSpec.scala | 36 ---------------------- 1 file changed, 36 deletions(-) delete mode 100644 no-plugin-tests/src/test/scala/chiselTests/NoPluginBundleSpec.scala (limited to 'no-plugin-tests/src/test/scala/chiselTests/NoPluginBundleSpec.scala') diff --git a/no-plugin-tests/src/test/scala/chiselTests/NoPluginBundleSpec.scala b/no-plugin-tests/src/test/scala/chiselTests/NoPluginBundleSpec.scala deleted file mode 100644 index b73be483..00000000 --- a/no-plugin-tests/src/test/scala/chiselTests/NoPluginBundleSpec.scala +++ /dev/null @@ -1,36 +0,0 @@ -// SPDX-License-Identifier: Apache-2.0 - -package chiselTests - -import chisel3._ -import chisel3.stage.ChiselStage -import chisel3.testers.BasicTester - - - -trait BundleSpecUtils { - - class BundleBaz(val w: Int) extends Bundle { - val baz = UInt(w.W) - // (if we don't have the val on the val w: Int then it is an Exception) - // Check that we get a runtime deprecation warning if we don't have this: - // override def cloneType = (new BundleBaz(w)).asInstanceOf[this.type] - } - -} - -class NoPluginBundleSpec extends ChiselFlatSpec with BundleSpecUtils with Utils { - - "No override def cloneType" should "give a runtime deprecation warning without compiler plugin" in { - class MyModule extends MultiIOModule { - val in = IO(Input(new BundleBaz(w = 3))) - val out = IO(Output(in.cloneType)) - } - val (log, _) = grabLog( - ChiselStage.elaborate(new MyModule()) - ) - log should include ("warn") - log should include ("deprecated") - log should include ("The runtime reflection inference for cloneType") - } -} -- cgit v1.2.3