Skip to content

Commit

Permalink
Add =/= to SInt
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkoenig committed Mar 15, 2016
1 parent 291a275 commit e6ee1dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/scala/Chisel/Bits.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit e6ee1dd

Please sign in to comment.