From 52e86c95b1819b57caca8bdd4e20ac09b4065d05 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 17 Jan 2019 13:55:25 -0800 Subject: 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). --- chiselFrontend/src/main/scala/chisel3/core/Bits.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chiselFrontend') 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 -- cgit v1.2.3