summaryrefslogtreecommitdiff
path: root/src/main/scala/chisel3/util
diff options
context:
space:
mode:
authorJack Koenig2018-07-06 17:07:19 -0700
committerGitHub2018-07-06 17:07:19 -0700
commit94be48d7e5cdb44474a08d786d9baaefe825ecfe (patch)
treefebc4564f7d1f327fc4ba816931735145362e73c /src/main/scala/chisel3/util
parentb545a4e00bfd120f68d84d6cc9ebce3ab5f72b37 (diff)
Undeprecate log2Up and log2Down (#846)
They should not be deprecated until zero-width wires actually work
Diffstat (limited to 'src/main/scala/chisel3/util')
-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)
}