Class

spinal.core

BitVector

Related Doc: package core

Permalink

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:

See also

BitVector Documentation

Linear Supertypes
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()

    Permalink

Type Members

  1. abstract type RefOwnerType

    Permalink
    Definition Classes
    OwnableRef
  2. abstract type T <: BitVector

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    Return the bit at index bitId

    Return the bit at index bitId

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

    Permalink

    Cast data to Bits

    Cast data to Bits

    Definition Classes
    Data
  6. abstract def assignFromBits(bits: Bits, hi: Int, low: Int): Unit

    Permalink
    Definition Classes
    Data
  7. abstract def assignFromBits(bits: Bits): Unit

    Permalink
    Definition Classes
    Data
  8. abstract def getAllTrue: BitVector.this.type

    Permalink
  9. abstract def getTypeObject: Any

    Permalink
    Definition Classes
    Expression
  10. abstract def getZero: BitVector.this.type

    Permalink

    Create a data set to 0

    Create a data set to 0

    Definition Classes
    Data
  11. abstract def getZeroUnconstrained: BitVector.this.type

    Permalink
  12. abstract def opName: String

    Permalink
    Definition Classes
    Expression
  13. abstract def resize(width: BitCount): BitVector

    Permalink
  14. abstract def resize(width: Int): BitVector

    Permalink

    Resize the bitVector to width

    Resize the bitVector to width

    returns

    a resized bitVector

    Example:
    1. val res = myBits.resize(10)
  15. abstract def rotateLeft(that: Int): T

    Permalink

    Left rotation of that bits

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

    Permalink

    Right rotation of that bits

  17. abstract def setAll(): BitVector.this.type

    Permalink

    Set all bits

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

    Permalink

    BitVector is not equal to MaskedLiteral

  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. 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

    Example:
    1. val myBool = myBits === M"0-1"
  8. var _spinalTags: LinkedHashSet[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  9. def addAttribute(attribute: Attribute): BitVector.this.type

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  12. def addAttribute(name: String): BitVector.this.type

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  15. var algoIncrementale: Int

    Permalink
    Definition Classes
    BaseNode
  16. var algoInt: Int

    Permalink
    Definition Classes
    BaseNode
  17. def allowDirectionLessIo: BitVector.this.type

    Permalink
    Definition Classes
    Data
  18. def allowOverride: BitVector.this.type

    Permalink

    Allow a data to be overrided

    Allow a data to be overrided

    Definition Classes
    Data
  19. def allowPartialyAssigned: BitVector.this.type

    Permalink
    Definition Classes
    Data
  20. def allowPruning(): BitVector.this.type

    Permalink
    Definition Classes
    Data
  21. def allowSimplifyIt(): BitVector.this.type

    Permalink
    Definition Classes
    BaseTypeData
  22. def allowUnsetRegToAvoidLatch: BitVector.this.type

    Permalink
    Definition Classes
    Data
  23. def andMask(that: Bool): BitVector.this.type

    Permalink
  24. def andR: Bool

    Permalink

    Logical AND of all bits

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

    Permalink

    Return a range of bits

    Return a range of bits

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

    Permalink
    Definition Classes
    Data
  27. def asBool: Bool

    Permalink
  28. 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

  29. def asData: Data

    Permalink
    Definition Classes
    Data
  30. def asInOut(): BitVector.this.type

    Permalink

    set a data as inout

    set a data as inout

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

    Permalink

    Set a data as input

    Set a data as input

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

    Permalink
    Definition Classes
    Any
  33. def asOutput(): BitVector.this.type

    Permalink

    Set a data as output

    Set a data as output

    Definition Classes
    BaseTypeData
  34. def assignDontCare(): BitVector.this.type

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

    Permalink
    Definition Classes
    Data
  36. final def assignFrom(that: AnyRef, target: AnyRef = this): Unit

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

    Permalink
    Definition Classes
    Data
  38. def bitsRange: Range

    Permalink
  39. def cldCount: Int

    Permalink
    Definition Classes
    DoubleLinkedContainer
  40. def clearAll(): BitVector.this.type

    Permalink

    Clear all bits

  41. var clockDomain: ClockDomain

    Permalink
    Definition Classes
    BaseType
  42. def clone(): BitVector.this.type

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

    Permalink
    Definition Classes
    ContextUser
  44. final def compositAssignFrom(that: AnyRef, target: AnyRef, kind: AnyRef): Unit

    Permalink
    Definition Classes
    Assignable
  45. var compositeAssign: Assignable

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

    Permalink
    Definition Classes
    BaseTypeData
  47. def dirString(): String

    Permalink
    Definition Classes
    Data
  48. def dlcAppend(that: AssignmentStatement): BitVector.this.type

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

    Permalink
    Definition Classes
    DoubleLinkedContainer
  50. def dlcHasOnlyOne: Boolean

    Permalink
    Definition Classes
    DoubleLinkedContainer
  51. var dlcHead: AssignmentStatement

    Permalink
    Definition Classes
    DoubleLinkedContainer
  52. def dlcIsEmpty: Boolean

    Permalink
    Definition Classes
    DoubleLinkedContainer
  53. var dlcLast: AssignmentStatement

    Permalink
    Definition Classes
    DoubleLinkedContainer
  54. def dlcPrepend(that: AssignmentStatement): BitVector.this.type

    Permalink
    Definition Classes
    DoubleLinkedContainer
  55. def dontSimplifyIt(): BitVector.this.type

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

    Permalink

    Drop lowerst n bits

    Drop lowerst n bits

    returns

    data10bits(9 downto 4)

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

    Permalink

    Drop highest n bits

    Drop highest n bits

    returns

    data10bits(5 downto 0)

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

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

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

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

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  64. def flatten: Seq[BaseType]

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

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

    Permalink
    Definition Classes
    BaseTypeData
  67. def flip(): BitVector.this.type

    Permalink

    flip the direction of the data

    flip the direction of the data

    Definition Classes
    Data
  68. def foreachClockDomain(func: (ClockDomain) ⇒ Unit): Unit

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

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

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

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  74. def freeze(): BitVector.this.type

    Permalink
    Definition Classes
    BaseTypeData
  75. def genIf(cond: Boolean): BitVector.this.type

    Permalink

    Generate this if condition is true

    Generate this if condition is true

    Definition Classes
    Data
  76. def getAheadValue(): BitVector.this.type

    Permalink
    Definition Classes
    BaseTypeData
  77. def getBitsWidth: Int

    Permalink

    Return the width of the data

    Return the width of the data

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

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  79. def getComponent(): Component

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

    Permalink

    Get current component with all parents

    Get current component with all parents

    Definition Classes
    InComponent
  81. def getDirection: IODirection

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

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

    Permalink
    Definition Classes
    BaseType
  84. def getInstanceCounter: Int

    Permalink
    Definition Classes
    ContextUser
  85. def getMode: Byte

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

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

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

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

    Permalink
    Definition Classes
    Nameable
  90. def getRealSource: Any

    Permalink
    Definition Classes
    Assignable
  91. def getRealSourceNoRec: Any

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

    Permalink
    Definition Classes
    OwnableRef
  93. def getRootParent: Data

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

    Permalink
    Definition Classes
    Data
  95. def getScalaLocationLong: String

    Permalink
    Definition Classes
    ScalaLocated
  96. def getScalaLocationShort: String

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

    Permalink
    Definition Classes
    ScalaLocated
  98. def getSingleDriver: Option[BitVector.this.type]

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  101. def getWidth: Int

    Permalink
    Definition Classes
    WidthableWidthProvider
  102. def getWidthNoInferation: Int

    Permalink

    Return the width

  103. def getWidthStringNoInferation: String

    Permalink
  104. val globalData: GlobalData

    Permalink
    Definition Classes
    GlobalDataUser
  105. def hasAssignement: Boolean

    Permalink
    Definition Classes
    BaseType
  106. def hasDataAssignment: Boolean

    Permalink
    Definition Classes
    BaseType
  107. def hasInit: Boolean

    Permalink

    Does the base type have initial value

    Does the base type have initial value

    Definition Classes
    BaseType
  108. def hasOnlyOneStatement: Boolean

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

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

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

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

    Permalink
  113. def high: Int

    Permalink

    Return the upper bound

  114. final def initFrom(that: AnyRef, target: AnyRef = this): Unit

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

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

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  119. def isAnalog: Boolean

    Permalink
    Definition Classes
    BaseTypeData
  120. def isComb: Boolean

    Permalink
    Definition Classes
    BaseTypeData
  121. def isCompletelyUnnamed: Boolean

    Permalink
    Definition Classes
    Nameable
  122. def isDirectionLess: Boolean

    Permalink
    Definition Classes
    Data
  123. def isEmptyOfTag: Boolean

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

    Permalink
    Definition Classes
    BaseType
  125. def isInOut: Boolean

    Permalink
    Definition Classes
    Data
  126. def isInput: Boolean

    Permalink
    Definition Classes
    Data
  127. def isInputOrInOut: Boolean

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

    Permalink
    Definition Classes
    Any
  129. def isNamed: Boolean

    Permalink
    Definition Classes
    NameableByComponentNameable
  130. def isOutput: Boolean

    Permalink
    Definition Classes
    Data
  131. def isOutputOrInOut: Boolean

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

    Permalink
    Definition Classes
    Nameable
  133. def isReg: Boolean

    Permalink
    Definition Classes
    BaseTypeData
  134. def isTypeNode: Boolean

    Permalink

    Is the baseType a node

    Is the baseType a node

    Definition Classes
    BaseType
  135. def isUnnamed: Boolean

    Permalink
    Definition Classes
    Nameable
  136. def isUsingResetSignal: Boolean

    Permalink

    Is the basetype using reset signal

    Is the basetype using reset signal

    Definition Classes
    BaseType
  137. def isUsingSoftResetSignal: Boolean

    Permalink

    Is the basetype using soft reset signal

    Is the basetype using soft reset signal

    Definition Classes
    BaseType
  138. def isVital: Boolean

    Permalink

    Check if the baseType is vital

    Check if the baseType is vital

    Definition Classes
    BaseType
  139. var lastScopeStatement: Statement

    Permalink
    Definition Classes
    Statement
  140. def lsb: Bool

    Permalink

    Return the least significant bit

  141. def msb: Bool

    Permalink

    Return the most significant bit

  142. def mux[T2 <: Data](mappings: (Any, T2)*): T2

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

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

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

    Permalink
    Definition Classes
    BaseType
  146. var name: String

    Permalink
    Definition Classes
    Nameable
  147. var nameableRef: Nameable

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

    Permalink
    Definition Classes
    AnyRef
  149. def newExtract(offset: UInt, size: Int, extract: BitVectorRangedAccessFloating): BitVector.this.type

    Permalink

    Extract a range of bits of the BitVector

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

    Permalink

    Extract a range of bits of the BitVector

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

    Permalink

    Extract a bit of the BitVector

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

    Permalink

    Extract a bit of the BitVector

  153. var nextScopeStatement: Statement

    Permalink
    Definition Classes
    Statement
  154. def noBackendCombMerge: BitVector.this.type

    Permalink
    Definition Classes
    Data
  155. def noCombLoopCheck: BitVector.this.type

    Permalink
    Definition Classes
    Data
  156. def normalizeInputs: Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  158. final def notifyAll(): Unit

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

    Permalink
    Definition Classes
    SpinalTagReady
  160. def orMask(that: Bool): BitVector.this.type

    Permalink
  161. def orR: Bool

    Permalink

    Logical OR of all bits

  162. def overrideLocalName(name: String): BitVector.this.type

    Permalink
    Definition Classes
    Nameable
  163. var parent: Data

    Permalink
    Definition Classes
    Data
  164. var parentScope: ScopeStatement

    Permalink
    Definition Classes
    ContextUser
  165. def pull(propagateName: Boolean): BitVector.this.type

    Permalink
    Definition Classes
    Data
  166. def pull(): BitVector.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
  167. def purify(): BitVector.this.type

    Permalink
    Definition Classes
    Data
  168. def randBoot(u: Unit): BitVector.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
  169. var refOwner: RefOwnerType

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

    Permalink
    Definition Classes
    Nameable
  171. def remapDrivingExpressions(func: (Expression) ⇒ Expression): Unit

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

    Permalink
  173. def removeAssignments(): BitVector.this.type

    Permalink

    Remove all assignments of the base type

    Remove all assignments of the base type

    Definition Classes
    BaseTypeData
  174. def removeStatement(): Unit

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

    Permalink
    Definition Classes
    Statement
  176. def removeTag(spinalTag: SpinalTag): BitVector.this.type

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

    Permalink
    Definition Classes
    SpinalTagReady
  178. def resized: BitVector.this.type

    Permalink

    Resized data regarding target

    Resized data regarding target

    Definition Classes
    Data
  179. def rootScopeStatement: ScopeStatement

    Permalink
    Definition Classes
    BaseTypeStatement
  180. def rotateLeft(that: UInt): T

    Permalink

    Left rotation of that Bits

  181. def rotateRight(that: UInt): T

    Permalink

    Right rotation of that Bits

  182. var scalaTrace: Throwable

    Permalink
    Definition Classes
    ScalaLocated
  183. def setAllTo(value: Bool): BitVector.this.type

    Permalink

    Set all bits to value

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

    Permalink

    Set all bits to value

  185. def setAsAnalog(): BitVector.this.type

    Permalink
    Definition Classes
    BaseTypeData
  186. def setAsComb(): BitVector.this.type

    Permalink

    Set baseType to Combinatorial

    Set baseType to Combinatorial

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

    Permalink

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

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

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

    Permalink

    Set baseType to reg

    Set baseType to reg

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

    Permalink

    Set baseType to Node

    Set baseType to Node

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

    Permalink

    Set the baseType to vital

    Set the baseType to vital

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

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

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

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

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

    Permalink
    Definition Classes
    Nameable
  196. def setCompositeName(nameable: Nameable): BitVector.this.type

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

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

    Permalink
    Definition Classes
    Nameable
  199. def setName(name: String): BitVector.this.type

    Permalink
    Definition Classes
    Nameable
  200. def setNameAsWeak(): BitVector.this.type

    Permalink
    Definition Classes
    Nameable
  201. def setPartialName(name: String, namePriority: Byte, owner: Any): BitVector.this.type

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

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

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

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

    Permalink
    Definition Classes
    Nameable
  206. def setPartialName(name: String): BitVector.this.type

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

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

    Permalink
    Definition Classes
    OwnableRef
  209. def setScalaLocated(source: ScalaLocated): BitVector.this.type

    Permalink
    Definition Classes
    ScalaLocated
  210. def setWeakName(name: String): BitVector.this.type

    Permalink
    Definition Classes
    Nameable
  211. def setWidth(width: Int): BitVector.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

  212. def simplifyNode: Expression

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

    Permalink
  214. 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))

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

    Permalink
    Definition Classes
    SpinalTagReady
  216. 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))

    Example:
    1. val res = data10bits.splitAt(4)
  217. def stabilized(func: (Expression) ⇒ Expression, seed: Expression): Expression

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

    Permalink
  219. def subdivideIn(sliceCount: SlicesCount): Vec[T]

    Permalink
  220. def subdivideIn(sliceWidth: BitCount, strict: Boolean): Vec[T]

    Permalink

    Split the BitVector into slice of x bits * @example

    Split the BitVector into slice of x bits * @example

    val res = myBits.subdiviedIn(3 bits)
    sliceWidth

    the width of the slice

    returns

    a Vector of slices

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

    returns

    a Vector of slices

    Example:
    1. val res = myBits.subdiviedIn(3 slices)
  222. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  223. def take(n: Int): Bits

    Permalink

    Take lowerst n bits

    Take lowerst n bits

    returns

    data10bits(3 downto 0)

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

    Permalink

    Take highest n bits

    Take highest n bits

    returns

    data10bits(9 downto 6)

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

    Permalink
  226. def toIo(): BitVector.this.type

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

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

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

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

    Permalink
    Definition Classes
    Expression
  231. def unfreeze(): BitVector.this.type

    Permalink
    Definition Classes
    BaseTypeData
  232. def unsetName(): BitVector.this.type

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    ExpressionContainer
  243. def wrapCast[T <: BaseType](result: T, node: Cast): T

    Permalink
    Definition Classes
    BaseType
  244. def wrapNext(): BitVector.this.type

    Permalink
    Definition Classes
    Data
  245. def xorMask(that: Bool): BitVector.this.type

    Permalink
  246. def xorR: Bool

    Permalink

    Logical XOR of all bits

Deprecated Value Members

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

    Permalink

    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