Packages

class SInt extends BitVector with Num[SInt] with MinMaxProvider with DataPrimitives[SInt] with BitwiseOp[SInt]

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

Example:
  1. val mySInt = SInt(8 bits)
    mySInt    := S(4, 8 bits) + S"0000_1111"
    mySInt    := S(4) - S"h1A"
See also

SInt Documentation

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

Instance Constructors

  1. new SInt()

Type Members

  1. abstract type RefOwnerType
    Definition Classes
    OwnableRef
  2. type T = SInt

    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
    SIntBitVector

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 %(right: SInt): SInt

    Modulo

    Modulo

    Definition Classes
    SIntNum
  5. def &(right: SInt): SInt

    Logical AND operator

    Logical AND operator

    Definition Classes
    SIntBitwiseOp
  6. def *(right: SInt): SInt

    Multiplication

    Multiplication

    Definition Classes
    SIntNum
  7. def +(right: SInt): SInt

    Addition

    Addition

    Definition Classes
    SIntNum
  8. def -(right: SInt): SInt

    Substraction

    Substraction

    Definition Classes
    SIntNum
  9. def /(right: SInt): SInt

    Division

    Division

    Definition Classes
    SIntNum
  10. def :=(rangesValue: (Any, Any), _rangesValues: (Any, Any)*): Unit

    Assign a range value to a SInt

    Assign a range value to a SInt

    rangesValue

    The first range value

    _rangesValues

    Others range values

    Example:
    1. core.io.interrupt = (0 -> uartCtrl.io.interrupt, 1 -> timerCtrl.io.interrupt, default -> false)
  11. def :=(that: SInt): Unit

    Assign a data to this

    Assign a data to this

    Definition Classes
    DataPrimitives
  12. def <(right: SInt): Bool

    Is less than right

    Is less than right

    Definition Classes
    SIntNum
  13. def <<(that: UInt): SInt

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

  14. def <<(that: Int): SInt

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

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

    Definition Classes
    SIntNum
  15. def <=(right: SInt): Bool

    Is equal or less than right

    Is equal or less than right

    Definition Classes
    SIntNum
  16. def <>(that: SInt): Unit

    Auto connection between two data

    Auto connection between two data

    Definition Classes
    DataPrimitives
  17. def =/=(that: SInt): Bool
    Definition Classes
    DataPrimitives
  18. def =/=(that: MaskedLiteral): Bool

    BitVector is not equal to MaskedLiteral

    BitVector is not equal to MaskedLiteral

    Definition Classes
    BitVector
  19. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  20. def ===(that: SInt): Bool

    Comparison between two data

    Comparison between two data

    Definition Classes
    DataPrimitives
  21. 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

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

    Is greater than right

    Is greater than right

    Definition Classes
    SIntNum
  23. def >=(right: SInt): Bool

    Is equal or greater than right

    Is equal or greater than right

    Definition Classes
    SIntNum
  24. def >>(that: UInt): SInt

    Logical shift Right (output width == input width)

    Logical shift Right (output width == input width)

    that

    the number of right shift

    returns

    a Bits of width : w(this)

    Example:
    1. val result = mySInt >> myUIntShift
  25. def >>(that: Int): SInt

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

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

    Definition Classes
    SIntNum
  26. def @@(that: Bool): SInt

    Concatenation between a SInt and a Bool

  27. def @@(that: UInt): SInt

    Concatenation between a SInt and UInt

  28. def @@(that: SInt): SInt

    Concatenation between two SInt

    Concatenation between two SInt

    that

    an SInt to append

    returns

    a new SInt of width (width(this) + width(right))

    Example:
    1. val mySInt = sInt1 @@ sInt2
  29. def \(that: SInt): SInt

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

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

    Definition Classes
    DataPrimitives
  30. def ^(right: SInt): SInt

    Logical XOR operator

    Logical XOR operator

    Definition Classes
    SIntBitwiseOp
  31. val _spinalTags: Set[SpinalTag]
    Definition Classes
    SpinalTagReady
  32. def abs(enable: Bool): UInt

    Return the absolute value of the SInt when enable is True

  33. def abs: UInt

    Absolute value of a SInt

    Absolute value of a SInt

    returns

    a UInt assign with the absolute value of the SInt

    Example:
    1. myUInt := mySInt.abs
  34. def addAttribute(attribute: Attribute): SInt.this.type
    Definition Classes
    BaseTypeDataSpinalTagReady
  35. def addAttribute(name: String, value: String): SInt.this.type
    Definition Classes
    SpinalTagReady
  36. def addAttribute(name: String): SInt.this.type
    Definition Classes
    SpinalTagReady
  37. def addTag[T <: SpinalTag](spinalTag: T): SInt.this.type
    Definition Classes
    SpinalTagReady
  38. def addTags[T <: SpinalTag](tags: Iterable[T]): SInt.this.type
    Definition Classes
    SpinalTagReady
  39. val algoIncrementale: Int
    Definition Classes
    BaseNode
  40. val algoInt: Int
    Definition Classes
    BaseNode
  41. def allowDirectionLessIo: SInt.this.type
    Definition Classes
    Data
  42. def allowOverride: SInt.this.type

    Allow a data to be overrided

    Allow a data to be overrided

    Definition Classes
    Data
  43. def allowPruning(): SInt.this.type
    Definition Classes
    Data
  44. def allowSimplifyIt(): SInt.this.type
    Definition Classes
    BaseTypeData
  45. def allowUnsetRegToAvoidLatch: SInt.this.type
    Definition Classes
    Data
  46. def andR: Bool

    Logical AND of all bits

    Logical AND of all bits

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

    Return a range of bits at offset and of width bitCount

    Return a range of bits at offset and of width bitCount

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

    Return a range of bits at offset and of width bitCount

    Return a range of bits at offset and of width bitCount

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

    Return the bit at index bitId

    Return the bit at index bitId

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

    Return the bit at index bitId

    Return the bit at index bitId

    Definition Classes
    SIntBitVector
    Example:
    1. val myBool = myBits(3)
  51. def apply(range: Range): SInt.this.type

    Return a range of bits

    Return a range of bits

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

    Cast data to Bits

    Cast data to Bits

    Definition Classes
    SIntData
  54. def asBool: Bool
    Definition Classes
    BitVector
  55. 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

    Definition Classes
    BitVector
  56. def asData: Data
    Definition Classes
    Data
  57. def asInOut(): SInt.this.type

    set a data as inout

    set a data as inout

    Definition Classes
    BaseTypeData
  58. def asInput(): SInt.this.type

    Set a data as input

    Set a data as input

    Definition Classes
    BaseTypeData
  59. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  60. def asOutput(): SInt.this.type

    Set a data as output

    Set a data as output

    Definition Classes
    BaseTypeData
  61. def asUInt: UInt

    Cast a SInt into an UInt

    Cast a SInt into an UInt

    returns

    a UInt data

    Example:
    1. myUInt := mySInt.asUInt
  62. def assignDontCare(): SInt.this.type
    Definition Classes
    SIntData
  63. final def assignFrom(that: AnyRef, target: AnyRef = this): Unit
    Definition Classes
    Data
  64. def assignFromBits(bits: Bits, hi: Int, lo: Int): Unit
    Definition Classes
    SIntData
  65. def assignFromBits(bits: Bits): Unit
    Definition Classes
    SIntData
  66. def assignFromBits(bits: Bits, offset: Int, bitCount: BitCount): Unit
    Definition Classes
    Data
  67. def clearAll(): SInt.this.type

    Clear all bits

    Clear all bits

    Definition Classes
    BitVector
  68. var clockDomain: ClockDomain
    Definition Classes
    BaseType
  69. def clone(): SInt.this.type
    Definition Classes
    BitVectorBaseTypeData → AnyRef
  70. def component: Component
    Definition Classes
    ContextUser
  71. final def compositAssignFrom(that: AnyRef, target: AnyRef, kind: AnyRef): Unit
    Definition Classes
    Assignable
  72. val compositeAssign: Assignable
    Definition Classes
    Assignable
  73. def default(that: ⇒ SInt): SInt

    Set a default value to a data

    Set a default value to a data

    Definition Classes
    DataPrimitives
  74. def dirString(): String
    Definition Classes
    Data
  75. def dlcAppend(that: AssignmentStatement): SInt.this.type
    Definition Classes
    DoubleLinkedContainer
  76. def dlcForeach[T >: AssignmentStatement](func: (T) ⇒ Unit): Unit
    Definition Classes
    DoubleLinkedContainer
  77. def dlcHasOnlyOne: Boolean
    Definition Classes
    DoubleLinkedContainer
  78. val dlcHead: AssignmentStatement
    Definition Classes
    DoubleLinkedContainer
  79. def dlcIsEmpty: Boolean
    Definition Classes
    DoubleLinkedContainer
  80. val dlcLast: AssignmentStatement
    Definition Classes
    DoubleLinkedContainer
  81. def dlcPrepend(that: AssignmentStatement): SInt.this.type
    Definition Classes
    DoubleLinkedContainer
  82. def dontSimplifyIt(): SInt.this.type
    Definition Classes
    BaseTypeData
  83. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  84. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  85. def existsTag(cond: (SpinalTag) ⇒ Boolean): Boolean
    Definition Classes
    SpinalTagReady
  86. def filterTag(cond: (SpinalTag) ⇒ Boolean): Iterable[SpinalTag]
    Definition Classes
    SpinalTagReady
  87. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  88. def findTag(cond: (SpinalTag) ⇒ Boolean): Option[SpinalTag]
    Definition Classes
    SpinalTagReady
  89. def flatten: Seq[BaseType]
    Definition Classes
    BaseTypeData
  90. def flattenForeach(body: (BaseType) ⇒ Unit): Unit
    Definition Classes
    BaseTypeData
  91. def flattenLocalName: Seq[String]
    Definition Classes
    BaseTypeData
  92. def flip(): SInt.this.type

    flip the direction of the data

    flip the direction of the data

    Definition Classes
    Data
  93. def foreachClockDomain(func: (ClockDomain) ⇒ Unit): Unit
    Definition Classes
    BaseTypeStatement
  94. def foreachDrivingExpression(func: (Expression) ⇒ Unit): Unit
    Definition Classes
    ExpressionContainer
  95. def foreachExpression(func: (Expression) ⇒ Unit): Unit
  96. def foreachReflectableNameables(doThat: (Any) ⇒ Unit): Unit
    Definition Classes
    Nameable
  97. def foreachStatements(func: (AssignmentStatement) ⇒ Unit): Unit
  98. def genIf(cond: Boolean): SInt.this.type

    Generate this if condition is true

    Generate this if condition is true

    Definition Classes
    Data
  99. def getAllTrue: SInt.this.type
    Definition Classes
    SIntBitVector
  100. def getBitsWidth: Int

    Return the width of the data

    Return the width of the data

    Definition Classes
    BitVectorData
  101. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  102. def getComponent(): Component
    Definition Classes
    DataNameableByComponent
  103. def getComponents(): Seq[Component]

    Get current component with all parents

    Get current component with all parents

    Definition Classes
    Data
  104. def getDisplayName(): String
    Definition Classes
    Nameable
  105. def getDrivingReg: SInt.this.type
    Definition Classes
    BaseType
  106. def getInstanceCounter: Int
    Definition Classes
    ContextUser
  107. def getMode: Byte
    Attributes
    protected
    Definition Classes
    Nameable
  108. def getName(default: String): String
    Definition Classes
    NameableByComponentNameable
  109. def getName(): String
    Definition Classes
    Nameable
  110. def getRealSource: Any
    Definition Classes
    Assignable
  111. def getRealSourceNoRec: Any
    Definition Classes
    DataAssignable
  112. def getRefOwnersChain(): List[Any]
    Definition Classes
    OwnableRef
  113. def getRootParent: Data
    Definition Classes
    Data
  114. def getScalaLocationLong: String
    Definition Classes
    ScalaLocated
  115. def getScalaLocationShort: String
    Definition Classes
    ScalaLocated
  116. def getScalaTrace(): Throwable
    Definition Classes
    ScalaLocated
  117. def getSingleDriver: Option[SInt.this.type]
    Definition Classes
    BaseType
  118. def getTag[T <: SpinalTag](clazz: Class[T]): Option[T]
    Definition Classes
    SpinalTagReady
  119. def getTags(): Set[SpinalTag]
    Definition Classes
    SpinalTagReady
  120. def getTypeObject: TypeSInt.type
    Definition Classes
    SIntExpression
  121. def getWidth: Int
    Definition Classes
    WidthableWidthProvider
  122. def getWidthNoInferation: Int

    Return the width

    Return the width

    Definition Classes
    BitVector
  123. def getWidthStringNoInferation: String
    Definition Classes
    BitVector
  124. def getZero: SInt.this.type

    Create a data set to 0

    Create a data set to 0

    Definition Classes
    SIntData
  125. def getZeroUnconstrained: SInt.this.type
    Definition Classes
    SIntBitVector
  126. val globalData: GlobalData
    Definition Classes
    GlobalDataUser
  127. def hasAssignement: Boolean
    Definition Classes
    BaseType
  128. def hasInit: Boolean

    Does the base type have initial value

    Does the base type have initial value

    Definition Classes
    BaseType
  129. def hasOnlyOneStatement: Boolean
  130. def hasTag[T <: SpinalTag](clazz: Class[T]): Boolean
    Definition Classes
    SpinalTagReady
  131. def hasTag(spinalTag: SpinalTag): Boolean
    Definition Classes
    SpinalTagReady
  132. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  133. def head: AssignmentStatement
  134. def high: Int

    Return the upper bound

    Return the upper bound

    Definition Classes
    BitVector
  135. def init(that: SInt): SInt

    Set inital value to a data

    Set inital value to a data

    Definition Classes
    DataPrimitives
  136. final def initFrom(that: AnyRef, target: AnyRef = this): Unit
    Definition Classes
    Data
  137. def insertNext(s: Statement): Unit
    Definition Classes
    Statement
  138. def instanceAttributes(language: Language): Iterable[Attribute]
    Definition Classes
    SpinalTagReady
  139. def instanceAttributes: Iterable[Attribute]
    Definition Classes
    SpinalTagReady
  140. def isAnalog: Boolean
    Definition Classes
    BaseTypeData
  141. def isComb: Boolean
    Definition Classes
    BaseTypeData
  142. def isDirectionLess: Boolean
    Definition Classes
    Data
  143. def isEmptyOfTag: Boolean
    Definition Classes
    SpinalTagReady
  144. def isInOut: Boolean
    Definition Classes
    Data
  145. def isInput: Boolean
    Definition Classes
    Data
  146. def isInputOrInOut: Boolean
    Definition Classes
    Data
  147. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  148. def isNamed: Boolean
    Definition Classes
    NameableByComponentNameable
  149. def isOutput: Boolean
    Definition Classes
    Data
  150. def isOutputOrInOut: Boolean
    Definition Classes
    Data
  151. def isPriorityApplicable(namePriority: Byte): Boolean
    Definition Classes
    Nameable
  152. def isReg: Boolean
    Definition Classes
    BaseTypeData
  153. def isTypeNode: Boolean

    Is the baseType a node

    Is the baseType a node

    Definition Classes
    BaseType
  154. def isUnnamed: Boolean
    Definition Classes
    Nameable
  155. def isUsingResetSignal: Boolean

    Is the basetype using reset signal

    Is the basetype using reset signal

    Definition Classes
    BaseType
  156. def isUsingSoftResetSignal: Boolean

    Is the basetype using soft reset signal

    Is the basetype using soft reset signal

    Definition Classes
    BaseType
  157. def isVital: Boolean

    Check if the baseType is vital

    Check if the baseType is vital

    Definition Classes
    BaseType
  158. def keep(): SInt.this.type
    Definition Classes
    Data
  159. val lastScopeStatement: Statement
    Definition Classes
    Statement
  160. def lsb: Bool

    Return the least significant bit

    Return the least significant bit

    Definition Classes
    BitVector
  161. def max(right: SInt): SInt

    Return the maximum value between this and right

    Return the maximum value between this and right

    Definition Classes
    Num
  162. def maxValue: BigInt
    Definition Classes
    SIntMinMaxProvider
  163. def min(right: SInt): SInt

    Return the minimum value between this and right

    Return the minimum value between this and right

    Definition Classes
    Num
  164. def minValue: BigInt
    Definition Classes
    SIntMinMaxProvider
  165. def msb: Bool

    Return the most significant bit

    Return the most significant bit

    Definition Classes
    BitVector
  166. def mux[T2 <: Data](mappings: (Any, T2)*): T2
    Definition Classes
    BaseType
  167. def muxList[T2 <: Data](defaultValue: T2, mappings: Seq[(Any, T2)]): T2
    Definition Classes
    BaseType
  168. def muxList[T2 <: Data](mappings: Seq[(Any, T2)]): T2
    Definition Classes
    BaseType
  169. def muxListDc[T2 <: Data](mappings: Seq[(Any, T2)]): T2
    Definition Classes
    BaseType
  170. val name: String
    Attributes
    protected
    Definition Classes
    Nameable
  171. val nameableRef: Nameable
    Attributes
    protected
    Definition Classes
    Nameable
  172. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  173. def newExtract(offset: UInt, size: Int, extract: BitVectorRangedAccessFloating): SInt.this.type

    Extract a range of bits of the BitVector

    Extract a range of bits of the BitVector

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

    Extract a range of bits of the BitVector

    Extract a range of bits of the BitVector

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

    Extract a bit of the BitVector

    Extract a bit of the BitVector

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

    Extract a bit of the BitVector

    Extract a bit of the BitVector

    Definition Classes
    BitVector
  177. val nextScopeStatement: Statement
    Definition Classes
    Statement
  178. def noBackendCombMerge: SInt.this.type
    Definition Classes
    Data
  179. def noCombLoopCheck: SInt.this.type
    Definition Classes
    Data
  180. def normalizeInputs: Unit
    Definition Classes
    BaseTypeExpressionContainer
  181. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  182. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  183. def onEachAttributes(doIt: (Attribute) ⇒ Unit): Unit
    Definition Classes
    SpinalTagReady
  184. def opName: String
    Definition Classes
    SIntExpression
  185. def orR: Bool

    Logical OR of all bits

    Logical OR of all bits

    Definition Classes
    BitVector
  186. val parent: Data
    Definition Classes
    Data
  187. val parentScope: ScopeStatement
    Definition Classes
    ContextUser
  188. def pull(): SInt.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
  189. def purify(): SInt.this.type
    Definition Classes
    Data
  190. def randBoot(): SInt.this.type

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

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

    Definition Classes
    Data
  191. def range: Range

    Return the range

    Return the range

    Definition Classes
    BitVector
  192. val refOwner: RefOwnerType
    Definition Classes
    OwnableRef
    Annotations
    @dontName()
  193. def remapDrivingExpressions(func: (Expression) ⇒ Expression): Unit
    Definition Classes
    ExpressionContainer
  194. def remapExpressions(func: (Expression) ⇒ Expression): Unit
  195. def removeAssignments(): SInt.this.type

    Remove all assignements of the base type

    Remove all assignements of the base type

    Definition Classes
    BaseTypeData
  196. def removeStatement(): Unit
    Definition Classes
    BaseTypeStatement
  197. def removeStatementFromScope(): Unit
    Definition Classes
    Statement
  198. def removeTag(spinalTag: SpinalTag): SInt.this.type
    Definition Classes
    SpinalTagReady
  199. def removeTags(tags: Iterable[SpinalTag]): SInt.this.type
    Definition Classes
    SpinalTagReady
  200. def resize(width: BitCount): SInt
    Definition Classes
    SIntBitVector
  201. def resize(width: Int): SInt.this.type

    Resize the bitVector to width

    Resize the bitVector to width

    returns

    a resized bitVector

    Definition Classes
    SIntBitVector
    Example:
    1. val res = myBits.resize(10)
  202. def resized: SInt.this.type

    Resized data regarding target

    Resized data regarding target

    Definition Classes
    Data
  203. def rootScopeStatement: ScopeStatement
    Definition Classes
    BaseTypeStatement
  204. def rotateLeft(that: Int): SInt

    Left rotation of that bits

    Left rotation of that bits

    Definition Classes
    SIntBitVector
  205. def rotateLeft(that: UInt): T

    Left rotation of that Bits

    Left rotation of that Bits

    Definition Classes
    BitVector
  206. def rotateRight(that: Int): SInt

    Right rotation of that bits

    Right rotation of that bits

    Definition Classes
    SIntBitVector
  207. def rotateRight(that: UInt): T

    Right rotation of that Bits

    Right rotation of that Bits

    Definition Classes
    BitVector
  208. def setAll(): SInt.this.type

    Set all bits

    Set all bits

    Definition Classes
    SIntBitVector
  209. def setAllTo(value: Bool): SInt.this.type

    Set all bits to value

    Set all bits to value

    Definition Classes
    BitVector
  210. def setAllTo(value: Boolean): SInt.this.type

    Set all bits to value

    Set all bits to value

    Definition Classes
    BitVector
  211. def setAsAnalog(): SInt.this.type
    Definition Classes
    BaseTypeData
  212. def setAsComb(): SInt.this.type

    Set baseType to Combinatorial

    Set baseType to Combinatorial

    Definition Classes
    BaseTypeData
  213. def setAsDirectionLess(): SInt.this.type

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

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

    Definition Classes
    BaseTypeData
  214. def setAsReg(): SInt.this.type

    Set baseType to reg

    Set baseType to reg

    Definition Classes
    BaseTypeData
  215. def setAsTypeNode(): SInt.this.type

    Set baseType to Node

    Set baseType to Node

    Definition Classes
    BaseType
  216. def setAsVital(): SInt.this.type

    Set the baseType to vital

    Set the baseType to vital

    Definition Classes
    BaseType
  217. def setCompositeName(nameable: Nameable, postfix: String, namePriority: Byte): SInt.this.type
    Definition Classes
    Nameable
  218. def setCompositeName(nameable: Nameable, postfix: String, weak: Boolean): SInt.this.type
    Definition Classes
    Nameable
  219. def setCompositeName(nameable: Nameable, postfix: String): SInt.this.type
    Definition Classes
    Nameable
  220. def setCompositeName(nameable: Nameable, namePriority: Byte): SInt.this.type
    Definition Classes
    Nameable
  221. def setCompositeName(nameable: Nameable, weak: Boolean): SInt.this.type
    Definition Classes
    Nameable
  222. def setCompositeName(nameable: Nameable): SInt.this.type
    Definition Classes
    Nameable
  223. def setName(name: String, namePriority: Byte): SInt.this.type
    Definition Classes
    Nameable
  224. def setName(name: String, weak: Boolean): SInt.this.type
    Definition Classes
    Nameable
  225. def setName(name: String): SInt.this.type
    Definition Classes
    Nameable
  226. def setPartialName(name: String, namePriority: Byte): SInt.this.type
    Definition Classes
    Nameable
  227. def setPartialName(name: String, weak: Boolean): SInt.this.type
    Definition Classes
    Nameable
  228. def setPartialName(owner: Nameable, name: String, namePriority: Byte): SInt.this.type
    Definition Classes
    Nameable
  229. def setPartialName(owner: Nameable, name: String, weak: Boolean): SInt.this.type
    Definition Classes
    Nameable
  230. def setPartialName(name: String): SInt.this.type
    Definition Classes
    Nameable
  231. def setPartialName(owner: Nameable, name: String): SInt.this.type
    Definition Classes
    Nameable
  232. def setRefOwner(that: Any): Unit
    Definition Classes
    OwnableRef
  233. def setScalaLocated(source: ScalaLocated): SInt.this.type
    Definition Classes
    ScalaLocated
  234. def setWeakName(name: String): SInt.this.type
    Definition Classes
    Nameable
  235. def setWidth(width: Int): SInt.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

    Definition Classes
    BitVector
  236. def simplifyNode: Expression
    Definition Classes
    Expression
  237. def spinalTags: Set[SpinalTag]
    Definition Classes
    SpinalTagReady
  238. def subdivideIn(sliceWidth: BitCount): Vec[T]

    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

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

    Split the BitVector into x slice

    Split the BitVector into x slice

    sliceCount

    the width of the slice

    returns

    a Vector of slices

    Definition Classes
    BitVector
    Example:
    1. val res = myBits.subdiviedIn(3 slices)
  240. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  241. def toString(): String
    Definition Classes
    BitVectorBaseTypeExpressionNameable → AnyRef → Any
  242. def toStringMultiLine(): String
    Definition Classes
    BaseNode
  243. def unary_-: SInt

    Negative number

    Negative number

    returns

    return a negative number

    Example:
    1. val result = -mySInt
  244. def unary_~: SInt

    Inverse bitwise operator

    Inverse bitwise operator

    Definition Classes
    SIntBitwiseOp
  245. def unsetName(): SInt.this.type
    Definition Classes
    Nameable
  246. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  247. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  248. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  249. def walkDrivingExpressions(func: (Expression) ⇒ Unit): Unit
    Definition Classes
    ExpressionContainer
  250. def walkExpression(func: (Expression) ⇒ Unit): Unit
    Definition Classes
    ExpressionContainer
  251. def walkParentTreeStatements(func: (TreeStatement) ⇒ Unit): Unit
    Definition Classes
    Statement
  252. def walkParentTreeStatementsUntilRootScope(func: (TreeStatement) ⇒ Unit): Unit
    Definition Classes
    Statement
  253. def walkRemapDrivingExpressions(func: (Expression) ⇒ Expression): Unit
    Definition Classes
    ExpressionContainer
  254. def walkRemapExpressions(func: (Expression) ⇒ Expression): Unit
    Definition Classes
    ExpressionContainer
  255. def wrapCast[T <: BaseType](result: T, node: Cast): T
    Definition Classes
    BaseType
  256. def xorR: Bool

    Logical XOR of all bits

    Logical XOR of all bits

    Definition Classes
    BitVector
  257. def |(right: SInt): SInt

    Logical OR operator

    Logical OR operator

    Definition Classes
    SIntBitwiseOp
  258. def |<<(that: UInt): SInt

    Logical shift left (output width == input width)

  259. def |<<(that: Int): SInt

    Logical shift left (output width == input width)

  260. def |>>(that: UInt): SInt

    Logical shift Right (output width == input width)

  261. def |>>(that: Int): SInt

    Logical shift right (output width == input width)

    Logical shift right (output width == input width)

    that

    the number of right shift

    returns

    a Bits of width : w(this)

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

Deprecated Value Members

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

    (Since version ???) use setAsDirectionLess instead

Inherited from BitwiseOp[SInt]

Inherited from DataPrimitives[SInt]

Inherited from MinMaxProvider

Inherited from Num[SInt]

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