summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/scala/chisel3/compatibility.scala24
1 files changed, 3 insertions, 21 deletions
diff --git a/src/main/scala/chisel3/compatibility.scala b/src/main/scala/chisel3/compatibility.scala
index 7066384b..e62cba7d 100644
--- a/src/main/scala/chisel3/compatibility.scala
+++ b/src/main/scala/chisel3/compatibility.scala
@@ -293,29 +293,11 @@ package object Chisel {
}
import chisel3.CompileOptions
- abstract class CompatibilityModule(implicit moduleCompileOptions: CompileOptions)
- extends chisel3.internal.LegacyModule()(moduleCompileOptions) {
- // This class auto-wraps the Module IO with IO(...), allowing legacy code (where IO(...) wasn't
- // required) to build.
- // Also provides the clock / reset constructors, which were used before withClock happened.
-
- // Provide a non-deprecated constructor
- def this(override_clock: Option[Clock]=None, override_reset: Option[Bool]=None)
- (implicit moduleCompileOptions: CompileOptions) = {
- this()
- this.override_clock = override_clock
- this.override_reset = override_reset
- }
- def this(_clock: Clock)(implicit moduleCompileOptions: CompileOptions) =
- this(Option(_clock), None)(moduleCompileOptions)
- def this(_reset: Bool)(implicit moduleCompileOptions: CompileOptions) =
- this(None, Option(_reset))(moduleCompileOptions)
- def this(_clock: Clock, _reset: Bool)(implicit moduleCompileOptions: CompileOptions) =
- this(Option(_clock), Option(_reset))(moduleCompileOptions)
- }
+ @deprecated("Use Chisel.Module", "Chisel 3.5")
+ type CompatibilityModule = chisel3.internal.LegacyModule
val Module = chisel3.Module
- type Module = CompatibilityModule
+ type Module = chisel3.internal.LegacyModule
val printf = chisel3.printf