Class

spinal.core

SInt

Related Doc: package core

Permalink

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

Linear Supertypes
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. OverridedEqualsHashCode
  20. SpinalTagReady
  21. Assignable
  22. NameableByComponent
  23. Nameable
  24. OwnableRef
  25. ContextUser
  26. ScalaLocated
  27. GlobalDataUser
  28. AnyRef
  29. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SInt()

    Permalink

Type Members

  1. abstract type RefOwnerType

    Permalink
    Definition Classes
    OwnableRef
  2. type T = SInt

    Permalink

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

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

    Definition Classes
    SIntBitVector

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

    Permalink

    Modulo

    Modulo

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

    Permalink

    Logical AND operator

    Logical AND operator

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

    Permalink

    Multiplication

    Multiplication

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

    Permalink

    Addition

    Addition

    Definition Classes
    SIntNum
  8. def +^(right: SInt): SInt

    Permalink

    Safe Addition with 1 bit expand

    Safe Addition with 1 bit expand

    Definition Classes
    SIntNum
  9. def +|(right: SInt): SInt

    Permalink

    Safe Addition with saturation

    Safe Addition with saturation

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

    Permalink

    Substraction

    Substraction

    Definition Classes
    SIntNum
  11. def -^(right: SInt): SInt

    Permalink

    Safe Substraction with 1 bit expand

    Safe Substraction with 1 bit expand

    Definition Classes
    SIntNum
  12. def -|(right: SInt): SInt

    Permalink

    Safe Substraction with saturation

    Safe Substraction with saturation

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

    Permalink

    Division

    Division

    Definition Classes
    SIntNum
  14. def :=(value: String): Unit

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

    Permalink

    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)
  16. def :=(that: SInt): Unit

    Permalink

    Assign a data to this

    Assign a data to this

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

    Permalink

    Is less than right

    Is less than right

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

    Permalink

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

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

    Permalink

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

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

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

    Permalink

    Is equal or less than right

    Is equal or less than right

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

    Permalink

    Auto connection between two data

    Auto connection between two data

    Definition Classes
    DataPrimitives
  22. def =/=(that: SInt): Bool

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

    Permalink

    BitVector is not equal to MaskedLiteral

    BitVector is not equal to MaskedLiteral

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

    Permalink
    Definition Classes
    AnyRef → Any
  25. def ===(that: SInt): Bool

    Permalink

    Comparison between two data

    Comparison between two data

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

    Permalink

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

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

    that

    the maskedLiteral

    returns

    a Bool data containing the result of the comparison

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

    Permalink

    Is greater than right

    Is greater than right

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

    Permalink

    Is equal or greater than right

    Is equal or greater than right

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

    Permalink

    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
  30. def >>(that: Int): SInt

    Permalink

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

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

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

    Permalink

    Concatenation between a SInt and a Bool

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

    Permalink

    Concatenation between a SInt and UInt

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

    Permalink

    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
  34. def \(that: SInt): SInt

    Permalink

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

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

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

    Permalink

    Logical XOR operator

    Logical XOR operator

    Definition Classes
    SIntBitwiseOp
  36. def _fixEntry(roundN: Int, roundType: RoundType, satN: Int): SInt

    Permalink
    Attributes
    protected
  37. var _spinalTags: Set[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  38. def abs(enable: Bool): UInt

    Permalink

    Return the absolute value of the SInt when enable is True

  39. def abs: UInt

    Permalink

    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
  40. def absWithSym: UInt

    Permalink

    symmetric abs

    symmetric abs

    returns

    a UInt assign with the absolute value save 1 bit

    Example:
    1. S(-128,8 bits).absWithSym got U(127,7 bits)
  41. def addAttribute(attribute: Attribute): SInt.this.type

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

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

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  46. var algoIncrementale: Int

    Permalink
    Definition Classes
    BaseNode
  47. var algoInt: Int

    Permalink
    Definition Classes
    BaseNode
  48. def allowDirectionLessIo: SInt.this.type

    Permalink
    Definition Classes
    Data
  49. def allowOverride: SInt.this.type

    Permalink

    Allow a data to be overrided

    Allow a data to be overrided

    Definition Classes
    Data
  50. def allowPruning(): SInt.this.type

    Permalink
    Definition Classes
    Data
  51. def allowSimplifyIt(): SInt.this.type

    Permalink
    Definition Classes
    BaseTypeData
  52. def allowUnsetRegToAvoidLatch: SInt.this.type

    Permalink
    Definition Classes
    Data
  53. def andR: Bool

    Permalink

    Logical AND of all bits

    Logical AND of all bits

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

    Permalink

    Return a range of bits at offset and of width bitCount

    Return a range of bits at offset and of width bitCount

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

    Permalink

    Return a range of bits at offset and of width bitCount

    Return a range of bits at offset and of width bitCount

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

    Permalink

    Return the bit at index bitId

    Return the bit at index bitId

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

    Permalink

    Return the bit at index bitId

    Return the bit at index bitId

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

    Permalink

    Return a range of bits

    Return a range of bits

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

    Permalink
    Definition Classes
    Data
  60. def asBits: Bits

    Permalink

    Cast data to Bits

    Cast data to Bits

    Definition Classes
    SIntData
  61. def asBool: Bool

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

    Permalink

    Cast the BitVector into a Vector of Bool

    Cast the BitVector into a Vector of Bool

    returns

    a vector of Bool

    Definition Classes
    BitVector
  63. def asData: Data

    Permalink
    Definition Classes
    Data
  64. def asInOut(): SInt.this.type

    Permalink

    set a data as inout

    set a data as inout

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

    Permalink

    Set a data as input

    Set a data as input

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

    Permalink
    Definition Classes
    Any
  67. def asOutput(): SInt.this.type

    Permalink

    Set a data as output

    Set a data as output

    Definition Classes
    BaseTypeData
  68. def asUInt: UInt

    Permalink

    Cast a SInt into an UInt

    Cast a SInt into an UInt

    returns

    a UInt data

    Example:
    1. myUInt := mySInt.asUInt
  69. def assignDontCare(): SInt.this.type

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

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

    Permalink
    Definition Classes
    SIntData
  72. def assignFromBits(bits: Bits): Unit

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

    Permalink
    Definition Classes
    Data
  74. def ceil(n: Int, align: Boolean = true): SInt

    Permalink

    SInt ceil

    SInt ceil

    n

    : ceil lowerest n bit

    returns

    a new SInt of width (w - n + 1)

    Definition Classes
    SIntNum
    Example:
    1. val mySInt = SInt(w bits).ceil
  75. def ceil(width: BitCount, align: Boolean): SInt

    Permalink

    lowest n bits Round Operation by BitCount

    lowest n bits Round Operation by BitCount

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

    Permalink

    SInt roundUp lowest m bits, friendly for hardware timing and area sign * ceil(abs(x))

    SInt roundUp lowest m bits, friendly for hardware timing and area sign * ceil(abs(x))

    Definition Classes
    SIntNum
  77. def ceilToInf(width: BitCount, align: Boolean): SInt

    Permalink
    Definition Classes
    Num
  78. def clearAll(): SInt.this.type

    Permalink

    Clear all bits

    Clear all bits

    Definition Classes
    BitVector
  79. var clockDomain: ClockDomain

    Permalink
    Definition Classes
    BaseType
  80. def clone(): SInt.this.type

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

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

    Permalink
    Definition Classes
    Assignable
  83. var compositeAssign: Assignable

    Permalink
    Definition Classes
    Assignable
  84. def copyDirectionOf(that: SInt): Unit

    Permalink
    Definition Classes
    DataPrimitives
  85. def copyDirectionOfImpl(that: Data): SInt.this.type

    Permalink
    Definition Classes
    BaseTypeData
  86. def default(that: ⇒ SInt): SInt

    Permalink

    Set a default value to a data

    Set a default value to a data

    Definition Classes
    DataPrimitives
  87. def dirString(): String

    Permalink
    Definition Classes
    Data
  88. def dlcAppend(that: AssignmentStatement): SInt.this.type

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

    Permalink
    Definition Classes
    DoubleLinkedContainer
  90. def dlcHasOnlyOne: Boolean

    Permalink
    Definition Classes
    DoubleLinkedContainer
  91. var dlcHead: AssignmentStatement

    Permalink
    Definition Classes
    DoubleLinkedContainer
  92. def dlcIsEmpty: Boolean

    Permalink
    Definition Classes
    DoubleLinkedContainer
  93. var dlcLast: AssignmentStatement

    Permalink
    Definition Classes
    DoubleLinkedContainer
  94. def dlcPrepend(that: AssignmentStatement): SInt.this.type

    Permalink
    Definition Classes
    DoubleLinkedContainer
  95. def dontSimplifyIt(): SInt.this.type

    Permalink
    Definition Classes
    BaseTypeData
  96. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  99. def expand: SInt

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  102. def fixTo(section: Inclusive, roundType: RoundType = RoundType.ROUNDTOINF, sym: Boolean = false): SInt

    Permalink

    Factory fixTo Function

  103. def flatten: Seq[BaseType]

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

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

    Permalink
    Definition Classes
    BaseTypeData
  106. def flip(): SInt.this.type

    Permalink

    flip the direction of the data

    flip the direction of the data

    Definition Classes
    Data
  107. def floor(n: Int): SInt

    Permalink

    return w(this)-n bits

    return w(this)-n bits

    Definition Classes
    SIntNum
  108. def floor(width: BitCount): SInt

    Permalink
    Definition Classes
    Num
  109. def floorToZero(n: Int): SInt

    Permalink

    SInt roundUp lowest m bits, friendly for hardware timing and area sign * floor(abs(x))

    SInt roundUp lowest m bits, friendly for hardware timing and area sign * floor(abs(x))

    Definition Classes
    SIntNum
  110. def floorToZero(width: BitCount): SInt

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

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

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

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

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  117. def genIf(cond: Boolean): SInt.this.type

    Permalink

    Generate this if condition is true

    Generate this if condition is true

    Definition Classes
    Data
  118. def getAllTrue: SInt.this.type

    Permalink
    Definition Classes
    SIntBitVector
  119. def getBitsWidth: Int

    Permalink

    Return the width of the data

    Return the width of the data

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

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

    Permalink
    Definition Classes
    DataNameableByComponent
  122. def getComponents(): Seq[Component]

    Permalink

    Get current component with all parents

    Get current component with all parents

    Definition Classes
    Data
  123. def getDirection: IODirection

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

    Permalink
    Definition Classes
    Nameable
  125. def getDrivingReg: SInt.this.type

    Permalink
    Definition Classes
    BaseType
  126. def getInstanceCounter: Int

    Permalink
    Definition Classes
    ContextUser
  127. def getMode: Byte

    Permalink
    Attributes
    protected
    Definition Classes
    Nameable
  128. def getName(default: String): String

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

    Permalink
    Definition Classes
    Nameable
  130. def getPartialName(): String

    Permalink
    Definition Classes
    Nameable
  131. def getRealSource: Any

    Permalink
    Definition Classes
    Assignable
  132. def getRealSourceNoRec: Any

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

    Permalink
    Definition Classes
    OwnableRef
  134. def getRootParent: Data

    Permalink
    Definition Classes
    Data
  135. def getScalaLocationLong: String

    Permalink
    Definition Classes
    ScalaLocated
  136. def getScalaLocationShort: String

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

    Permalink
    Definition Classes
    ScalaLocated
  138. def getSingleDriver: Option[SInt.this.type]

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

    Permalink
    Definition Classes
    SpinalTagReady
  140. def getTags(): Set[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  141. def getTypeObject: TypeSInt.type

    Permalink
    Definition Classes
    SIntExpression
  142. def getWidth: Int

    Permalink
    Definition Classes
    WidthableWidthProvider
  143. def getWidthNoInferation: Int

    Permalink

    Return the width

    Return the width

    Definition Classes
    BitVector
  144. def getWidthStringNoInferation: String

    Permalink
    Definition Classes
    BitVector
  145. def getZero: SInt.this.type

    Permalink

    Create a data set to 0

    Create a data set to 0

    Definition Classes
    SIntData
  146. def getZeroUnconstrained: SInt.this.type

    Permalink
    Definition Classes
    SIntBitVector
  147. val globalData: GlobalData

    Permalink
    Definition Classes
    GlobalDataUser
  148. def hasAssignement: Boolean

    Permalink
    Definition Classes
    BaseType
  149. def hasInit: Boolean

    Permalink

    Does the base type have initial value

    Does the base type have initial value

    Definition Classes
    BaseType
  150. def hasOnlyOneStatement: Boolean

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

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

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

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

    Permalink
  155. def high: Int

    Permalink

    Return the upper bound

    Return the upper bound

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

    Permalink

    Set inital value to a data

    Set inital value to a data

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

    Permalink
    Definition Classes
    Data
  158. def insertNext(s: Statement): Unit

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  161. def isAnalog: Boolean

    Permalink
    Definition Classes
    BaseTypeData
  162. def isComb: Boolean

    Permalink
    Definition Classes
    BaseTypeData
  163. def isDirectionLess: Boolean

    Permalink
    Definition Classes
    Data
  164. def isEmptyOfTag: Boolean

    Permalink
    Definition Classes
    SpinalTagReady
  165. def isInOut: Boolean

    Permalink
    Definition Classes
    Data
  166. def isInput: Boolean

    Permalink
    Definition Classes
    Data
  167. def isInputOrInOut: Boolean

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

    Permalink
    Definition Classes
    Any
  169. def isNamed: Boolean

    Permalink
    Definition Classes
    NameableByComponentNameable
  170. def isOutput: Boolean

    Permalink
    Definition Classes
    Data
  171. def isOutputOrInOut: Boolean

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

    Permalink
    Definition Classes
    Nameable
  173. def isReg: Boolean

    Permalink
    Definition Classes
    BaseTypeData
  174. def isTypeNode: Boolean

    Permalink

    Is the baseType a node

    Is the baseType a node

    Definition Classes
    BaseType
  175. def isUnnamed: Boolean

    Permalink
    Definition Classes
    Nameable
  176. def isUsingResetSignal: Boolean

    Permalink

    Is the basetype using reset signal

    Is the basetype using reset signal

    Definition Classes
    BaseType
  177. def isUsingSoftResetSignal: Boolean

    Permalink

    Is the basetype using soft reset signal

    Is the basetype using soft reset signal

    Definition Classes
    BaseType
  178. def isVital: Boolean

    Permalink

    Check if the baseType is vital

    Check if the baseType is vital

    Definition Classes
    BaseType
  179. def keep(): SInt.this.type

    Permalink
    Definition Classes
    Data
  180. var lastScopeStatement: Statement

    Permalink
    Definition Classes
    Statement
  181. def lsb: Bool

    Permalink

    Return the least significant bit

    Return the least significant bit

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

    Permalink

    Return the maximum value between this and right

    Return the maximum value between this and right

    Definition Classes
    Num
  183. def maxValue: BigInt

    Permalink
    Definition Classes
    SIntMinMaxProvider
  184. def min(right: SInt): SInt

    Permalink

    Return the minimum value between this and right

    Return the minimum value between this and right

    Definition Classes
    Num
  185. def minValue: BigInt

    Permalink
    Definition Classes
    SIntMinMaxProvider
  186. def msb: Bool

    Permalink

    Return the most significant bit

    Return the most significant bit

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

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

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

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

    Permalink
    Definition Classes
    BaseType
  191. var name: String

    Permalink
    Attributes
    protected
    Definition Classes
    Nameable
  192. var nameableRef: Nameable

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

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

    Permalink

    Extract a range of bits of the BitVector

    Extract a range of bits of the BitVector

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

    Permalink

    Extract a range of bits of the BitVector

    Extract a range of bits of the BitVector

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

    Permalink

    Extract a bit of the BitVector

    Extract a bit of the BitVector

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

    Permalink

    Extract a bit of the BitVector

    Extract a bit of the BitVector

    Definition Classes
    BitVector
  198. var nextScopeStatement: Statement

    Permalink
    Definition Classes
    Statement
  199. def noBackendCombMerge: SInt.this.type

    Permalink
    Definition Classes
    Data
  200. def noCombLoopCheck: SInt.this.type

    Permalink
    Definition Classes
    Data
  201. def normalizeInputs: Unit

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

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  205. def opName: String

    Permalink
    Definition Classes
    SIntExpression
  206. def orR: Bool

    Permalink

    Logical OR of all bits

    Logical OR of all bits

    Definition Classes
    BitVector
  207. var parent: Data

    Permalink
    Definition Classes
    Data
  208. var parentScope: ScopeStatement

    Permalink
    Definition Classes
    ContextUser
  209. def pull(): SInt.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
  210. def purify(): SInt.this.type

    Permalink
    Definition Classes
    Data
  211. def randBoot(): SInt.this.type

    Permalink

    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
  212. def range: Range

    Permalink

    Return the range

    Return the range

    Definition Classes
    BitVector
  213. var refOwner: RefOwnerType

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

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

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

    Permalink
  217. def removeAssignments(): SInt.this.type

    Permalink

    Remove all assignements of the base type

    Remove all assignements of the base type

    Definition Classes
    BaseTypeData
  218. def removeStatement(): Unit

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

    Permalink
    Definition Classes
    Statement
  220. def removeTag(spinalTag: SpinalTag): SInt.this.type

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

    Permalink
    Definition Classes
    SpinalTagReady
  222. def resize(width: BitCount): SInt

    Permalink
    Definition Classes
    SIntBitVector
  223. def resize(width: Int): SInt.this.type

    Permalink

    Resize the bitVector to width

    Resize the bitVector to width

    returns

    a resized bitVector

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

    Permalink

    Resized data regarding target

    Resized data regarding target

    Definition Classes
    Data
  225. def rootScopeStatement: ScopeStatement

    Permalink
    Definition Classes
    BaseTypeStatement
  226. def rotateLeft(that: Int): SInt

    Permalink

    Left rotation of that bits

    Left rotation of that bits

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

    Permalink

    Left rotation of that Bits

    Left rotation of that Bits

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

    Permalink

    Right rotation of that bits

    Right rotation of that bits

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

    Permalink

    Right rotation of that Bits

    Right rotation of that Bits

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

    Permalink
    Definition Classes
    SIntNum
  231. def round(width: BitCount, align: Boolean): SInt

    Permalink
    Definition Classes
    Num
  232. def roundDown(n: Int, align: Boolean): SInt

    Permalink

    SInt roundDown lowest m bits, complex for hardware , not recommended The algorithm represented by python code : ceil(x - 0.5)

    SInt roundDown lowest m bits, complex for hardware , not recommended The algorithm represented by python code : ceil(x - 0.5)

    Definition Classes
    SIntNum
  233. def roundDown(width: BitCount, align: Boolean): SInt

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

    Permalink

    SInt roundToInf sign * floor(abs(x) + 0.5)

    SInt roundToInf sign * floor(abs(x) + 0.5)

    Definition Classes
    SIntNum
  235. def roundToInf(width: BitCount, align: Boolean): SInt

    Permalink
    Definition Classes
    Num
  236. def roundToZero(n: Int, align: Boolean): SInt

    Permalink

    SInt roundToZero The algorithm represented by python code : sign * ceil(abs(x) - 0.5)

    SInt roundToZero The algorithm represented by python code : sign * ceil(abs(x) - 0.5)

    Definition Classes
    SIntNum
  237. def roundToZero(width: BitCount, align: Boolean): SInt

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

    Permalink

    SInt roundUp lowest m bits, friendly for hardware timing and area floor(x + 0.5)

    SInt roundUp lowest m bits, friendly for hardware timing and area floor(x + 0.5)

    Definition Classes
    SIntNum
  239. def roundUp(width: BitCount, align: Boolean): SInt

    Permalink
    Definition Classes
    Num
  240. def sat(m: Int): SInt

    Permalink

    Saturation highest m bits

    Saturation highest m bits

    Definition Classes
    SIntNum
  241. def sat(width: BitCount): SInt

    Permalink
    Definition Classes
    Num
  242. def satWithSym(m: Int): SInt

    Permalink
  243. def setAll(): SInt.this.type

    Permalink

    Set all bits

    Set all bits

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

    Permalink

    Set all bits to value

    Set all bits to value

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

    Permalink

    Set all bits to value

    Set all bits to value

    Definition Classes
    BitVector
  246. def setAsAnalog(): SInt.this.type

    Permalink
    Definition Classes
    BaseTypeData
  247. def setAsComb(): SInt.this.type

    Permalink

    Set baseType to Combinatorial

    Set baseType to Combinatorial

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

    Permalink

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

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

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

    Permalink

    Set baseType to reg

    Set baseType to reg

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

    Permalink

    Set baseType to Node

    Set baseType to Node

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

    Permalink

    Set the baseType to vital

    Set the baseType to vital

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

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

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

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

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

    Permalink
    Definition Classes
    Nameable
  257. def setCompositeName(nameable: Nameable): SInt.this.type

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

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

    Permalink
    Definition Classes
    Nameable
  260. def setName(name: String): SInt.this.type

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

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

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

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

    Permalink
    Definition Classes
    Nameable
  265. def setPartialName(name: String): SInt.this.type

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

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

    Permalink
    Definition Classes
    OwnableRef
  268. def setScalaLocated(source: ScalaLocated): SInt.this.type

    Permalink
    Definition Classes
    ScalaLocated
  269. def setWeakName(name: String): SInt.this.type

    Permalink
    Definition Classes
    Nameable
  270. def setWidth(width: Int): SInt.this.type

    Permalink

    Set the width of the BitVector

    Set the width of the BitVector

    width

    the width of the data

    returns

    the BitVector of a given size

    Definition Classes
    BitVector
  271. def sign: Bool

    Permalink
  272. def simplifyNode: Expression

    Permalink
    Definition Classes
    Expression
  273. def spinalTags: Set[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  274. def stabilized(func: (Expression) ⇒ Expression, seed: Expression): Expression

    Permalink
    Definition Classes
    ExpressionContainer
  275. def subdivideIn(sliceWidth: BitCount): 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

    Definition Classes
    BitVector
  276. def subdivideIn(sliceCount: SlicesCount): 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

    Definition Classes
    BitVector
    Example:
    1. val res = myBits.subdiviedIn(3 slices)
  277. def symmetry: SInt

    Permalink

    SInt symmetric

    SInt symmetric

    returns

    return a SInt which minValue equal -maxValue

    Example:
    1. val symmetrySInt = mySInt.symmetry
  278. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  279. def toString(): String

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

    Permalink
    Definition Classes
    BaseNode
  281. def trim(m: Int): SInt

    Permalink

    highest m bits Discard

    highest m bits Discard

    Definition Classes
    SIntNum
  282. def trim(width: BitCount): SInt

    Permalink
    Definition Classes
    Num
  283. def unary_-: SInt

    Permalink

    Negative number

    Negative number

    returns

    return a negative number

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

    Permalink

    Inverse bitwise operator

    Inverse bitwise operator

    Definition Classes
    SIntBitwiseOp
  285. def unsetName(): SInt.this.type

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    BaseType
  296. def xorR: Bool

    Permalink

    Logical XOR of all bits

    Logical XOR of all bits

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

    Permalink

    Logical OR operator

    Logical OR operator

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

    Permalink

    Logical shift left (output width == input width)

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

    Permalink

    Logical shift left (output width == input width)

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

    Permalink

    Logical shift Right (output width == input width)

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

    Permalink

    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

    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.

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