PartialDataView
chisel3.experimental.dataview.PartialDataView
object PartialDataView
Factory methods for constructing non-total DataViews
Attributes
- Source
- DataView.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PartialDataView.type
Members list
Value members
Concrete methods
def apply[T : DataProduct, V <: Data](mkView: T => V, pairs: (T, V) => (Data, Data)*)(implicit evidence$1: DataProduct[T], sourceInfo: SourceInfo): DataView[T, V]
Default factory method, alias for pairs
def mapping[T : DataProduct, V <: Data](mkView: T => V, mapping: (T, V) => Iterable[(Data, Data)])(implicit evidence$1: DataProduct[T], sourceInfo: SourceInfo): DataView[T, V]
More general factory method for complex mappings
def pairs[T : DataProduct, V <: Data](mkView: T => V, pairs: (T, V) => (Data, Data)*)(implicit evidence$1: DataProduct[T], sourceInfo: SourceInfo): DataView[T, V]
Construct DataViews with pairs of functions from the target and view to corresponding fields
Construct DataViews with pairs of functions from the target and view to corresponding fields
Attributes
- Source
- DataView.scala
def supertype[T <: Record, V <: Record](mkView: T => V)(implicit ev: ChiselSubtypeOf[T, V], sourceInfo: SourceInfo): DataView[T, V]
Constructs a non-total DataView mapping from a Bundle or Record type to a parent Bundle or Record type
Constructs a non-total DataView mapping from a Bundle or Record type to a parent Bundle or Record type
Value parameters
- mkView
-
a function constructing an instance
Vfrom an instance ofT
Attributes
- Returns
-
the DataView that enables viewing instances of a Bundle/Record as instances of a parent type
- Source
- DataView.scala
In this article