Class

spinal.core

UInt

Related Doc: package core

Permalink

class UInt extends BitVector with Num[UInt] with MinMaxProvider with DataPrimitives[UInt] with BaseTypePrimitives[UInt] with BitwiseOp[UInt]

The UInt type corresponds to a vector of bits that can be used for unsigned integer arithmetic.

Example:
  1. val myUInt = UInt(8 bits)
     myUInt := U(2,8 bits)
     myUInt := U(2)
     myUInt := U"0000_0101"
     myUInt := U"h1A"
See also

UInt Documentation

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UInt
  2. BitwiseOp
  3. BaseTypePrimitives
  4. DataPrimitives
  5. MinMaxProvider
  6. Num
  7. BitVector
  8. Widthable
  9. WidthProvider
  10. BaseType
  11. Expression
  12. StatementDoubleLinkedContainer
  13. DoubleLinkedContainer
  14. DeclarationStatement
  15. LeafStatement
  16. Statement
  17. BaseNode
  18. ExpressionContainer
  19. Data
  20. InComponent
  21. OverridedEqualsHashCode
  22. SpinalTagReady
  23. Assignable
  24. NameableByComponent
  25. Nameable
  26. OwnableRef
  27. ContextUser
  28. ScalaLocated
  29. GlobalDataUser
  30. AnyRef
  31. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new UInt()

    Permalink

Type Members

  1. abstract type RefOwnerType

    Permalink
    Definition Classes
    OwnableRef
  2. type T = UInt

    Permalink

    Used to know the data type of the children class of BitVector

    Used to know the data type of the children class of BitVector

    Definition Classes
    UIntBitVector

