From e6ee1ddb79c219e313e530a029d8402274fbaebc Mon Sep 17 00:00:00 2001 From: jackkoenig Date: Tue, 15 Mar 2016 12:36:21 -0700 Subject: Add =/= to SInt --- src/main/scala/Chisel/Bits.scala | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main') diff --git a/src/main/scala/Chisel/Bits.scala b/src/main/scala/Chisel/Bits.scala index 8f2e1b09..3d79af60 100644 --- a/src/main/scala/Chisel/Bits.scala +++ b/src/main/scala/Chisel/Bits.scala @@ -452,6 +452,7 @@ sealed class SInt private (dir: Direction, width: Width, lit: Option[SLit] = Non def <= (other: SInt): Bool = compop(LessEqOp, other) def >= (other: SInt): Bool = compop(GreaterEqOp, other) def != (other: SInt): Bool = compop(NotEqualOp, other) + def =/= (other: SInt): Bool = compop(NotEqualOp, other) def === (other: SInt): Bool = compop(EqualOp, other) def abs(): UInt = Mux(this < SInt(0), (-this).asUInt, this.asUInt) -- cgit v1.2.3