From cd951e193ed6a52c5146583a826e3cae5374d07b Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Mon, 2 May 2016 20:11:58 -0700 Subject: Remove dependences from Chisel core on Chisel utils Partially resolves #164 --- src/main/scala/Chisel/util/Cat.scala | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/main/scala/Chisel/util/Cat.scala') diff --git a/src/main/scala/Chisel/util/Cat.scala b/src/main/scala/Chisel/util/Cat.scala index 088a208e..dd706e62 100644 --- a/src/main/scala/Chisel/util/Cat.scala +++ b/src/main/scala/Chisel/util/Cat.scala @@ -14,13 +14,5 @@ object Cat { * @param r any number of other Data elements to be combined in order * @return A UInt which is all of the bits combined together */ - def apply[T <: Bits](r: Seq[T]): UInt = { - if (r.tail.isEmpty) { - r.head.asUInt - } else { - val left = apply(r.slice(0, r.length/2)) - val right = apply(r.slice(r.length/2, r.length)) - left ## right - } - } + def apply[T <: Bits](r: Seq[T]): UInt = SeqUtils.asUInt(r.reverse) } -- cgit v1.2.3