Packages

c

spinal.core

BitVector

abstract class BitVector extends BaseType with Widthable

BitVector is a family of types for storing multiple bits of information in a single value. This type has three subtypes that can be used to model different behaviours:

  • Bits
  • UInt (unsigned integer)
  • SInt (signed integer)
See also

BitVector Documentation

Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BitVector
  2. Widthable
  3. WidthProvider
  4. BaseType
  5. Expression
  6. StatementDoubleLinkedContainer
  7. DoubleLinkedContainer
  8. DeclarationStatement
  9. LeafStatement
  10. Statement
  11. BaseNode
  12. ExpressionContainer
  13. Data
  14. InComponent
  15. OverridedEqualsHashCode
  16. SpinalTagReady
  17. Assignable
  18. NameableByComponent
  19. Nameable
  20. OwnableRef
  21. ContextUser
  22. ScalaLocated
  23. GlobalDataUser
  24. AnyRef
  25. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BitVector()

Type Members

  1. abstract type RefOwnerType
    Definition Classes
    OwnableRef
  2. abstract type T <: BitVector

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

Abstract Value Members

  1. abstract def apply(offset: UInt, bitCount: BitCount): BitVector.this.type

    Return a range of bits at offset and of width bitCount

    Return a range of bits at offset and of width bitCount

    Example:
    1. val myBool = myBits(myUInt, 2 bits)
  2. abstract def apply(offset: Int, bitCount: BitCount): BitVector.this.type

    Return a range of bits at offset and of width bitCount

    Return a range of bits at offset and of width bitCount

    Example:
    1. val myBool = myBits(3, 2 bits)
  3. abstract def apply(bitId: UInt): Bool

    Return the bit at index bitId

    Return the bit at index bitId

    Example:
    1. val myBool = myBits(myUInt)
  4. abstract def apply(bitId: Int): Bool

    Return the bit at index bitId

    Return the bit at index bitId

    Example:
    1. val myBool = myBits(3)
  5. abstract def asBits: Bits

    Cast data to Bits

    Cast data to Bits

    Definition Classes
    Data
  6. abstract def assignFromBits(bits: Bits, hi: Int, low: Int): Unit
    Definition Classes
    Data
  7. abstract def assignFromBits(bits: Bits): Unit
    Definition Classes
    Data
  8. abstract def getAllTrue: BitVector.this.type
  9. abstract def getTypeObject: Any
    Definition Classes
    Expression
  10. abstract def getZero: BitVector.this.type

    Create a data set to 0

    Create a data set to 0

    Definition Classes
    Data
  11. abstract def getZeroUnconstrained: BitVector.this.type
  12. abstract def opName: String
    Definition Classes
    Expression
  13. abstract def resize(width: BitCount): BitVector
  14. abstract def resize(width: Int): BitVector

    Resize the bitVector to width

    Resize the bitVector to width

    returns

    a resized bitVector

    Example:
    1. val res = myBits.resize(10)
  15. abstract def reversed: BitVector.this.type
  16. abstract def rotateLeft(that: Int): T

    Left rotation of that bits

  17. abstract def rotateRight(that: Int): T

    Right rotation of that bits

