Class

firrtl.annotations

InstanceTarget

Related Doc: package annotations

Permalink

case class InstanceTarget(circuit: String, module: String, path: Seq[(Instance, OfModule)], instance: String, ofModule: String) extends IsModule with IsComponent with Product with Serializable

Points to an instance declaration of a module (termed an ofModule)

circuit

Encapsulating circuit

module

Root module (e.g. the base module of this target)

path

Path through instance/ofModules

instance

Name of the instance

ofModule

Name of the instance's module

Source
Target.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InstanceTarget
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. IsComponent
  7. IsModule
  8. IsMember
  9. CompleteTarget
  10. Target
  11. Named
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new InstanceTarget(circuit: String, module: String, path: Seq[(Instance, OfModule)], instance: String, ofModule: String)

    Permalink

    circuit

    Encapsulating circuit

    module

    Root module (e.g. the base module of this target)

    path

    Path through instance/ofModules

    instance

    Name of the instance

    ofModule

    Name of the instance's module

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addHierarchy(root: String, inst: String): InstanceTarget

    Permalink

    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

    Definition Classes
    InstanceTargetIsModuleCompleteTarget
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def asPath: Seq[(Instance, OfModule)]

    Permalink

    returns

    Creates a path, assuming all Instance and OfModules in this IsMember is used as a path

    Definition Classes
    InstanceTargetIsMember
  7. def asReference: ReferenceTarget

    Permalink

    returns

    a ReferenceTarget referring to this declaration of this instance

  8. val circuit: String

    Permalink

    Encapsulating circuit

    Encapsulating circuit

    Definition Classes
    InstanceTargetCompleteTarget
  9. def circuitOpt: Option[String]

    Permalink

    returns

    Circuit name, if it exists

    Definition Classes
    InstanceTargetTarget
  10. def circuitTarget: CircuitTarget

    Permalink

    returns

    The CircuitTarget of this target's circuit

    Definition Classes
    CompleteTarget
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  12. def complete: CompleteTarget

    Permalink

    returns

    Converts this Target into a CompleteTarget

    Definition Classes
    Target
  13. def encapsulatingModule: String

    Permalink

    returns

    The ModuleTarget of the module that directly contains this component

    Definition Classes
    IsComponent
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  16. def getComplete: Option[CompleteTarget]

    Permalink

    returns

    If legal, convert this Target into a CompleteTarget

    Definition Classes
    CompleteTargetTarget
  17. def instOf(inst: String, of: String): InstanceTarget

    Permalink

    returns

    Creates a new Target, appending an instance and ofmodule

    Definition Classes
    InstanceTargetIsModule
  18. val instance: String

    Permalink

    Name of the instance

  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def isLocal: Boolean

    Permalink

    Whether the target is directly instantiated in its root module

    Whether the target is directly instantiated in its root module

    Definition Classes
    IsComponentTarget
  21. def justPath: Seq[TargetToken]

    Permalink

    returns

    Tokens of just this member's path

    Definition Classes
    IsComponentIsMember
  22. def modify(circuitOpt: Option[String] = circuitOpt, moduleOpt: Option[String] = moduleOpt, tokens: Seq[TargetToken] = tokens): GenericTarget

    Permalink

    returns

    Returns a new GenericTarget with new values

    Definition Classes
    Target
  23. val module: String

    Permalink

    Root module (e.g.

    Root module (e.g. the base module of this target)

    Definition Classes
    InstanceTargetIsMember
  24. def moduleOpt: Option[String]

    Permalink

    returns

    Module name, if it exists

    Definition Classes
    InstanceTargetTarget
  25. def moduleTarget: ModuleTarget

    Permalink

    returns

    Member's top-level module target

    Definition Classes
    IsMember
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. def notPath: Seq[Product with Serializable with TargetToken { def value: String }]

    Permalink

    returns

    Local tokens of what this member points (not a path)

    Definition Classes
    InstanceTargetIsMember
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  30. val ofModule: String

    Permalink

    Name of the instance's module

  31. def ofModuleTarget: ModuleTarget

    Permalink

    returns

    a ModuleTarget referring to declaration of this ofModule

  32. val path: Seq[(Instance, OfModule)]

    Permalink

    Path through instance/ofModules

    Path through instance/ofModules

    Definition Classes
    InstanceTargetIsMember
  33. def pathAsTargets: Seq[InstanceTarget]

    Permalink

    returns

    List of local Instance Targets refering to each instance/ofModule in this member's path

    Definition Classes
    IsMember
  34. def pathTarget: IsModule

    Permalink

    returns

    Member's path target

    Definition Classes
    IsComponentIsMember
  35. def pathlessTarget: InstanceTarget

    Permalink

    returns

    Same target without a path

    Definition Classes
    InstanceTargetIsMember
  36. def prettyPrint(tab: String = ""): String

    Permalink

    Pretty serialization, ideal for error messages.

    Pretty serialization, ideal for error messages. Cannot be deserialized.

    returns

    Human-readable serialization

    Definition Classes
    Target
  37. def ref(value: String): ReferenceTarget

    Permalink

    returns

    Creates a new Target, appending a ref

    Definition Classes
    InstanceTargetIsModule
  38. def serialize: String

    Permalink

    returns

    Human-readable serialization

    Definition Classes
    TargetNamed
  39. def setPathTarget(newPath: IsModule): InstanceTarget

    Permalink

    Resets this target to have a new path

    Resets this target to have a new path

    Definition Classes
    InstanceTargetIsMember
  40. def stripHierarchy(n: Int): IsModule

    Permalink

    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

    Definition Classes
    InstanceTargetIsComponent
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  42. def targetParent: IsModule

    Permalink

    returns

    Member's parent target

    Definition Classes
    InstanceTargetIsMember
  43. def toGenericTarget: GenericTarget

    Permalink

    returns

    Converts this Target into a GenericTarget

    Definition Classes
    Target
  44. def toNamed: ComponentName

    Permalink

    returns

    Converts this Target into either a CircuitName, ModuleName, or ComponentName

    Definition Classes
    IsComponentTarget
  45. def toTarget: CompleteTarget

    Permalink
    Definition Classes
    CompleteTargetNamed
  46. def tokens: Seq[TargetToken]

    Permalink

    returns

    Target tokens

    Definition Classes
    IsComponentTarget
  47. def tryToComplete: Target

    Permalink

    returns

    Converts this Target into a CompleteTarget, or if it can't, return original Target

    Definition Classes
    Target
  48. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from IsComponent

Inherited from IsModule

Inherited from IsMember

Inherited from CompleteTarget

Inherited from Target

Inherited from Named

Inherited from AnyRef

Inherited from Any

Ungrouped