Packages

case class UInt2D(xBitCount: BitCount, yBitCount: BitCount) extends Bundle with Product with Serializable

Define an UInt 2D point

xBitCount

width of the x point

yBitCount

width of the y point

Example:
  1. val positionOnScreen = Reg(UInt2D(log2Up(p.screenResX) bits, log2Up(p.screenResY) bits))
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UInt2D
  2. Serializable
  3. Product
  4. Equals
  5. Bundle
  6. ValCallbackRec
  7. ValCallback
  8. MultiData
  9. Data
  10. InComponent
  11. OverridedEqualsHashCode
  12. SpinalTagReady
  13. Assignable
  14. NameableByComponent
  15. Nameable
  16. OwnableRef
  17. ContextUser
  18. ScalaLocated
  19. GlobalDataUser
  20. AnyRef
  21. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new UInt2D(xBitCount: BitCount, yBitCount: BitCount)

    xBitCount

    width of the x point

    yBitCount

    width of the y point

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. val _spinalTags: LinkedHashSet[SpinalTag]
    Definition Classes
    SpinalTagReady
  7. def addAttribute(attribute: Attribute): UInt2D.this.type
    Definition Classes
    DataSpinalTagReady
  8. def addAttribute(name: String, value: Int): UInt2D.this.type
    Definition Classes
    SpinalTagReady
  9. def addAttribute(name: String, value: String): UInt2D.this.type
    Definition Classes
    SpinalTagReady
  10. def addAttribute(name: String): UInt2D.this.type
    Definition Classes
    SpinalTagReady
  11. def addTag[T <: SpinalTag](spinalTag: T): UInt2D.this.type
    Definition Classes
    MultiDataSpinalTagReady
  12. def addTags[T <: SpinalTag](tags: Iterable[T]): UInt2D.this.type
    Definition Classes
    SpinalTagReady
  13. def allowDirectionLessIo(): UInt2D.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
  14. def allowOverride(): UInt2D.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
  15. def allowPartialyAssigned(): UInt2D.this.type

    Allow a register to be partially assigned

    Allow a register to be partially assigned

    Definition Classes
    Data
  16. def allowPruning(): UInt2D.this.type
    Definition Classes
    Data
  17. def allowSimplifyIt(): UInt2D.this.type
    Definition Classes
    Data
  18. def allowUnsetRegToAvoidLatch(): UInt2D.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
  19. def as[T <: Data](dataType: HardType[T]): T
    Definition Classes
    Data
  20. def asBits: Bits

    Cast data to Bits

    Cast data to Bits

    Definition Classes
    MultiDataData
  21. def asData: Data
    Definition Classes
    Data
  22. def asInOut(): UInt2D.this.type

    set a data as inout

    set a data as inout

    Definition Classes
    MultiDataData
  23. def asInput(): UInt2D.this.type

    Set a data as input

    Set a data as input

    Definition Classes
    MultiDataData
  24. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  25. def asOutput(): UInt2D.this.type

    Set a data as output

    Set a data as output

    Definition Classes
    MultiDataData
  26. 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
  27. def assignDontCare(): UInt2D.this.type
    Definition Classes
    Data
  28. def assignFormalRandom(kind: RandomExpKind): Unit
    Definition Classes
    MultiDataData
  29. final def assignFrom(that: AnyRef, target: AnyRef = this)(implicit loc: Location): Unit
    Definition Classes
    Data
  30. def assignFromBits(bits: Bits, hi: Int, lo: Int): Unit
    Definition Classes
    MultiDataData
  31. def assignFromBits(bits: Bits): Unit
    Definition Classes
    MultiDataData
  32. def assignFromBits(bits: Bits, offset: Int, bitCount: BitCount): Unit
    Definition Classes
    Data
  33. 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
  34. def assignUnassignedByName(that: MultiData): Unit
    Definition Classes
    MultiData
  35. def bundleAssign(that: Bundle)(f: (Data, Data) => Unit): Unit
    Definition Classes
    Bundle
  36. def clone(): Bundle
    Definition Classes
    BundleData → AnyRef
  37. def component: Component
    Definition Classes
    ContextUser
  38. final def compositAssignFrom(that: AnyRef, target: AnyRef, kind: AnyRef)(implicit loc: Location): Unit
    Definition Classes
    Assignable
  39. val compositeAssign: Assignable
    Definition Classes
    Assignable
  40. def copyDirectionOfImpl(that: Data): UInt2D.this.type
    Definition Classes
    MultiDataData
  41. def dirString(): String
    Definition Classes
    Data
  42. def dontSimplifyIt(): UInt2D.this.type
    Definition Classes
    Data
  43. def elements: ArrayBuffer[(String, Data)]
    Definition Classes
    BundleMultiData
  44. var elementsCache: ArrayBuffer[(String, Data)]
    Definition Classes
    Bundle
  45. def elementsString: String
    Definition Classes
    MultiData
  46. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  47. def equals(obj: Any): Boolean
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  48. def existsTag(cond: (SpinalTag) => Boolean): Boolean
    Definition Classes
    SpinalTagReady
  49. def filterTag(cond: (SpinalTag) => Boolean): Iterable[SpinalTag]
    Definition Classes
    SpinalTagReady
  50. def find(name: String): Data
    Definition Classes
    MultiData
  51. def findTag(cond: (SpinalTag) => Boolean): Option[SpinalTag]
    Definition Classes
    SpinalTagReady
  52. def flatten: Seq[BaseType]
    Definition Classes
    MultiDataData
  53. def flattenForeach(body: (BaseType) => Unit): Unit
    Definition Classes
    MultiDataData
  54. def flattenLocalName: Seq[String]
    Definition Classes
    MultiDataData
  55. def flip(): UInt2D.this.type

    flip the direction of the data

    flip the direction of the data

    Definition Classes
    MultiDataData
  56. def foreachReflectableNameables(doThat: (Any) => Unit): Unit
    Definition Classes
    Nameable
  57. def foreachTag(body: (SpinalTag) => Unit): Unit
    Definition Classes
    SpinalTagReady
  58. def freeze(): UInt2D.this.type
    Definition Classes
    MultiDataData
  59. def genIf(cond: Boolean): UInt2D.this.type

    Generate this if condition is true

    Generate this if condition is true

    Definition Classes
    Data
  60. def getAheadValue(): UInt2D.this.type
    Definition Classes
    Data
  61. def getBitsWidth: Int

    Return the width of the data

    Return the width of the data

    Definition Classes
    MultiDataData
  62. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  63. def getComponent(): Component
    Definition Classes
    DataInComponentNameableByComponent
  64. def getComponents(): Seq[Component]

    Get current component with all parents

    Get current component with all parents

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

    Create a data set to 0

    Create a data set to 0

    Definition Classes
    MultiDataData
  86. val globalData: GlobalData
    Definition Classes
    GlobalDataUser
  87. var hardtype: HardType[_]
    Definition Classes
    Bundle
  88. def hasTag[T <: SpinalTag](clazz: Class[T]): Boolean
    Definition Classes
    SpinalTagReady
  89. def hasTag(spinalTag: SpinalTag): Boolean
    Definition Classes
    SpinalTagReady
  90. def hashCode(): Int
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  91. final def initFrom(that: AnyRef, target: AnyRef = this): Unit
    Definition Classes
    Data
  92. def instanceAttributes(language: Language): Iterable[Attribute]
    Definition Classes
    SpinalTagReady
  93. def instanceAttributes: Iterable[Attribute]
    Definition Classes
    SpinalTagReady
  94. def isAnalog: Boolean
    Definition Classes
    Data
  95. def isComb: Boolean
    Definition Classes
    Data
  96. def isCompletelyUnnamed: Boolean
    Definition Classes
    Nameable
  97. def isDirectionLess: Boolean
    Definition Classes
    Data
  98. def isEmptyOfTag: Boolean
    Definition Classes
    SpinalTagReady
  99. def isInOut: Boolean
    Definition Classes
    Data
  100. def isInput: Boolean
    Definition Classes
    Data
  101. def isInputOrInOut: Boolean
    Definition Classes
    Data
  102. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  103. def isNamed: Boolean
    Definition Classes
    NameableByComponentNameable
  104. def isOutput: Boolean
    Definition Classes
    Data
  105. def isOutputOrInOut: Boolean
    Definition Classes
    Data
  106. def isPriorityApplicable(namePriority: Byte): Boolean
    Definition Classes
    Nameable
  107. def isReg: Boolean
    Definition Classes
    Data
  108. def isRegOnAssign: Boolean
    Definition Classes
    Data
  109. def isUnnamed: Boolean
    Definition Classes
    Nameable
  110. val name: String
    Definition Classes
    Nameable
  111. val nameableRef: Nameable
    Attributes
    protected
    Definition Classes
    Nameable
    Annotations
    @DontName()
  112. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  113. def noBackendCombMerge(): UInt2D.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
  114. def noCombLoopCheck(): UInt2D.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
  115. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  116. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  117. def onEachAttributes(doIt: (Attribute) => Unit): Unit
    Definition Classes
    SpinalTagReady
  118. def overrideLocalName(name: String): UInt2D.this.type
    Definition Classes
    Nameable
  119. val parent: Data
    Definition Classes
    Data
  120. val parentScope: ScopeStatement
    Definition Classes
    ContextUser
  121. def productElementNames: Iterator[String]
    Definition Classes
    Product
  122. def pull(propagateName: Boolean): UInt2D.this.type
    Definition Classes
    Data
  123. def pull(): UInt2D.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
  124. def purify(): UInt2D.this.type
    Definition Classes
    Data
  125. def randBoot(u: Unit): UInt2D.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
  126. val refOwner: RefOwnerType
    Definition Classes
    OwnableRef
    Annotations
    @DontName()
  127. def reflectNames(): Unit
    Definition Classes
    Nameable
  128. def removeAssignments(data: Boolean = true, init: Boolean = true, initial: Boolean = true): UInt2D.this.type
    Definition Classes
    Data
  129. def removeDataAssignments(): UInt2D.this.type
    Definition Classes
    Data
  130. def removeInitAssignments(): UInt2D.this.type
    Definition Classes
    Data
  131. def removeTag(spinalTag: SpinalTag): UInt2D.this.type
    Definition Classes
    SpinalTagReady
  132. def removeTags(tags: Iterable[SpinalTag]): UInt2D.this.type
    Definition Classes
    SpinalTagReady
  133. def resized: UInt2D.this.type

    Resized data regarding target

    Resized data regarding target

    Definition Classes
    Data
  134. val scalaTrace: Throwable
    Definition Classes
    ScalaLocated
  135. def setAsAnalog(): UInt2D.this.type
    Definition Classes
    Data
  136. def setAsComb(): UInt2D.this.type

    Set baseType to Combinatorial

    Set baseType to Combinatorial

    Definition Classes
    MultiDataData
  137. def setAsDirectionLess(): UInt2D.this.type

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

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

    Definition Classes
    MultiDataData
  138. def setAsReg(): UInt2D.this.type

    Set baseType to reg

    Set baseType to reg

    Definition Classes
    MultiDataData
  139. def setCompositeName(nameable: Nameable, postfix: String, namePriority: Byte): UInt2D.this.type
    Definition Classes
    Nameable
  140. def setCompositeName(nameable: Nameable, postfix: String, weak: Boolean): UInt2D.this.type
    Definition Classes
    Nameable
  141. def setCompositeName(nameable: Nameable, postfix: String): UInt2D.this.type
    Definition Classes
    Nameable
  142. def setCompositeName(nameable: Nameable, namePriority: Byte): UInt2D.this.type
    Definition Classes
    Nameable
  143. def setCompositeName(nameable: Nameable, weak: Boolean): UInt2D.this.type
    Definition Classes
    Nameable
  144. def setCompositeName(nameable: Nameable): UInt2D.this.type
    Definition Classes
    Nameable
  145. def setLambdaName(isNameBody: => Boolean)(nameGen: => String): UInt2D.this.type
    Definition Classes
    Nameable
  146. def setName(name: String, namePriority: Byte): UInt2D.this.type
    Definition Classes
    Nameable
  147. def setName(name: String, weak: Boolean): UInt2D.this.type
    Definition Classes
    Nameable
  148. def setName(name: String): UInt2D.this.type
    Definition Classes
    Nameable
  149. def setNameAsWeak(): UInt2D.this.type
    Definition Classes
    Nameable
  150. def setPartialName(name: String, namePriority: Byte, owner: Any): UInt2D.this.type
    Definition Classes
    Nameable
  151. def setPartialName(name: String, namePriority: Byte): UInt2D.this.type
    Definition Classes
    Nameable
  152. def setPartialName(name: String, weak: Boolean): UInt2D.this.type
    Definition Classes
    Nameable
  153. def setPartialName(owner: Nameable, name: String, namePriority: Byte): UInt2D.this.type
    Definition Classes
    Nameable
  154. def setPartialName(owner: Nameable, name: String, weak: Boolean): UInt2D.this.type
    Definition Classes
    Nameable
  155. def setPartialName(name: String): UInt2D.this.type
    Definition Classes
    Nameable
  156. def setPartialName(owner: Nameable, name: String): UInt2D.this.type
    Definition Classes
    Nameable
  157. def setPartialName(owner: Nameable): UInt2D.this.type
    Definition Classes
    Nameable
  158. def setRefOwner(that: Any): Unit
    Definition Classes
    OwnableRef
  159. def setScalaLocated(source: ScalaLocated): UInt2D.this.type
    Definition Classes
    ScalaLocated
  160. def setWeakName(name: String): UInt2D.this.type
    Definition Classes
    Nameable
  161. def spinalTags: LinkedHashSet[SpinalTag]
    Definition Classes
    SpinalTagReady
  162. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  163. def toIo(): UInt2D.this.type
    Definition Classes
    Data
  164. def toMuxInput[T <: Data](muxOutput: T): T
    Definition Classes
    Data
  165. def toString(): String
    Definition Classes
    BundleNameable → AnyRef → Any
  166. def unfreeze(): UInt2D.this.type
    Definition Classes
    MultiDataData
  167. def unsetName(): UInt2D.this.type
    Definition Classes
    Nameable
  168. def valCallback[T](ref: T, name: String): T
    Definition Classes
    ValCallbackRec → ValCallback
  169. def valCallbackOn(ref: Any, name: String, refs: Set[Any]): Unit
    Definition Classes
    ValCallbackRec
  170. def valCallbackRec(ref: Any, name: String): Unit
    Definition Classes
    BundleValCallbackRec
  171. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  172. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  173. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  174. def wrapNext(): UInt2D.this.type
    Definition Classes
    Data
  175. val x: UInt
  176. val xBitCount: BitCount
  177. val y: UInt
  178. val yBitCount: BitCount
  179. def zipByName(that: MultiData, rec: ArrayBuffer[(BaseType, BaseType)] = ArrayBuffer()): ArrayBuffer[(BaseType, BaseType)]
    Definition Classes
    MultiData

Deprecated Value Members

  1. def asDirectionLess(): UInt2D.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

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Bundle

Inherited from ValCallbackRec

Inherited from ValCallback

Inherited from MultiData

Inherited from Data

Inherited from InComponent

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