Concrete 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. def =/=(that: MaskedLiteral): Bool

    BitVector is not equal to MaskedLiteral

  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def ===(that: MaskedLiteral): Bool

    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

    Example:
    1. val myBool = myBits === M"0-1"
  8. def IFparent: Data
    Definition Classes
    Data
  9. val _spinalTags: LinkedHashSet[SpinalTag]
    Definition Classes
    SpinalTagReady
  10. def addAttribute(attribute: Attribute): BitVector.this.type
    Definition Classes
    BaseTypeDataSpinalTagReady
  11. def addAttribute(name: String, value: Int): BitVector.this.type
    Definition Classes
    SpinalTagReady
  12. def addAttribute(name: String, value: String): BitVector.this.type
    Definition Classes
    SpinalTagReady
  13. def addAttribute(name: String): BitVector.this.type
    Definition Classes
    SpinalTagReady
  14. def addTag[T <: SpinalTag](spinalTag: T): BitVector.this.type
    Definition Classes
    SpinalTagReady
  15. def addTags(h: SpinalTag, tail: SpinalTag*): BitVector.this.type
    Definition Classes
    SpinalTagReady
  16. def addTags[T <: SpinalTag](tags: Iterable[T]): BitVector.this.type
    Definition Classes
    SpinalTagReady
  17. val algoIncrementale: Int
    Definition Classes
    BaseNode
  18. val algoInt: Int
    Definition Classes
    BaseNode
  19. def allowDirectionLessIo(): BitVector.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
  20. def allowOverride(): BitVector.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
  21. def allowPartialyAssigned(): BitVector.this.type

    Allow a register to be partially assigned

    Allow a register to be partially assigned

    Definition Classes
    Data
  22. def allowPruning(): BitVector.this.type
    Definition Classes
    Data
  23. def allowSimplifyIt(): BitVector.this.type
    Definition Classes
    BaseTypeData
  24. def allowUnsetRegToAvoidLatch(): BitVector.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
  25. def andMask(that: Bool): BitVector.this.type
  26. def andR: Bool

    Logical AND of all bits

  27. def apply(range: Range): BitVector.this.type

    Return a range of bits

    Return a range of bits

    Example:
    1. val myBool = myBits(3 downto 1)
  28. def as[T <: Data](dataType: HardType[T]): T
    Definition Classes
    Data
  29. def asBool: Bool
  30. def asBools: Vec[Bool]

    Cast the BitVector into a Vector of Bool

    Cast the BitVector into a Vector of Bool

    returns

    a vector of Bool

  31. def asData: Data
    Definition Classes
    Data
  32. def asInOut(): BitVector.this.type

    set a data as inout

    set a data as inout

    Definition Classes
    BaseTypeData
  33. def asInput(): BitVector.this.type

    Set a data as input

    Set a data as input

    Definition Classes
    BaseTypeData
  34. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  35. def asOutput(): BitVector.this.type

    Set a data as output

    Set a data as output

    Definition Classes
    BaseTypeData
  36. def assignDontCare(): BitVector.this.type
    Definition Classes
    Data
  37. def assignDontCareToUnasigned(): BitVector.this.type
    Definition Classes
    Data
  38. def assignFormalRandom(kind: RandomExpKind): Unit
    Definition Classes
    Data
  39. final def assignFrom(that: AnyRef, target: AnyRef = this)(implicit loc: Location): Unit
    Definition Classes
    Data
  40. def assignFromBits(bits: Bits, offset: Int, bitCount: BitCount): Unit
    Definition Classes
    Data
  41. def assignFromImpl(that: AnyRef, target: AnyRef, kind: AnyRef)(implicit loc: Location): Unit
    Attributes
    protected
    Definition Classes
    BaseTypeAssignable
  42. def bitsRange: Range
  43. def cldCount: Int
    Definition Classes
    DoubleLinkedContainer
  44. def clearAll(): BitVector.this.type

    Clear all bits

    Clear all bits

    Definition Classes
    BitVectorData
  45. var clockDomain: ClockDomain
    Definition Classes
    BaseType
  46. def clone(): BitVector.this.type
    Definition Classes
    BitVectorBaseTypeData → AnyRef
  47. def component: Component
    Definition Classes
    ContextUser
  48. final def compositAssignFrom(that: AnyRef, target: AnyRef, kind: AnyRef)(implicit loc: Location): Unit
    Definition Classes
    Assignable
  49. val compositeAssign: Assignable
    Definition Classes
    Assignable
  50. def copyDirectionOfImpl(that: Data): BitVector.this.type
    Definition Classes
    BaseTypeData
  51. def dirString(): String
    Definition Classes
    Data
  52. def dlcAppend(that: AssignmentStatement): BitVector.this.type
    Definition Classes
    DoubleLinkedContainer
  53. def dlcForeach[T >: AssignmentStatement](func: (T) ⇒ Unit): Unit
    Definition Classes
    DoubleLinkedContainer
  54. def dlcHasOnlyOne: Boolean
    Definition Classes
    DoubleLinkedContainer
  55. val dlcHead: AssignmentStatement
    Definition Classes
    DoubleLinkedContainer
  56. def dlcIsEmpty: Boolean
    Definition Classes
    DoubleLinkedContainer
  57. val dlcLast: AssignmentStatement
    Definition Classes
    DoubleLinkedContainer
  58. def dlcPrepend(that: AssignmentStatement): BitVector.this.type
    Definition Classes
    DoubleLinkedContainer
  59. def dontSimplifyIt(): BitVector.this.type
    Definition Classes
    BaseTypeData
  60. def drop(n: Int): Bits

    Drop lowerst n bits

    Drop lowerst n bits

    returns

    data10bits(9 downto 4)

    Example:
    1. val res = data10bits.drop(4)
  61. def dropHigh(n: Int): Bits

    Drop highest n bits

    Drop highest n bits

    returns

    data10bits(5 downto 0)

    Example:
    1. val res = data10bits.dropHigh(4)
  62. def dropLow(n: Int): Bits
  63. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  64. def equals(obj: Any): Boolean
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  65. def existsTag(cond: (SpinalTag) ⇒ Boolean): Boolean
    Definition Classes
    SpinalTagReady
  66. def filterTag(cond: (SpinalTag) ⇒ Boolean): Iterable[SpinalTag]
    Definition Classes
    SpinalTagReady
  67. def findTag(cond: (SpinalTag) ⇒ Boolean): Option[SpinalTag]
    Definition Classes
    SpinalTagReady
  68. def flatten: Seq[BaseType]
    Definition Classes
    BaseTypeData
  69. def flattenForeach(body: (BaseType) ⇒ Unit): Unit
    Definition Classes
    BaseTypeData
  70. def flattenLocalName: Seq[String]
    Definition Classes
    BaseTypeData
  71. def flip(): BitVector.this.type

    flip the direction of the data

    flip the direction of the data

    Definition Classes
    Data
  72. def foreachClockDomain(func: (ClockDomain) ⇒ Unit): Unit
    Definition Classes
    BaseTypeStatement
  73. def foreachDrivingExpression(func: (Expression) ⇒ Unit): Unit
    Definition Classes
    ExpressionContainer
  74. def foreachExpression(func: (Expression) ⇒ Unit): Unit
  75. def foreachReflectableNameables(doThat: (Any) ⇒ Unit): Unit
    Definition Classes
    Nameable
  76. def foreachStatements(func: (AssignmentStatement) ⇒ Unit): Unit
  77. def foreachTag(body: (SpinalTag) ⇒ Unit): Unit
    Definition Classes
    SpinalTagReady
  78. def freeze(): BitVector.this.type
    Definition Classes
    BaseTypeData
  79. def getAheadValue(): BitVector.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
    BaseTypeData
  80. def getBitsWidth: Int

    Return the width of the data

    Return the width of the data

    Definition Classes
    BitVectorData
  81. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  82. def getComponent(): Component
    Definition Classes
    DataInComponentNameableByComponent
  83. def getComponents(): Seq[Component]

    Get current component with all parents

    Get current component with all parents

    Definition Classes
    InComponent
  84. def getDirection: IODirection
    Definition Classes
    Data
  85. def getDisplayName(): String
    Definition Classes
    Nameable
  86. def getDrivingReg(reportError: Boolean = true): BitVector.this.type
    Definition Classes
    BaseType
  87. def getInstanceCounter: Int
    Definition Classes
    ContextUser
  88. def getMode: Byte
    Attributes
    protected
    Definition Classes
    Nameable
  89. def getMuxType[T <: Data](list: TraversableOnce[T]): HardType[T]
    Definition Classes
    BitVectorData
  90. def getName(default: String): String
    Definition Classes
    NameableByComponentNameable
  91. def getName(): String
    Definition Classes
    NameableByComponentNameable
  92. def getPartialName(): String
    Definition Classes
    Nameable
  93. def getPath(from: Component, to: Component): Seq[Component]
    Definition Classes
    NameableByComponent
  94. def getRealSource: Any
    Definition Classes
    Assignable
  95. def getRealSourceNoRec: Any
    Definition Classes
    DataAssignable
  96. def getRefOwnersChain(): List[Any]
    Definition Classes
    OwnableRef
  97. def getRootParent: Data
    Definition Classes
    Data
  98. def getRtlPath(separator: String = "/"): String
    Definition Classes
    Data
  99. def getScalaLocationLong: String
    Definition Classes
    ScalaLocated
  100. def getScalaLocationShort: String
    Definition Classes
    ScalaLocated
  101. def getScalaTrace(): Throwable
    Definition Classes
    ScalaLocated
  102. def getSingleDriver: Option[BitVector.this.type]
    Definition Classes
    BaseType
  103. def getTag[T <: SpinalTag](clazz: Class[T]): Option[T]
    Definition Classes
    SpinalTagReady
  104. def getTags(): LinkedHashSet[SpinalTag]
    Definition Classes
    SpinalTagReady
  105. def getWidth: Int
    Definition Classes
    WidthableWidthProvider
  106. def getWidthNoInferation: Int

    Return the width

  107. def getWidthStringNoInferation: String
  108. val globalData: GlobalData
    Definition Classes
    GlobalDataUser
  109. def hasAssignement: Boolean
    Definition Classes
    BaseType
  110. def hasDataAssignment: Boolean
    Definition Classes
    BaseType
  111. def hasInit: Boolean

    Does the base type have initial value

    Does the base type have initial value

    Definition Classes
    BaseType
  112. def hasOnlyOneStatement: Boolean
  113. def hasTag[T <: SpinalTag](clazz: Class[T]): Boolean
    Definition Classes
    SpinalTagReady
  114. def hasTag(spinalTag: SpinalTag): Boolean
    Definition Classes
    SpinalTagReady
  115. def hashCode(): Int
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  116. def head: AssignmentStatement
  117. def high: Int

    Return the upper bound

  118. final def initFrom(that: AnyRef, target: AnyRef = this): Unit
    Definition Classes
    Data
  119. def initialFrom(that: AnyRef, target: AnyRef = this): Unit
    Definition Classes
    BaseType
  120. def insertNext(s: Statement): Unit
    Definition Classes
    Statement
  121. def instanceAttributes(language: Language): Iterable[Attribute]
    Definition Classes
    SpinalTagReady
  122. def instanceAttributes: Iterable[Attribute]
    Definition Classes
    SpinalTagReady
  123. def isAnalog: Boolean
    Definition Classes
    BaseTypeData
  124. def isComb: Boolean
    Definition Classes
    BaseTypeData
  125. def isCompletelyUnnamed: Boolean
    Definition Classes
    Nameable
  126. def isDirectionLess: Boolean
    Definition Classes
    Data
  127. def isEmptyOfTag: Boolean
    Definition Classes
    SpinalTagReady
  128. def isFrozen(): Boolean
    Definition Classes
    BaseType
  129. def isInOut: Boolean
    Definition Classes
    Data
  130. def isInput: Boolean
    Definition Classes
    Data
  131. def isInputOrInOut: Boolean
    Definition Classes
    Data
  132. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  133. final def isNamed: Boolean
    Definition Classes
    Nameable
  134. def isOutput: Boolean
    Definition Classes
    Data
  135. def isOutputOrInOut: Boolean
    Definition Classes
    Data
  136. def isPriorityApplicable(namePriority: Byte): Boolean
    Definition Classes
    Nameable
  137. def isReg: Boolean
    Definition Classes
    BaseTypeData
  138. def isRegOnAssign: Boolean
    Definition Classes
    BitVectorData
  139. def isTypeNode: Boolean

    Is the baseType a node

    Is the baseType a node

    Definition Classes
    BaseType
  140. def isUnknown: Bool
  141. def isUnnamed: Boolean
    Definition Classes
    NameableByComponentNameable
  142. def isUsingResetSignal: Boolean

    Is the basetype using reset signal

    Is the basetype using reset signal

    Definition Classes
    BaseType
  143. def isUsingSoftResetSignal: Boolean

    Is the basetype using soft reset signal

    Is the basetype using soft reset signal

    Definition Classes
    BaseType
  144. def isVital: Boolean

    Check if the baseType is vital

    Check if the baseType is vital

    Definition Classes
    BaseType
  145. val lastScopeStatement: Statement
    Definition Classes
    Statement
  146. def lsb: Bool

    Return the least significant bit

  147. def msb: Bool

    Return the most significant bit

  148. def mux[T2 <: Data](mappings: (Any, T2)*): T2
    Definition Classes
    BaseType
  149. def muxDc[T2 <: Data](mappings: (Any, T2)*): T2
    Definition Classes
    BaseType
  150. def muxList[T2 <: Data](defaultValue: T2, mappings: Seq[(Any, T2)]): T2
    Definition Classes
    BaseType
  151. def muxList[T2 <: Data](mappings: Seq[(Any, T2)]): T2
    Definition Classes
    BaseType
  152. def muxListDc[T2 <: Data](mappings: Seq[(Any, T2)]): T2
    Definition Classes
    BaseType
  153. val name: String
    Definition Classes
    Nameable
  154. val nameableRef: Nameable
    Attributes
    protected
    Definition Classes
    Nameable
    Annotations
    @DontName()
  155. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  156. def newExtract(offset: UInt, size: Int, extract: BitVectorRangedAccessFloating)(implicit loc: Location): BitVector.this.type

    Extract a range of bits of the BitVector

  157. def newExtract(hi: Int, lo: Int, accessFactory: ⇒ BitVectorRangedAccessFixed): BitVector.this.type

    Extract a range of bits of the BitVector

  158. def newExtract(bitId: UInt, extract: BitVectorBitAccessFloating): Bool

    Extract a bit of the BitVector

  159. def newExtract(bitId: Int, extract: BitVectorBitAccessFixed): Bool

    Extract a bit of the BitVector

  160. val nextScopeStatement: Statement
    Definition Classes
    Statement
  161. def noBackendCombMerge(): BitVector.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
  162. def noCombLoopCheck(): BitVector.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
  163. def normalizeInputs: Unit
    Definition Classes
    BaseTypeExpressionContainer
  164. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  165. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  166. def onEachAttributes(doIt: (Attribute) ⇒ Unit): Unit
    Definition Classes
    SpinalTagReady
  167. def orMask(that: Bool): BitVector.this.type
  168. def orR: Bool

    Logical OR of all bits

  169. def overrideLocalName(name: String): BitVector.this.type
    Definition Classes
    Nameable
  170. val parent: Data
    Definition Classes
    Data
  171. val parentScope: ScopeStatement
    Definition Classes
    ContextUser
  172. def pull(propagateName: Boolean): BitVector.this.type
    Definition Classes
    Data
  173. def pull(): BitVector.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
  174. def purify(): BitVector.this.type
    Definition Classes
    Data
  175. def randBoot(u: Unit): BitVector.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
  176. val refOwner: RefOwnerType
    Definition Classes
    OwnableRef
    Annotations
    @DontName()
  177. def reflectNames(): Unit
    Definition Classes
    Nameable
  178. def remapClockDomain(func: (ClockDomain) ⇒ ClockDomain): Unit
    Definition Classes
    BaseTypeStatement
  179. def remapDrivingExpressions(func: (Expression) ⇒ Expression): Unit
    Definition Classes
    ExpressionContainer
  180. def remapExpressions(func: (Expression) ⇒ Expression): Unit
  181. def removeAssignments(data: Boolean = true, init: Boolean = true, initial: Boolean = true): BitVector.this.type

    Remove all assignments of the base type

    Remove all assignments of the base type

    Definition Classes
    BaseTypeData
  182. def removeDataAssignments(): BitVector.this.type
    Definition Classes
    Data
  183. def removeInitAssignments(): BitVector.this.type
    Definition Classes
    Data
  184. def removeStatement(): Unit
    Definition Classes
    BaseTypeStatement
  185. def removeStatementFromScope(): Unit
    Definition Classes
    Statement
  186. def removeTag(spinalTag: SpinalTag): BitVector.this.type
    Definition Classes
    SpinalTagReady
  187. def removeTags(tags: Iterable[SpinalTag]): BitVector.this.type
    Definition Classes
    SpinalTagReady
  188. def resized: BitVector.this.type

    Resized data regarding target

    Resized data regarding target

    Definition Classes
    Data
  189. def rootIF(): Interface

    root interface

    root interface

    Definition Classes
    Data
  190. def rootIFList(): List[Interface]
    Definition Classes
    Data
  191. def rootIFrec(now: Data, lastRoot: List[Interface]): List[Interface]
    Definition Classes
    Data
  192. def rootScopeStatement: ScopeStatement
    Definition Classes
    BaseTypeStatement
  193. def rotateLeft(that: UInt): T

    Left rotation of that Bits

  194. def rotateRight(that: UInt): T

    Right rotation of that Bits

  195. val scalaTrace: Throwable
    Definition Classes
    ScalaLocated
  196. def setAll(): BitVector.this.type
    Definition Classes
    Data
  197. def setAllTo(value: Bool): BitVector.this.type

    Set all bits to value

  198. def setAllTo(value: Boolean): BitVector.this.type

    Set all bits to value

  199. def setAsAnalog(): BitVector.this.type
    Definition Classes
    BaseTypeData
  200. def setAsComb(): BitVector.this.type

    Set baseType to Combinatorial

    Set baseType to Combinatorial

    Definition Classes
    BaseTypeData
  201. def setAsDirectionLess(): BitVector.this.type

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

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

    Definition Classes
    BaseTypeData
  202. def setAsReg(): BitVector.this.type

    Set baseType to reg

    Set baseType to reg

    Definition Classes
    BaseTypeData
  203. def setAsTypeNode(): BitVector.this.type

    Set baseType to Node

    Set baseType to Node

    Definition Classes
    BaseType
  204. def setAsVital(): BitVector.this.type

    Set the baseType to vital

    Set the baseType to vital

    Definition Classes
    BaseType
  205. def setCompositeName(nameable: Nameable, postfix: String, namePriority: Byte): BitVector.this.type
    Definition Classes
    Nameable
  206. def setCompositeName(nameable: Nameable, postfix: String, weak: Boolean): BitVector.this.type
    Definition Classes
    Nameable
  207. def setCompositeName(nameable: Nameable, postfix: String): BitVector.this.type
    Definition Classes
    Nameable
  208. def setCompositeName(nameable: Nameable, namePriority: Byte): BitVector.this.type
    Definition Classes
    Nameable
  209. def setCompositeName(nameable: Nameable, weak: Boolean): BitVector.this.type
    Definition Classes
    Nameable
  210. def setCompositeName(nameable: Nameable): BitVector.this.type
    Definition Classes
    Nameable
  211. def setLambdaName(isNameBody: ⇒ Boolean)(nameGen: ⇒ String): BitVector.this.type
    Definition Classes
    Nameable
  212. def setName(name: String, namePriority: Byte): BitVector.this.type
    Definition Classes
    Nameable
  213. def setName(name: String, weak: Boolean): BitVector.this.type
    Definition Classes
    Nameable
  214. def setName(name: String): BitVector.this.type
    Definition Classes
    Nameable
  215. def setNameAsWeak(): BitVector.this.type
    Definition Classes
    Nameable
  216. def setOutputAsReg(): BitVector.this.type

    Recursively set baseType to reg only for output

    Recursively set baseType to reg only for output

    Definition Classes
    Data
  217. def setPartialName(name: String, namePriority: Byte, owner: Any): BitVector.this.type
    Definition Classes
    Nameable
  218. def setPartialName(name: String, namePriority: Byte): BitVector.this.type
    Definition Classes
    Nameable
  219. def setPartialName(name: String, weak: Boolean): BitVector.this.type
    Definition Classes
    Nameable
  220. def setPartialName(owner: Nameable, name: String, namePriority: Byte): BitVector.this.type
    Definition Classes
    Nameable
  221. def setPartialName(owner: Nameable, name: String, weak: Boolean): BitVector.this.type
    Definition Classes
    Nameable
  222. def setPartialName(name: String): BitVector.this.type
    Definition Classes
    Nameable
  223. def setPartialName(owner: Nameable, name: String): BitVector.this.type
    Definition Classes
    Nameable
  224. def setPartialName(owner: Nameable): BitVector.this.type
    Definition Classes
    Nameable
  225. def setRefOwner(that: Any): Unit
    Definition Classes
    OwnableRef
  226. def setScalaLocated(source: ScalaLocated): BitVector.this.type
    Definition Classes
    ScalaLocated
  227. def setWeakName(name: String): BitVector.this.type
    Definition Classes
    Nameable
  228. def setWidth(width: Int): BitVector.this.type

    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

  229. def simplifyNode: Expression
    Definition Classes
    Expression
  230. def sliceBy(divisor: List[Int]): List[Bits]
  231. def sliceBy(divisor: Int*): List[Bits]

    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))

    Example:
    1. val res = A.sliceBy(2, 3, 5)
      val res = A.sliceBy(List(2, 3, 5))
  232. def spinalTags: LinkedHashSet[SpinalTag]
    Definition Classes
    SpinalTagReady
  233. def splitAt(n: Int): (Bits, Bits)

    Split at n st bits

    Split at n st bits

    returns

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

    Example:
    1. val res = data10bits.splitAt(4)
  234. def stabilized(func: (Expression) ⇒ Expression, seed: Expression): Expression
    Definition Classes
    ExpressionContainer
  235. def subdivideIn(sliceWidth: BitCount): Vec[T]
  236. def subdivideIn(sliceCount: SlicesCount): Vec[T]
  237. def subdivideIn(sliceWidth: BitCount, strict: Boolean): Vec[T]

    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

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

    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

    Example:
    1. val res = myBits.subdivideIn(3 slices)
  239. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  240. def take(n: Int): Bits

    Take lowerst n bits

    Take lowerst n bits

    returns

    data10bits(3 downto 0)

    Example:
    1. val res = data10bits.take(4)
  241. def takeHigh(n: Int): Bits

    Take highest n bits

    Take highest n bits

    returns

    data10bits(9 downto 6)

    Example:
    1. val res = data10bits.takeHigh(4)
  242. def takeLow(n: Int): Bits
  243. def toIo(): BitVector.this.type
    Definition Classes
    Data
  244. def toMuxInput[T <: Data](muxOutput: T): T
    Definition Classes
    Data
  245. def toString(): String
    Definition Classes
    BitVectorBaseTypeExpressionNameable → AnyRef → Any
  246. def toStringMultiLine(): String
    Definition Classes
    BaseNode
  247. def toStringRec(level: Int = 1): String
    Definition Classes
    Expression
  248. def unfreeze(): BitVector.this.type
    Definition Classes
    BaseTypeData
  249. def unsetName(): BitVector.this.type
    Definition Classes
    Nameable
  250. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  251. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  252. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  253. def walkDrivingExpressions(func: (Expression) ⇒ Unit): Unit
    Definition Classes
    ExpressionContainer
  254. def walkExpression(func: (Expression) ⇒ Unit): Unit
    Definition Classes
    ExpressionContainer
  255. def walkExpressionPostorder(func: (Expression) ⇒ Unit): Unit
    Definition Classes
    ExpressionContainer
  256. def walkParentTreeStatements(func: (TreeStatement) ⇒ Unit): Unit
    Definition Classes
    Statement
  257. def walkParentTreeStatementsUntilRootScope(func: (TreeStatement) ⇒ Unit): Unit
    Definition Classes
    Statement
  258. def walkRemapDrivingExpressions(func: (Expression) ⇒ Expression): Unit
    Definition Classes
    ExpressionContainer
  259. def walkRemapExpressions(func: (Expression) ⇒ Expression): Unit
    Definition Classes
    ExpressionContainer
  260. def wrapCast[T <: BaseType](result: T, node: Cast): T
    Definition Classes
    BaseType
  261. def wrapNext(): BitVector.this.type
    Definition Classes
    Data
  262. def xorMask(that: Bool): BitVector.this.type
  263. def xorR: Bool

    Logical XOR of all bits

Deprecated Value Members

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

  4. def range: Range

    Return the range

    Return the range

    Annotations
    @deprecated
    Deprecated

    Use bitsRange instead

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