diff options
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/scala/firrtl/PrimOps.scala | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/scala/firrtl/PrimOps.scala b/src/main/scala/firrtl/PrimOps.scala index b28cd000..fa523e12 100644 --- a/src/main/scala/firrtl/PrimOps.scala +++ b/src/main/scala/firrtl/PrimOps.scala @@ -314,9 +314,7 @@ object PrimOps extends LazyLogging { case _ => UnknownType } case Cat => (t1, t2) match { - case (_: UIntType | _: SIntType, _: UIntType | _: SIntType) => UIntType(PLUS(w1, w2)) - case (_: FixedType, _: UIntType| _: SIntType) => FixedType(PLUS(w1, w2), PLUS(p1, w2)) - case (_: UIntType | _: SIntType, _: FixedType) => FixedType(PLUS(w1, w2), p1) + case (_: UIntType | _: SIntType | _: FixedType, _: UIntType | _: SIntType | _: FixedType) => UIntType(PLUS(w1, w2)) case (t1, t2) => UnknownType } case Bits => t1 match { |
