summaryrefslogtreecommitdiff
path: root/chiselFrontend/src/main
diff options
context:
space:
mode:
authorAndrew Waterman2019-01-17 13:55:25 -0800
committerAndrew Waterman2019-01-17 15:46:19 -0800
commit52e86c95b1819b57caca8bdd4e20ac09b4065d05 (patch)
treebad5b403d50a09f9bcab4f38dc1c52fb2f16c04f /chiselFrontend/src/main
parente6daf96799cbea24463b0e817ae10a753dc31e5c (diff)
Fix scaladoc for UInt.unary_!
It performs the operation (x === 0.U), just like in C. The scaladoc incorrectly described it as performing the operation !x(0). (Obviously, these are equivalent for Bool, but not for UInt in general).
Diffstat (limited to 'chiselFrontend/src/main')
-rw-r--r--chiselFrontend/src/main/scala/chisel3/core/Bits.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/core/Bits.scala b/chiselFrontend/src/main/scala/chisel3/core/Bits.scala
index cf015e60..bf1f7f63 100644
--- a/chiselFrontend/src/main/scala/chisel3/core/Bits.scala
+++ b/chiselFrontend/src/main/scala/chisel3/core/Bits.scala
@@ -852,7 +852,7 @@ sealed class UInt private[core] (width: Width) extends Bits(width) with Num[UInt
/** Unary not
*
- * @return a hardware [[Bool]] asserted if the least significant bit of this $coll is zero
+ * @return a hardware [[Bool]] asserted if this $coll equals zero
* @group Bitwise
*/
final def unary_! () : Bool = macro SourceInfoTransform.noArg