From eeded3dadd42fc2fd64736f6e61026a56000021d Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 16 Jul 2015 17:27:26 -0700 Subject: Add missing ## operator --- src/main/scala/Core.scala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/main/scala/Core.scala b/src/main/scala/Core.scala index 5b502057..c823aa41 100644 --- a/src/main/scala/Core.scala +++ b/src/main/scala/Core.scala @@ -689,6 +689,7 @@ abstract class Bits(dirArg: Direction, width: Int) extends Element(dirArg, width def & (other: Bits): Bits = binop(BitAndOp, other, maxWidth(other, 0)) def | (other: Bits): Bits = binop(BitOrOp, other, maxWidth(other, 0)) def ^ (other: Bits): Bits = binop(BitXorOp, other, maxWidth(other, 0)) + def ## (other: Bits): Bits = Cat(this, other) def < (other: Bits): Bool = compop(LessOp, other) def > (other: Bits): Bool = compop(GreaterOp, other) @@ -781,6 +782,7 @@ class UInt(dir: Direction, width: Int) extends Bits(dir, width) with Num[UInt] { def & (other: UInt): UInt = binop(BitAndOp, other, maxWidth(other, 0)) def | (other: UInt): UInt = binop(BitOrOp, other, maxWidth(other, 0)) def ^ (other: UInt): UInt = binop(BitXorOp, other, maxWidth(other, 0)) + def ## (other: UInt): UInt = Cat(this, other) def < (other: UInt): Bool = compop(LessOp, other) def > (other: UInt): Bool = compop(GreaterOp, other) -- cgit v1.2.3