diff options
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 574184d1..fccc6f08 100644 --- a/chiselFrontend/src/main/scala/chisel3/core/Bits.scala +++ b/chiselFrontend/src/main/scala/chisel3/core/Bits.scala @@ -436,7 +436,7 @@ sealed class UInt private[core] (width: Width, lit: Option[ULit] = None) def do_+% (that: UInt)(implicit sourceInfo: SourceInfo): UInt = (this +& that).tail(1) def do_-& (that: UInt)(implicit sourceInfo: SourceInfo): UInt = - binop(sourceInfo, UInt((this.width max that.width) + 1), SubOp, that) + binop(sourceInfo, SInt((this.width max that.width) + 1), SubOp, that).asUInt def do_-% (that: UInt)(implicit sourceInfo: SourceInfo): UInt = (this -& that).tail(1) |
