From 94be48d7e5cdb44474a08d786d9baaefe825ecfe Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Fri, 6 Jul 2018 17:07:19 -0700 Subject: Undeprecate log2Up and log2Down (#846) They should not be deprecated until zero-width wires actually work--- src/main/scala/chisel3/util/Math.scala | 12 ++++++++---- 1 file 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) } -- cgit v1.2.3