summaryrefslogtreecommitdiff
path: root/src/main/scala/chisel3/package.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/chisel3/package.scala')
-rw-r--r--src/main/scala/chisel3/package.scala15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/main/scala/chisel3/package.scala b/src/main/scala/chisel3/package.scala
index ddabf62c..3fa461ad 100644
--- a/src/main/scala/chisel3/package.scala
+++ b/src/main/scala/chisel3/package.scala
@@ -27,21 +27,22 @@ package object chisel3 { // scalastyle:ignore package.object.name
import chisel3.core.CompileOptions
@chiselRuntimeDeprecated
- @deprecated("Wire(init=init) is deprecated, use WireInit(init) instead", "chisel3")
+ @deprecated("Wire(init=init) is deprecated, use WireDefault(init) instead", "chisel3")
def apply[T <: Data](dummy: Int = 0, init: T)(implicit compileOptions: CompileOptions): T =
- chisel3.core.WireInit(init)
+ chisel3.core.WireDefault(init)
@chiselRuntimeDeprecated
- @deprecated("Wire(t, init) is deprecated, use WireInit(t, init) instead", "chisel3")
+ @deprecated("Wire(t, init) is deprecated, use WireDefault(t, init) instead", "chisel3")
def apply[T <: Data](t: T, init: T)(implicit compileOptions: CompileOptions): T =
- chisel3.core.WireInit(t, init)
+ chisel3.core.WireDefault(t, init)
@chiselRuntimeDeprecated
- @deprecated("Wire(t, init) is deprecated, use WireInit(t, init) instead", "chisel3")
+ @deprecated("Wire(t, init) is deprecated, use WireDefault(t, init) instead", "chisel3")
def apply[T <: Data](t: T, init: DontCare.type)(implicit compileOptions: CompileOptions): T =
- chisel3.core.WireInit(t, init)
+ chisel3.core.WireDefault(t, init)
}
- val WireInit = chisel3.core.WireInit
+ val WireInit = chisel3.core.WireDefault
+ val WireDefault = chisel3.core.WireDefault
val Clock = chisel3.core.Clock
type Clock = chisel3.core.Clock