Class/Object

Chisel

SInt

Related Docs: object SInt | package Chisel

Permalink

class SInt extends Bits with Num[SInt]

Source
SInt.scala
Linear Supertypes
Num[SInt], Bits, proc, Data, Node, Nameable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SInt
  2. Num
  3. Bits
  4. proc
  5. Data
  6. Node
  7. Nameable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SInt()

    Permalink

Type Members

  1. type T = SInt

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. def ##[T <: Data](right: T): SInt.this.type

    Permalink

    Cat bits together to into a single data object with the width of both combined

    Cat bits together to into a single data object with the width of both combined

    Definition Classes
    BitsData
  3. def ##(b: Node): Node

    Permalink

    The cat operator to combine two values

    The cat operator to combine two values

    0x5 ## 0x3 => 0x53
    b

    Node to cat after

    returns

    a new node as the combination of both this node and b

    Definition Classes
    Node
  4. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  5. def %(b: UInt): SInt

    Permalink
  6. def %(b: SInt): SInt

    Permalink
    Definition Classes
    SIntNum
  7. def %(b: Bits): Bits

    Permalink
    Definition Classes
    Bits
  8. def &(b: Bits): SInt.this.type

    Permalink

    Bitwise and

    Bitwise and

    Definition Classes
    Bits
  9. def *(b: UInt): SInt

    Permalink
  10. def *(b: SInt): SInt

    Permalink
    Definition Classes
    SIntNum
  11. def *(b: Bits): Bits

    Permalink
    Definition Classes
    Bits
  12. def +(b: UInt): SInt

    Permalink
  13. def +(b: SInt): SInt

    Permalink
    Definition Classes
    SIntNum
  14. def +(b: Bits): Bits

    Permalink
    Definition Classes
    Bits
  15. def +%(b: SInt): SInt

    Permalink

    chisel3 add-wrap operator

  16. def +&(b: SInt): SInt

    Permalink

    chisel3 add (width + 1) operator

  17. def -(b: UInt): SInt

    Permalink
  18. def -(b: SInt): SInt

    Permalink
    Definition Classes
    SIntNum
  19. def -(b: Bits): Bits

    Permalink
    Definition Classes
    Bits
  20. def -%(b: SInt): SInt

    Permalink

    chisel3 sub-wrap operator

  21. def -&(b: SInt): SInt

    Permalink

    chisel3 sub (width + 1) operator

  22. def /(b: UInt): SInt

    Permalink
  23. def /(b: SInt): SInt

    Permalink
    Definition Classes
    SIntNum
  24. def /(b: Bits): Bits

    Permalink
    Definition Classes
    Bits
  25. def :=(that: Data): Unit

    Permalink
    Definition Classes
    Data
  26. def <(b: UInt): Bool

    Permalink
  27. def <(b: SInt): Bool

    Permalink
    Definition Classes
    SIntNum
  28. def <<(i: Int): SInt

    Permalink
  29. def <<(b: UInt): SInt.this.type

    Permalink

    Shift left operation

    Shift left operation

    Definition Classes
    Bits
  30. def <=(b: UInt): Bool

    Permalink
  31. def <=(b: SInt): Bool

    Permalink
    Definition Classes
    SIntNum
  32. def <>(src: Node): Unit

    Permalink

    Connect I/O of modules with the same name

    Connect I/O of modules with the same name

    src

    Node to attempt to connect to this instantiation

    Definition Classes
    BitsNode
  33. def =/=(b: UInt): Bool

    Permalink
  34. def =/=(that: BitPat): Bool

    Permalink
    Definition Classes
    Bits
  35. def =/=(b: Bits): Bool

    Permalink

    not equal to

    not equal to

    Definition Classes
    Bits
  36. def =/=[T <: Data](right: T): Bool

    Permalink
    Definition Classes
    Data
  37. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  38. def ===[T <: Data](right: T): Bool

    Permalink
    Definition Classes
    SIntBitsData
  39. def ===(that: BitPat): Bool

    Permalink
    Definition Classes
    Bits
  40. def >(b: UInt): Bool

    Permalink
  41. def >(b: SInt): Bool

    Permalink
    Definition Classes
    SIntNum
  42. def >=(b: UInt): Bool

    Permalink
  43. def >=(b: SInt): Bool

    Permalink
    Definition Classes
    SIntNum
  44. def >>(i: Int): SInt

    Permalink
  45. def >>(b: UInt): SInt

    Permalink
  46. def ?(b: SInt): SInt

    Permalink
  47. def W0Wtransform(): Unit

    Permalink

    Eliminate any zero-width wires attached to this node

    Eliminate any zero-width wires attached to this node

    returns

    if the node was modified

    Definition Classes
    Node
  48. def ^(b: Bits): SInt.this.type

    Permalink

    Bitwise xor

    Bitwise xor

    Definition Classes
    Bits
  49. def ^^(src: Node): Unit

    Permalink
    Definition Classes
    Node
  50. val _id: Int

    Permalink

    The unique id of this node

    The unique id of this node

    Definition Classes
    Node
  51. def _isComplementOf(x: Node): Boolean

    Permalink
    Definition Classes
    Node
  52. def abs: UInt

    Permalink
  53. def andR(): Bool

    Permalink

    reduction and, and all bits together

    reduction and, and all bits together

    Definition Classes
    Bits
  54. final def apply(range: (Int, Int)): UInt

    Permalink

    Extract a range of bits, inclusive from hi to lo

    Extract a range of bits, inclusive from hi to lo

    Definition Classes
    Bits
  55. final def apply(hi: UInt, lo: UInt): UInt

    Permalink

    Extract a range of bits, inclusive from hi to lo

    Extract a range of bits, inclusive from hi to lo

    Definition Classes
    Bits
  56. final def apply(hi: Int, lo: Int): UInt

    Permalink

    Extract a range of bits, inclusive from hi to lo

    Extract a range of bits, inclusive from hi to lo

    myBits = 0x5, myBits(1,0) => 0x3
    Definition Classes
    Bits
  57. final def apply(bit: UInt): Bool

    Permalink

    Extract a single bit at position 'bit' as a Bool

    Extract a single bit at position 'bit' as a Bool

    Definition Classes
    Bits
  58. final def apply(bit: Int): Bool

    Permalink

    Extract a single Bool at index *bit*.

    Extract a single Bool at index *bit*.

    Definition Classes
    Bits
  59. def apply(name: String): Data

    Permalink
    Definition Classes
    BitsData
  60. def asDirectionless(): SInt.this.type

    Permalink

    Set this Bits instantiation to be neither of INPUT or OUTPUT

    Set this Bits instantiation to be neither of INPUT or OUTPUT

    Definition Classes
    BitsData
  61. def asInput(): SInt.this.type

    Permalink

    Set this Bits instatiation to be an INPUT

    Set this Bits instatiation to be an INPUT

    Definition Classes
    BitsData
  62. final def asInstanceOf[T0]: T0

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

    Permalink

    Set this Bits instatiation to be an OUTPUT

    Set this Bits instatiation to be an OUTPUT

    returns

    this instance with its exact type.

    Definition Classes
    BitsData
  64. final def asSInt(): SInt

    Permalink
    Definition Classes
    Bits
  65. final def asTypeFor(node: Node): SInt.this.type

    Permalink

    assigns this instance as the data type for *node*.

    assigns this instance as the data type for *node*.

    Attributes
    protected[Chisel]
    Definition Classes
    Bits
  66. final def asUInt(): UInt

    Permalink
    Definition Classes
    Bits
  67. def assign(src: Node): Unit

    Permalink
    Definition Classes
    BitsNode
  68. def bitSet(off: UInt, dat: UInt): SInt.this.type

    Permalink

    Set bit 'off' in data dat

    Set bit 'off' in data dat

    off

    which bit to set

    dat

    A UInt in which to set the bit

    Definition Classes
    Bits
  69. def canCSE: Boolean

    Permalink
    Definition Classes
    Node
  70. lazy val chiselName: String

    Permalink
    Definition Classes
    Node
  71. var clock: Option[Clock]

    Permalink

    The clock for this node

    The clock for this node

    Definition Classes
    Node
  72. def clone(): SInt.this.type

    Permalink
    Definition Classes
    Data → AnyRef
  73. def cloneType(): SInt.this.type

    Permalink

    Copy this instantiation of the Chisel Data type with all parameters such as width and I/O direction the same

    Copy this instantiation of the Chisel Data type with all parameters such as width and I/O direction the same

    Definition Classes
    BitsData
  74. def colonEquals(that: Bits): Unit

    Permalink

    casting from UInt followed by assignment.

    casting from UInt followed by assignment.

    Attributes
    protected
    Definition Classes
    SIntBitsData
  75. def colonEquals[T <: Data](that: Seq[T]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Data
  76. def colonEquals(that: Bundle): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Data
  77. var comp: Option[proc]

    Permalink
    Definition Classes
    Data
  78. def componentOf: Module

    Permalink

    Get the module that this node is a part of or the top module if not assigned yet

    Get the module that this node is a part of or the top module if not assigned yet

    returns

    The module that this node is a part of

    Definition Classes
    Node
  79. val consumers: LinkedHashSet[Node]

    Permalink

    nodes that consume one of my outputs

    nodes that consume one of my outputs

    Definition Classes
    Node
  80. def create(dir: IODirection, width: Int): Unit

    Permalink
    Definition Classes
    Bits
  81. def dblLitValue: Double

    Permalink

    Convert the node literal to a Double

    Convert the node literal to a Double

    Definition Classes
    Node
  82. def default: proc

    Permalink
    Attributes
    protected
    Definition Classes
    proc
  83. def defaultMissing: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    proc
  84. def defaultRequired: Boolean

    Permalink
    Definition Classes
    Bitsproc
  85. var dir: IODirection

    Permalink
    Definition Classes
    Bits
  86. def doProcAssign(src: Node, cond: Bool): Unit

    Permalink
    Attributes
    protected[Chisel]
    Definition Classes
    proc
  87. var driveRand: Boolean

    Permalink
    Definition Classes
    Node
  88. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  89. def equals(that: Any): Boolean

    Permalink

    Compare two nodes

    Compare two nodes

    that

    the node to compare with

    Definition Classes
    Node → AnyRef → Any
  90. def equalsForCSE(x: Node): Boolean

    Permalink
    Definition Classes
    Node
  91. def error(b: Bits): Bits

    Permalink

    Error shown when operation is not defined

    Error shown when operation is not defined

    Definition Classes
    Bits
    Exceptions thrown

    ChiselException if the operation is not defined

  92. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  93. def flatten: Array[(String, Bits)]

    Permalink
    Definition Classes
    BitsData
  94. def flip(): SInt.this.type

    Permalink

    Change INPUT to OUTPUT and OUTPUT to INPUT

    Change INPUT to OUTPUT and OUTPUT to INPUT

    Definition Classes
    BitsData
  95. def floLitValue: Float

    Permalink

    Convert the node literal to a Float

    Convert the node literal to a Float

    Definition Classes
    Node
  96. def forceMatchingWidths: Unit

    Permalink

    Force the width of this nodes input to have the same width this if known if input node width is known force width of this node

    Force the width of this nodes input to have the same width this if known if input node width is known force width of this node

    Definition Classes
    BitsNode
  97. def fromBits(b: Bits): SInt.this.type

    Permalink
    Definition Classes
    Data
  98. def fromInt(x: Int): SInt.this.type

    Permalink

    Set the value of this SInt to a value

    Set the value of this SInt to a value

    Definition Classes
    SIntBits
  99. def fromNode(n: Node): SInt.this.type

    Permalink

    Factory method to create and assign a *SInt* type to a Node *n*.

    Factory method to create and assign a *SInt* type to a Node *n*.

    Definition Classes
    SIntData
  100. def gen[T <: Bits](): T

    Permalink
  101. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  102. def getNode: Node

    Permalink

    returns

    The root node input

    Definition Classes
    BitsNode
  103. def getWidth(): Int

    Permalink

    returns

    the width or number of bits used by this node

    Definition Classes
    Node
    Exceptions thrown

    ChiselException if the width of the node is unknown

  104. def hashCode(): Int

    Permalink

    returns

    the unique hashCode for this node

    Definition Classes
    Node → AnyRef → Any
  105. def hashCodeForCSE: Int

    Permalink
    Definition Classes
    Node
  106. def illegalAssignment(that: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Data
  107. def infer: Boolean

    Permalink

    Called while we're walking the graph inferring the width of nodes.

    Called while we're walking the graph inferring the width of nodes. We return true if we should continue to walk the graph, either because there's a node whose width we don't know, or because we updated a node's width.

    Definition Classes
    Node
  108. def init(n: String, w: Int, ins: Node*): Node

    Permalink

    Init the node and calculate its width and add inputs to the node

    Init the node and calculate its width and add inputs to the node

    n

    name of node

    w

    the bit width of the node

    ins

    Nodes that are inputs to this node

    Definition Classes
    Node
  109. def init(n: String, widthFunc: (⇒ Node) ⇒ Width, ins: Node*): Node

    Permalink

    Init the node and calculate its width and add inputs to the node

    Init the node and calculate its width and add inputs to the node

    n

    name of node

    widthFunc

    the function to use to calculate the width of the node

    ins

    Nodes that are inputs to this node

    Definition Classes
    Node
  110. def initOf(n: String, widthfunc: (⇒ Node) ⇒ Width, ins: Seq[Node]): Node

    Permalink

    Init the node and calculate its width and add inputs to the node

    Init the node and calculate its width and add inputs to the node

    n

    name of node

    widthfunc

    the function to use to calculate the width of the node

    ins

    Nodes that are inputs to this node

    Definition Classes
    Node
  111. val inputs: ArrayBuffer[Node]

    Permalink

    The inputs that this node depends on

    The inputs that this node depends on

    Definition Classes
    Node
  112. def isDirectionless: Boolean

    Permalink

    returns

    this instantiation is neither of INPUT or OUTPUT

    Definition Classes
    BitsData
  113. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  114. def isIo: Boolean

    Permalink

    returns

    this node is an I/O Node for a module

    Definition Classes
    Node
  115. def isIo_=(isIo: Boolean): Unit

    Permalink
    Attributes
    protected[Chisel]
    Definition Classes
    Node
  116. final def isLit: Boolean

    Permalink

    This function determines if a node is a literal, a fixed value

    This function determines if a node is a literal, a fixed value

    Definition Classes
    Node
  117. def isTopLevelIO: Boolean

    Permalink

    returns

    is this node I/O for the top level module

    Definition Classes
    Node
  118. var isTypeNode: Boolean

    Permalink
    Definition Classes
    Node
  119. def isTypeOnly: Boolean

    Permalink

    Chisel3 - type-only nodes (no data - no initialization or assignment) This is used to determine which nodes must be Wire() wrapped, and whether Wire() wrapping of the node is legal or not.

    Chisel3 - type-only nodes (no data - no initialization or assignment) This is used to determine which nodes must be Wire() wrapped, and whether Wire() wrapping of the node is legal or not.

    Definition Classes
    DataNode
  120. def isUsedByClockHi: Boolean

    Permalink

    returns

    this node is a Register

    Definition Classes
    Node
  121. def isWired: Boolean

    Permalink
    Definition Classes
    Data
  122. def isZeroWidth: Boolean

    Permalink

    returns

    this node has zero-width

    Definition Classes
    Node
  123. val line: StackTraceElement

    Permalink

    The trace information for chisel for this node

    The trace information for chisel for this node

    Definition Classes
    Node
  124. def litOf: Literal

    Permalink

    returns

    the literal value of a node

    Definition Classes
    Node
    Exceptions thrown

    ChiselException if there is no literal value available

  125. def litValue(default: BigInt = BigInt(-1)): BigInt

    Permalink

    returns

    the literal value of the node as a BigInt

    Bool(true).litValue() => BigInt(1)
    Definition Classes
    Node
  126. def matchWidth(w: Width): Node

    Permalink
    Definition Classes
    SIntBitsNode
  127. def max(b: SInt): SInt

    Permalink
    Definition Classes
    Num
  128. def maybeFlatten: Seq[Node]

    Permalink

    Deprecated: Do not use

    Deprecated: Do not use

    Definition Classes
    Node
  129. def min(b: SInt): SInt

    Permalink
    Definition Classes
    Num
  130. var modified: Boolean

    Permalink
    Definition Classes
    Node
  131. def muxes: Seq[Mux]

    Permalink
    Attributes
    protected[Chisel]
    Definition Classes
    proc
  132. var name: String

    Permalink

    Name of the instance.

    Name of the instance.

    Definition Classes
    Nameable
  133. def nameIt(path: String, isNamingIo: Boolean): Unit

    Permalink

    name this node

    name this node

    Definition Classes
    DataNode
    Note

    use setName in Node rather than this directly

  134. var named: Boolean

    Permalink

    named is used to indicate that name was set explicitly and should not be overriden

    named is used to indicate that name was set explicitly and should not be overriden

    Definition Classes
    Nameable
  135. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  136. def needWidth(): Int

    Permalink

    returns

    the bitWidth of the node

    Definition Classes
    Node
    Exceptions thrown

    ChiselException if the width is not yet defined

  137. final def newBinaryOp(right: Bits, opName: String): SInt.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Bits
  138. final def newLogicalOp(right: Bits, opName: String): Bool

    Permalink
    Attributes
    protected
    Definition Classes
    Bits
  139. final def newReductionOp(opName: String): Bool

    Permalink
    Attributes
    protected
    Definition Classes
    Bits
  140. final def newUnaryOp(opName: String): SInt.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Bits
  141. def next: Node

    Permalink
    Attributes
    protected[Chisel]
    Definition Classes
    proc
  142. def nextOpt: Option[Node]

    Permalink
    Attributes
    protected[Chisel]
    Definition Classes
    proc
  143. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  144. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  145. def orR(): Bool

    Permalink

    reduction or, or all bits together

    reduction or, or all bits together

    Definition Classes
    Bits
  146. def params: Parameters

    Permalink
    Definition Classes
    Data
  147. def printTree(writer: PrintStream, depth: Int = 4, indent: String = ""): Unit

    Permalink

    Prints all members of a node and recursively its inputs up to a certain depth level This method is purely used for debugging

    Prints all members of a node and recursively its inputs up to a certain depth level This method is purely used for debugging

    Definition Classes
    Node
  148. def procAssign(src: Node): Unit

    Permalink
    Definition Classes
    Bitsproc
  149. var procAssigned: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    proc
  150. var prune: Boolean

    Permalink
    Definition Classes
    Node
  151. def replaceTree(newNode: Node): Unit

    Permalink

    Replace the subtree starting from this node with the indicated replacement

    Replace the subtree starting from this node with the indicated replacement

    newNode

    The node to start tree from

    Definition Classes
    Node
  152. def review(): Unit

    Permalink

    Review a node for optimization possibilities if its children have been updated

    Review a node for optimization possibilities if its children have been updated

    Definition Classes
    Node
  153. def setDefault(src: Node): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    proc
  154. def setIsTypeNode: Unit

    Permalink

    make this node a type node

    make this node a type node

    Definition Classes
    Data
  155. def setIsWired(value: Boolean): Unit

    Permalink
    Definition Classes
    Data
  156. def setName(n: String): Unit

    Permalink

    Set the name of this module to the string 'n'

    Set the name of this module to the string 'n'

    Definition Classes
    Nameable
    Example:
    1. my.io.node.setName("MY_IO_NODE")
  157. def setWidth(w: Int): Unit

    Permalink

    Force the bit width of a node

    Force the bit width of a node

    w

    the bit width to force

    Definition Classes
    Node
  158. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  159. def toBits(): UInt

    Permalink

    returns

    This node as a UInt

    Definition Classes
    Node
  160. def toBool(): Bool

    Permalink

    Try to convert this data to a Bool

    Try to convert this data to a Bool

    Definition Classes
    Data
    Exceptions thrown

    ChiselException if the width is not 1

  161. def toBools: Vec[Bool]

    Permalink

    Split up this bits instantiation to a Vec of Bools

    Split up this bits instantiation to a Vec of Bools

    Definition Classes
    Bits
  162. lazy val toNode: Node

    Permalink

    returns

    This node

    Definition Classes
    DataNode
  163. def toSInt(): SInt

    Permalink
    Definition Classes
    Bits
  164. def toString(): String

    Permalink
    Definition Classes
    Bits → AnyRef → Any
  165. def toUInt(): UInt

    Permalink
    Definition Classes
    Bits
  166. def unary_!(): Bool

    Permalink
  167. def unary_-(): SInt

    Permalink
    Definition Classes
    SIntNum
  168. def unary_~(): SInt.this.type

    Permalink

    invert all bits with ~

    invert all bits with ~

    Definition Classes
    Bits
  169. def usesInClockHi(i: Node): Boolean

    Permalink
    Definition Classes
    Node
  170. def verifyMuxes: Unit

    Permalink
    Attributes
    protected[Chisel]
    Definition Classes
    proc
  171. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  172. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  174. def xorR(): Bool

    Permalink

    reduction xor, xor all bits together

    reduction xor, xor all bits together

    Definition Classes
    Bits
  175. def |(b: Bits): SInt.this.type

    Permalink

    Bitwise or

    Bitwise or

    Definition Classes
    Bits

Deprecated Value Members

  1. def !=(b: UInt): Bool

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 3) Use =/= rather than !=

  2. def !=(that: BitPat): Bool

    Permalink
    Definition Classes
    Bits
    Annotations
    @deprecated
    Deprecated

    (Since version 3) Use =/= rather than != for chisel comparison

  3. def !=(b: Bits): Bool

    Permalink
    Definition Classes
    Bits
    Annotations
    @deprecated
    Deprecated

    (Since version 3) Use =/= rather than != for chisel comparison

Inherited from Num[SInt]

Inherited from Bits

Inherited from proc

Inherited from Data

Inherited from Node

Inherited from Nameable

Inherited from AnyRef

Inherited from Any

Ungrouped