DataProduct

chisel3.experimental.dataview.DataProduct
See theDataProduct companion object
trait DataProduct[-A]

Typeclass interface for getting elements of type Data

This is needed for validating DataViews targeting type A. Can be thought of as "can be the Target of a DataView".

Chisel provides some implementations in object DataProduct that are available by default in the implicit scope.

Type parameters

A

Type that has elements of type Data

Attributes

See also
Companion
object
Source
DataProduct.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def dataIterator(a: A, path: String): Iterator[(Data, String)]
Implicitly added by iterableDataProduct

Provides Data elements within some containing object

Provides Data elements within some containing object

Value parameters

a

Containing object

path

Hierarchical path to current signal (for error reporting)

Attributes

Returns

Data elements and associated String paths (Strings for error reporting only!)

Source
DataProduct.scala
def dataIterator(a: A, path: String): Iterator[(Data, String)]

Provides Data elements within some containing object

Provides Data elements within some containing object

Value parameters

a

Containing object

path

Hierarchical path to current signal (for error reporting)

Attributes

Returns

Data elements and associated String paths (Strings for error reporting only!)

Source
DataProduct.scala

Concrete methods

def dataSet(a: A): Data => Boolean
Implicitly added by iterableDataProduct

Returns a checker to test if the containing object contains a Data object

Returns a checker to test if the containing object contains a Data object

Value parameters

a

Containing object

Attributes

Returns

A checker that itself returns True if a given Data is contained in a as determined by an == test

Note

Implementers may want to override if iterating on all Data is expensive for A and A will primarily be used in PartialDataViews

The returned value is a function, not a true Set, but is describing the functionality of Set containment

Source
DataProduct.scala
def dataSet(a: A): Data => Boolean

Returns a checker to test if the containing object contains a Data object

Returns a checker to test if the containing object contains a Data object

Value parameters

a

Containing object

Attributes

Returns

A checker that itself returns True if a given Data is contained in a as determined by an == test

Note

Implementers may want to override if iterating on all Data is expensive for A and A will primarily be used in PartialDataViews

The returned value is a function, not a true Set, but is describing the functionality of Set containment

Source
DataProduct.scala