Class/Object

spinal.core

AFix

Related Docs: object AFix | package core

Permalink

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

Linear Supertypes
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. All

Instance Constructors

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

    Permalink

Type Members

  1. abstract type RefOwnerType

    Permalink
    Definition Classes
    OwnableRef

Value Members

  1. def !=(right: AFix): Bool

    Permalink
  2. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ##(right: Data): Bits

    Permalink

    Concatenation between two signals

    Concatenation between two signals

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

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

    Permalink

    Return the count time concatenation of the signal.

    Return the count time concatenation of the signal.

    Definition Classes
    Data
  6. def %(right: AFix): AFix

    Permalink

    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

    Permalink

    Logical AND operator

    Logical AND operator

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

    Permalink

    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

    Permalink

    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

    Permalink

    Hardware safe addition with 1 bit expand

    Hardware safe addition with 1 bit expand

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

    Permalink

    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

    Permalink

    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

    Permalink

    Hardware safe subtraction with 1 bit expand

    Hardware safe subtraction with 1 bit expand

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

    Permalink

    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

    Permalink

    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

    Permalink
  17. def :=(a: AFix): Unit

    Permalink
  18. def :=(s: SFix): Unit

    Permalink
  19. def :=(u: UFix): Unit

    Permalink
  20. def :=(s: SInt): Unit

    Permalink
  21. def :=(u: UInt): Unit

    Permalink
  22. def <(right: AFix): Bool

    Permalink

    Hardware "is less than right"

    Hardware "is less than right"

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

    Permalink

    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

    Permalink

    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

    Permalink
  26. def <=(right: AFix): Bool

    Permalink

    Hardware "is equal or less than right"

    Hardware "is equal or less than right"

    Definition Classes
    AFixNum
  27. def =/=(right: AFix): Bool

    Permalink
  28. def ==(right: AFix): Bool

    Permalink
  29. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  30. def ===(right: AFix): Bool

    Permalink
  31. def >(right: AFix): Bool

    Permalink

    Hardware "is greater than right"

    Hardware "is greater than right"

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

    Permalink

    Hardware "is equal or greater than right"

    Hardware "is equal or greater than right"

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

    Permalink

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

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

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

    Permalink
  35. def >>(shift: Int): AFix

    Permalink

    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

    Permalink
  37. def >>|(shift: Int): AFix

    Permalink
  38. def IFparent: Data

    Permalink
    Definition Classes
    Data
  39. def Q: QFormat

    Permalink
    Definition Classes
    AFixNum
  40. def ^(right: AFix): AFix

    Permalink

    Logical XOR operator

    Logical XOR operator

    Definition Classes
    AFixBitwiseOp
  41. var _spinalTags: LinkedHashSet[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  42. def addAttribute(attribute: Attribute): AFix.this.type

    Permalink
    Definition Classes
    DataSpinalTagReady
  43. def addAttribute(name: String, value: Int): AFix.this.type

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

    Permalink
    Definition Classes
    SpinalTagReady
  45. def addAttribute(name: String): AFix.this.type

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

    Permalink
    Definition Classes
    MultiDataSpinalTagReady
  47. def addTags(h: SpinalTag, tail: SpinalTag*): AFix.this.type

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

    Permalink
    Definition Classes
    SpinalTagReady
  49. def allowDirectionLessIo(): AFix.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

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

    Permalink

    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

    Permalink

    Allow a register to be partially assigned

    Allow a register to be partially assigned

    Definition Classes
    Data
  52. def allowPruning(): AFix.this.type

    Permalink
    Definition Classes
    Data
  53. def allowSimplifyIt(): AFix.this.type

    Permalink
    Definition Classes
    Data
  54. def allowUnsetRegToAvoidLatch(): AFix.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

  55. def as[T <: Data](dataType: HardType[T]): T

    Permalink
    Definition Classes
    Data
  56. def asAlwaysPositive(): AFix

    Permalink
  57. def asBits: Bits

    Permalink

    Cast signal to Bits

    Cast signal to Bits

    Definition Classes
    MultiDataData
  58. def asData: Data

    Permalink
    Definition Classes
    Data
  59. def asInOut(): AFix.this.type

    Permalink

    Set a signal as inout

    Set a signal as inout

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

    Permalink

    Set a data as input

    Set a data as input

    Definition Classes
    MultiDataData
  61. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  62. def asOutput(): AFix.this.type

    Permalink

    Set a data as output

    Set a data as output

    Definition Classes
    MultiDataData
  63. def asSFix(): SFix

    Permalink
  64. def asSInt(): SInt

    Permalink

    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

    Permalink
  66. def asUInt(): UInt

    Permalink

    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

    Permalink

    Assign the default 'x' value to all signals composing this type.

    Assign the default 'x' value to all signals composing this type.

    Definition Classes
    Data
    See also

    "Don't care term" wikipedia article

    Data type documentation

  68. def assignDontCareToUnasigned(): AFix.this.type

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

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    AFixAssignable
  75. def assignUnassignedByName(that: MultiData): Unit

    Permalink
    Definition Classes
    MultiData
  76. val bitWidth: Int

    Permalink

    Number of bits to represent the entire value

  77. def bitwiseOp(right: AFix, op: (Bits, Bits) ⇒ Bits): AFix

    Permalink
  78. def ceil(exp: Int, aligned: Boolean): AFix

    Permalink
    Definition Classes
    AFixNum
  79. def ceil(exp: Int): AFix

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    AFixNum
  82. def ceilToInf(exp: Int): AFix

    Permalink

    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

    Permalink
    Definition Classes
    Num
  84. def clearAll(): AFix.this.type

    Permalink

    Clear all bits to False and return itself

    Clear all bits to False and return itself

    Definition Classes
    Data
  85. def clone(): AFix.this.type

    Permalink
    Definition Classes
    AFixData → AnyRef
  86. def component: Component

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

    Permalink
    Definition Classes
    Assignable
  88. var compositeAssign: Assignable

    Permalink
    Definition Classes
    Assignable
  89. def copyDirectionOfImpl(that: Data): AFix.this.type

    Permalink
    Definition Classes
    MultiDataData
  90. def dirString(): String

    Permalink
    Definition Classes
    Data
  91. def dontSimplifyIt(): AFix.this.type

    Permalink
    Definition Classes
    Data
  92. def elements: ArrayBuffer[(String, Data)]

    Permalink
    Definition Classes
    AFixMultiData
  93. def elementsString: String

    Permalink
    Definition Classes
    MultiData
  94. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  97. val exp: Int

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

    Permalink
    Definition Classes
    SpinalTagReady
  99. def find(name: String): Data

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

    Permalink
    Definition Classes
    SpinalTagReady
  101. def fixTo(Q: QFormat, roundType: RoundType): AFix

    Permalink
  102. def fixTo(Q: QFormat): AFix

    Permalink
  103. def fixTo(af: AFix): AFix

    Permalink
  104. def fixTo(af: AFix, roundType: RoundType): AFix

    Permalink
  105. def flatten: Seq[BaseType]

    Permalink
    Definition Classes
    MultiDataData
  106. def flattenForeach(body: (BaseType) ⇒ Unit): Unit

    Permalink
    Definition Classes
    MultiDataData
  107. def flattenLocalName: Seq[String]

    Permalink
    Definition Classes
    MultiDataData
  108. def flip(): AFix.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
    MultiDataData
  109. def floor(exp: Int): AFix

    Permalink

    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

    Permalink
    Definition Classes
    Num
  111. def floorToZero(exp: Int): AFix

    Permalink

    Rounds a value towards zero

    Rounds a value towards zero

    returns

    Rounded result

    Definition Classes
    AFixNum
  112. def floorToZero(width: BitCount): AFix

    Permalink
    Definition Classes
    Num
  113. def foreachReflectableNameables(doThat: (Any) ⇒ Unit): Unit

    Permalink
    Definition Classes
    Nameable
  114. def foreachTag(body: (SpinalTag) ⇒ Unit): Unit

    Permalink
    Definition Classes
    SpinalTagReady
  115. val fracWidth: Int

    Permalink

    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

    Permalink
    Definition Classes
    MultiDataData
  117. def getAheadValue(): AFix.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
    Data
  118. def getBitsWidth: Int

    Permalink

    Return the width of the data

    Return the width of the data

    Definition Classes
    MultiDataData
  119. final def getClass(): Class[_]

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

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

    Permalink

    Get current component with all parents

    Get current component with all parents

    Definition Classes
    InComponent
  122. def getDirection: IODirection

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

    Permalink
    Definition Classes
    Nameable
  124. def getInstanceCounter: Int

    Permalink
    Definition Classes
    ContextUser
  125. def getMode: Byte

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

    Permalink
    Definition Classes
    AFixData
  127. def getName(default: String): String

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

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

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

    Permalink
    Definition Classes
    NameableByComponent
  131. def getRealSource: Any

    Permalink
    Definition Classes
    Assignable
  132. def getRealSourceNoRec: Any

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

    Permalink
    Definition Classes
    OwnableRef
  134. def getRootParent: Data

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

    Permalink
    Definition Classes
    Data
  136. def getScalaLocationLong: String

    Permalink
    Definition Classes
    ScalaLocated
  137. def getScalaLocationShort: String

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

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  141. def getTagsOf[T <: SpinalTag]()(implicit tag: ClassTag[T]): Iterable[T]

    Permalink
    Definition Classes
    SpinalTagReady
  142. def getZero: AFix.this.type

    Permalink

    Create a signal set to 0

    Create a signal set to 0

    Definition Classes
    MultiDataData
  143. var globalData: GlobalData

    Permalink
    Definition Classes
    GlobalDataUser
  144. def hasParametersOf(that: AFix): Boolean

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

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

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

    Permalink
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  148. def init(that: AFix): AFix.this.type

    Permalink
  149. def init(that: BigDecimal): AFix.this.type

    Permalink
  150. final def initFrom(that: AnyRef, target: AnyRef = this): Unit

    Permalink
    Definition Classes
    Data
  151. def instanceAttributes(language: Language): Iterable[Attribute]

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

    Permalink
    Definition Classes
    SpinalTagReady
  153. val intWidth: Int

    Permalink

    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.

  154. def isAnalog: Boolean

    Permalink
    Definition Classes
    Data
  155. def isComb: Boolean

    Permalink
    Definition Classes
    Data
  156. def isCompletelyUnnamed: Boolean

    Permalink
    Definition Classes
    Nameable
  157. def isDirectionLess: Boolean

    Permalink
    Definition Classes
    Data
  158. def isEmptyOfTag: Boolean

    Permalink
    Definition Classes
    SpinalTagReady
  159. def isInOut: Boolean

    Permalink
    Definition Classes
    Data
  160. def isInput: Boolean

    Permalink
    Definition Classes
    Data
  161. def isInputOrInOut: Boolean

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

    Permalink
    Definition Classes
    Any
  163. final def isNamed: Boolean

    Permalink
    Definition Classes
    Nameable
  164. def isNegative(): Bool

    Permalink
  165. def isOutput: Boolean

    Permalink
    Definition Classes
    Data
  166. def isOutputOrInOut: Boolean

    Permalink
    Definition Classes
    Data
  167. def isPositive(): Bool

    Permalink
  168. def isPriorityApplicable(namePriority: Byte): Boolean

    Permalink
    Definition Classes
    Nameable
  169. def isReg: Boolean

    Permalink
    Definition Classes
    Data
  170. def isRegOnAssign: Boolean

    Permalink
    Definition Classes
    Data
  171. def isUnnamed: Boolean

    Permalink
    Definition Classes
    NameableByComponentNameable
  172. def isZero(): Bool

    Permalink
  173. val leftExp: Int

    Permalink
  174. def max(right: AFix): AFix

    Permalink

    Return the hardware maximum value between this and right

    Return the hardware maximum value between this and right

    Definition Classes
    Num
  175. val maxExp: Int

    Permalink

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

  176. val maxRaw: BigInt

    Permalink
  177. lazy val maxValue: BigDecimal

    Permalink
    Definition Classes
    AFixMinMaxDecimalProvider
  178. def min(right: AFix): AFix

    Permalink

    Return the hardware minimum value between this and right

    Return the hardware minimum value between this and right

    Definition Classes
    Num
  179. val minRaw: BigInt

    Permalink
  180. lazy val minValue: BigDecimal

    Permalink
    Definition Classes
    AFixMinMaxDecimalProvider
  181. var name: String

    Permalink
    Definition Classes
    Nameable
  182. var nameableRef: Nameable

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

    Permalink
    Definition Classes
    AnyRef
  184. def negate(enable: Bool, plusOneEnable: Bool = null): AFix

    Permalink
  185. def negate(): AFix

    Permalink
  186. def noBackendCombMerge(): AFix.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
  187. def noCombLoopCheck(): AFix.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

  188. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  190. val numWidth: Int

    Permalink

    Number of bits to represent the numeric value, no sign

  191. def onEachAttributes(doIt: (Attribute) ⇒ Unit): Unit

    Permalink
    Definition Classes
    SpinalTagReady
  192. def overrideLocalName(name: String): AFix.this.type

    Permalink
    Definition Classes
    Nameable
  193. var parent: Data

    Permalink
    Definition Classes
    Data
  194. var parentScope: ScopeStatement

    Permalink
    Definition Classes
    ContextUser
  195. def pull(propagateName: Boolean): AFix.this.type

    Permalink
    Definition Classes
    Data
  196. def pull(): AFix.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
  197. def purify(): AFix.this.type

    Permalink
    Definition Classes
    Data
  198. def randBoot(u: Unit): AFix.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
  199. val raw: Bits

    Permalink
  200. var refOwner: RefOwnerType

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

    Permalink
    Definition Classes
    Nameable
  202. def removeAssignments(data: Boolean = true, init: Boolean = true, initial: Boolean = true): AFix.this.type

    Permalink
    Definition Classes
    Data
  203. def removeDataAssignments(): AFix.this.type

    Permalink
    Definition Classes
    Data
  204. def removeInitAssignments(): AFix.this.type

    Permalink
    Definition Classes
    Data
  205. def removeTag(spinalTag: SpinalTag): AFix.this.type

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

    Permalink
    Definition Classes
    SpinalTagReady
  207. def resize(newExp: ExpNumber): AFix

    Permalink
  208. def resized: AFix.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

  209. def rootIF(): Interface

    Permalink

    root interface

    root interface

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

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

    Permalink
    Definition Classes
    Data
  212. def round(bits: BitCount): AFix

    Permalink
  213. def round(bits: BitCount, rounding: RoundType): AFix

    Permalink
  214. def round(bits: BitCount, rounding: RoundType, ignoreExpand: Boolean): AFix

    Permalink
  215. def round(bits: BitCount, rounding: RoundType, ignoreExpand: Boolean, align: Boolean): AFix

    Permalink

    Round an AFix to a specific bit width, using a specified roundType type.

  216. def round(newExp: ExpNumber): AFix

    Permalink
  217. def round(newExp: ExpNumber, rounding: RoundType): AFix

    Permalink
  218. def round(newExp: ExpNumber, rounding: RoundType, align: Boolean): AFix

    Permalink

    Round an AFix to a specific exponent, using a specified rounding type.

  219. def round(exp: Int, aligned: Boolean = getTrunc.saturation): AFix

    Permalink
    Definition Classes
    AFixNum
  220. def round(width: BitCount, align: Boolean): AFix

    Permalink
    Definition Classes
    Num
  221. def roundDown(exp: Int, aligned: Boolean): AFix

    Permalink
    Definition Classes
    AFixNum
  222. def roundDown(width: BitCount, align: Boolean): AFix

    Permalink
    Definition Classes
    Num
  223. def roundHalfDown(exp: Int): AFix

    Permalink

    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

  224. def roundHalfToEven(exp: Int): AFix

    Permalink

    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

  225. def roundHalfToInf(exp: Int): AFix

    Permalink

    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

  226. def roundHalfToOdd(exp: Int): AFix

    Permalink

    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

  227. def roundHalfToZero(exp: Int): AFix

    Permalink

    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

  228. def roundHalfUp(exp: Int): AFix

    Permalink

    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

  229. def roundOffBits(bits: BitCount, rounding: RoundType = getTrunc.rounding, ignoreExpand: Boolean = true, align: Boolean = getTrunc.saturation): AFix

    Permalink

    Round an AFix in such a way that the given number of bits are removed.

  230. def roundToEven(exp: Int, aligned: Boolean): AFix

    Permalink
    Definition Classes
    AFixNum
  231. def roundToEven(width: BitCount, align: Boolean): AFix

    Permalink
    Definition Classes
    Num
  232. def roundToInf(exp: Int, aligned: Boolean): AFix

    Permalink
    Definition Classes
    AFixNum
  233. def roundToInf(width: BitCount, align: Boolean): AFix

    Permalink
    Definition Classes
    Num
  234. def roundToOdd(exp: Int, align: Boolean): AFix

    Permalink
    Definition Classes
    AFixNum
  235. def roundToOdd(width: BitCount, align: Boolean): AFix

    Permalink
    Definition Classes
    Num
  236. def roundToZero(exp: Int, aligned: Boolean): AFix

    Permalink
    Definition Classes
    AFixNum
  237. def roundToZero(width: BitCount, align: Boolean): AFix

    Permalink
    Definition Classes
    Num
  238. def roundUp(exp: Int, aligned: Boolean): AFix

    Permalink
    Definition Classes
    AFixNum
  239. def roundUp(width: BitCount, align: Boolean): AFix

    Permalink
    Definition Classes
    Num
  240. def rounded: AFix

    Permalink
  241. def rounded(rounding: RoundType): AFix

    Permalink
  242. def sat(m: Int): AFix

    Permalink

    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
  243. def sat(satMax: BigInt, satMin: BigInt): AFix

    Permalink

    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

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

    Permalink

  245. def sat(af: AFix): AFix

    Permalink

    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

  246. def sat(width: BitCount): AFix

    Permalink
    Definition Classes
    Num
  247. def saturated: AFix

    Permalink
  248. def saturated(rounding: RoundType): AFix

    Permalink
  249. var scalaTrace: Throwable

    Permalink
    Definition Classes
    ScalaLocated
  250. def scrap(exp: Int): AFix

    Permalink
  251. def setAll(): AFix.this.type

    Permalink

    Set all bits to True and return itself

    Set all bits to True and return itself

    Definition Classes
    Data
  252. def setAsAnalog(): AFix.this.type

    Permalink
    Definition Classes
    Data
  253. def setAsComb(): AFix.this.type

    Permalink

    Set baseType to Combinatorial

    Set baseType to Combinatorial

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

    Permalink

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

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

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

    Permalink

    Set baseType to reg

    Set baseType to reg

    Definition Classes
    MultiDataData
  256. def setCompositeName(nameable: Nameable, postfix: String, namePriority: Byte): AFix.this.type

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

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

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

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

    Permalink
    Definition Classes
    Nameable
  261. def setCompositeName(nameable: Nameable): AFix.this.type

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

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

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

    Permalink
    Definition Classes
    Nameable
  265. def setName(name: String): AFix.this.type

    Permalink
    Definition Classes
    Nameable
  266. def setNameAsWeak(): AFix.this.type

    Permalink
    Definition Classes
    Nameable
  267. def setOutputAsReg(): AFix.this.type

    Permalink

    Recursively set baseType to reg only for output

    Recursively set baseType to reg only for output

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

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

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

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

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

    Permalink
    Definition Classes
    Nameable
  273. def setPartialName(name: String): AFix.this.type

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

    Permalink
    Definition Classes
    Nameable
  275. def setPartialName(owner: Nameable): AFix.this.type

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

    Permalink
    Definition Classes
    OwnableRef
  277. def setScalaLocated(source: ScalaLocated): AFix.this.type

    Permalink
    Definition Classes
    ScalaLocated
  278. def setWeakName(name: String): AFix.this.type

    Permalink
    Definition Classes
    Nameable
  279. val signWidth: Int

    Permalink
  280. val signed: Boolean

    Permalink
  281. def spinalTags: LinkedHashSet[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  282. lazy val step: BigDecimal

    Permalink
  283. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  284. def tag(q: QFormat): AFix

    Permalink

    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
  285. def toAFix(that: HardType[AFix]): AFix

    Permalink
  286. def toIo(): AFix.this.type

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

    Permalink
    Definition Classes
    AFixData
  288. def toString(): String

    Permalink
    Definition Classes
    AFixNameable → AnyRef → Any
  289. def trim(m: Int): AFix

    Permalink

    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
  290. def trim(width: BitCount): AFix

    Permalink
    Definition Classes
    Num
  291. def truncate(): AFix

    Permalink
  292. def truncated: AFix

    Permalink
  293. def truncated(saturation: Boolean, overflow: Boolean, rounding: RoundType): AFix

    Permalink
  294. def unary_-(): AFix

    Permalink
  295. def unary_~: AFix

    Permalink

    Inverse bitwise operator

    Inverse bitwise operator

    Definition Classes
    AFixBitwiseOp
  296. def unfreeze(): AFix.this.type

    Permalink
    Definition Classes
    MultiDataData
  297. def unsetName(): AFix.this.type

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  301. val wholeWidth: Int

    Permalink

    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.

  302. def wrapNext(): AFix.this.type

    Permalink
    Definition Classes
    Data
  303. def zipByName(that: MultiData, rec: ArrayBuffer[(BaseType, BaseType)] = ArrayBuffer()): ArrayBuffer[(BaseType, BaseType)]

    Permalink
    Definition Classes
    MultiData
  304. def |(right: AFix): AFix

    Permalink

    Logical OR operator

    Logical OR operator

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

    Permalink
  306. def |<<(shift: AFix): AFix

    Permalink

Deprecated Value Members

  1. def asDirectionLess(): AFix.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): AFix.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

Inherited from MinMaxDecimalProvider

Inherited from BitwiseOp[AFix]

Inherited from Num[AFix]

Inherited from MultiData

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