ReferenceTarget
Target pointing to a declared named component in a firrtl.ir.DefModule This includes: firrtl.ir.Port, firrtl.ir.DefWire, firrtl.ir.DefRegister, firrtl.ir.DefMemory, firrtl.ir.DefNode
Value parameters
- component
-
Subcomponent of this reference, e.g. field or index
- module
-
Name of the root module of this reference
- path
-
Path through instance/ofModules
- ref
-
Name of component
Attributes
- Deprecated
-
[Since version Chisel 7.0.0]All APIs in package firrtl are deprecated. - Source
- Target.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait IsComponenttrait IsMembertrait CompleteTargettrait Targettrait Namedclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Adds another level of instance hierarchy Example: Given root=A and instance=b, transforms (Top, B)/c:C -> (Top, A)/b:B/c:C
Adds another level of instance hierarchy Example: Given root=A and instance=b, transforms (Top, B)/c:C -> (Top, A)/b:B/c:C
Attributes
- Definition Classes
- Source
- Target.scala
Attributes
- Source
- Target.scala
Attributes
- Returns
-
Creates a path, assuming all Instance and OfModules in this IsMember is used as a path
- Definition Classes
- Source
- Target.scala
Value parameters
- the
-
type of this target's ref
Attributes
- Returns
-
the type of the subcomponent specified by this target's component
- Source
- Target.scala
Value parameters
- value
-
Field name of this target
Attributes
- Returns
-
A new ReferenceTarget to the specified field of this ReferenceTarget
- Source
- Target.scala
Value parameters
- value
-
Index value of this target
Attributes
- Returns
-
A new ReferenceTarget to the specified index of this ReferenceTarget
- Source
- Target.scala
Attributes
- Definition Classes
- Source
- Target.scala
Attributes
- Source
- Target.scala
Attributes
- Returns
-
Module name, if it exists
- Definition Classes
- Source
- Target.scala
Attributes
- Source
- Target.scala
Attributes
- Returns
-
Local tokens of what this member points (not a path)
- Definition Classes
- Source
- Target.scala
Returns the local form of this ReferenceTarget
Returns the local form of this ReferenceTarget
For example, given ~Top|Top/foo:Foo/bar:Bar>x,
.pathlessTarget returns ~Top|Bar>x
This is useful for cases in which annotations must point to the module itself rather than an absolute instance of the module (e.g. deduplication).
Attributes
- Definition Classes
- Source
- Target.scala
Resets this target to have a new path
Removes n levels of instance hierarchy
Removes n levels of instance hierarchy
Example: n=1, transforms (Top, A)/b:B/c:C -> (Top, B)/c:C
Attributes
- Definition Classes
- Source
- Target.scala
Inherited methods
Attributes
- Returns
-
Converts this Target into a CompleteTarget
- Inherited from:
- Target
- Source
- Target.scala
Checks whether this is inside of other
Attributes
- Returns
-
The ModuleTarget of the module that directly contains this component
- Inherited from:
- IsMember
- Source
- Target.scala
Attributes
- Inherited from:
- IsMember
- Source
- Target.scala
Attributes
- Returns
-
If legal, convert this Target into a CompleteTarget
- Inherited from:
- CompleteTarget
- Source
- Target.scala
Whether the target is directly instantiated in its root module
Whether the target is directly instantiated in its root module
Attributes
- Definition Classes
- Inherited from:
- IsComponent
- Source
- Target.scala
Attributes
- Returns
-
Tokens of just this member's path
- Definition Classes
- Inherited from:
- IsComponent
- Source
- Target.scala
Attributes
- Returns
-
Returns a new GenericTarget with new values
- Inherited from:
- Target
- Source
- Target.scala
Attributes
- Returns
-
Member's top-level module target
- Inherited from:
- IsMember
- Source
- Target.scala
Attributes
- Returns
-
List of local Instance Targets refering to each instance/ofModule in this member's path
- Inherited from:
- IsMember
- Source
- Target.scala
Attributes
- Returns
-
Member's path target
- Definition Classes
- Inherited from:
- IsComponent
- Source
- Target.scala
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Returns
-
Human-readable serialization
- Inherited from:
- Target
- Source
- Target.scala
Share root module
Attributes
- Returns
-
Converts this Target into a GenericTarget
- Inherited from:
- Target
- Source
- Target.scala
Attributes
- Returns
-
Converts this Target into either a ModuleName, or ComponentName
- Definition Classes
- Inherited from:
- IsComponent
- Source
- Target.scala
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
CompleteTarget -> Any
- Inherited from:
- CompleteTarget
- Source
- Target.scala
Attributes
- Definition Classes
- Inherited from:
- CompleteTarget
- Source
- Target.scala
Attributes
- Returns
-
Target tokens
- Definition Classes
- Inherited from:
- IsComponent
- Source
- Target.scala
Attributes
- Returns
-
Converts this Target into a CompleteTarget, or if it can't, return original Target
- Inherited from:
- Target
- Source
- Target.scala