From 0bc61c32673fac7a5583af4ffe71e4e0dac42a13 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Wed, 30 Dec 2015 23:25:20 -0800 Subject: Add '=/=' to bits, which does the same as '!=' It looks like this is in Chisel2 now, and some stuff in uncore is using it. IIRC, we decided that this was the correct thing to do for some Scala style reasons. --- src/main/scala/Chisel/Bits.scala | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/scala/Chisel') 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) -- cgit v1.2.3