summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJack Koenig2021-03-23 14:54:57 -0700
committerGitHub2021-03-23 21:54:57 +0000
commit26461d500f402310cb3adf914b636be3a3a8e442 (patch)
tree4fb140d28a1bee3d925b2edc381e7257f29b74fa /src
parent03ec2156988ddef35272365fb86415511eafb4e2 (diff)
Make plugin autoclonetype always on (#1826)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r--src/test/scala/chiselTests/AutoClonetypeSpec.scala21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/test/scala/chiselTests/AutoClonetypeSpec.scala b/src/test/scala/chiselTests/AutoClonetypeSpec.scala
index e0e6b2f0..57e00e99 100644
--- a/src/test/scala/chiselTests/AutoClonetypeSpec.scala
+++ b/src/test/scala/chiselTests/AutoClonetypeSpec.scala
@@ -265,19 +265,18 @@ class AutoClonetypeSpec extends ChiselFlatSpec with Utils {
behavior of "Compiler Plugin Autoclonetype"
- // Necessary test for 3.4.x, but we will break this (for non-plugin users) in 3.5
- it should "NOT break code that extends chisel3.util Bundles (whether they use the plugin or not)" in {
- class MyModule extends MultiIOModule {
- val io = IO(new InheritingBundle)
- io.deq <> io.enq
- io.count := 0.U
- io.error := true.B
- }
- elaborate(new MyModule)
- }
-
// New tests from the plugin
if (usingPlugin) {
+ it should "NOT break code that extends chisel3.util Bundles if they use the plugin" in {
+ class MyModule extends MultiIOModule {
+ val io = IO(new InheritingBundle)
+ io.deq <> io.enq
+ io.count := 0.U
+ io.error := true.B
+ }
+ elaborate(new MyModule)
+ }
+
it should "support Bundles with non-val parameters" in {
class MyBundle(i: Int) extends Bundle {
val foo = UInt(i.W)