Value Members

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

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

    Permalink

    Concatenation between two data

    Concatenation between two data

    Definition Classes
    Data
  3. final def ##(): Int

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

    Permalink
    Definition Classes
    Data
  5. def %(right: UInt): UInt

    Permalink

    Modulo

    Modulo

    Definition Classes
    UIntNum
  6. def &(right: UInt): UInt

    Permalink

    Bitwise AND operator

    Bitwise AND operator

    Definition Classes
    UIntBitwiseOp
  7. def *(right: UInt): UInt

    Permalink

    Multiplication

    Multiplication

    Definition Classes
    UIntNum
  8. def +(right: UInt): UInt

    Permalink

    Addition

    Addition

    Definition Classes
    UIntNum
  9. def +^(right: UInt): UInt

    Permalink

    Safe Addition with 1 bit expand

    Safe Addition with 1 bit expand

    Definition Classes
    UIntNum
  10. def +|(right: UInt): UInt

    Permalink

    Safe Addition with saturation

    Safe Addition with saturation

    Definition Classes
    UIntNum
  11. def -(right: UInt): UInt

    Permalink

    Substraction

    Substraction

    Definition Classes
    UIntNum
  12. def -^(right: UInt): UInt

    Permalink

    Safe Substraction with 1 bit expand

    Safe Substraction with 1 bit expand

    Definition Classes
    UIntNum
  13. def -|(right: UInt): UInt

    Permalink

    Safe Substraction with saturation

    Safe Substraction with saturation

    Definition Classes
    UIntNum
  14. def /(right: UInt): UInt

    Permalink

    Division

    Division

    Definition Classes
    UIntNum
  15. def :=(value: String): Unit

    Permalink
  16. def :=(rangesValue: (Any, Any), _rangesValues: (Any, Any)*): Unit

    Permalink

    Assign a range value to an UInt

    Assign a range value to an UInt

    rangesValue

    The first range value

    _rangesValues

    Others range values

    Example:
    1. core.io.interrupt = (0 -> uartCtrl.io.interrupt, 1 -> timerCtrl.io.interrupt, default -> false)
  17. def :=(that: UInt)(implicit loc: Location): Unit

    Permalink

    Assign a data to this

    Assign a data to this

    Definition Classes
    DataPrimitives
  18. def <(right: UInt): Bool

    Permalink

    Is less than right

    Is less than right

    Definition Classes
    UIntNum
  19. def <<(that: UInt): UInt

    Permalink

    Logical shift Left (output width will increase of w(this) + max(that) bits

  20. def <<(that: Int): UInt

    Permalink

    Logical left shift (w(T) = w(this) + shift)

    Logical left shift (w(T) = w(this) + shift)

    Definition Classes
    UIntNum
  21. def <=(right: UInt): Bool

    Permalink

    Is equal or less than right

    Is equal or less than right

    Definition Classes
    UIntNum
  22. def <>(that: UInt)(implicit loc: Location): Unit

    Permalink

    Auto connection between two data

    Auto connection between two data

    Definition Classes
    DataPrimitives
  23. def =/=(that: UInt): Bool

    Permalink
    Definition Classes
    DataPrimitives
  24. def =/=(that: MaskedLiteral): Bool

    Permalink

    BitVector is not equal to MaskedLiteral

    BitVector is not equal to MaskedLiteral

    Definition Classes
    BitVector
  25. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  26. def ===(that: UInt): Bool

    Permalink

    Comparison between two data

    Comparison between two data

    Definition Classes
    DataPrimitives
  27. def ===(that: MaskedLiteral): Bool

    Permalink

    Compare a BitVector with a MaskedLiteral (M"110--0")

    Compare a BitVector with a MaskedLiteral (M"110--0")

    that

    the maskedLiteral

    returns

    a Bool data containing the result of the comparison

    Definition Classes
    BitVector
    Example:
    1. val myBool = myBits === M"0-1"
  28. def >(right: UInt): Bool

    Permalink

    Is greater than right

    Is greater than right

    Definition Classes
    UIntNum
  29. def >=(right: UInt): Bool

    Permalink

    Is equal or greater than right

    Is equal or greater than right

    Definition Classes
    UIntNum
  30. def >>(that: UInt): UInt

    Permalink

    Logical shift Right (output width = input width)

    Logical shift Right (output width = input width)

    that

    the number of shift

    returns

    a Bits of width : w(this)

    Example:
    1. val result = myUInt >> myUIntShift
  31. def >>(that: Int): UInt

    Permalink

    Logical right shift (w(T) = w(this) - shift)

    Logical right shift (w(T) = w(this) - shift)

    Definition Classes
    UIntNum
  32. def @@(that: Bool): UInt

    Permalink

    Concatenation between a UInt and a Bool

  33. def @@(that: UInt): UInt

    Permalink

    Concatenation between two UInt

    Concatenation between two UInt

    that

    an UInt to append

    returns

    a new UInt of width (w(this) + w(right))

    Example:
    1. val myUInt = uInt1 @@ uInt2
  34. def Q: QFormat

    Permalink
    Definition Classes
    Num
  35. def \(that: UInt): UInt

    Permalink

    Use as \= to have the same behavioral as VHDL variable

    Use as \= to have the same behavioral as VHDL variable

    Definition Classes
    DataPrimitives
  36. def ^(right: UInt): UInt

    Permalink

    Bitwise XOR operator

    Bitwise XOR operator

    Definition Classes
    UIntBitwiseOp
  37. def _data: UInt

    Permalink
    Definition Classes
    UIntDataPrimitives
  38. def _fixEntry(roundN: Int, roundType: RoundType, satN: Int): UInt

    Permalink
    Attributes
    protected
  39. var _spinalTags: LinkedHashSet[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  40. def addAttribute(attribute: Attribute): UInt.this.type

    Permalink
    Definition Classes
    BaseTypeDataSpinalTagReady
  41. def addAttribute(name: String, value: Int): UInt.this.type

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

    Permalink
    Definition Classes
    SpinalTagReady
  43. def addAttribute(name: String): UInt.this.type

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

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  47. var algoIncrementale: Int

    Permalink
    Definition Classes
    BaseNode
  48. var algoInt: Int

    Permalink
    Definition Classes
    BaseNode
  49. def allowDirectionLessIo(): UInt.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

    Definition Classes
    Data
  50. def allowOverride(): UInt.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

    Definition Classes
    Data
  51. def allowPartialyAssigned(): UInt.this.type

    Permalink

    Allow a register to be partially assigned

    Allow a register to be partially assigned

    Definition Classes
    Data
  52. def allowPruning(): UInt.this.type

    Permalink
    Definition Classes
    Data
  53. def allowSimplifyIt(): UInt.this.type

    Permalink
    Definition Classes
    BaseTypeData
  54. def allowUnsetRegToAvoidLatch(): UInt.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

    Definition Classes
    Data
  55. def andMask(that: Bool): UInt.this.type

    Permalink
    Definition Classes
    BitVector
  56. def andR: Bool

    Permalink

    Logical AND of all bits

    Logical AND of all bits

    Definition Classes
    BitVector
  57. def apply(offset: UInt, bitCount: BitCount): UInt.this.type

    Permalink

    Return a range of bits at offset and of width bitCount

    Return a range of bits at offset and of width bitCount

    Definition Classes
    UIntBitVector
    Example:
    1. val myBool = myBits(myUInt, 2 bits)
  58. def apply(offset: Int, bitCount: BitCount): UInt.this.type

    Permalink

    Return a range of bits at offset and of width bitCount

    Return a range of bits at offset and of width bitCount

    Definition Classes
    UIntBitVector
    Example:
    1. val myBool = myBits(3, 2 bits)
  59. def apply(bitId: UInt): Bool

    Permalink

    Return the bit at index bitId

    Return the bit at index bitId

    Definition Classes
    UIntBitVector
    Example:
    1. val myBool = myBits(myUInt)
  60. def apply(bitId: Int): Bool

    Permalink

    Return the bit at index bitId

    Return the bit at index bitId

    Definition Classes
    UIntBitVector
    Example:
    1. val myBool = myBits(3)
  61. def apply(range: Range): UInt.this.type

    Permalink

    Return a range of bits

    Return a range of bits

    Definition Classes
    BitVector
    Example:
    1. val myBool = myBits(3 downto 1)
  62. def as[T <: Data](dataType: HardType[T]): T

    Permalink
    Definition Classes
    Data
  63. def asBits: Bits

    Permalink

    Cast data to Bits

    Cast data to Bits

    Definition Classes
    UIntData
  64. def asBool: Bool

    Permalink
    Definition Classes
    BitVector
  65. def asBools: Vec[Bool]

    Permalink

    Cast the BitVector into a Vector of Bool

    Cast the BitVector into a Vector of Bool

    returns

    a vector of Bool

    Definition Classes
    BitVector
  66. def asData: Data

    Permalink
    Definition Classes
    Data
  67. def asInOut(): UInt.this.type

    Permalink

    set a data as inout

    set a data as inout

    Definition Classes
    BaseTypeData
  68. def asInput(): UInt.this.type

    Permalink

    Set a data as input

    Set a data as input

    Definition Classes
    BaseTypeData
  69. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  70. def asOutput(): UInt.this.type

    Permalink

    Set a data as output

    Set a data as output

    Definition Classes
    BaseTypeData
  71. def asSInt: SInt

    Permalink

    Cast an UInt to a SInt

    Cast an UInt to a SInt

    returns

    a SInt data

    Example:
    1. mySInt := myUInt.asSInt
  72. def assignDontCare(): UInt.this.type

    Permalink
    Definition Classes
    UIntData
  73. def assignDontCareToUnasigned(): UInt.this.type

    Permalink
    Definition Classes
    Data
  74. def assignFormalRandom(kind: RandomExpKind): Unit

    Permalink
    Definition Classes
    UIntData
  75. final def assignFrom(that: AnyRef, target: AnyRef = this)(implicit loc: Location): Unit

    Permalink
    Definition Classes
    Data
  76. def assignFromBits(bits: Bits, hi: Int, lo: Int): Unit

    Permalink
    Definition Classes
    UIntData
  77. def assignFromBits(bits: Bits): Unit

    Permalink
    Definition Classes
    UIntData
  78. def assignFromBits(bits: Bits, offset: Int, bitCount: BitCount): Unit

    Permalink
    Definition Classes
    Data
  79. def assignFromImpl(that: AnyRef, target: AnyRef, kind: AnyRef)(implicit loc: Location): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    BaseTypeAssignable
  80. def assignMask(maskedLiteral: MaskedLiteral): Unit

    Permalink

    Assign a mask to the output signal

    Assign a mask to the output signal

    maskedLiteral

    masked literal value

    Example:
    1. output4 assignMask M"1111
  81. def bitsRange: Range

    Permalink
    Definition Classes
    BitVector
  82. def ceil(n: Int, align: Boolean = true): UInt

    Permalink

    UInt ceil ceil(x) return if(align) w(this)-n bits else w(this)-n+1 bits

    UInt ceil ceil(x) return if(align) w(this)-n bits else w(this)-n+1 bits

    Definition Classes
    UIntNum
  83. def ceil(width: BitCount, align: Boolean): UInt

    Permalink

    lowest n bits Round Operation by BitCount

    lowest n bits Round Operation by BitCount

    Definition Classes
    Num
  84. def ceilToInf(n: Int, align: Boolean = true): UInt

    Permalink
    Definition Classes
    UIntNum
  85. def ceilToInf(width: BitCount, align: Boolean): UInt

    Permalink
    Definition Classes
    Num
  86. def cldCount: Int

    Permalink
    Definition Classes
    DoubleLinkedContainer
  87. def clearAll(): UInt.this.type

    Permalink

    Clear all bits

    Clear all bits

    Definition Classes
    BitVectorData
  88. var clockDomain: ClockDomain

    Permalink
    Definition Classes
    BaseType
  89. def clone(): UInt.this.type

    Permalink
    Definition Classes
    BitVectorBaseTypeData → AnyRef
  90. def component: Component

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

    Permalink
    Definition Classes
    Assignable
  92. var compositeAssign: Assignable

    Permalink
    Definition Classes
    Assignable
  93. def copyDirectionOf(that: UInt): Unit

    Permalink
    Definition Classes
    DataPrimitives
  94. def copyDirectionOfImpl(that: Data): UInt.this.type

    Permalink
    Definition Classes
    BaseTypeData
  95. def default(that: ⇒ UInt): UInt

    Permalink

    Set a default value to a data

    Set a default value to a data

    Definition Classes
    DataPrimitives
  96. def dirString(): String

    Permalink
    Definition Classes
    Data
  97. def dlcAppend(that: AssignmentStatement): UInt.this.type

    Permalink
    Definition Classes
    DoubleLinkedContainer
  98. def dlcForeach[T >: AssignmentStatement](func: (T) ⇒ Unit): Unit

    Permalink
    Definition Classes
    DoubleLinkedContainer
  99. def dlcHasOnlyOne: Boolean

    Permalink
    Definition Classes
    DoubleLinkedContainer
  100. var dlcHead: AssignmentStatement

    Permalink
    Definition Classes
    DoubleLinkedContainer
  101. def dlcIsEmpty: Boolean

    Permalink
    Definition Classes
    DoubleLinkedContainer
  102. var dlcLast: AssignmentStatement

    Permalink
    Definition Classes
    DoubleLinkedContainer
  103. def dlcPrepend(that: AssignmentStatement): UInt.this.type

    Permalink
    Definition Classes
    DoubleLinkedContainer
  104. def dontSimplifyIt(): UInt.this.type

    Permalink
    Definition Classes
    BaseTypeData
  105. def drop(n: Int): Bits

    Permalink

    Drop lowerst n bits

    Drop lowerst n bits

    returns

    data10bits(9 downto 4)

    Definition Classes
    BitVector
    Example:
    1. val res = data10bits.drop(4)
  106. def dropHigh(n: Int): Bits

    Permalink

    Drop highest n bits

    Drop highest n bits

    returns

    data10bits(5 downto 0)

    Definition Classes
    BitVector
    Example:
    1. val res = data10bits.dropHigh(4)
  107. def dropLow(n: Int): Bits

    Permalink
    Definition Classes
    BitVector
  108. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  111. def expand: UInt

    Permalink
  112. def filterTag(cond: (SpinalTag) ⇒ Boolean): Iterable[SpinalTag]

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

    Permalink
    Definition Classes
    SpinalTagReady
  114. def fixTo(q: QFormat): UInt

    Permalink
  115. def fixTo(q: QFormat, roundType: RoundType): UInt

    Permalink
  116. def fixTo(section: Inclusive): UInt

    Permalink
  117. def fixTo(section: Inclusive, roundType: RoundType): UInt

    Permalink
  118. def flatten: Seq[BaseType]

    Permalink
    Definition Classes
    BaseTypeData
  119. def flattenForeach(body: (BaseType) ⇒ Unit): Unit

    Permalink
    Definition Classes
    BaseTypeData
  120. def flattenLocalName: Seq[String]

    Permalink
    Definition Classes
    BaseTypeData
  121. def flip(): UInt.this.type

    Permalink

    flip the direction of the data

    flip the direction of the data

    Definition Classes
    Data
  122. def floor(n: Int): UInt

    Permalink

    UInt ceil floor(x) return w(this)-n bits

    UInt ceil floor(x) return w(this)-n bits

    Definition Classes
    UIntNum
  123. def floor(width: BitCount): UInt

    Permalink
    Definition Classes
    Num
  124. def floorToZero(n: Int): UInt

    Permalink
    Definition Classes
    UIntNum
  125. def floorToZero(width: BitCount): UInt

    Permalink
    Definition Classes
    Num
  126. def foreachClockDomain(func: (ClockDomain) ⇒ Unit): Unit

    Permalink
    Definition Classes
    BaseTypeStatement
  127. def foreachDrivingExpression(func: (Expression) ⇒ Unit): Unit

    Permalink
    Definition Classes
    ExpressionContainer
  128. def foreachExpression(func: (Expression) ⇒ Unit): Unit

    Permalink
  129. def foreachReflectableNameables(doThat: (Any) ⇒ Unit): Unit

    Permalink
    Definition Classes
    Nameable
  130. def foreachStatements(func: (AssignmentStatement) ⇒ Unit): Unit

    Permalink
  131. def foreachTag(body: (SpinalTag) ⇒ Unit): Unit

    Permalink
    Definition Classes
    SpinalTagReady
  132. def freeze(): UInt.this.type

    Permalink
    Definition Classes
    BaseTypeData
  133. def getAheadValue(): UInt.this.type

    Permalink
    Definition Classes
    BaseTypeData
  134. def getAllTrue: UInt.this.type

    Permalink
    Definition Classes
    UIntBitVector
  135. def getBitsWidth: Int

    Permalink

    Return the width of the data

    Return the width of the data

    Definition Classes
    BitVectorData
  136. final def getClass(): Class[_]

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

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

    Permalink

    Get current component with all parents

    Get current component with all parents

    Definition Classes
    InComponent
  139. def getDirection: IODirection

    Permalink
    Definition Classes
    Data
  140. def getDisplayName(): String

    Permalink
    Definition Classes
    Nameable
  141. def getDrivingReg(reportError: Boolean = true): UInt.this.type

    Permalink
    Definition Classes
    BaseType
  142. def getInstanceCounter: Int

    Permalink
    Definition Classes
    ContextUser
  143. def getMode: Byte

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

    Permalink
    Definition Classes
    BitVectorData
  145. def getName(default: String): String

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

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

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

    Permalink
    Definition Classes
    NameableByComponent
  149. def getRealSource: Any

    Permalink
    Definition Classes
    Assignable
  150. def getRealSourceNoRec: Any

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

    Permalink
    Definition Classes
    OwnableRef
  152. def getRootParent: Data

    Permalink
    Definition Classes
    Data
  153. def getRtlPath(separator: String = "/"): String

    Permalink
    Definition Classes
    Data
  154. def getScalaLocationLong: String

    Permalink
    Definition Classes
    ScalaLocated
  155. def getScalaLocationShort: String

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

    Permalink
    Definition Classes
    ScalaLocated
  157. def getSingleDriver: Option[UInt.this.type]

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  160. def getTypeObject: TypeUInt.type

    Permalink
    Definition Classes
    UIntExpression
  161. def getWidth: Int

    Permalink
    Definition Classes
    WidthableWidthProvider
  162. def getWidthNoInferation: Int

    Permalink

    Return the width

    Return the width

    Definition Classes
    BitVector
  163. def getWidthStringNoInferation: String

    Permalink
    Definition Classes
    BitVector
  164. def getZero: UInt.this.type

    Permalink

    Create a data set to 0

    Create a data set to 0

    Definition Classes
    UIntData
  165. def getZeroUnconstrained: UInt.this.type

    Permalink
    Definition Classes
    UIntBitVector
  166. var globalData: GlobalData

    Permalink
    Definition Classes
    GlobalDataUser
  167. def hasAssignement: Boolean

    Permalink
    Definition Classes
    BaseType
  168. def hasDataAssignment: Boolean

    Permalink
    Definition Classes
    BaseType
  169. def hasInit: Boolean

    Permalink

    Does the base type have initial value

    Does the base type have initial value

    Definition Classes
    BaseType
  170. def hasOnlyOneStatement: Boolean

    Permalink
  171. def hasTag[T <: SpinalTag](clazz: Class[T]): Boolean

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

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

    Permalink
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  174. def head: AssignmentStatement

    Permalink
  175. def high: Int

    Permalink

    Return the upper bound

    Return the upper bound

    Definition Classes
    BitVector
  176. def init(that: UInt): UInt

    Permalink

    Set initial value to a data

    Set initial value to a data

    Definition Classes
    DataPrimitives
  177. final def initFrom(that: AnyRef, target: AnyRef = this): Unit

    Permalink
    Definition Classes
    Data
  178. def initial(that: UInt): UInt

    Permalink
    Definition Classes
    BaseTypePrimitives
  179. def initialFrom(that: AnyRef, target: AnyRef = this): Unit

    Permalink
    Definition Classes
    BaseType
  180. def insertNext(s: Statement): Unit

    Permalink
    Definition Classes
    Statement
  181. def instanceAttributes(language: Language): Iterable[Attribute]

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

    Permalink
    Definition Classes
    SpinalTagReady
  183. def intoSInt: SInt

    Permalink
  184. def isAnalog: Boolean

    Permalink
    Definition Classes
    BaseTypeData
  185. def isComb: Boolean

    Permalink
    Definition Classes
    BaseTypeData
  186. def isCompletelyUnnamed: Boolean

    Permalink
    Definition Classes
    Nameable
  187. def isDirectionLess: Boolean

    Permalink
    Definition Classes
    Data
  188. def isEmptyOfTag: Boolean

    Permalink
    Definition Classes
    SpinalTagReady
  189. def isFrozen(): Boolean

    Permalink
    Definition Classes
    BaseType
  190. def isInOut: Boolean

    Permalink
    Definition Classes
    Data
  191. def isInput: Boolean

    Permalink
    Definition Classes
    Data
  192. def isInputOrInOut: Boolean

    Permalink
    Definition Classes
    Data
  193. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  194. def isNamed: Boolean

    Permalink
    Definition Classes
    NameableByComponentNameable
  195. def isOutput: Boolean

    Permalink
    Definition Classes
    Data
  196. def isOutputOrInOut: Boolean

    Permalink
    Definition Classes
    Data
  197. def isPriorityApplicable(namePriority: Byte): Boolean

    Permalink
    Definition Classes
    Nameable
  198. def isReg: Boolean

    Permalink
    Definition Classes
    BaseTypeData
  199. def isRegOnAssign: Boolean

    Permalink
    Definition Classes
    BitVectorData
  200. def isTypeNode: Boolean

    Permalink

    Is the baseType a node

    Is the baseType a node

    Definition Classes
    BaseType
  201. def isUnknown: Bool

    Permalink
    Definition Classes
    BitVector
  202. def isUnnamed: Boolean

    Permalink
    Definition Classes
    Nameable
  203. def isUsingResetSignal: Boolean

    Permalink

    Is the basetype using reset signal

    Is the basetype using reset signal

    Definition Classes
    BaseType
  204. def isUsingSoftResetSignal: Boolean

    Permalink

    Is the basetype using soft reset signal

    Is the basetype using soft reset signal

    Definition Classes
    BaseType
  205. def isVital: Boolean

    Permalink

    Check if the baseType is vital

    Check if the baseType is vital

    Definition Classes
    BaseType
  206. var lastScopeStatement: Statement

    Permalink
    Definition Classes
    Statement
  207. def lsb: Bool

    Permalink

    Return the least significant bit

    Return the least significant bit

    Definition Classes
    BitVector
  208. def max(right: UInt): UInt

    Permalink

    Return the maximum value between this and right

    Return the maximum value between this and right

    Definition Classes
    Num
  209. def maxValue: BigInt

    Permalink
    Definition Classes
    UIntMinMaxProvider
  210. def min(right: UInt): UInt

    Permalink

    Return the minimum value between this and right

    Return the minimum value between this and right

    Definition Classes
    Num
  211. def minValue: BigInt

    Permalink
    Definition Classes
    UIntMinMaxProvider
  212. def msb: Bool

    Permalink

    Return the most significant bit

    Return the most significant bit

    Definition Classes
    BitVector
  213. def mux[T2 <: Data](mappings: (Any, T2)*): T2

    Permalink
    Definition Classes
    BaseType
  214. def muxDc[T2 <: Data](mappings: (Any, T2)*): T2

    Permalink
    Definition Classes
    BaseType
  215. def muxList[T2 <: Data](defaultValue: T2, mappings: Seq[(Any, T2)]): T2

    Permalink
    Definition Classes
    BaseType
  216. def muxList[T2 <: Data](mappings: Seq[(Any, T2)]): T2

    Permalink
    Definition Classes
    BaseType
  217. def muxListDc[T2 <: Data](mappings: Seq[(Any, T2)]): T2

    Permalink
    Definition Classes
    BaseType
  218. var name: String

    Permalink
    Definition Classes
    Nameable
  219. var nameableRef: Nameable

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

    Permalink
    Definition Classes
    AnyRef
  221. def newExtract(offset: UInt, size: Int, extract: BitVectorRangedAccessFloating)(implicit loc: Location): UInt.this.type

    Permalink

    Extract a range of bits of the BitVector

    Extract a range of bits of the BitVector

    Definition Classes
    BitVector
  222. def newExtract(hi: Int, lo: Int, accessFactory: ⇒ BitVectorRangedAccessFixed): UInt.this.type

    Permalink

    Extract a range of bits of the BitVector

    Extract a range of bits of the BitVector

    Definition Classes
    BitVector
  223. def newExtract(bitId: UInt, extract: BitVectorBitAccessFloating): Bool

    Permalink

    Extract a bit of the BitVector

    Extract a bit of the BitVector

    Definition Classes
    BitVector
  224. def newExtract(bitId: Int, extract: BitVectorBitAccessFixed): Bool

    Permalink

    Extract a bit of the BitVector

    Extract a bit of the BitVector

    Definition Classes
    BitVector
  225. var nextScopeStatement: Statement

    Permalink
    Definition Classes
    Statement
  226. def noBackendCombMerge(): UInt.this.type

    Permalink

    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
  227. def noCombLoopCheck(): UInt.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

    Definition Classes
    Data
  228. def normalizeInputs: Unit

    Permalink
    Definition Classes
    BaseTypeExpressionContainer
  229. final def notify(): Unit

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  232. def opName: String

    Permalink
    Definition Classes
    UIntExpression
  233. def orMask(that: Bool): UInt.this.type

    Permalink
    Definition Classes
    BitVector
  234. def orR: Bool

    Permalink

    Logical OR of all bits

    Logical OR of all bits

    Definition Classes
    BitVector
  235. def overrideLocalName(name: String): UInt.this.type

    Permalink
    Definition Classes
    Nameable
  236. var parent: Data

    Permalink
    Definition Classes
    Data
  237. var parentScope: ScopeStatement

    Permalink
    Definition Classes
    ContextUser
  238. def pull(propagateName: Boolean): UInt.this.type

    Permalink
    Definition Classes
    Data
  239. def pull(): UInt.this.type

    Permalink

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

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

    Definition Classes
    Data
  240. def purify(): UInt.this.type

    Permalink
    Definition Classes
    Data
  241. def randBoot(u: Unit): UInt.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)

    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
  242. var refOwner: RefOwnerType

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

    Permalink
    Definition Classes
    Nameable
  244. def remapClockDomain(func: (ClockDomain) ⇒ ClockDomain): Unit

    Permalink
    Definition Classes
    BaseTypeStatement
  245. def remapDrivingExpressions(func: (Expression) ⇒ Expression): Unit

    Permalink
    Definition Classes
    ExpressionContainer
  246. def remapExpressions(func: (Expression) ⇒ Expression): Unit

    Permalink
  247. def removeAssignments(data: Boolean = true, init: Boolean = true, initial: Boolean = true): UInt.this.type

    Permalink

    Remove all assignments of the base type

    Remove all assignments of the base type

    Definition Classes
    BaseTypeData
  248. def removeDataAssignments(): UInt.this.type

    Permalink
    Definition Classes
    Data
  249. def removeInitAssignments(): UInt.this.type

    Permalink
    Definition Classes
    Data
  250. def removeStatement(): Unit

    Permalink
    Definition Classes
    BaseTypeStatement
  251. def removeStatementFromScope(): Unit

    Permalink
    Definition Classes
    Statement
  252. def removeTag(spinalTag: SpinalTag): UInt.this.type

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

    Permalink
    Definition Classes
    SpinalTagReady
  254. def resize(width: BitCount): UInt.this.type

    Permalink
    Definition Classes
    UIntBitVector
  255. def resize(width: Int): UInt.this.type

    Permalink

    Resize the bitVector to width

    Resize the bitVector to width

    returns

    a resized bitVector

    Definition Classes
    UIntBitVector
    Example:
    1. val res = myBits.resize(10)
  256. def resized: UInt.this.type

    Permalink

    Resized data regarding target

    Resized data regarding target

    Definition Classes
    Data
  257. def reversed: UInt.this.type

    Permalink
    Definition Classes
    UIntBitVector
  258. def rootIF(): Interface

    Permalink

    root interface

    root interface

    Definition Classes
    Data
  259. def rootIFList(): List[Interface]

    Permalink
    Definition Classes
    Data
  260. def rootIFrec(now: Data, lastRoot: List[Interface]): List[Interface]

    Permalink
    Definition Classes
    Data
  261. def rootScopeStatement: ScopeStatement

    Permalink
    Definition Classes
    BaseTypeStatement
  262. def rotateLeft(that: Int): UInt

    Permalink

    Left rotation of that bits

    Left rotation of that bits

    Definition Classes
    UIntBitVector
  263. def rotateLeft(that: UInt): T

    Permalink

    Left rotation of that Bits

    Left rotation of that Bits

    Definition Classes
    BitVector
  264. def rotateRight(that: Int): UInt

    Permalink

    Right rotation of that bits

    Right rotation of that bits

    Definition Classes
    UIntBitVector
  265. def rotateRight(that: UInt): T

    Permalink

    Right rotation of that Bits

    Right rotation of that Bits

    Definition Classes
    BitVector
  266. def round(n: Int, align: Boolean = true): UInt

    Permalink
    Definition Classes
    UIntNum
  267. def round(width: BitCount, align: Boolean): UInt

    Permalink
    Definition Classes
    Num
  268. def roundDown(n: Int, align: Boolean): UInt

    Permalink

    UInt roundDown ceil(x - 0.5) return w(this)-n bits

    UInt roundDown ceil(x - 0.5) return w(this)-n bits

    Definition Classes
    UIntNum
  269. def roundDown(width: BitCount, align: Boolean): UInt

    Permalink
    Definition Classes
    Num
  270. def roundToEven(n: Int, align: Boolean): UInt

    Permalink
    Definition Classes
    UIntNum
  271. def roundToEven(width: BitCount, align: Boolean): UInt

    Permalink
    Definition Classes
    Num
  272. def roundToInf(n: Int, align: Boolean = true): UInt

    Permalink
    Definition Classes
    UIntNum
  273. def roundToInf(width: BitCount, align: Boolean): UInt

    Permalink
    Definition Classes
    Num
  274. def roundToOdd(n: Int, align: Boolean): UInt

    Permalink
    Definition Classes
    UIntNum
  275. def roundToOdd(width: BitCount, align: Boolean): UInt

    Permalink
    Definition Classes
    Num
  276. def roundToZero(n: Int, align: Boolean = true): UInt

    Permalink
    Definition Classes
    UIntNum
  277. def roundToZero(width: BitCount, align: Boolean): UInt

    Permalink
    Definition Classes
    Num
  278. def roundUp(n: Int, align: Boolean = true): UInt

    Permalink

    UInt roundUp floor(x + 0.5) return if(align) w(this)-n bits else w(this)-n+1 bits

    UInt roundUp floor(x + 0.5) return if(align) w(this)-n bits else w(this)-n+1 bits

    Definition Classes
    UIntNum
  279. def roundUp(width: BitCount, align: Boolean): UInt

    Permalink
    Definition Classes
    Num
  280. def sat(m: Int): UInt

    Permalink

    highest m bits Saturation

    highest m bits Saturation

    Definition Classes
    UIntNum
  281. def sat(width: BitCount): UInt

    Permalink
    Definition Classes
    Num
  282. var scalaTrace: Throwable

    Permalink
    Definition Classes
    ScalaLocated
  283. def setAll(): UInt.this.type

    Permalink

    Set all bits

    Set all bits

    Definition Classes
    UIntBitVectorData
  284. def setAllTo(value: Bool): UInt.this.type

    Permalink

    Set all bits to value

    Set all bits to value

    Definition Classes
    BitVector
  285. def setAllTo(value: Boolean): UInt.this.type

    Permalink

    Set all bits to value

    Set all bits to value

    Definition Classes
    BitVector
  286. def setAsAnalog(): UInt.this.type

    Permalink
    Definition Classes
    BaseTypeData
  287. def setAsComb(): UInt.this.type

    Permalink

    Set baseType to Combinatorial

    Set baseType to Combinatorial

    Definition Classes
    BaseTypeData
  288. def setAsDirectionLess(): UInt.this.type

    Permalink

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

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

    Definition Classes
    BaseTypeData
  289. def setAsReg(): UInt.this.type

    Permalink

    Set baseType to reg

    Set baseType to reg

    Definition Classes
    BaseTypeData
  290. def setAsTypeNode(): UInt.this.type

    Permalink

    Set baseType to Node

    Set baseType to Node

    Definition Classes
    BaseType
  291. def setAsVital(): UInt.this.type

    Permalink

    Set the baseType to vital

    Set the baseType to vital

    Definition Classes
    BaseType
  292. def setCompositeName(nameable: Nameable, postfix: String, namePriority: Byte): UInt.this.type

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

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

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

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

    Permalink
    Definition Classes
    Nameable
  297. def setCompositeName(nameable: Nameable): UInt.this.type

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

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

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

    Permalink
    Definition Classes
    Nameable
  301. def setName(name: String): UInt.this.type

    Permalink
    Definition Classes
    Nameable
  302. def setNameAsWeak(): UInt.this.type

    Permalink
    Definition Classes
    Nameable
  303. def setOutputAsReg(): UInt.this.type

    Permalink

    Recursively set baseType to reg only for output

    Recursively set baseType to reg only for output

    Definition Classes
    Data
  304. def setPartialName(name: String, namePriority: Byte, owner: Any): UInt.this.type

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

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

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

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

    Permalink
    Definition Classes
    Nameable
  309. def setPartialName(name: String): UInt.this.type

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

    Permalink
    Definition Classes
    Nameable
  311. def setPartialName(owner: Nameable): UInt.this.type

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

    Permalink
    Definition Classes
    OwnableRef
  313. def setScalaLocated(source: ScalaLocated): UInt.this.type

    Permalink
    Definition Classes
    ScalaLocated
  314. def setWeakName(name: String): UInt.this.type

    Permalink
    Definition Classes
    Nameable
  315. def setWidth(width: Int): UInt.this.type

    Permalink

    Set the width of the BitVector

    Set the width of the BitVector

    width

    the width of the data

    returns

    the BitVector of a given size

    Definition Classes
    BitVector
  316. def simplifyNode: Expression

    Permalink
    Definition Classes
    Expression
  317. def sliceBy(divisor: List[Int]): List[Bits]

    Permalink
    Definition Classes
    BitVector
  318. def sliceBy(divisor: Int*): List[Bits]

    Permalink

    apart by a list of width

    apart by a list of width

    returns

    (List(A(1 downto 0), A(2 downto 4), A(9 downto 3))

    Definition Classes
    BitVector
    Example:
    1. val res = A.sliceBy(2, 3, 5)
      val res = A.sliceBy(List(2, 3, 5))
  319. def spinalTags: LinkedHashSet[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  320. def splitAt(n: Int): (Bits, Bits)

    Permalink

    Split at n st bits

    Split at n st bits

    returns

    (data10bits(8 downto 4), data10bits(3 downto 0))

    Definition Classes
    BitVector
    Example:
    1. val res = data10bits.splitAt(4)
  321. def stabilized(func: (Expression) ⇒ Expression, seed: Expression): Expression

    Permalink
    Definition Classes
    ExpressionContainer
  322. def subdivideIn(sliceWidth: BitCount): Vec[T]

    Permalink
    Definition Classes
    BitVector
  323. def subdivideIn(sliceCount: SlicesCount): Vec[T]

    Permalink
    Definition Classes
    BitVector
  324. def subdivideIn(sliceWidth: BitCount, strict: Boolean): Vec[T]

    Permalink

    Split the BitVector into slice of x bits

    Split the BitVector into slice of x bits

    sliceWidth

    the width of the slice

    strict

    allow subdivideIn to generate vectors with varying size

    returns

    a Vector of slices

    Definition Classes
    BitVector
    Example:
    1. val res = myBits.subdivideIn(3 bits)
  325. def subdivideIn(sliceCount: SlicesCount, strict: Boolean): Vec[T]

    Permalink

    Split the BitVector into x slice

    Split the BitVector into x slice

    sliceCount

    the width of the slice

    strict

    allow subdivideIn to generate vectors with varying size

    returns

    a Vector of slices

    Definition Classes
    BitVector
    Example:
    1. val res = myBits.subdivideIn(3 slices)
  326. def switchAssign[T2 <: BaseType](sel: T2)(mappings: (Any, UInt)*): Unit

    Permalink
    Definition Classes
    DataPrimitives
  327. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  328. def tag(q: QFormat): UInt

    Permalink
    Definition Classes
    UIntNum
  329. def take(n: Int): Bits

    Permalink

    Take lowerst n bits

    Take lowerst n bits

    returns

    data10bits(3 downto 0)

    Definition Classes
    BitVector
    Example:
    1. val res = data10bits.take(4)
  330. def takeHigh(n: Int): Bits

    Permalink

    Take highest n bits

    Take highest n bits

    returns

    data10bits(9 downto 6)

    Definition Classes
    BitVector
    Example:
    1. val res = data10bits.takeHigh(4)
  331. def takeLow(n: Int): Bits

    Permalink
    Definition Classes
    BitVector
  332. def toIo(): UInt.this.type

    Permalink
    Definition Classes
    Data
  333. def toMuxInput[T <: Data](muxOutput: T): T

    Permalink
    Definition Classes
    Data
  334. def toString(): String

    Permalink
    Definition Classes
    BitVectorBaseTypeExpressionNameable → AnyRef → Any
  335. def toStringMultiLine(): String

    Permalink
    Definition Classes
    BaseNode
  336. def toStringRec(level: Int = 1): String

    Permalink
    Definition Classes
    Expression
  337. def trim(m: Int): UInt

    Permalink

    highest m bits Discard

    highest m bits Discard

    Definition Classes
    UIntNum
  338. def trim(width: BitCount): UInt

    Permalink
    Definition Classes
    Num
  339. def twoComplement(enable: Bool, plusOneEnable: Bool = null): SInt

    Permalink

    2'Complement

    2'Complement

    enable

    enable the 2'complement

    returns

    Return the 2'Complement of the number

  340. def unary_~: UInt

    Permalink

    Inverse bitwise operator

    Inverse bitwise operator

    Definition Classes
    UIntBitwiseOp
  341. def unfreeze(): UInt.this.type

    Permalink
    Definition Classes
    BaseTypeData
  342. def unsetName(): UInt.this.type

    Permalink
    Definition Classes
    Nameable
  343. def valueRange: Range

    Permalink
  344. final def wait(arg0: Long, arg1: Int): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  347. def walkDrivingExpressions(func: (Expression) ⇒ Unit): Unit

    Permalink
    Definition Classes
    ExpressionContainer
  348. def walkExpression(func: (Expression) ⇒ Unit): Unit

    Permalink
    Definition Classes
    ExpressionContainer
  349. def walkExpressionPostorder(func: (Expression) ⇒ Unit): Unit

    Permalink
    Definition Classes
    ExpressionContainer
  350. def walkParentTreeStatements(func: (TreeStatement) ⇒ Unit): Unit

    Permalink
    Definition Classes
    Statement
  351. def walkParentTreeStatementsUntilRootScope(func: (TreeStatement) ⇒ Unit): Unit

    Permalink
    Definition Classes
    Statement
  352. def walkRemapDrivingExpressions(func: (Expression) ⇒ Expression): Unit

    Permalink
    Definition Classes
    ExpressionContainer
  353. def walkRemapExpressions(func: (Expression) ⇒ Expression): Unit

    Permalink
    Definition Classes
    ExpressionContainer
  354. def wrap: AnyRef { ... /* 4 definitions in type refinement */ }

    Permalink
  355. def wrapCast[T <: BaseType](result: T, node: Cast): T

    Permalink
    Definition Classes
    BaseType
  356. def wrapNext(): UInt.this.type

    Permalink
    Definition Classes
    Data
  357. def xorMask(that: Bool): UInt.this.type

    Permalink
    Definition Classes
    BitVector
  358. def xorR: Bool

    Permalink

    Logical XOR of all bits

    Logical XOR of all bits

    Definition Classes
    BitVector
  359. def |(right: UInt): UInt

    Permalink

    Bitwise OR operator

    Bitwise OR operator

    Definition Classes
    UIntBitwiseOp
  360. def |<<(that: UInt): UInt

    Permalink

    Logical shift left (output width == input width)

  361. def |<<(that: Int): UInt

    Permalink

    Logical shift left (output width == input width)

  362. def |>>(that: UInt): UInt

    Permalink

    Logical shift Right (output width == input width)

  363. def |>>(that: Int): UInt

    Permalink

    Logical shift right (output width = input width)

    Logical shift right (output width = input width)

    that

    the number of shift

    returns

    a Bits of width : w(this)

    Example:
    1. val result = myUInt |>> 4

Deprecated Value Members

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

    Permalink
    Definition Classes
    Data
    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): UInt.this.type

    Permalink

    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

  4. def range: Range

    Permalink

    Return the range

    Return the range

    Definition Classes
    BitVector
    Annotations
    @deprecated
    Deprecated

    Use bitsRange instead

Inherited from BitwiseOp[UInt]

Inherited from BaseTypePrimitives[UInt]

Inherited from DataPrimitives[UInt]

Inherited from MinMaxProvider

Inherited from Num[UInt]

Inherited from BitVector

Inherited from Widthable

Inherited from WidthProvider

Inherited from BaseType

Inherited from Expression

Inherited from DeclarationStatement

Inherited from LeafStatement

Inherited from Statement

Inherited from BaseNode

Inherited from ExpressionContainer

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