VecInit

chisel3.VecInit
object VecInit

Attributes

Source
Aggregate.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
VecInit.type

Members list

Value members

Inherited methods

def apply[T <: Data](elt0: T, elts: T*)(using SourceInfo): Vec[T]

Creates a new Vec composed of the input Data nodes.

Creates a new Vec composed of the input Data nodes.

Attributes

Note

input elements should be of the same type (this is checked at the FIRRTL level, but not at the Scala / Chisel level)

the width of all output elements is the width of the largest input element

output elements are connected from the input elements

Inherited from:
VecInit$Intf (hidden)
Source
AggregateIntf.scala
def apply[T <: Data](elts: Seq[T])(using SourceInfo): Vec[T]

Creates a new Vec composed of elements of the input Seq of Data nodes.

Creates a new Vec composed of elements of the input Seq of Data nodes.

Attributes

Note

input elements should be of the same type (this is checked at the FIRRTL level, but not at the Scala / Chisel level)

the width of all output elements is the width of the largest input element

output elements are connected from the input elements

Inherited from:
VecInit$Intf (hidden)
Source
AggregateIntf.scala
def fill[T <: Data](n: Int, m: Int, p: Int)(gen: => T)(using SourceInfo): Vec[Vec[Vec[T]]]

Creates a new 3D Vec of length n by m by p composed of the result of the given function applied to an element of data type T.

Creates a new 3D Vec of length n by m by p composed of the result of the given function applied to an element of data type T.

Value parameters

gen

function that takes in an element T and returns an output element of the same type

m

number of 1D vectors in each 2D vector

n

number of 2D vectors inside outer vector

p

number of elements in each 1D vector

Attributes

Inherited from:
VecInit$Intf (hidden)
Source
AggregateIntf.scala
def fill[T <: Data](n: Int, m: Int)(gen: => T)(using SourceInfo): Vec[Vec[T]]

Creates a new 2D Vec of length n by m composed of the result of the given function applied to an element of data type T.

Creates a new 2D Vec of length n by m composed of the result of the given function applied to an element of data type T.

Value parameters

gen

function that takes in an element T and returns an output element of the same type

m

number of elements in each inner vector (column)

n

number of inner vectors (rows) in the outer vector

Attributes

Inherited from:
VecInit$Intf (hidden)
Source
AggregateIntf.scala
def fill[T <: Data](n: Int)(gen: => T)(using SourceInfo): Vec[T]

Creates a new Vec of length n composed of the result of the given function applied to an element of data type T.

Creates a new Vec of length n composed of the result of the given function applied to an element of data type T.

Value parameters

gen

function that takes in an element T and returns an output element of the same type

n

number of elements in the vector

Attributes

Inherited from:
VecInit$Intf (hidden)
Source
AggregateIntf.scala
def iterate[T <: Data](start: T, len: Int)(f: T => T)(using SourceInfo): Vec[T]

Creates a new Vec of length n composed of the result of the given function applied to an element of data type T.

Creates a new Vec of length n composed of the result of the given function applied to an element of data type T.

Value parameters

f

Function that applies the element T from previous index and returns the output element to the next index

len

Lenth of elements in the Vec

start

First element in the Vec

Attributes

Inherited from:
VecInit$Intf (hidden)
Source
AggregateIntf.scala
def tabulate[T <: Data](n: Int, m: Int, p: Int)(gen: (Int, Int, Int) => T)(using SourceInfo): Vec[Vec[Vec[T]]]

Creates a new 3D Vec of length n by m by p composed of the results of the given function applied over a range of integer values starting from 0.

Creates a new 3D Vec of length n by m by p composed of the results of the given function applied over a range of integer values starting from 0.

Value parameters

gen

function that takes in an Int (the index) and returns a Data that becomes the output element

m

number of 1D vectors in each 2D vector

n

number of 2D vectors inside outer vector

p

number of elements in each 1D vector

Attributes

Inherited from:
VecInit$Intf (hidden)
Source
AggregateIntf.scala
def tabulate[T <: Data](n: Int, m: Int)(gen: (Int, Int) => T)(using SourceInfo): Vec[Vec[T]]

Creates a new 2D Vec of length n by m composed of the results of the given function applied over a range of integer values starting from 0.

Creates a new 2D Vec of length n by m composed of the results of the given function applied over a range of integer values starting from 0.

Value parameters

gen

function that takes in an Int (the index) and returns a Data that becomes the output element

m

number of elements in each 1D vector (the function is applied from 0 to n-1)

n

number of 1D vectors inside outer vector

Attributes

Inherited from:
VecInit$Intf (hidden)
Source
AggregateIntf.scala
def tabulate[T <: Data](n: Int)(gen: Int => T)(using SourceInfo): Vec[T]

Creates a new Vec of length n composed of the results of the given function applied over a range of integer values starting from 0.

Creates a new Vec of length n composed of the results of the given function applied over a range of integer values starting from 0.

Value parameters

gen

function that takes in an Int (the index) and returns a Data that becomes the output element

n

number of elements in the vector (the function is applied from 0 to n-1)

Attributes

Inherited from:
VecInit$Intf (hidden)
Source
AggregateIntf.scala