Packages

class AFix extends MultiData with Num[AFix] with BitwiseOp[AFix] with MinMaxDecimalProvider

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AFix
  2. MinMaxDecimalProvider
  3. BitwiseOp
  4. Num
  5. MultiData
  6. Data
  7. InComponent
  8. OverridedEqualsHashCode
  9. SpinalTagReady
  10. Assignable
  11. NameableByComponent
  12. Nameable
  13. OwnableRef
  14. ContextUser
  15. ScalaLocated
  16. GlobalDataUser
  17. AnyRef
  18. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AFix(maxRaw: BigInt, minRaw: BigInt, exp: Int)

Type Members

  1. abstract type RefOwnerType
    Definition Classes
    OwnableRef

Value Members

  1. def !=(right: AFix): Bool
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. def ##(right: Data): Bits

    Concatenation between two signals

    Concatenation between two signals

    Definition Classes
    Data
  4. final def ##: Int
    Definition Classes
    AnyRef → Any
  5. def #*(count: Int): Bits
    Definition Classes
    Data
  6. def %(right: AFix): AFix

    Divides this by the right hand side AFix value expanding ranges as necessary

    Divides this by the right hand side AFix value expanding ranges as necessary

    right

    Value to divide this by

    returns

    Remainder

    Definition Classes
    AFixNum
  7. def &(right: AFix): AFix

    Logical AND operator

    Logical AND operator

    Definition Classes
    AFixBitwiseOp
  8. def *(right: AFix): AFix

    Mutiplies this by the right hand side AFix value expanding ranges as necessary

    Mutiplies this by the right hand side AFix value expanding ranges as necessary

    right

    Value to multiply this by

    returns

    Product

    Definition Classes
    AFixNum
  9. def +(right: AFix): AFix

    Adds this to the right hand side AFix value expanding ranges as necessary

    Adds this to the right hand side AFix value expanding ranges as necessary

    right

    Value to add to this

    returns

    Sum

    Definition Classes
    AFixNum
  10. def +^(right: AFix): AFix

    Hardware safe addition with 1 bit expand

    Hardware safe addition with 1 bit expand

    Definition Classes
    AFixNum
  11. def +|(right: AFix): AFix

    Adds this to the right hand side AFix value without expanding ranges or checks on value overflow

    Adds this to the right hand side AFix value without expanding ranges or checks on value overflow

    right

    Value to add to this

    returns

    Sum

    Definition Classes
    AFixNum
  12. def -(right: AFix): AFix

    Subtracts this to the right hand side AFix value expanding ranges as necessary

    Subtracts this to the right hand side AFix value expanding ranges as necessary

    right

    Value to subtract from this

    returns

    Difference

    Definition Classes
    AFixNum
  13. def -^(right: AFix): AFix

    Hardware safe subtraction with 1 bit expand

    Hardware safe subtraction with 1 bit expand

    Definition Classes
    AFixNum
  14. def -|(right: AFix): AFix

    Subtracts this from the right hand side AFix value without expanding ranges or checks on value underflow

    Subtracts this from the right hand side AFix value without expanding ranges or checks on value underflow

    right

    Value to subtract from this

    returns

    Difference

    Definition Classes
    AFixNum
  15. def /(right: AFix): AFix

    Divides this by the right hand side AFix value expanding ranges as necessary

    Divides this by the right hand side AFix value expanding ranges as necessary

    right

    Value to divide this by

    returns

    Quotient

    Definition Classes
    AFixNum
  16. def :=(that: BigDecimal): Unit
  17. def :=(a: AFix): Unit
  18. def :=(s: SFix): Unit
  19. def :=(u: UFix): Unit
  20. def :=(s: SInt): Unit
  21. def :=(u: UInt): Unit
  22. def <(right: AFix): Bool

    Hardware "is less than right"

    Hardware "is less than right"

    Definition Classes
    AFixNum
  23. def <<(shift: UInt): AFix

    Hardware arithmetic left shift (w(T) = w(this) + (1 << shift)-1)

    Hardware arithmetic left shift (w(T) = w(this) + (1 << shift)-1)

    Definition Classes
    AFixNum
  24. def <<(shift: Int): AFix

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

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

    Definition Classes
    AFixNum
  25. def <<|(shift: Int): AFix
  26. def <=(right: AFix): Bool

    Hardware "is equal or less than right"

    Hardware "is equal or less than right"

    Definition Classes
    AFixNum
  27. def =/=(right: AFix): Bool
  28. def ==(right: AFix): Bool
  29. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  30. def ===(right: AFix): Bool
  31. def >(right: AFix): Bool

    Hardware "is greater than right"

    Hardware "is greater than right"

    Definition Classes
    AFixNum
  32. def >=(right: AFix): Bool

    Hardware "is equal or greater than right"

    Hardware "is equal or greater than right"

    Definition Classes
    AFixNum
  33. def >>(shift: UInt): AFix

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

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

    Definition Classes
    AFixNum
  34. def >>(shift: AFix): AFix
  35. def >>(shift: Int): AFix

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

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

    Definition Classes
    AFixNum
  36. def >>|(shift: AFix): AFix
  37. def >>|(shift: Int): AFix
  38. def IFparent: Data
    Definition Classes
    Data
  39. def Q: QFormat
    Definition Classes
    AFixNum
  40. def ^(right: AFix): AFix

    Logical XOR operator

    Logical XOR operator

    Definition Classes
    AFixBitwiseOp
  41. val _spinalTags: LinkedHashSet[SpinalTag]
    Definition Classes
    SpinalTagReady
  42. def addAttribute(attribute: Attribute): AFix.this.type
    Definition Classes
    DataSpinalTagReady
  43. def addAttribute(name: String, value: Int): AFix.this.type
    Definition Classes
    SpinalTagReady
  44. def addAttribute(name: String, value: String): AFix.this.type
    Definition Classes
    SpinalTagReady
  45. def addAttribute(name: String): AFix.this.type
    Definition Classes
    SpinalTagReady
  46. def addTag[T <: SpinalTag](spinalTag: T): AFix.this.type
    Definition Classes
    MultiDataSpinalTagReady
  47. def addTags(h: SpinalTag, tail: SpinalTag*): AFix.this.type
    Definition Classes
    SpinalTagReady
  48. def addTags[T <: SpinalTag](tags: Iterable[T]): AFix.this.type
    Definition Classes
    SpinalTagReady
  49. def allowDirectionLessIo(): AFix.this.type

    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

  50. def allowOverride(): AFix.this.type

    Allow a signal to be overridden.

    Allow a signal to be overridden.

    Definition Classes
    Data
    See also

    Assignment overlap Error Documentation

  51. def allowPartialyAssigned(): AFix.this.type

    Allow a register to be partially assigned

    Allow a register to be partially assigned

    Definition Classes
    Data
  52. def allowPruning(): AFix.this.type
    Definition Classes
    Data
  53. def allowSimplifyIt(): AFix.this.type
    Definition Classes
    Data
  54. def allowUnsetRegToAvoidLatch(): AFix.this.type

    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

  55. def as[T <: Data](dataType: HardType[T]): T
    Definition Classes
    Data
  56. def asAlwaysPositive(): AFix
  57. def asBits: Bits

    Cast signal to Bits

    Cast signal to Bits

    Definition Classes
    MultiDataData
  58. def asData: Data
    Definition Classes
    Data
  59. def asInOut(): AFix.this.type

    Set a signal as inout

    Set a signal as inout

    Definition Classes
    MultiDataData
  60. def asInput(): AFix.this.type

    Set a data as input

    Set a data as input

    Definition Classes
    MultiDataData
  61. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  62. def asOutput(): AFix.this.type

    Set a data as output

    Set a data as output

    Definition Classes
    MultiDataData
  63. def asSFix(): SFix
  64. def asSInt(): SInt

    Convert the bits of the AFix into a SInt.

    Convert the bits of the AFix into a SInt.

    This is not a rounding operation; the exponent is ignored.

  65. def asUFix(): UFix
  66. def asUInt(): UInt

    Convert the bits of the AFix into a UInt.

    Convert the bits of the AFix into a UInt.

    Saturates if the AFix is negative.

    This is not a rounding operation; the exponent is ignored.

  67. def assignDontCare(): AFix.this.type
    Definition Classes
    Data
  68. def assignDontCareToUnasigned(): AFix.this.type
    Definition Classes
    Data
  69. def assignFormalRandom(kind: RandomExpKind): Unit
    Definition Classes
    MultiDataData
  70. final def assignFrom(that: AnyRef, target: AnyRef = this)(implicit loc: Location): Unit
    Definition Classes
    Data
  71. def assignFromBits(bits: Bits, hi: Int, lo: Int): Unit
    Definition Classes
    MultiDataData
  72. def assignFromBits(bits: Bits): Unit
    Definition Classes
    MultiDataData
  73. def assignFromBits(bits: Bits, offset: Int, bitCount: BitCount): Unit
    Definition Classes
    Data
  74. def assignFromImpl(that: AnyRef, target: AnyRef, kind: AnyRef)(implicit loc: Location): Unit
    Attributes
    protected
    Definition Classes
    AFixAssignable
  75. def assignUnassignedByName(that: MultiData): Unit
    Definition Classes
    MultiData
  76. val bitWidth: Int

    Number of bits to represent the entire value

  77. def bitwiseOp(right: AFix, op: (Bits, Bits) => Bits): AFix
  78. def ceil(exp: Int, aligned: Boolean): AFix
    Definition Classes
    AFixNum
  79. def ceil(exp: Int): AFix

    Rounds a value up towards positive infinity at the given exp point position

    Rounds a value up towards positive infinity at the given exp point position

    returns

    Rounded result

  80. def ceil(width: BitCount, align: Boolean): AFix

    lowest n bits Round Operation by BitCount

    lowest n bits Round Operation by BitCount

    Definition Classes
    Num
  81. def ceilToInf(exp: Int, aligned: Boolean): AFix
    Definition Classes
    AFixNum
  82. def ceilToInf(exp: Int): AFix

    Rounds a value towards negative or positive infinity

    Rounds a value towards negative or positive infinity

    returns

    Rounded result

  83. def ceilToInf(width: BitCount, align: Boolean): AFix
    Definition Classes
    Num
  84. def clearAll(): AFix.this.type
    Definition Classes
    Data
  85. def clone(): AFix.this.type
    Definition Classes
    AFixData → AnyRef
  86. def component: Component
    Definition Classes
    ContextUser
  87. final def compositAssignFrom(that: AnyRef, target: AnyRef, kind: AnyRef)(implicit loc: Location): Unit
    Definition Classes
    Assignable
  88. val compositeAssign: Assignable
    Definition Classes
    Assignable
  89. def copyDirectionOfImpl(that: Data): AFix.this.type
    Definition Classes
    MultiDataData
  90. def dirString(): String
    Definition Classes
    Data
  91. def dontSimplifyIt(): AFix.this.type
    Definition Classes
    Data
  92. def elements: ArrayBuffer[(String, Data)]
    Definition Classes
    AFixMultiData
  93. def elementsString: String
    Definition Classes
    MultiData
  94. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  95. def equals(obj: Any): Boolean
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  96. def existsTag(cond: (SpinalTag) => Boolean): Boolean
    Definition Classes
    SpinalTagReady
  97. val exp: Int
  98. def filterTag(cond: (SpinalTag) => Boolean): Iterable[SpinalTag]
    Definition Classes
    SpinalTagReady
  99. def find(name: String): Data
    Definition Classes
    MultiData
  100. def findTag(cond: (SpinalTag) => Boolean): Option[SpinalTag]
    Definition Classes
    SpinalTagReady
  101. def fixTo(Q: QFormat, roundType: RoundType): AFix
  102. def fixTo(Q: QFormat): AFix
  103. def fixTo(af: AFix): AFix
  104. def fixTo(af: AFix, roundType: RoundType): AFix
  105. def flatten: Seq[BaseType]
    Definition Classes
    MultiDataData
  106. def flattenForeach(body: (BaseType) => Unit): Unit
    Definition Classes
    MultiDataData
  107. def flattenLocalName: Seq[String]
    Definition Classes
    MultiDataData
  108. def flip(): AFix.this.type

    Flip the direction of the signal.

    Flip the direction of the signal.

    in and out are swapped, inout stay the same.

    Definition Classes
    MultiDataData
  109. def floor(exp: Int): AFix

    Rounds a value down towards negative infinity (truncation) at the given exp point position

    Rounds a value down towards negative infinity (truncation) at the given exp point position

    returns

    Rounded result

    Definition Classes
    AFixNum
  110. def floor(width: BitCount): AFix
    Definition Classes
    Num
  111. def floorToZero(exp: Int): AFix

    Rounds a value towards zero

    Rounds a value towards zero

    returns

    Rounded result

    Definition Classes
    AFixNum
  112. def floorToZero(width: BitCount): AFix
    Definition Classes
    Num
  113. def foreachReflectableNameables(doThat: (Any) => Unit): Unit
    Definition Classes
    Nameable
  114. def foreachTag(body: (SpinalTag) => Unit): Unit
    Definition Classes
    SpinalTagReady
  115. val fracWidth: Int

    Number of bits to represent the fractional value.

    Number of bits to represent the fractional value. Zero if the resolution is integer or larger.

  116. def freeze(): AFix.this.type
    Definition Classes
    MultiDataData
  117. def getAheadValue(): AFix.this.type

    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
    Data
  118. def getBitsWidth: Int

    Return the width of the data

    Return the width of the data

    Definition Classes
    MultiDataData
  119. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  120. def getComponent(): Component
    Definition Classes
    DataInComponentNameableByComponent
  121. def getComponents(): Seq[Component]

    Get current component with all parents

    Get current component with all parents

    Definition Classes
    InComponent
  122. def getDirection: IODirection
    Definition Classes
    Data
  123. def getDisplayName(): String
    Definition Classes
    Nameable
  124. def getInstanceCounter: Int
    Definition Classes
    ContextUser
  125. def getMode: Byte
    Attributes
    protected
    Definition Classes
    Nameable
  126. def getMuxType[T <: Data](list: TraversableOnce[T]): HardType[T]
    Definition Classes
    AFixData
  127. def getName(default: String): String
    Definition Classes
    NameableByComponentNameable
  128. def getName(): String
    Definition Classes
    NameableByComponentNameable
  129. def getPartialName(): String
    Definition Classes
    Nameable
  130. def getPath(from: Component, to: Component): Seq[Component]
    Definition Classes
    NameableByComponent
  131. def getRealSource: Any
    Definition Classes
    Assignable
  132. def getRealSourceNoRec: Any
    Definition Classes
    DataAssignable
  133. def getRefOwnersChain(): List[Any]
    Definition Classes
    OwnableRef
  134. def getRootParent: Data
    Definition Classes
    Data
  135. def getRtlPath(separator: String = "/"): String
    Definition Classes
    Data
  136. def getScalaLocationLong: String
    Definition Classes
    ScalaLocated
  137. def getScalaLocationShort: String
    Definition Classes
    ScalaLocated
  138. def getScalaTrace(): Throwable
    Definition Classes
    ScalaLocated
  139. def getTag[T <: SpinalTag](clazz: Class[T]): Option[T]
    Definition Classes
    SpinalTagReady
  140. def getTags(): LinkedHashSet[SpinalTag]
    Definition Classes
    SpinalTagReady
  141. def getZero: AFix.this.type

    Create a signal set to 0

    Create a signal set to 0

    Definition Classes
    MultiDataData
  142. val globalData: GlobalData
    Definition Classes
    GlobalDataUser
  143. def hasParametersOf(that: AFix): Boolean
  144. def hasTag[T <: SpinalTag](clazz: Class[T]): Boolean
    Definition Classes
    SpinalTagReady
  145. def hasTag(spinalTag: SpinalTag): Boolean
    Definition Classes
    SpinalTagReady
  146. def hashCode(): Int
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  147. def init(that: AFix): AFix.this.type
  148. def init(that: BigDecimal): AFix.this.type
  149. final def initFrom(that: AnyRef, target: AnyRef = this): Unit
    Definition Classes
    Data
  150. def instanceAttributes(language: Language): Iterable[Attribute]
    Definition Classes
    SpinalTagReady
  151. def instanceAttributes: Iterable[Attribute]
    Definition Classes
    SpinalTagReady
  152. val intWidth: Int

    Number of bits to represent the whole ("integer") value, with sign.

    Number of bits to represent the whole ("integer") value, with sign. May be negative.

  153. def isAnalog: Boolean
    Definition Classes
    Data
  154. def isComb: Boolean
    Definition Classes
    Data
  155. def isCompletelyUnnamed: Boolean
    Definition Classes
    Nameable
  156. def isDirectionLess: Boolean
    Definition Classes
    Data
  157. def isEmptyOfTag: Boolean
    Definition Classes
    SpinalTagReady
  158. def isInOut: Boolean
    Definition Classes
    Data
  159. def isInput: Boolean
    Definition Classes
    Data
  160. def isInputOrInOut: Boolean
    Definition Classes
    Data
  161. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  162. final def isNamed: Boolean
    Definition Classes
    Nameable
  163. def isNegative(): Bool
  164. def isOutput: Boolean
    Definition Classes
    Data
  165. def isOutputOrInOut: Boolean
    Definition Classes
    Data
  166. def isPositive(): Bool
  167. def isPriorityApplicable(namePriority: Byte): Boolean
    Definition Classes
    Nameable
  168. def isReg: Boolean
    Definition Classes
    Data
  169. def isRegOnAssign: Boolean
    Definition Classes
    Data
  170. def isUnnamed: Boolean
    Definition Classes
    NameableByComponentNameable
  171. def isZero(): Bool
  172. val leftExp: Int
  173. def max(right: AFix): AFix

    Return the hardware maximum value between this and right

    Return the hardware maximum value between this and right

    Definition Classes
    Num
  174. val maxExp: Int

    The exponent of the smallest power of 2 bounding the range of the AFix.

  175. val maxRaw: BigInt
  176. lazy val maxValue: BigDecimal
    Definition Classes
    AFixMinMaxDecimalProvider
  177. def min(right: AFix): AFix

    Return the hardware minimum value between this and right

    Return the hardware minimum value between this and right

    Definition Classes
    Num
  178. val minRaw: BigInt
  179. lazy val minValue: BigDecimal
    Definition Classes
    AFixMinMaxDecimalProvider
  180. val name: String
    Definition Classes
    Nameable
  181. val nameableRef: Nameable
    Attributes
    protected
    Definition Classes
    Nameable
    Annotations
    @DontName()
  182. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  183. def negate(enable: Bool, plusOneEnable: Bool = null): AFix
  184. def negate(): AFix
  185. def noBackendCombMerge(): AFix.this.type

    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
  186. def noCombLoopCheck(): AFix.this.type

    Disable combinatorial loop checking for this Data

    Disable combinatorial loop checking for this Data

    Definition Classes
    Data
    See also

    Combinatorial loop Error Documentation

  187. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  188. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  189. val numWidth: Int

    Number of bits to represent the numeric value, no sign

  190. def onEachAttributes(doIt: (Attribute) => Unit): Unit
    Definition Classes
    SpinalTagReady
  191. def overrideLocalName(name: String): AFix.this.type
    Definition Classes
    Nameable
  192. val parent: Data
    Definition Classes
    Data
  193. val parentScope: ScopeStatement
    Definition Classes
    ContextUser
  194. def pull(propagateName: Boolean): AFix.this.type
    Definition Classes
    Data
  195. def pull(): AFix.this.type

    Pull a signal to the top level (use for debugging)

    Pull a signal to the top level (use for debugging)

    Definition Classes
    Data
  196. def purify(): AFix.this.type
    Definition Classes
    Data
  197. def randBoot(u: Unit): AFix.this.type

    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
  198. val raw: Bits
  199. val refOwner: RefOwnerType
    Definition Classes
    OwnableRef
    Annotations
    @DontName()
  200. def reflectNames(): Unit
    Definition Classes
    Nameable
  201. def removeAssignments(data: Boolean = true, init: Boolean = true, initial: Boolean = true): AFix.this.type
    Definition Classes
    Data
  202. def removeDataAssignments(): AFix.this.type
    Definition Classes
    Data
  203. def removeInitAssignments(): AFix.this.type
    Definition Classes
    Data
  204. def removeTag(spinalTag: SpinalTag): AFix.this.type
    Definition Classes
    SpinalTagReady
  205. def removeTags(tags: Iterable[SpinalTag]): AFix.this.type
    Definition Classes
    SpinalTagReady
  206. def resize(newExp: ExpNumber): AFix
  207. def resized: AFix.this.type

    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

  208. def rootIF(): Interface

    root interface

    root interface

    Definition Classes
    Data
  209. def rootIFList(): List[Interface]
    Definition Classes
    Data
  210. def rootIFrec(now: Data, lastRoot: List[Interface]): List[Interface]
    Definition Classes
    Data
  211. def round(exp: Int, aligned: Boolean = getTrunc.saturation): AFix
    Definition Classes
    AFixNum
  212. def round(width: BitCount, align: Boolean): AFix
    Definition Classes
    Num
  213. def roundDown(exp: Int, aligned: Boolean): AFix
    Definition Classes
    AFixNum
  214. def roundDown(width: BitCount, align: Boolean): AFix
    Definition Classes
    Num
  215. def roundHalfDown(exp: Int): AFix

    Rounds a value down (floor/truncate) if x <= 0.5 otherwise rounds up (ceil)

    Rounds a value down (floor/truncate) if x <= 0.5 otherwise rounds up (ceil)

    returns

    Rounded result

  216. def roundHalfToEven(exp: Int): AFix

    Rounds a value towards the nearest even value including half values, otherwise rounds towards odd values

    Rounds a value towards the nearest even value including half values, otherwise rounds towards odd values

    returns

    Rounded result

  217. def roundHalfToInf(exp: Int): AFix

    Rounds a value towards infinity if x >= 0.5 otherwise rounds towards zero

    Rounds a value towards infinity if x >= 0.5 otherwise rounds towards zero

    returns

    Rounded result

  218. def roundHalfToOdd(exp: Int): AFix

    Rounds a value towards the nearest odd value including half values, otherwise rounds towards even values

    Rounds a value towards the nearest odd value including half values, otherwise rounds towards even values

    returns

    Rounded result

  219. def roundHalfToZero(exp: Int): AFix

    Rounds a value towards zero (floor/truncate) if x <= 0.5 otherwise rounds towards infinity

    Rounds a value towards zero (floor/truncate) if x <= 0.5 otherwise rounds towards infinity

    returns

    Rounded result

  220. def roundHalfUp(exp: Int): AFix

    Rounds a value up (ceiling) if x >= 0.5 otherwise rounds down (floor/truncate)

    Rounds a value up (ceiling) if x >= 0.5 otherwise rounds down (floor/truncate)

    returns

    Rounded result

  221. def roundToEven(exp: Int, aligned: Boolean): AFix
    Definition Classes
    AFixNum
  222. def roundToEven(width: BitCount, align: Boolean): AFix
    Definition Classes
    Num
  223. def roundToInf(exp: Int, aligned: Boolean): AFix
    Definition Classes
    AFixNum
  224. def roundToInf(width: BitCount, align: Boolean): AFix
    Definition Classes
    Num
  225. def roundToOdd(exp: Int, align: Boolean): AFix
    Definition Classes
    AFixNum
  226. def roundToOdd(width: BitCount, align: Boolean): AFix
    Definition Classes
    Num
  227. def roundToZero(exp: Int, aligned: Boolean): AFix
    Definition Classes
    AFixNum
  228. def roundToZero(width: BitCount, align: Boolean): AFix
    Definition Classes
    Num
  229. def roundUp(exp: Int, aligned: Boolean): AFix
    Definition Classes
    AFixNum
  230. def roundUp(width: BitCount, align: Boolean): AFix
    Definition Classes
    Num
  231. def rounded: AFix
  232. def rounded(rounding: RoundType): AFix
  233. def sat(m: Int): AFix

    Saturates the top m bits.

    Saturates the top m bits. Other AFix specific saturation functions are recommended. This function is bit orientated unlike other AFix functions.

    m

    - Number of high bits to saturate off

    Definition Classes
    AFixNum
  234. def sat(satMax: BigInt, satMin: BigInt): AFix

    Saturates a number to a provided integer representation value range

    Saturates a number to a provided integer representation value range

    satMax

    Max integer value to saturate

    satMin

    Min integer value to saturate

    returns

    - Saturated AFix value

  235. def sat(satMax: BigInt, satMin: BigInt, exp: ExpNumber): AFix

  236. def sat(af: AFix): AFix

    Saturates a number to the range of another number.

    Saturates a number to the range of another number. This accounts for decimal shifting.

    af

    - AFix value to saturate range to

    returns

    - Saturated AFix value

  237. def sat(width: BitCount): AFix
    Definition Classes
    Num
  238. def saturated: AFix
  239. def saturated(rounding: RoundType): AFix
  240. val scalaTrace: Throwable
    Definition Classes
    ScalaLocated
  241. def scrap(exp: Int): AFix
  242. def setAll(): AFix.this.type
    Definition Classes
    Data
  243. def setAsAnalog(): AFix.this.type
    Definition Classes
    Data
  244. def setAsComb(): AFix.this.type

    Set baseType to Combinatorial

    Set baseType to Combinatorial

    Definition Classes
    MultiDataData
  245. def setAsDirectionLess(): AFix.this.type

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

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

    Definition Classes
    MultiDataData
  246. def setAsReg(): AFix.this.type

    Set baseType to reg

    Set baseType to reg

    Definition Classes
    MultiDataData
  247. def setCompositeName(nameable: Nameable, postfix: String, namePriority: Byte): AFix.this.type
    Definition Classes
    Nameable
  248. def setCompositeName(nameable: Nameable, postfix: String, weak: Boolean): AFix.this.type
    Definition Classes
    Nameable
  249. def setCompositeName(nameable: Nameable, postfix: String): AFix.this.type
    Definition Classes
    Nameable
  250. def setCompositeName(nameable: Nameable, namePriority: Byte): AFix.this.type
    Definition Classes
    Nameable
  251. def setCompositeName(nameable: Nameable, weak: Boolean): AFix.this.type
    Definition Classes
    Nameable
  252. def setCompositeName(nameable: Nameable): AFix.this.type
    Definition Classes
    Nameable
  253. def setLambdaName(isNameBody: => Boolean)(nameGen: => String): AFix.this.type
    Definition Classes
    Nameable
  254. def setName(name: String, namePriority: Byte): AFix.this.type
    Definition Classes
    Nameable
  255. def setName(name: String, weak: Boolean): AFix.this.type
    Definition Classes
    Nameable
  256. def setName(name: String): AFix.this.type
    Definition Classes
    Nameable
  257. def setNameAsWeak(): AFix.this.type
    Definition Classes
    Nameable
  258. def setOutputAsReg(): AFix.this.type

    Recursively set baseType to reg only for output

    Recursively set baseType to reg only for output

    Definition Classes
    Data
  259. def setPartialName(name: String, namePriority: Byte, owner: Any): AFix.this.type
    Definition Classes
    Nameable
  260. def setPartialName(name: String, namePriority: Byte): AFix.this.type
    Definition Classes
    Nameable
  261. def setPartialName(name: String, weak: Boolean): AFix.this.type
    Definition Classes
    Nameable
  262. def setPartialName(owner: Nameable, name: String, namePriority: Byte): AFix.this.type
    Definition Classes
    Nameable
  263. def setPartialName(owner: Nameable, name: String, weak: Boolean): AFix.this.type
    Definition Classes
    Nameable
  264. def setPartialName(name: String): AFix.this.type
    Definition Classes
    Nameable
  265. def setPartialName(owner: Nameable, name: String): AFix.this.type
    Definition Classes
    Nameable
  266. def setPartialName(owner: Nameable): AFix.this.type
    Definition Classes
    Nameable
  267. def setRefOwner(that: Any): Unit
    Definition Classes
    OwnableRef
  268. def setScalaLocated(source: ScalaLocated): AFix.this.type
    Definition Classes
    ScalaLocated
  269. def setWeakName(name: String): AFix.this.type
    Definition Classes
    Nameable
  270. val signWidth: Int
  271. val signed: Boolean
  272. def spinalTags: LinkedHashSet[SpinalTag]
    Definition Classes
    SpinalTagReady
  273. lazy val step: BigDecimal
  274. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  275. def tag(q: QFormat): AFix

    This function differs from traditional Num[T] by returning a new AFix

    This function differs from traditional Num[T] by returning a new AFix

    Definition Classes
    AFixNum
  276. def toAFix(that: HardType[AFix]): AFix
  277. def toIo(): AFix.this.type
    Definition Classes
    Data
  278. def toMuxInput[T <: Data](muxOutput: T): T
    Definition Classes
    AFixData
  279. def toString(): String
    Definition Classes
    AFixNameable → AnyRef → Any
  280. def trim(m: Int): AFix

    Trims the bottom m bits.

    Trims the bottom m bits. Other AFix specific rounding functions are recommended. This function is bit orientated unlike other AFix functions.

    m

    - Number of low bits to trim off

    Definition Classes
    AFixNum
  281. def trim(width: BitCount): AFix
    Definition Classes
    Num
  282. def truncate(): AFix
  283. def truncated: AFix
  284. def truncated(saturation: Boolean, overflow: Boolean, rounding: RoundType): AFix
  285. def unary_-(): AFix
  286. def unary_~: AFix

    Inverse bitwise operator

    Inverse bitwise operator

    Definition Classes
    AFixBitwiseOp
  287. def unfreeze(): AFix.this.type
    Definition Classes
    MultiDataData
  288. def unsetName(): AFix.this.type
    Definition Classes
    Nameable
  289. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  290. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  291. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  292. val wholeWidth: Int

    Number of bits to represent the whole value, without the sign bit.

    Number of bits to represent the whole value, without the sign bit. May be negative.

  293. def wrapNext(): AFix.this.type
    Definition Classes
    Data
  294. def zipByName(that: MultiData, rec: ArrayBuffer[(BaseType, BaseType)] = ArrayBuffer()): ArrayBuffer[(BaseType, BaseType)]
    Definition Classes
    MultiData
  295. def |(right: AFix): AFix

    Logical OR operator

    Logical OR operator

    Definition Classes
    AFixBitwiseOp
  296. def |<<(shift: Int): AFix
  297. def |<<(shift: AFix): AFix

Deprecated Value Members

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

    (Since version ???) use setAsDirectionLess instead

  2. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

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

    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

Inherited from MinMaxDecimalProvider

Inherited from BitwiseOp[AFix]

Inherited from Num[AFix]

Inherited from MultiData

Inherited from Data

Inherited from InComponent

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