From 62879d16563896baecd469df98bd08298c430252 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 17 Jan 2019 15:45:37 -0800 Subject: Unary_- is truncating --- chiselFrontend/src/main/scala/chisel3/core/Bits.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chiselFrontend') diff --git a/chiselFrontend/src/main/scala/chisel3/core/Bits.scala b/chiselFrontend/src/main/scala/chisel3/core/Bits.scala index 4ba5aed4..abc7b583 100644 --- a/chiselFrontend/src/main/scala/chisel3/core/Bits.scala +++ b/chiselFrontend/src/main/scala/chisel3/core/Bits.scala @@ -655,7 +655,7 @@ sealed class UInt private[core] (width: Width) extends Bits(width) with Num[UInt /** Unary negation (expanding width) * * @return a $coll equal to zero minus this $coll - * $expandingWidth + * $constantWidth * @group Arithmetic */ final def unary_- (): UInt = macro SourceInfoTransform.noArg @@ -969,7 +969,7 @@ sealed class SInt private[core] (width: Width) extends Bits(width) with Num[SInt /** Unary negation (expanding width) * * @return a hardware $coll equal to zero minus this $coll - * $expandingWidth + * $constantWidth * @group Arithmetic */ final def unary_- (): SInt = macro SourceInfoTransform.noArg -- cgit v1.2.3