diff options
| author | Andrew Waterman | 2016-01-23 16:10:22 -0800 |
|---|---|---|
| committer | Andrew Waterman | 2016-01-23 16:10:22 -0800 |
| commit | b4517e0fb563271464bd40ddf9a46a40fd827da4 (patch) | |
| tree | f8a7c4a9e982590fb140d6945d2e875d0b2e45c1 /src/main/scala/Chisel/Bits.scala | |
| parent | 780e7c4d2a7e88a3a8ce6f5d7e75e62af6580c6d (diff) | |
Don't use deprecated constructs
Diffstat (limited to 'src/main/scala/Chisel/Bits.scala')
| -rw-r--r-- | src/main/scala/Chisel/Bits.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/Chisel/Bits.scala b/src/main/scala/Chisel/Bits.scala index b512bb56..739e6c1b 100644 --- a/src/main/scala/Chisel/Bits.scala +++ b/src/main/scala/Chisel/Bits.scala @@ -432,7 +432,7 @@ sealed class SInt private (dir: Direction, width: Width, lit: Option[SLit] = Non def >= (other: SInt): Bool = compop(GreaterEqOp, other) def != (other: SInt): Bool = compop(NotEqualOp, other) def === (other: SInt): Bool = compop(EqualOp, other) - def abs(): UInt = Mux(this < SInt(0), (-this).toUInt, this.toUInt) + def abs(): UInt = Mux(this < SInt(0), (-this).asUInt, this.asUInt) def << (other: Int): SInt = binop(SInt(this.width + other), ShiftLeftOp, other) def << (other: BigInt): SInt = this << other.toInt |
