@@ -277,7 +277,7 @@ private[chisel3] trait BitsIntf extends ToBoolable { self: Bits =>
277
277
private [chisel3] trait UIntIntf { self : UInt =>
278
278
279
279
// TODO: refactor to share documentation with Num or add independent scaladoc
280
- /** Unary negation (expanding width)
280
+ /** Unary negation (constant width)
281
281
*
282
282
* @return a $coll equal to zero minus this $coll
283
283
* $constantWidth
@@ -287,16 +287,18 @@ private[chisel3] trait UIntIntf { self: UInt =>
287
287
288
288
/** Unary negation (constant width)
289
289
*
290
- * @return a $coll equal to zero minus this $coll shifted right by one.
290
+ * @return a $coll equal to zero minus this $coll
291
291
* $constantWidth
292
292
* @group Arithmetic
293
293
*/
294
+ @ deprecated(" Use unary_- which has the same behavior" , " Chisel 6.8.0" )
294
295
final def unary_-% : UInt = macro SourceInfoTransform .noArg
295
296
296
297
/** @group SourceInfoTransformMacro */
297
298
def do_unary_- (implicit sourceInfo : SourceInfo ): UInt = _impl_unary_-
298
299
299
300
/** @group SourceInfoTransformMacro */
301
+ @ deprecated(" Use unary_- which has the same behavior" , " Chisel 6.8.0" )
300
302
def do_unary_-% (implicit sourceInfo : SourceInfo ): UInt = _impl_unary_-%
301
303
302
304
override def do_+ (that : UInt )(implicit sourceInfo : SourceInfo ): UInt = _impl_+(that)
@@ -553,12 +555,14 @@ private[chisel3] trait SIntIntf { self: SInt =>
553
555
* $constantWidth
554
556
* @group Arithmetic
555
557
*/
558
+ @ deprecated(" Use unary_- which has the same behavior" , " Chisel 6.8.0" )
556
559
final def unary_-% : SInt = macro SourceInfoTransform .noArg
557
560
558
561
/** @group SourceInfoTransformMacro */
559
562
def do_unary_- (implicit sourceInfo : SourceInfo ): SInt = _impl_unary_-
560
563
561
564
/** @group SourceInfoTransformMacro */
565
+ @ deprecated(" Use unary_- which has the same behavior" , " Chisel 6.8.0" )
562
566
def do_unary_-% (implicit sourceInfo : SourceInfo ): SInt = _impl_unary_-%
563
567
564
568
/** add (default - no growth) operator */
0 commit comments