summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)