Trait/Object

spinal.core

Data

Related Docs: object Data | package core

Permalink

trait Data extends ContextUser with NameableByComponent with Assignable with SpinalTagReady with GlobalDataUser with ScalaLocated with OwnableRef with OverridedEqualsHashCode with InComponent

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Data
  2. InComponent
  3. OverridedEqualsHashCode
  4. SpinalTagReady
  5. Assignable
  6. NameableByComponent
  7. Nameable
  8. OwnableRef
  9. ContextUser
  10. ScalaLocated
  11. GlobalDataUser
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract type RefOwnerType

    Permalink
    Definition Classes
    OwnableRef

Abstract Value Members

  1. abstract def asBits: Bits

    Permalink

    Cast data to Bits

  2. abstract def assignFromBits(bits: Bits, hi: Int, low: Int): Unit

    Permalink
  3. abstract def assignFromBits(bits: Bits): Unit

    Permalink
  4. abstract def assignFromImpl(that: AnyRef, target: AnyRef, kind: AnyRef)(implicit loc: Location): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Assignable
  5. abstract def flatten: Seq[BaseType]

    Permalink
  6. abstract def flattenLocalName: Seq[String]

    Permalink
  7. abstract def freeze(): Data.this.type

    Permalink
  8. abstract def getBitsWidth: Int

    Permalink

    Return the width of the data

  9. abstract def getZero: Data.this.type

    Permalink

    Create a data set to 0

  10. abstract def setAsComb(): Data.this.type

    Permalink

    Set baseType to Combinatorial

  11. abstract def setAsReg(): Data.this.type

    Permalink

    Set baseType to reg

  12. abstract def unfreeze(): Data.this.type

    Permalink

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. def ##(right: Data): Bits

    Permalink

    Concatenation between two data

  3. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  4. def #*(count: Int): Bits

    Permalink
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. var _spinalTags: LinkedHashSet[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  7. def addAttribute(attribute: Attribute): Data.this.type

    Permalink
    Definition Classes
    DataSpinalTagReady
  8. def addAttribute(name: String, value: Int): Data.this.type

    Permalink
    Definition Classes
    SpinalTagReady
  9. def addAttribute(name: String, value: String): Data.this.type

    Permalink
    Definition Classes
    SpinalTagReady
  10. def addAttribute(name: String): Data.this.type

    Permalink
    Definition Classes
    SpinalTagReady
  11. def addTag[T <: SpinalTag](spinalTag: T): Data.this.type

    Permalink
    Definition Classes
    SpinalTagReady
  12. def addTags(h: SpinalTag, tail: SpinalTag*): Data.this.type

    Permalink
    Definition Classes
    SpinalTagReady
  13. def addTags[T <: SpinalTag](tags: Iterable[T]): Data.this.type

    Permalink
    Definition Classes
    SpinalTagReady
  14. def allowDirectionLessIo(): Data.this.type

    Permalink

    Allow a Data of an io Bundle to be directionless

    Allow a Data of an io Bundle to be directionless

    See https://spinalhdl.github.io/SpinalDoc-RTD/master/SpinalHDL/Design%20errors/iobundle.html

  15. def allowOverride(): Data.this.type

    Permalink

    Allow a Data to be overriden

    Allow a Data to be overriden

    See https://spinalhdl.github.io/SpinalDoc-RTD/master/SpinalHDL/Design%20errors/assignment_overlap.html

  16. def allowPartialyAssigned(): Data.this.type

    Permalink

    Allow a register to be partially assigned

  17. def allowPruning(): Data.this.type

    Permalink
  18. def allowSimplifyIt(): Data.this.type

    Permalink
  19. def allowUnsetRegToAvoidLatch(): Data.this.type

    Permalink

    Allow a register to have only an init (no assignments)

    Allow a register to have only an init (no assignments)

    See https://spinalhdl.github.io/SpinalDoc-RTD/master/SpinalHDL/Design%20errors/unassigned_register.html#register-with-only-init

  20. def as[T <: Data](dataType: HardType[T]): T

    Permalink
  21. def asData: Data

    Permalink
  22. def asInOut(): Data.this.type

    Permalink

    set a data as inout

  23. def asInput(): Data.this.type

    Permalink

    Set a data as input

  24. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  25. def asOutput(): Data.this.type

    Permalink

    Set a data as output

  26. def assignDontCare(): Data.this.type

    Permalink
  27. def assignDontCareToUnasigned(): Data.this.type

    Permalink
  28. def assignFormalRandom(kind: RandomExpKind): Unit

    Permalink
  29. final def assignFrom(that: AnyRef, target: AnyRef = this)(implicit loc: Location): Unit

    Permalink
  30. def assignFromBits(bits: Bits, offset: Int, bitCount: BitCount): Unit

    Permalink
  31. def clearAll(): Data.this.type

    Permalink
  32. def clone(): Data

    Permalink
    Definition Classes
    Data → AnyRef
  33. def component: Component

    Permalink
    Definition Classes
    ContextUser
  34. final def compositAssignFrom(that: AnyRef, target: AnyRef, kind: AnyRef)(implicit loc: Location): Unit

    Permalink
    Definition Classes
    Assignable
  35. var compositeAssign: Assignable

    Permalink
    Definition Classes
    Assignable
  36. def copyDirectionOfImpl(that: Data): Data.this.type

    Permalink
  37. def dirString(): String

    Permalink
  38. def dontSimplifyIt(): Data.this.type

    Permalink
  39. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  40. def equals(obj: Any): Boolean

    Permalink
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  41. def existsTag(cond: (SpinalTag) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    SpinalTagReady
  42. def filterTag(cond: (SpinalTag) ⇒ Boolean): Iterable[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  43. def findTag(cond: (SpinalTag) ⇒ Boolean): Option[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  44. def flattenForeach(body: (BaseType) ⇒ Unit): Unit

    Permalink
  45. def flip(): Data.this.type

    Permalink

    flip the direction of the data

  46. def foreachReflectableNameables(doThat: (Any) ⇒ Unit): Unit

    Permalink
    Definition Classes
    Nameable
  47. def foreachTag(body: (SpinalTag) ⇒ Unit): Unit

    Permalink
    Definition Classes
    SpinalTagReady
  48. def getAheadValue(): Data.this.type

    Permalink
  49. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate()
  50. def getComponent(): Component

    Permalink
    Definition Classes
    DataInComponentNameableByComponent
  51. def getComponents(): Seq[Component]

    Permalink

    Get current component with all parents

    Get current component with all parents

    Definition Classes
    InComponent
  52. def getDirection: IODirection

    Permalink
  53. def getDisplayName(): String

    Permalink
    Definition Classes
    Nameable
  54. def getInstanceCounter: Int

    Permalink
    Definition Classes
    ContextUser
  55. def getMode: Byte

    Permalink
    Attributes
    protected
    Definition Classes
    Nameable
  56. def getMuxType[T <: Data](list: TraversableOnce[T]): HardType[T]

    Permalink
  57. def getName(default: String): String

    Permalink
    Definition Classes
    NameableByComponentNameable
  58. def getName(): String

    Permalink
    Definition Classes
    NameableByComponentNameable
  59. def getPartialName(): String

    Permalink
    Definition Classes
    Nameable
  60. def getPath(from: Component, to: Component): Seq[Component]

    Permalink
    Definition Classes
    NameableByComponent
  61. def getRealSource: Any

    Permalink
    Definition Classes
    Assignable
  62. def getRealSourceNoRec: Any

    Permalink
    Definition Classes
    DataAssignable
  63. def getRefOwnersChain(): List[Any]

    Permalink
    Definition Classes
    OwnableRef
  64. def getRootParent: Data

    Permalink
  65. def getRtlPath(separator: String = "/"): String

    Permalink
  66. def getScalaLocationLong: String

    Permalink
    Definition Classes
    ScalaLocated
  67. def getScalaLocationShort: String

    Permalink
    Definition Classes
    ScalaLocated
  68. def getScalaTrace(): Throwable

    Permalink
    Definition Classes
    ScalaLocated
  69. def getTag[T <: SpinalTag](clazz: Class[T]): Option[T]

    Permalink
    Definition Classes
    SpinalTagReady
  70. def getTags(): LinkedHashSet[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  71. var globalData: GlobalData

    Permalink
    Definition Classes
    GlobalDataUser
  72. def hasTag[T <: SpinalTag](clazz: Class[T]): Boolean

    Permalink
    Definition Classes
    SpinalTagReady
  73. def hasTag(spinalTag: SpinalTag): Boolean

    Permalink
    Definition Classes
    SpinalTagReady
  74. def hashCode(): Int

    Permalink
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  75. final def initFrom(that: AnyRef, target: AnyRef = this): Unit

    Permalink
  76. def instanceAttributes(language: Language): Iterable[Attribute]

    Permalink
    Definition Classes
    SpinalTagReady
  77. def instanceAttributes: Iterable[Attribute]

    Permalink
    Definition Classes
    SpinalTagReady
  78. def isAnalog: Boolean

    Permalink
  79. def isComb: Boolean

    Permalink
  80. def isCompletelyUnnamed: Boolean

    Permalink
    Definition Classes
    Nameable
  81. def isDirectionLess: Boolean

    Permalink
  82. def isEmptyOfTag: Boolean

    Permalink
    Definition Classes
    SpinalTagReady
  83. def isInOut: Boolean

    Permalink
  84. def isInput: Boolean

    Permalink
  85. def isInputOrInOut: Boolean

    Permalink
  86. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  87. def isNamed: Boolean

    Permalink
    Definition Classes
    NameableByComponentNameable
  88. def isOutput: Boolean

    Permalink
  89. def isOutputOrInOut: Boolean

    Permalink
  90. def isPriorityApplicable(namePriority: Byte): Boolean

    Permalink
    Definition Classes
    Nameable
  91. def isReg: Boolean

    Permalink
  92. def isRegOnAssign: Boolean

    Permalink
  93. def isUnnamed: Boolean

    Permalink
    Definition Classes
    Nameable
  94. var name: String

    Permalink
    Definition Classes
    Nameable
  95. var nameableRef: Nameable

    Permalink
    Attributes
    protected
    Definition Classes
    Nameable
  96. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  97. def noBackendCombMerge(): Data.this.type

    Permalink

    Put the combinatorial logic driving this signal in a separate process

  98. def noCombLoopCheck(): Data.this.type

    Permalink

    Disable combinatorial loop checking for this Data

    Disable combinatorial loop checking for this Data

    See https://spinalhdl.github.io/SpinalDoc-RTD/master/SpinalHDL/Design%20errors/combinatorial_loop.html

  99. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate()
  100. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate()
  101. def onEachAttributes(doIt: (Attribute) ⇒ Unit): Unit

    Permalink
    Definition Classes
    SpinalTagReady
  102. def overrideLocalName(name: String): Data.this.type

    Permalink
    Definition Classes
    Nameable
  103. var parent: Data

    Permalink
  104. var parentScope: ScopeStatement

    Permalink
    Definition Classes
    ContextUser
  105. def pull(propagateName: Boolean): Data.this.type

    Permalink
  106. def pull(): Data.this.type

    Permalink

    Pull a signal to the top level (use for debugging)

  107. def purify(): Data.this.type

    Permalink
  108. def randBoot(u: Unit): Data.this.type

    Permalink

    Useful for register that doesn't need a reset value in RTL, but need a random value for simulation (avoid x-propagation)

  109. var refOwner: RefOwnerType

    Permalink
    Definition Classes
    OwnableRef
  110. def reflectNames(): Unit

    Permalink
    Definition Classes
    Nameable
  111. def removeAssignments(data: Boolean = true, init: Boolean = true, initial: Boolean = true): Data.this.type

    Permalink
  112. def removeDataAssignments(): Data.this.type

    Permalink
  113. def removeInitAssignments(): Data.this.type

    Permalink
  114. def removeTag(spinalTag: SpinalTag): Data.this.type

    Permalink
    Definition Classes
    SpinalTagReady
  115. def removeTags(tags: Iterable[SpinalTag]): Data.this.type

    Permalink
    Definition Classes
    SpinalTagReady
  116. def resized: Data.this.type

    Permalink

    Resized data regarding target

  117. def rootIF(): Interface

    Permalink

    root interface

  118. def rootIFList(): List[Interface]

    Permalink
  119. def rootIFrec(now: Data, lastRoot: List[Interface]): List[Interface]

    Permalink
  120. var scalaTrace: Throwable

    Permalink
    Definition Classes
    ScalaLocated
  121. def setAll(): Data.this.type

    Permalink
  122. def setAsAnalog(): Data.this.type

    Permalink
  123. def setAsDirectionLess(): Data.this.type

    Permalink

    remove the direction (in,out,inout) to a data

  124. def setCompositeName(nameable: Nameable, postfix: String, namePriority: Byte): Data.this.type

    Permalink
    Definition Classes
    Nameable
  125. def setCompositeName(nameable: Nameable, postfix: String, weak: Boolean): Data.this.type

    Permalink
    Definition Classes
    Nameable
  126. def setCompositeName(nameable: Nameable, postfix: String): Data.this.type

    Permalink
    Definition Classes
    Nameable
  127. def setCompositeName(nameable: Nameable, namePriority: Byte): Data.this.type

    Permalink
    Definition Classes
    Nameable
  128. def setCompositeName(nameable: Nameable, weak: Boolean): Data.this.type

    Permalink
    Definition Classes
    Nameable
  129. def setCompositeName(nameable: Nameable): Data.this.type

    Permalink
    Definition Classes
    Nameable
  130. def setLambdaName(isNameBody: ⇒ Boolean)(nameGen: ⇒ String): Data.this.type

    Permalink
    Definition Classes
    Nameable
  131. def setName(name: String, namePriority: Byte): Data.this.type

    Permalink
    Definition Classes
    Nameable
  132. def setName(name: String, weak: Boolean): Data.this.type

    Permalink
    Definition Classes
    Nameable
  133. def setName(name: String): Data.this.type

    Permalink
    Definition Classes
    Nameable
  134. def setNameAsWeak(): Data.this.type

    Permalink
    Definition Classes
    Nameable
  135. def setOutputAsReg(): Data.this.type

    Permalink

    Recursively set baseType to reg only for output

  136. def setPartialName(name: String, namePriority: Byte, owner: Any): Data.this.type

    Permalink
    Definition Classes
    Nameable
  137. def setPartialName(name: String, namePriority: Byte): Data.this.type

    Permalink
    Definition Classes
    Nameable
  138. def setPartialName(name: String, weak: Boolean): Data.this.type

    Permalink
    Definition Classes
    Nameable
  139. def setPartialName(owner: Nameable, name: String, namePriority: Byte): Data.this.type

    Permalink
    Definition Classes
    Nameable
  140. def setPartialName(owner: Nameable, name: String, weak: Boolean): Data.this.type

    Permalink
    Definition Classes
    Nameable
  141. def setPartialName(name: String): Data.this.type

    Permalink
    Definition Classes
    Nameable
  142. def setPartialName(owner: Nameable, name: String): Data.this.type

    Permalink
    Definition Classes
    Nameable
  143. def setPartialName(owner: Nameable): Data.this.type

    Permalink
    Definition Classes
    Nameable
  144. def setRefOwner(that: Any): Unit

    Permalink
    Definition Classes
    OwnableRef
  145. def setScalaLocated(source: ScalaLocated): Data.this.type

    Permalink
    Definition Classes
    ScalaLocated
  146. def setWeakName(name: String): Data.this.type

    Permalink
    Definition Classes
    Nameable
  147. def spinalTags: LinkedHashSet[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  148. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  149. def toIo(): Data.this.type

    Permalink
  150. def toMuxInput[T <: Data](muxOutput: T): T

    Permalink
  151. def toString(): String

    Permalink
    Definition Classes
    Nameable → AnyRef → Any
  152. def unsetName(): Data.this.type

    Permalink
    Definition Classes
    Nameable
  153. final def wait(arg0: Long, arg1: Int): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  156. def wrapNext(): Data.this.type

    Permalink

Deprecated Value Members

  1. def asDirectionLess(): Data.this.type

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version ???) use setAsDirectionLess instead

  2. 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.

  3. def genIf(cond: Boolean): Data.this.type

    Permalink

    Generate this if condition is true

    Generate this if condition is true

    Annotations
    @deprecated
    Deprecated

    does not work with <>, use 'someBool generate Type()' or 'if(condition) Type() else null' instead

Inherited from InComponent

Inherited from OverridedEqualsHashCode

Inherited from SpinalTagReady

Inherited from Assignable

Inherited from NameableByComponent

Inherited from Nameable

Inherited from OwnableRef

Inherited from ContextUser

Inherited from ScalaLocated

Inherited from GlobalDataUser

Inherited from AnyRef

Inherited from Any

Ungrouped