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
    @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. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def getComplete: Option[CompleteTarget]

    Permalink

    returns

    If legal, convert this Target into a CompleteTarget

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

    Permalink

    returns

    Creates a new Target, appending an instance and ofmodule

    Definition Classes
    InstanceTargetIsModule
  19. val instance: String

    Permalink

    Name of the instance

  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. 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
  22. def justPath: Seq[TargetToken]

    Permalink

    returns

    Tokens of just this member's path

    Definition Classes
    IsComponentIsMember
  23. 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
  24. val module: String

    Permalink

    Root module (e.g.

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

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

    Permalink

    returns

    Module name, if it exists

    Definition Classes
    InstanceTargetTarget
  26. def moduleTarget: ModuleTarget

    Permalink

    returns

    Member's top-level module target

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

    Permalink
    Definition Classes
    AnyRef
  28. 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
  29. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. val ofModule: String

    Permalink

    Name of the instance's module

  32. def ofModuleTarget: ModuleTarget

    Permalink

    returns

    a ReferenceTarget referring to declaration of this ofModule

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

    Permalink

    Path through instance/ofModules

    Path through instance/ofModules

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

    Permalink

    returns

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

    Definition Classes
    IsMember
  35. def pathTarget: IsModule

    Permalink

    returns

    Member's path target

    Definition Classes
    IsComponentIsMember
  36. def pathlessTarget: InstanceTarget

    Permalink

    returns

    Same target without a path

    Definition Classes
    InstanceTargetIsMember
  37. 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
  38. def ref(value: String): ReferenceTarget

    Permalink

    returns

    Creates a new Target, appending a ref

    Definition Classes
    InstanceTargetIsModule
  39. def serialize: String

    Permalink

    returns

    Human-readable serialization

    Definition Classes
    TargetNamed
  40. 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
  41. 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
  42. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  43. def targetParent: IsModule

    Permalink

    returns

    Member's parent target

    Definition Classes
    InstanceTargetIsMember
  44. def toGenericTarget: GenericTarget

    Permalink

    returns

    Converts this Target into a GenericTarget

    Definition Classes
    Target
  45. def toNamed: ComponentName

    Permalink

    returns

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

    Definition Classes
    IsComponentTarget
  46. def toTarget: CompleteTarget

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

    Permalink

    returns

    Target tokens

    Definition Classes
    IsComponentTarget
  48. def tryToComplete: Target

    Permalink

    returns

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

    Definition Classes
    Target
  49. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long, arg1: Int): Unit

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

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

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