VecInit
Attributes
- Source
- Aggregate.scala
- Graph
-
- Supertypes
- Self type
-
VecInit.type
Members list
Value members
Inherited methods
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
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
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
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
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
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
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
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
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