remove superfluous AVec object
This commit is contained in:
@ -21,18 +21,6 @@ object Util {
|
||||
|
||||
import Util._
|
||||
|
||||
object AVec
|
||||
{
|
||||
def apply[T <: Data](elts: Seq[T]): Vec[T] = Vec(elts)
|
||||
def apply[T <: Data](elts: Vec[T]): Vec[T] = apply(elts.toSeq)
|
||||
def apply[T <: Data](elt0: T, elts: T*): Vec[T] = apply(elt0 :: elts.toList)
|
||||
|
||||
def tabulate[T <: Data](n: Int)(f: Int => T): Vec[T] =
|
||||
apply((0 until n).map(i => f(i)))
|
||||
def tabulate[T <: Data](n1: Int, n2: Int)(f: (Int, Int) => T): Vec[Vec[T]] =
|
||||
tabulate(n1)(i1 => tabulate(n2)(f(i1, _)))
|
||||
}
|
||||
|
||||
object Str
|
||||
{
|
||||
def apply(s: String): UInt = {
|
||||
|
Reference in New Issue
Block a user