@@ -277,7 +277,7 @@ private[chisel3] trait BitsIntf extends ToBoolable { self: Bits =>
277277private [chisel3] trait UIntIntf { self : UInt =>
278278
279279 // TODO: refactor to share documentation with Num or add independent scaladoc
280- /** Unary negation (expanding width)
280+ /** Unary negation (constant width)
281281 *
282282 * @return a $coll equal to zero minus this $coll
283283 * $constantWidth
@@ -287,16 +287,18 @@ private[chisel3] trait UIntIntf { self: UInt =>
287287
288288 /** Unary negation (constant width)
289289 *
290- * @return a $coll equal to zero minus this $coll shifted right by one.
290+ * @return a $coll equal to zero minus this $coll
291291 * $constantWidth
292292 * @group Arithmetic
293293 */
294+ @ deprecated(" Use unary_- which has the same behavior" , " Chisel 6.8.0" )
294295 final def unary_-% : UInt = macro SourceInfoTransform .noArg
295296
296297 /** @group SourceInfoTransformMacro */
297298 def do_unary_- (implicit sourceInfo : SourceInfo ): UInt = _impl_unary_-
298299
299300 /** @group SourceInfoTransformMacro */
301+ @ deprecated(" Use unary_- which has the same behavior" , " Chisel 6.8.0" )
300302 def do_unary_-% (implicit sourceInfo : SourceInfo ): UInt = _impl_unary_-%
301303
302304 override def do_+ (that : UInt )(implicit sourceInfo : SourceInfo ): UInt = _impl_+(that)
@@ -553,12 +555,14 @@ private[chisel3] trait SIntIntf { self: SInt =>
553555 * $constantWidth
554556 * @group Arithmetic
555557 */
558+ @ deprecated(" Use unary_- which has the same behavior" , " Chisel 6.8.0" )
556559 final def unary_-% : SInt = macro SourceInfoTransform .noArg
557560
558561 /** @group SourceInfoTransformMacro */
559562 def do_unary_- (implicit sourceInfo : SourceInfo ): SInt = _impl_unary_-
560563
561564 /** @group SourceInfoTransformMacro */
565+ @ deprecated(" Use unary_- which has the same behavior" , " Chisel 6.8.0" )
562566 def do_unary_-% (implicit sourceInfo : SourceInfo ): SInt = _impl_unary_-%
563567
564568 /** add (default - no growth) operator */
0 commit comments