summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman2015-07-16 17:27:26 -0700
committerAndrew Waterman2015-07-16 17:27:26 -0700
commiteeded3dadd42fc2fd64736f6e61026a56000021d (patch)
treeee218d48de923858ea887dad81b47e1f00c736ad
parentf4f704f0239319428da6288aaefb7d46db3a3972 (diff)
Add missing ## operator
-rw-r--r--src/main/scala/Core.scala2
1 files changed, 2 insertions, 0 deletions
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)