PartialDataView

chisel3.experimental.dataview.PartialDataView

Factory methods for constructing non-total DataViews

Attributes

Source
DataView.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self 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

Default factory method, alias for pairs

Attributes

Source
DataView.scala
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

More general factory method for complex mappings

Attributes

Source
DataView.scala
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 V from an instance of T

Attributes

Returns

the DataView that enables viewing instances of a Bundle/Record as instances of a parent type

Source
DataView.scala