diff options
| author | Andrew Waterman | 2015-12-31 15:31:08 -0800 |
|---|---|---|
| committer | Andrew Waterman | 2015-12-31 15:31:08 -0800 |
| commit | 5e3f3977b3e25af21aa277d975836610a0df11d6 (patch) | |
| tree | 56b3b11ca1e3f551db8027fb11e31b05670911cd | |
| parent | efd6a0a04d3616c03d27ce7745f46daaea8c6b90 (diff) | |
| parent | 0bc61c32673fac7a5583af4ffe71e4e0dac42a13 (diff) | |
Merge pull request #82 from ucb-bar/not-equals
Add '=/=' to bits, which does the same as '!='
| -rw-r--r-- | src/main/scala/Chisel/Bits.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/scala/Chisel/Bits.scala b/src/main/scala/Chisel/Bits.scala index b6ee6d1a..e001f864 100644 --- a/src/main/scala/Chisel/Bits.scala +++ b/src/main/scala/Chisel/Bits.scala @@ -302,6 +302,7 @@ sealed class UInt private[Chisel] (dir: Direction, width: Width, lit: Option[ULi def <= (other: UInt): Bool = compop(LessEqOp, other) def >= (other: UInt): Bool = compop(GreaterEqOp, other) def != (other: UInt): Bool = compop(NotEqualOp, other) + def =/= (other: UInt): Bool = compop(NotEqualOp, other) def === (other: UInt): Bool = compop(EqualOp, other) def unary_! : Bool = this === Bits(0) |
