summaryrefslogtreecommitdiff
path: root/src/main/scala/chisel3
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/chisel3')
-rw-r--r--src/main/scala/chisel3/util/Math.scala12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/main/scala/chisel3/util/Math.scala b/src/main/scala/chisel3/util/Math.scala
index 3884ea21..0e1b36d5 100644
--- a/src/main/scala/chisel3/util/Math.scala
+++ b/src/main/scala/chisel3/util/Math.scala
@@ -10,8 +10,10 @@ import chisel3.internal.chiselRuntimeDeprecated
/** Compute the log2 rounded up with min value of 1 */
object log2Up {
- @chiselRuntimeDeprecated
- @deprecated("Use log2Ceil instead", "chisel3")
+ // Do not deprecate until zero-width wires fully work:
+ // https://github.com/freechipsproject/chisel3/issues/847
+ //@chiselRuntimeDeprecated
+ //@deprecated("Use log2Ceil instead", "chisel3")
def apply(in: BigInt): Int = Chisel.log2Up(in)
}
@@ -26,8 +28,10 @@ object log2Ceil {
/** Compute the log2 rounded down with min value of 1 */
object log2Down {
- @chiselRuntimeDeprecated
- @deprecated("Use log2Floor instead", "chisel3")
+ // Do not deprecate until zero-width wires fully work:
+ // https://github.com/freechipsproject/chisel3/issues/847
+ //@chiselRuntimeDeprecated
+ //@deprecated("Use log2Floor instead", "chisel3")
def apply(in: BigInt): Int = Chisel.log2Down(in)
}