diff options
| author | Andrew Waterman | 2015-08-11 16:52:14 -0700 |
|---|---|---|
| committer | Andrew Waterman | 2015-08-11 16:52:14 -0700 |
| commit | e3650a601b87159e1e3b5491b7528399618a12b0 (patch) | |
| tree | 9a26d3dd7087c086bcdfe99dc26f21173de8ff2d /src | |
| parent | 462480ce7551855d8203352c60d1f2e3fbb203fa (diff) | |
Remove useless call to getWidth
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/scala/Chisel/Core.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/Chisel/Core.scala b/src/main/scala/Chisel/Core.scala index 6a3758f0..4e662f45 100644 --- a/src/main/scala/Chisel/Core.scala +++ b/src/main/scala/Chisel/Core.scala @@ -775,8 +775,8 @@ sealed class SInt(dir: Direction, width: Width, lit: Option[SLit] = None) extend override def makeLit(value: BigInt): this.type = SInt(value).asInstanceOf[this.type] - def unary_- : SInt = SInt(0, getWidth) - this - def unary_-% : SInt = SInt(0, getWidth) -% this + def unary_- : SInt = SInt(0) - this + def unary_-% : SInt = SInt(0) -% this def +& (other: SInt): SInt = binop(SInt(NO_DIR, (this.width max other.width) + 1), AddOp, other) def + (other: SInt): SInt = this +% other def +% (other: SInt): SInt = binop(SInt(NO_DIR, this.width max other.width), AddModOp, other) |
