diff options
| author | Andrew Waterman | 2019-01-17 13:55:25 -0800 |
|---|---|---|
| committer | Andrew Waterman | 2019-01-17 15:46:19 -0800 |
| commit | 52e86c95b1819b57caca8bdd4e20ac09b4065d05 (patch) | |
| tree | bad5b403d50a09f9bcab4f38dc1c52fb2f16c04f /chiselFrontend/src/main | |
| parent | e6daf96799cbea24463b0e817ae10a753dc31e5c (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.scala | 2 |
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 |
