diff options
| author | Jack Koenig | 2021-01-21 11:41:20 -0800 |
|---|---|---|
| committer | Jack Koenig | 2021-01-21 15:57:10 -0800 |
| commit | 6c6ec7161e8f046fff1cfc68a468ce2f053fdb7f (patch) | |
| tree | debd31d50abb936b12213ec40d752e8cc18067ad /src | |
| parent | 8a73362bb6fe87817a1867cc2482c1841f95c077 (diff) | |
Fold Chisel.CompatibilityModule into chisel3.internal.LegacyModule
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/scala/chisel3/compatibility.scala | 24 |
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 |
