Skip to content

Commit 4d7b29a

Browse files
jackkoenigucbjrl
authored andcommitted
Undeprecate log2Up and log2Down (#846)
They should not be deprecated until zero-width wires actually work (cherry picked from commit 94be48d)
1 parent a5ea1c2 commit 4d7b29a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/main/scala/chisel3/util/Math.scala

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ import chisel3.internal.chiselRuntimeDeprecated
1010

1111
/** Compute the log2 rounded up with min value of 1 */
1212
object log2Up {
13-
@chiselRuntimeDeprecated
14-
@deprecated("Use log2Ceil instead", "chisel3")
13+
// Do not deprecate until zero-width wires fully work:
14+
// https://github.com/freechipsproject/chisel3/issues/847
15+
//@chiselRuntimeDeprecated
16+
//@deprecated("Use log2Ceil instead", "chisel3")
1517
def apply(in: BigInt): Int = Chisel.log2Up(in)
1618
}
1719

@@ -26,8 +28,10 @@ object log2Ceil {
2628

2729
/** Compute the log2 rounded down with min value of 1 */
2830
object log2Down {
29-
@chiselRuntimeDeprecated
30-
@deprecated("Use log2Floor instead", "chisel3")
31+
// Do not deprecate until zero-width wires fully work:
32+
// https://github.com/freechipsproject/chisel3/issues/847
33+
//@chiselRuntimeDeprecated
34+
//@deprecated("Use log2Floor instead", "chisel3")
3135
def apply(in: BigInt): Int = Chisel.log2Down(in)
3236
}
3337

0 commit comments

Comments
 (0)