Class

spinal.core

SInt

Related Doc: package core

Permalink

class SInt extends BitVector with Num[SInt] with MinMaxProvider with DataPrimitives[SInt] with BaseTypePrimitives[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

UInt/SInt Documentation]]

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

Instance Constructors

  1. new 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 signals

    Concatenation between two signals

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

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

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

    Permalink

    Hardware modulo

    Hardware modulo

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

    Permalink

    Bitwise AND operator

    Bitwise AND operator

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

    Permalink

    Hardware multiplication

    Hardware multiplication

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

    Permalink

    Hardware addition

    Hardware addition

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

    Permalink

    Hardware safe addition with 1 bit expand

    Hardware safe addition with 1 bit expand

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

    Permalink

    Hardware safe addition with saturation

    Hardware safe addition with saturation

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

    Permalink

    Hardware subtraction

    Hardware subtraction

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

    Permalink

    Hardware safe subtraction with 1 bit expand

    Hardware safe subtraction with 1 bit expand

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

    Permalink

    Hardware safe subtraction with saturation

    Hardware safe subtraction with saturation

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

    Permalink

    Hardware division

    Hardware division

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

    Permalink
  16. 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)
  17. def :=(that: SInt)(implicit loc: Location): Unit

    Permalink

    Standard hardware assignment, equivalent to <= in VHDL/Verilog

    Standard hardware assignment, equivalent to <= in VHDL/Verilog

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

    Permalink

    Hardware "is less than right"

    Hardware "is less than right"

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

    Permalink

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

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

    Definition Classes
    SIntNum
  20. def <<(that: Int): SInt

    Permalink

    Hardware arithmetic left shift (w(T) = w(this) + shift)

    Hardware arithmetic left shift (w(T) = w(this) + shift)

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

    Permalink

    Hardware "is equal or less than right"

    Hardware "is equal or less than right"

    Definition Classes
    SIntNum
  22. def <>(that: SInt)(implicit loc: Location): Unit

    Permalink

    Automatic connection between two hardware signals or two bundles of the same type.

    Automatic connection between two hardware signals or two bundles of the same type.

    Direction is inferred by using signal direction (in/out). (Similar behavior to :=)

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

    Permalink

    isNotEqualTo comparison between two SpinalHDL data

    isNotEqualTo comparison between two SpinalHDL data

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

    Permalink

    BitVector is not equal to MaskedLiteral

    BitVector is not equal to MaskedLiteral

    Definition Classes
    BitVector
  25. def =::=(that: SInt): Bool

    Permalink
    Definition Classes
    DataPrimitives
  26. final def ==(arg0: Any): Boolean

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

    Permalink

    isEqualTo comparison between two SpinalHDL data

    isEqualTo comparison between two SpinalHDL data

    Definition Classes
    DataPrimitives
  28. 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"
  29. def >(right: SInt): Bool

    Permalink

    Hardware "is greater than right"

    Hardware "is greater than right"

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

    Permalink

    Hardware "is equal or greater than right"

    Hardware "is equal or greater than right"

    Definition Classes
    SIntNum
  31. 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)

    Definition Classes
    SIntNum
    Example:
    1. val result = mySInt >> myUIntShift
  32. def >>(that: Int): SInt

    Permalink

    Hardware arithmetic right shift (w(T) = w(this) - shift)

    Hardware arithmetic right shift (w(T) = w(this) - shift)

    Definition Classes
    SIntNum
  33. def @*(count: Int): SInt

    Permalink
  34. def @@(that: Bool): SInt

    Permalink

    Concatenation between a SInt and a Bool

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

    Permalink

    Concatenation between a SInt and UInt

  36. 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
  37. def IFparent: Data

    Permalink
    Definition Classes
    Data
  38. def Q: QFormat

    Permalink
    Definition Classes
    Num
  39. def \(that: SInt): SInt

    Permalink

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

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

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

    Permalink

    Bitwise XOR operator

    Bitwise XOR operator

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  43. def addAttribute(attribute: Attribute): SInt.this.type

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

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

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

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

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  50. var algoIncrementale: Int

    Permalink
    Definition Classes
    BaseNode
  51. var algoInt: Int

    Permalink
    Definition Classes
    BaseNode
  52. def allowDirectionLessIo(): SInt.this.type

    Permalink

    Allow a signal of an io Bundle to be directionless.

    Allow a signal of an io Bundle to be directionless.

    Definition Classes
    Data
    See also

    IO Bundle Error Documentation

  53. def allowOverride(): SInt.this.type

    Permalink

    Allow a signal to be overridden.

    Allow a signal to be overridden.

    Definition Classes
    Data
    See also

    Assignment overlap Error Documentation

  54. def allowPartialyAssigned(): SInt.this.type

    Permalink

    Allow a register to be partially assigned

    Allow a register to be partially assigned

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

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

    Permalink
    Definition Classes
    BaseTypeData
  57. def allowUnsetRegToAvoidLatch(): SInt.this.type

    Permalink

    Allow a register to have only an init (no assignments)

    Allow a register to have only an init (no assignments)

    Definition Classes
    Data
    See also

    "Register with only init" Error Documentation

  58. def andMask(that: Bool): SInt.this.type

    Permalink
    Definition Classes
    BitVector
  59. def andR: Bool

    Permalink

    Hardware logical AND of all bits

    Hardware logical AND of all bits

    Equivalent to this.asBits === ((BigInt(1) << getWidth) - 1).

    Definition Classes
    BitVector
  60. 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)
  61. 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)
  62. 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)
  63. 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)
  64. 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)
  65. def as[T <: Data](dataType: HardType[T]): T

    Permalink
    Definition Classes
    Data
  66. def asBits: Bits

    Permalink

    Cast signal to Bits

    Cast signal to Bits

    Definition Classes
    SIntData
  67. def asBool: Bool

    Permalink

    Return this.lsb

    Return this.lsb

    Definition Classes
    BitVector
  68. def asBools: Vec[Bool]

    Permalink

    Cast the BitVector into a vector of Bool

    Cast the BitVector into a vector of Bool

    Definition Classes
    BitVector
  69. def asData: Data

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

    Permalink

    Set a signal as inout

    Set a signal as inout

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

    Permalink

    Set a data as input

    Set a data as input

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

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

    Permalink

    Set a data as output

    Set a data as output

    Definition Classes
    BaseTypeData
  74. 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
  75. def assignDontCare(): SInt.this.type

    Permalink
    Definition Classes
    SIntData
  76. def assignDontCareToUnasigned(): SInt.this.type

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

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    BaseTypeAssignable
  83. def bitsRange: Range

    Permalink
    Definition Classes
    BitVector
  84. 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
  85. 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
  86. 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
  87. def ceilToInf(width: BitCount, align: Boolean): SInt

    Permalink
    Definition Classes
    Num
  88. def cldCount: Int

    Permalink
    Definition Classes
    DoubleLinkedContainer
  89. def clearAll(): SInt.this.type

    Permalink

    Clear all bits

    Clear all bits

    Definition Classes
    BitVectorData
  90. var clockDomain: ClockDomain

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

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

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

    Permalink
    Definition Classes
    Assignable
  94. var compositeAssign: Assignable

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

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

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

    Permalink

    Set a default value to a signal.

    Set a default value to a signal.

    Definition Classes
    DataPrimitives
    See also

    example of usage for Bits

  98. def dirString(): String

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

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

    Permalink
    Definition Classes
    DoubleLinkedContainer
  101. def dlcHasOnlyOne: Boolean

    Permalink
    Definition Classes
    DoubleLinkedContainer
  102. var dlcHead: AssignmentStatement

    Permalink
    Definition Classes
    DoubleLinkedContainer
  103. def dlcIsEmpty: Boolean

    Permalink
    Definition Classes
    DoubleLinkedContainer
  104. var dlcLast: AssignmentStatement

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

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

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

    Permalink

    Drop lowest n bits

    Drop lowest n bits

    returns

    data10bits(9 downto 4)

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

    Permalink

    Drop highest n bits

    Drop highest n bits

    returns

    data10bits(5 downto 0)

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

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

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  113. def expand: SInt

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  116. def fixTo(q: QFormat): SInt

    Permalink
  117. def fixTo(q: QFormat, roundType: RoundType): SInt

    Permalink
  118. def fixTo(q: QFormat, roundType: RoundType, sym: Boolean): SInt

    Permalink
  119. def fixTo(section: Inclusive): SInt

    Permalink
  120. def fixTo(section: Inclusive, roundType: RoundType): SInt

    Permalink
  121. def fixTo(section: Inclusive, roundType: RoundType, sym: Boolean): SInt

    Permalink
  122. def flatten: Seq[BaseType]

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

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

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

    Permalink

    Flip the direction of the signal.

    Flip the direction of the signal.

    in and out are swapped, inout stay the same.

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

    Permalink

    return w(this)-n bits

    return w(this)-n bits

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

    Permalink
    Definition Classes
    Num
  128. 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
  129. def floorToZero(width: BitCount): SInt

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

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

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

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

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  136. def freeze(): SInt.this.type

    Permalink
    Definition Classes
    BaseTypeData
  137. def getAheadValue(): SInt.this.type

    Permalink

    For a register, get the value it will have at the next clock, as a combinational signal.

    For a register, get the value it will have at the next clock, as a combinational signal.

    Definition Classes
    BaseTypeData
  138. def getAllTrue: SInt.this.type

    Permalink
    Definition Classes
    SIntBitVector
  139. def getBitsWidth: Int

    Permalink

    Return the width of the data

    Return the width of the data

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

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

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

    Permalink

    Get current component with all parents

    Get current component with all parents

    Definition Classes
    InComponent
  143. def getDirection: IODirection

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

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

    Permalink
    Definition Classes
    BaseType
  146. def getInstanceCounter: Int

    Permalink
    Definition Classes
    ContextUser
  147. def getMode: Byte

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

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

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

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

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

    Permalink
    Definition Classes
    NameableByComponent
  153. def getRealSource: Any

    Permalink
    Definition Classes
    Assignable
  154. def getRealSourceNoRec: Any

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

    Permalink
    Definition Classes
    OwnableRef
  156. def getRootParent: Data

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

    Permalink
    Definition Classes
    Data
  158. def getScalaLocationLong: String

    Permalink
    Definition Classes
    ScalaLocated
  159. def getScalaLocationShort: String

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

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

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

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

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

    Permalink
    Definition Classes
    SIntExpression
  165. def getWidth: Int

    Permalink
    Definition Classes
    WidthableWidthProvider
  166. def getWidthNoInferation: Int

    Permalink

    Return the width

    Return the width

    Definition Classes
    BitVector
  167. def getWidthStringNoInferation: String

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

    Permalink

    Create a signal set to 0

    Create a signal set to 0

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

    Permalink
    Definition Classes
    SIntBitVector
  170. var globalData: GlobalData

    Permalink
    Definition Classes
    GlobalDataUser
  171. def hasAssignement: Boolean

    Permalink
    Definition Classes
    BaseType
  172. def hasDataAssignment: Boolean

    Permalink
    Definition Classes
    BaseType
  173. def hasInit: Boolean

    Permalink

    Does the base type have initial value

    Does the base type have initial value

    Definition Classes
    BaseType
  174. def hasOnlyOneStatement: Boolean

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

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

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

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

    Permalink
  179. def high: Int

    Permalink

    Return the upper bound

    Return the upper bound

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

    Permalink

    Set initial value of the signal

    Set initial value of the signal

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

    Permalink
    Definition Classes
    Data
  182. def initNull(that: SInt): SInt

    Permalink
    Definition Classes
    DataPrimitives
  183. def initZero(): SInt

    Permalink
    Definition Classes
    DataPrimitives
  184. def initial(that: SInt): SInt

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

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

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  189. def isAnalog: Boolean

    Permalink
    Definition Classes
    BaseTypeData
  190. def isComb: Boolean

    Permalink
    Definition Classes
    BaseTypeData
  191. def isCompletelyUnnamed: Boolean

    Permalink
    Definition Classes
    Nameable
  192. def isDirectionLess: Boolean

    Permalink
    Definition Classes
    Data
  193. def isEmptyOfTag: Boolean

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

    Permalink
    Definition Classes
    BaseType
  195. def isInOut: Boolean

    Permalink
    Definition Classes
    Data
  196. def isInput: Boolean

    Permalink
    Definition Classes
    Data
  197. def isInputOrInOut: Boolean

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

    Permalink
    Definition Classes
    Any
  199. final def isNamed: Boolean

    Permalink
    Definition Classes
    Nameable
  200. def isOutput: Boolean

    Permalink
    Definition Classes
    Data
  201. def isOutputOrInOut: Boolean

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

    Permalink
    Definition Classes
    Nameable
  203. def isReg: Boolean

    Permalink
    Definition Classes
    BaseTypeData
  204. def isRegOnAssign: Boolean

    Permalink
    Definition Classes
    BitVectorData
  205. def isTypeNode: Boolean

    Permalink

    Is the baseType a node

    Is the baseType a node

    Definition Classes
    BaseType
  206. def isUnknown: Bool

    Permalink
    Definition Classes
    BitVector
  207. def isUnnamed: Boolean

    Permalink
    Definition Classes
    NameableByComponentNameable
  208. def isUsingResetSignal: Boolean

    Permalink

    Is the basetype using reset signal

    Is the basetype using reset signal

    Definition Classes
    BaseType
  209. def isUsingSoftResetSignal: Boolean

    Permalink

    Is the basetype using soft reset signal

    Is the basetype using soft reset signal

    Definition Classes
    BaseType
  210. def isVital: Boolean

    Permalink

    Check if the baseType is vital

    Check if the baseType is vital

    Definition Classes
    BaseType
  211. var lastScopeStatement: Statement

    Permalink
    Definition Classes
    Statement
  212. def lsb: Bool

    Permalink

    Return the least significant bit

    Return the least significant bit

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

    Permalink

    Return the hardware maximum value between this and right

    Return the hardware maximum value between this and right

    Definition Classes
    Num
  214. def maxValue: BigInt

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

    Permalink

    Return the hardware minimum value between this and right

    Return the hardware minimum value between this and right

    Definition Classes
    Num
  216. def minValue: BigInt

    Permalink
    Definition Classes
    SIntMinMaxProvider
  217. def msb: Bool

    Permalink

    Return the most significant bit

    Return the most significant bit

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

    Permalink

    Use a SpinalHDL data as a selector for a mux.

    Use a SpinalHDL data as a selector for a mux.

    Definition Classes
    BaseType
    See also

    Bitwise selection Documentation

  219. def muxDc[T2 <: Data](mappings: (Any, T2)*): T2

    Permalink

    Version of SpinalHDL mux that allows Don't Care.

    Version of SpinalHDL mux that allows Don't Care.

    Definition Classes
    BaseType
    See also

    Bitwise selection Documentation

  220. def muxList[T2 <: Data](defaultValue: T2, mappings: Seq[(Any, T2)]): T2

    Permalink

    Use a scala.Seq of SpinalHDL data as mux inputs.

    Use a scala.Seq of SpinalHDL data as mux inputs.

    Definition Classes
    BaseType
    See also

    Bitwise selection Documentation

  221. def muxList[T2 <: Data](mappings: Seq[(Any, T2)]): T2

    Permalink

    Use a scala.Seq of SpinalHDL data as mux inputs.

    Use a scala.Seq of SpinalHDL data as mux inputs.

    Definition Classes
    BaseType
    See also

    Bitwise selection Documentation

  222. def muxListDc[T2 <: Data](mappings: Seq[(Any, T2)]): T2

    Permalink

    Version of SpinalHDL muxList that allows Don't Care.

    Version of SpinalHDL muxList that allows Don't Care.

    Definition Classes
    BaseType
    See also

    Bitwise selection Documentation

  223. var name: String

    Permalink
    Definition Classes
    Nameable
  224. var nameableRef: Nameable

    Permalink
    Attributes
    protected
    Definition Classes
    Nameable
  225. def nandR: Bool

    Permalink

    Hardware logical NAND of all bits

    Hardware logical NAND of all bits

    Definition Classes
    BitVector
  226. final def ne(arg0: AnyRef): Boolean

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

    Permalink

    Extract a range of bits of the BitVector

    Extract a range of bits of the BitVector

    Definition Classes
    BitVector
  228. 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
  229. def newExtract(bitId: UInt, extract: BitVectorBitAccessFloating): Bool

    Permalink

    Extract a bit of the BitVector

    Extract a bit of the BitVector

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

    Permalink

    Extract a bit of the BitVector

    Extract a bit of the BitVector

    Definition Classes
    BitVector
  231. var nextScopeStatement: Statement

    Permalink
    Definition Classes
    Statement
  232. def noBackendCombMerge(): SInt.this.type

    Permalink

    Put the combinatorial logic driving this signal in a separate process

    Put the combinatorial logic driving this signal in a separate process

    Definition Classes
    Data
  233. def noCombLoopCheck(): SInt.this.type

    Permalink

    Disable combinatorial loop checking for this Data

    Disable combinatorial loop checking for this Data

    Definition Classes
    Data
    See also

    Combinatorial loop Error Documentation

  234. def norR: Bool

    Permalink

    Hardware logical NOR of all bits

    Hardware logical NOR of all bits

    Definition Classes
    BitVector
  235. def normalizeInputs: Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  238. def nxorR: Bool

    Permalink

    Hardware logical NXOR of all bits

    Hardware logical NXOR of all bits

    Definition Classes
    BitVector
  239. def onEachAttributes(doIt: (Attribute) ⇒ Unit): Unit

    Permalink
    Definition Classes
    SpinalTagReady
  240. def opName: String

    Permalink
    Definition Classes
    SIntExpression
  241. def orMask(that: Bool): SInt.this.type

    Permalink
    Definition Classes
    BitVector
  242. def orR: Bool

    Permalink

    Hardware logical OR of all bits

    Hardware logical OR of all bits

    Equivalent to this.asBits =/= 0.

    Definition Classes
    BitVector
  243. def overrideLocalName(name: String): SInt.this.type

    Permalink
    Definition Classes
    Nameable
  244. var parent: Data

    Permalink
    Definition Classes
    Data
  245. var parentScope: ScopeStatement

    Permalink
    Definition Classes
    ContextUser
  246. def pull(propagateName: Boolean): SInt.this.type

    Permalink
    Definition Classes
    Data
  247. 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
  248. def purify(): SInt.this.type

    Permalink
    Definition Classes
    Data
  249. def randBoot(u: Unit): SInt.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
  250. var refOwner: RefOwnerType

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

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

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

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

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

    Permalink

    Remove all assignments of the base type

    Remove all assignments of the base type

    Definition Classes
    BaseTypeData
  256. def removeDataAssignments(): SInt.this.type

    Permalink
    Definition Classes
    Data
  257. def removeInitAssignments(): SInt.this.type

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

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

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

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

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

    Permalink

    Return a resized copy of x.

    Return a resized copy of x.

    If enlarged, it is extended with the sign at MSB as necessary.

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

    Permalink

    Return a resized copy of x.

    Return a resized copy of x.

    If enlarged, it is extended with the sign at MSB as necessary.

    returns

    a resized bitVector

    Definition Classes
    SIntBitVector
  264. def resized: SInt.this.type

    Permalink

    Return a version of the signal which is allowed to be automatically resized where needed.

    Return a version of the signal which is allowed to be automatically resized where needed.

    The resize operation is deferred until the point of assignment later. The resize may widen or truncate, retaining the LSB.

    Definition Classes
    Data
    See also

    Width checking Documentation

  265. def reversed: SInt.this.type

    Permalink
    Definition Classes
    SIntBitVector
  266. def rootIF(): Interface

    Permalink

    root interface

    root interface

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

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

    Permalink
    Definition Classes
    Data
  269. def rootScopeStatement: ScopeStatement

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

    Permalink

    Left rotation of that bits

    Left rotation of that bits

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

    Permalink

    Left rotation of that Bits

    Left rotation of that Bits

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

    Permalink

    Right rotation of that bits

    Right rotation of that bits

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

    Permalink

    Right rotation of that Bits

    Right rotation of that Bits

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

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

    Permalink
    Definition Classes
    Num
  276. 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
  277. def roundDown(width: BitCount, align: Boolean): SInt

    Permalink
    Definition Classes
    Num
  278. def roundToEven(n: Int, align: Boolean): SInt

    Permalink
    Definition Classes
    SIntNum
  279. def roundToEven(width: BitCount, align: Boolean): SInt

    Permalink
    Definition Classes
    Num
  280. 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
  281. def roundToInf(width: BitCount, align: Boolean): SInt

    Permalink
    Definition Classes
    Num
  282. def roundToOdd(n: Int, align: Boolean): SInt

    Permalink
    Definition Classes
    SIntNum
  283. def roundToOdd(width: BitCount, align: Boolean): SInt

    Permalink
    Definition Classes
    Num
  284. 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
  285. def roundToZero(width: BitCount, align: Boolean): SInt

    Permalink
    Definition Classes
    Num
  286. 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
  287. def roundUp(width: BitCount, align: Boolean): SInt

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

    Permalink

    Saturation highest m bits

    Saturation highest m bits

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

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

    Permalink
  291. var scalaTrace: Throwable

    Permalink
    Definition Classes
    ScalaLocated
  292. def setAll(): SInt.this.type

    Permalink

    Set all bits

    Set all bits

    Definition Classes
    SIntBitVectorData
  293. def setAllTo(value: Bool): SInt.this.type

    Permalink

    Set all bits to value

    Set all bits to value

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

    Permalink

    Set all bits to value

    Set all bits to value

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

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

    Permalink

    Set baseType to Combinatorial

    Set baseType to Combinatorial

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

    Permalink

    Remove the direction (in, out, inout) to a signal

    Remove the direction (in, out, inout) to a signal

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

    Permalink

    Set baseType to reg

    Set baseType to reg

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

    Permalink

    Set baseType to Node

    Set baseType to Node

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

    Permalink

    Set the baseType to vital

    Set the baseType to vital

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Nameable
  311. def setNameAsWeak(): SInt.this.type

    Permalink
    Definition Classes
    Nameable
  312. def setOutputAsReg(): SInt.this.type

    Permalink

    Recursively set baseType to reg only for output

    Recursively set baseType to reg only for output

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Nameable
  320. def setPartialName(owner: Nameable): SInt.this.type

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

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

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

    Permalink
    Definition Classes
    Nameable
  324. 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
  325. def sign: Bool

    Permalink
  326. def simplifyNode: Expression

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

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

    Permalink

    apart by a list of width

    apart by a list of width

    returns

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

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

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

    Permalink

    Split at n st bits

    Split at n st bits

    returns

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

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

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

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

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

    Permalink

    Split the BitVector into slice of x bits

    Split the BitVector into slice of x bits

    sliceWidth

    the width of the slice

    strict

    allow subdivideIn to generate vectors with varying size

    returns

    a Vector of slices

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

    Permalink

    Split the BitVector into x slice

    Split the BitVector into x slice

    sliceCount

    the width of the slice

    strict

    allow subdivideIn to generate vectors with varying size

    returns

    a Vector of slices

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

    Permalink
    Definition Classes
    DataPrimitives
  337. def symmetry: SInt

    Permalink

    SInt symmetric

    SInt symmetric

    returns

    return a SInt which minValue equal -maxValue

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

    Permalink
    Definition Classes
    AnyRef
  339. def tag(q: QFormat): SInt

    Permalink
    Definition Classes
    SIntNum
  340. def take(n: Int): Bits

    Permalink

    Take lowest n bits

    Take lowest n bits

    returns

    data10bits(3 downto 0)

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

    Permalink

    Take highest n bits

    Take highest n bits

    returns

    data10bits(9 downto 6)

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

    Permalink
    Definition Classes
    BitVector
  343. def toIo(): SInt.this.type

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

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

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

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

    Permalink
    Definition Classes
    Expression
  348. def trim(m: Int): SInt

    Permalink

    Discard the highest m bits

    Discard the highest m bits

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

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

    Permalink
  351. def unary_-: SInt

    Permalink

    Negative number

    Negative number

    returns

    return a negative number

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

    Permalink

    Inverse bitwise operator

    Inverse bitwise operator

    Definition Classes
    SIntBitwiseOp
  353. def unfreeze(): SInt.this.type

    Permalink
    Definition Classes
    BaseTypeData
  354. def unsetName(): SInt.this.type

    Permalink
    Definition Classes
    Nameable
  355. def valueRange: Range

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    BaseType
  367. def wrapNext(): SInt.this.type

    Permalink
    Definition Classes
    Data
  368. def xorMask(that: Bool): SInt.this.type

    Permalink
    Definition Classes
    BitVector
  369. def xorR: Bool

    Permalink

    Hardware logical XOR of all bits

    Hardware logical XOR of all bits

    Equivalent to this.asBools.reduce(_ ^ _).

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

    Permalink

    Bitwise OR operator

    Bitwise OR operator

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

    Permalink

    Logical shift left (output width == input width)

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

    Permalink

    Logical shift left (output width == input width)

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

    Permalink

    Logical shift Right (output width == input width)

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

  3. def genIf(cond: Boolean): SInt.this.type

    Permalink

    Generate this if condition is true

    Generate this if condition is true

    Definition Classes
    Data
    Annotations
    @deprecated
    Deprecated

    does not work with <>, use 'someBool generate Type()' or 'if(condition) Type() else null' instead

  4. def range: Range

    Permalink

    Return the range

    Return the range

    Definition Classes
    BitVector
    Annotations
    @deprecated
    Deprecated

    Use bitsRange instead

Inherited from BitwiseOp[SInt]

Inherited from BaseTypePrimitives[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 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