Packages

class Fragment[T <: Data] extends Bundle

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Fragment
  2. Bundle
  3. ValCallbackRec
  4. ValCallback
  5. MultiData
  6. Data
  7. InComponent
  8. OverridedEqualsHashCode
  9. SpinalTagReady
  10. Assignable
  11. NameableByComponent
  12. Nameable
  13. OwnableRef
  14. ContextUser
  15. ScalaLocated
  16. GlobalDataUser
  17. AnyRef
  18. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Fragment(fragmentType: HardType[T])

Type Members

  1. abstract type RefOwnerType
    Definition Classes
    OwnableRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. def ##(right: Data): Bits

    Concatenation between two data

    Concatenation between two data

    Definition Classes
    Data
  3. final def ##(): Int
    Definition Classes
    AnyRef → Any
  4. def #*(count: Int): Bits
    Definition Classes
    Data
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def IFparent: Data
    Definition Classes
    Data
  7. val _spinalTags: LinkedHashSet[SpinalTag]
    Definition Classes
    SpinalTagReady
  8. def addAttribute(attribute: Attribute): Fragment.this.type
    Definition Classes
    DataSpinalTagReady
  9. def addAttribute(name: String, value: Int): Fragment.this.type
    Definition Classes
    SpinalTagReady
  10. def addAttribute(name: String, value: String): Fragment.this.type
    Definition Classes
    SpinalTagReady
  11. def addAttribute(name: String): Fragment.this.type
    Definition Classes
    SpinalTagReady
  12. def addTag[T <: SpinalTag](spinalTag: T): Fragment.this.type
    Definition Classes
    MultiDataSpinalTagReady
  13. def addTags(h: SpinalTag, tail: SpinalTag*): Fragment.this.type
    Definition Classes
    SpinalTagReady
  14. def addTags[T <: SpinalTag](tags: Iterable[T]): Fragment.this.type
    Definition Classes
    SpinalTagReady
  15. def allowDirectionLessIo(): Fragment.this.type

    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

    Definition Classes
    Data
  16. def allowOverride(): Fragment.this.type

    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

    Definition Classes
    Data
  17. def allowPartialyAssigned(): Fragment.this.type

    Allow a register to be partially assigned

    Allow a register to be partially assigned

    Definition Classes
    Data
  18. def allowPruning(): Fragment.this.type
    Definition Classes
    Data
  19. def allowSimplifyIt(): Fragment.this.type
    Definition Classes
    Data
  20. def allowUnsetRegToAvoidLatch(): Fragment.this.type

    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

    Definition Classes
    Data
  21. def as[T <: Data](dataType: HardType[T]): T
    Definition Classes
    Data
  22. def asBits: Bits

    Cast data to Bits

    Cast data to Bits

    Definition Classes
    MultiDataData
  23. def asData: Data
    Definition Classes
    Data
  24. def asInOut(): Fragment.this.type

    set a data as inout

    set a data as inout

    Definition Classes
    MultiDataData
  25. def asInput(): Fragment.this.type

    Set a data as input

    Set a data as input

    Definition Classes
    MultiDataData
  26. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  27. def asOutput(): Fragment.this.type

    Set a data as output

    Set a data as output

    Definition Classes
    MultiDataData
  28. def assignAllByName(that: Bundle): Unit

    Assign the bundle with an other bundle by name

    Assign the bundle with an other bundle by name

    Definition Classes
    Bundle
  29. def assignDontCare(): Fragment.this.type
    Definition Classes
    Data
  30. def assignDontCareToUnasigned(): Fragment.this.type
    Definition Classes
    Data
  31. def assignFormalRandom(kind: RandomExpKind): Unit
    Definition Classes
    MultiDataData
  32. final def assignFrom(that: AnyRef, target: AnyRef = this)(implicit loc: Location): Unit
    Definition Classes
    Data
  33. def assignFromBits(bits: Bits, hi: Int, lo: Int): Unit
    Definition Classes
    MultiDataData
  34. def assignFromBits(bits: Bits): Unit
    Definition Classes
    MultiDataData
  35. def assignFromBits(bits: Bits, offset: Int, bitCount: BitCount): Unit
    Definition Classes
    Data
  36. def assignFromImpl(that: AnyRef, target: AnyRef, kind: AnyRef)(implicit loc: Location): Unit
    Attributes
    protected
    Definition Classes
    BundleAssignable
  37. def assignSomeByName(that: Bundle): Unit

    Assign all possible signal fo the bundle with an other bundle by name

    Assign all possible signal fo the bundle with an other bundle by name

    Definition Classes
    Bundle
  38. def assignUnassignedByName(that: MultiData): Unit
    Definition Classes
    MultiData
  39. def bundleAssign(that: Bundle)(f: (Data, Data) ⇒ Unit): Unit
    Definition Classes
    Bundle
  40. def checkDir(that: Bundle): Boolean

    for interface find modport

    for interface find modport

    Definition Classes
    Bundle
  41. def clearAll(): Fragment.this.type
    Definition Classes
    Data
  42. def clone(): Fragment.this.type
    Definition Classes
    FragmentBundleData → AnyRef
  43. def component: Component
    Definition Classes
    ContextUser
  44. final def compositAssignFrom(that: AnyRef, target: AnyRef, kind: AnyRef)(implicit loc: Location): Unit
    Definition Classes
    Assignable
  45. val compositeAssign: Assignable
    Definition Classes
    Assignable
  46. def copyDirectionOfImpl(that: Data): Fragment.this.type
    Definition Classes
    MultiDataData
  47. def dataType: T
  48. def dirString(): String
    Definition Classes
    Data
  49. def dontSimplifyIt(): Fragment.this.type
    Definition Classes
    Data
  50. def elements: ArrayBuffer[(String, Data)]
    Definition Classes
    BundleMultiData
  51. var elementsCache: ArrayBuffer[(String, Data)]
    Definition Classes
    Bundle
  52. def elementsString: String
    Definition Classes
    MultiData
  53. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  54. def equals(obj: Any): Boolean
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  55. def existsTag(cond: (SpinalTag) ⇒ Boolean): Boolean
    Definition Classes
    SpinalTagReady
  56. def filterTag(cond: (SpinalTag) ⇒ Boolean): Iterable[SpinalTag]
    Definition Classes
    SpinalTagReady
  57. def find(name: String): Data
    Definition Classes
    MultiData
  58. def findTag(cond: (SpinalTag) ⇒ Boolean): Option[SpinalTag]
    Definition Classes
    SpinalTagReady
  59. def flatten: Seq[BaseType]
    Definition Classes
    MultiDataData
  60. def flattenForeach(body: (BaseType) ⇒ Unit): Unit
    Definition Classes
    MultiDataData
  61. def flattenLocalName: Seq[String]
    Definition Classes
    MultiDataData
  62. def flip(): Fragment.this.type

    flip the direction of the data

    flip the direction of the data

    Definition Classes
    MultiDataData
  63. def foreachReflectableNameables(doThat: (Any) ⇒ Unit): Unit
    Definition Classes
    Nameable
  64. def foreachTag(body: (SpinalTag) ⇒ Unit): Unit
    Definition Classes
    SpinalTagReady
  65. val fragment: T
  66. val fragmentType: HardType[T]
  67. def freeze(): Fragment.this.type
    Definition Classes
    MultiDataData
  68. def getAheadValue(): Fragment.this.type

    For a register, get the value it will have at the next clock, as a combinational signal.

    For a register, get the value it will have at the next clock, as a combinational signal.

    Definition Classes
    Data
  69. def getBitsWidth: Int

    Return the width of the data

    Return the width of the data

    Definition Classes
    MultiDataData
  70. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  71. def getComponent(): Component
    Definition Classes
    DataInComponentNameableByComponent
  72. def getComponents(): Seq[Component]

    Get current component with all parents

    Get current component with all parents

    Definition Classes
    InComponent
  73. def getDirection: IODirection
    Definition Classes
    Data
  74. def getDisplayName(): String
    Definition Classes
    Nameable
  75. def getInstanceCounter: Int
    Definition Classes
    ContextUser
  76. def getMode: Byte
    Attributes
    protected
    Definition Classes
    Nameable
  77. def getMuxType[T <: Data](list: TraversableOnce[T]): HardType[T]
    Definition Classes
    Data
  78. def getName(default: String): String
    Definition Classes
    NameableByComponentNameable
  79. def getName(): String
    Definition Classes
    NameableByComponentNameable
  80. def getPartialName(): String
    Definition Classes
    Nameable
  81. def getPath(from: Component, to: Component): Seq[Component]
    Definition Classes
    NameableByComponent
  82. def getRealSource: Any
    Definition Classes
    Assignable
  83. def getRealSourceNoRec: Any
    Definition Classes
    DataAssignable
  84. def getRefOwnersChain(): List[Any]
    Definition Classes
    OwnableRef
  85. def getRootParent: Data
    Definition Classes
    Data
  86. def getRtlPath(separator: String = "/"): String
    Definition Classes
    Data
  87. def getScalaLocationLong: String
    Definition Classes
    ScalaLocated
  88. def getScalaLocationShort: String
    Definition Classes
    ScalaLocated
  89. def getScalaTrace(): Throwable
    Definition Classes
    ScalaLocated
  90. def getTag[T <: SpinalTag](clazz: Class[T]): Option[T]
    Definition Classes
    SpinalTagReady
  91. def getTags(): LinkedHashSet[SpinalTag]
    Definition Classes
    SpinalTagReady
  92. def getTypeString: String
    Definition Classes
    Bundle
  93. def getZero: Fragment.this.type

    Create a data set to 0

    Create a data set to 0

    Definition Classes
    MultiDataData
  94. val globalData: GlobalData
    Definition Classes
    GlobalDataUser
  95. var hardtype: HardType[_]
    Definition Classes
    Bundle
  96. def hasTag[T <: SpinalTag](clazz: Class[T]): Boolean
    Definition Classes
    SpinalTagReady
  97. def hasTag(spinalTag: SpinalTag): Boolean
    Definition Classes
    SpinalTagReady
  98. def hashCode(): Int
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  99. final def initFrom(that: AnyRef, target: AnyRef = this): Unit
    Definition Classes
    Data
  100. def instanceAttributes(language: Language): Iterable[Attribute]
    Definition Classes
    SpinalTagReady
  101. def instanceAttributes: Iterable[Attribute]
    Definition Classes
    SpinalTagReady
  102. def isAnalog: Boolean
    Definition Classes
    Data
  103. def isComb: Boolean
    Definition Classes
    Data
  104. def isCompletelyUnnamed: Boolean
    Definition Classes
    Nameable
  105. def isDirectionLess: Boolean
    Definition Classes
    Data
  106. def isEmptyOfTag: Boolean
    Definition Classes
    SpinalTagReady
  107. def isInOut: Boolean
    Definition Classes
    Data
  108. def isInput: Boolean
    Definition Classes
    Data
  109. def isInputOrInOut: Boolean
    Definition Classes
    Data
  110. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  111. final def isNamed: Boolean
    Definition Classes
    Nameable
  112. def isOutput: Boolean
    Definition Classes
    Data
  113. def isOutputOrInOut: Boolean
    Definition Classes
    Data
  114. def isPriorityApplicable(namePriority: Byte): Boolean
    Definition Classes
    Nameable
  115. def isReg: Boolean
    Definition Classes
    Data
  116. def isRegOnAssign: Boolean
    Definition Classes
    Data
  117. def isUnnamed: Boolean
    Definition Classes
    NameableByComponentNameable
  118. val last: Bool
  119. val name: String
    Definition Classes
    Nameable
  120. val nameableRef: Nameable
    Attributes
    protected
    Definition Classes
    Nameable
    Annotations
    @DontName()
  121. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  122. def noBackendCombMerge(): Fragment.this.type

    Put the combinatorial logic driving this signal in a separate process

    Put the combinatorial logic driving this signal in a separate process

    Definition Classes
    Data
  123. def noCombLoopCheck(): Fragment.this.type

    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

    Definition Classes
    Data
  124. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  125. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  126. def onEachAttributes(doIt: (Attribute) ⇒ Unit): Unit
    Definition Classes
    SpinalTagReady
  127. def overrideLocalName(name: String): Fragment.this.type
    Definition Classes
    Nameable
  128. val parent: Data
    Definition Classes
    Data
  129. val parentScope: ScopeStatement
    Definition Classes
    ContextUser
  130. def pull(propagateName: Boolean): Fragment.this.type
    Definition Classes
    Data
  131. def pull(): Fragment.this.type

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

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

    Definition Classes
    Data
  132. def purify(): Fragment.this.type
    Definition Classes
    Data
  133. def randBoot(u: Unit): Fragment.this.type

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

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

    Definition Classes
    Data
  134. val refOwner: RefOwnerType
    Definition Classes
    OwnableRef
    Annotations
    @DontName()
  135. def reflectNames(): Unit
    Definition Classes
    Nameable
  136. def removeAssignments(data: Boolean = true, init: Boolean = true, initial: Boolean = true): Fragment.this.type
    Definition Classes
    Data
  137. def removeDataAssignments(): Fragment.this.type
    Definition Classes
    Data
  138. def removeInitAssignments(): Fragment.this.type
    Definition Classes
    Data
  139. def removeTag(spinalTag: SpinalTag): Fragment.this.type
    Definition Classes
    SpinalTagReady
  140. def removeTags(tags: Iterable[SpinalTag]): Fragment.this.type
    Definition Classes
    SpinalTagReady
  141. def resized: Fragment.this.type

    Resized data regarding target

    Resized data regarding target

    Definition Classes
    Data
  142. def rootIF(): Interface

    root interface

    root interface

    Definition Classes
    Data
  143. def rootIFList(): List[Interface]
    Definition Classes
    Data
  144. def rootIFrec(now: Data, lastRoot: List[Interface]): List[Interface]
    Definition Classes
    Data
  145. val scalaTrace: Throwable
    Definition Classes
    ScalaLocated
  146. def setAll(): Fragment.this.type
    Definition Classes
    Data
  147. def setAsAnalog(): Fragment.this.type
    Definition Classes
    Data
  148. def setAsComb(): Fragment.this.type

    Set baseType to Combinatorial

    Set baseType to Combinatorial

    Definition Classes
    MultiDataData
  149. def setAsDirectionLess(): Fragment.this.type

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

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

    Definition Classes
    MultiDataData
  150. def setAsReg(): Fragment.this.type

    Set baseType to reg

    Set baseType to reg

    Definition Classes
    MultiDataData
  151. def setCompositeName(nameable: Nameable, postfix: String, namePriority: Byte): Fragment.this.type
    Definition Classes
    Nameable
  152. def setCompositeName(nameable: Nameable, postfix: String, weak: Boolean): Fragment.this.type
    Definition Classes
    Nameable
  153. def setCompositeName(nameable: Nameable, postfix: String): Fragment.this.type
    Definition Classes
    Nameable
  154. def setCompositeName(nameable: Nameable, namePriority: Byte): Fragment.this.type
    Definition Classes
    Nameable
  155. def setCompositeName(nameable: Nameable, weak: Boolean): Fragment.this.type
    Definition Classes
    Nameable
  156. def setCompositeName(nameable: Nameable): Fragment.this.type
    Definition Classes
    Nameable
  157. def setLambdaName(isNameBody: ⇒ Boolean)(nameGen: ⇒ String): Fragment.this.type
    Definition Classes
    Nameable
  158. def setName(name: String, namePriority: Byte): Fragment.this.type
    Definition Classes
    Nameable
  159. def setName(name: String, weak: Boolean): Fragment.this.type
    Definition Classes
    Nameable
  160. def setName(name: String): Fragment.this.type
    Definition Classes
    Nameable
  161. def setNameAsWeak(): Fragment.this.type
    Definition Classes
    Nameable
  162. def setOutputAsReg(): Fragment.this.type

    Recursively set baseType to reg only for output

    Recursively set baseType to reg only for output

    Definition Classes
    Data
  163. def setPartialName(name: String, namePriority: Byte, owner: Any): Fragment.this.type
    Definition Classes
    Nameable
  164. def setPartialName(name: String, namePriority: Byte): Fragment.this.type
    Definition Classes
    Nameable
  165. def setPartialName(name: String, weak: Boolean): Fragment.this.type
    Definition Classes
    Nameable
  166. def setPartialName(owner: Nameable, name: String, namePriority: Byte): Fragment.this.type
    Definition Classes
    Nameable
  167. def setPartialName(owner: Nameable, name: String, weak: Boolean): Fragment.this.type
    Definition Classes
    Nameable
  168. def setPartialName(name: String): Fragment.this.type
    Definition Classes
    Nameable
  169. def setPartialName(owner: Nameable, name: String): Fragment.this.type
    Definition Classes
    Nameable
  170. def setPartialName(owner: Nameable): Fragment.this.type
    Definition Classes
    Nameable
  171. def setRefOwner(that: Any): Unit
    Definition Classes
    OwnableRef
  172. def setScalaLocated(source: ScalaLocated): Fragment.this.type
    Definition Classes
    ScalaLocated
  173. def setWeakName(name: String): Fragment.this.type
    Definition Classes
    Nameable
  174. def spinalTags: LinkedHashSet[SpinalTag]
    Definition Classes
    SpinalTagReady
  175. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  176. def toIo(): Fragment.this.type
    Definition Classes
    Data
  177. def toMuxInput[T <: Data](muxOutput: T): T
    Definition Classes
    Data
  178. def toString(): String
    Definition Classes
    BundleNameable → AnyRef → Any
  179. def unfreeze(): Fragment.this.type
    Definition Classes
    MultiDataData
  180. def unsetName(): Fragment.this.type
    Definition Classes
    Nameable
  181. def valCallback[T](ref: T, name: String): T
    Definition Classes
    ValCallbackRec → ValCallback
  182. def valCallbackOn(ref: Any, name: String, refs: Set[Any]): Unit
    Definition Classes
    ValCallbackRec
  183. def valCallbackRec(ref: Any, name: String): Unit
    Definition Classes
    BundleValCallbackRec
  184. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  185. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  186. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  187. def wrapNext(): Fragment.this.type
    Definition Classes
    Data
  188. def zipByName(that: MultiData, rec: ArrayBuffer[(BaseType, BaseType)] = ArrayBuffer()): ArrayBuffer[(BaseType, BaseType)]
    Definition Classes
    MultiData

Deprecated Value Members

  1. def asDirectionLess(): Fragment.this.type
    Definition Classes
    Data
    Annotations
    @deprecated
    Deprecated

    (Since version ???) use setAsDirectionLess instead

  2. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated
  3. def genIf(cond: Boolean): Fragment.this.type

    Generate this if condition is true

    Generate this if condition is true

    Definition Classes
    Data
    Annotations
    @deprecated
    Deprecated

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

Inherited from Bundle

Inherited from ValCallbackRec

Inherited from ValCallback

Inherited from MultiData

Inherited from Data

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