Targetable

chisel3.experimental.Targetable
See theTargetable companion object
sealed trait Targetable[A]

Type class for types that can be converted to a Target

See AnyTargetable for type-erased containers of Targetables

Attributes

Note

This uses type classes instead of inheritance because Hierarchy does not constrain its type parameter and thus not all instances of Hierarchy are Targetable.

Companion
object
Source
Targetable.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

Returns a FIRRTL IsMember that refers to the absolute path to this object in the elaborated hardware graph

Returns a FIRRTL IsMember that refers to the absolute path to this object in the elaborated hardware graph

Attributes

Source
Targetable.scala
def toRelativeTarget(a: A, root: Option[BaseModule]): IsMember

Returns a FIRRTL IsMember that references this object, relative to an optional root.

Returns a FIRRTL IsMember that references this object, relative to an optional root.

If root is defined, the target is a hierarchical path starting from root.

If root is not defined, the target is a hierarchical path equivalent to toAbsoluteTarget.

Attributes

Note

If root is defined, and has not finished elaboration, this must be called within atModuleBodyEnd.

The Targetable must be a descendant of root, if it is defined.

This doesn't have special handling for Views.

Source
Targetable.scala

Returns a FIRRTL IsMember that references this object, relative to an optional root.

Returns a FIRRTL IsMember that references this object, relative to an optional root.

If root is defined, the target is a hierarchical path starting from root.

If root is not defined, the target is a hierarchical path equivalent to toAbsoluteTarget.

Attributes

Note

If root is defined, and has not finished elaboration, this must be called within atModuleBodyEnd.

The Targetable must be a descendant of root, if it is defined.

This doesn't have special handling for Views.

Source
Targetable.scala
def toTarget(a: A): IsMember

Returns a FIRRTL IsMember that refers to this object in the elaborated hardware graph

Returns a FIRRTL IsMember that refers to this object in the elaborated hardware graph

Attributes

Source
Targetable.scala