Packages

class AFix extends MultiData

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

Instance Constructors

  1. new AFix(maxValue: BigInt, minValue: BigInt, exp: ExpNumber)

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 data

    Concatenation between two data

    Definition Classes
    Data
  4. final def ##: Int
    Definition Classes
    AnyRef → Any
  5. 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

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

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

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

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

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

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

  12. def :=(s: SFix): Unit
  13. def :=(u: UFix): Unit
  14. def :=(s: SInt): Unit
  15. def :=(u: UInt): Unit
  16. def <(right: AFix): Bool
  17. def <<(shift: Int): AFix
  18. def <<|(shift: Int): AFix
  19. def <=(right: AFix): Bool
  20. def =/=(right: AFix): Bool
  21. def ==(right: AFix): Bool
  22. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  23. def ===(right: AFix): Bool
  24. def >(right: AFix): Bool
  25. def >=(right: AFix): Bool
  26. def >>(shift: Int): AFix
  27. def >>|(shift: Int): AFix
  28. val _spinalTags: LinkedHashSet[SpinalTag]
    Definition Classes
    SpinalTagReady
  29. def addAttribute(attribute: Attribute): AFix.this.type
    Definition Classes
    DataSpinalTagReady
  30. def addAttribute(name: String, value: Int): AFix.this.type
    Definition Classes
    SpinalTagReady
  31. def addAttribute(name: String, value: String): AFix.this.type
    Definition Classes
    SpinalTagReady
  32. def addAttribute(name: String): AFix.this.type
    Definition Classes
    SpinalTagReady
  33. def addTag[T <: SpinalTag](spinalTag: T): AFix.this.type
    Definition Classes
    MultiDataSpinalTagReady
  34. def addTags[T <: SpinalTag](tags: Iterable[T]): AFix.this.type
    Definition Classes
    SpinalTagReady
  35. def allowDirectionLessIo: AFix.this.type
    Definition Classes
    Data
  36. def allowOverride: AFix.this.type

    Allow a data to be overrided

    Allow a data to be overrided

    Definition Classes
    Data
  37. def allowPartialyAssigned: AFix.this.type
    Definition Classes
    Data
  38. def allowPruning(): AFix.this.type
    Definition Classes
    Data
  39. def allowSimplifyIt(): AFix.this.type
    Definition Classes
    Data
  40. def allowUnsetRegToAvoidLatch: AFix.this.type
    Definition Classes
    Data
  41. def as[T <: Data](dataType: HardType[T]): T
    Definition Classes
    Data
  42. def asBits: Bits

    Cast data to Bits

    Cast data to Bits

    Definition Classes
    MultiDataData
  43. def asData: Data
    Definition Classes
    Data
  44. def asInOut(): AFix.this.type

    set a data as inout

    set a data as inout

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

    Set a data as input

    Set a data as input

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

    Set a data as output

    Set a data as output

    Definition Classes
    MultiDataData
  48. def asSFix(): SFix
  49. def asSInt(): SInt
  50. def asUFix(): UFix
  51. def asUInt(): UInt
  52. def assignDontCare(): AFix.this.type
    Definition Classes
    Data
  53. def assignFormalRandom(kind: RandomExpKind): Unit
    Definition Classes
    MultiDataData
  54. final def assignFrom(that: AnyRef, target: AnyRef = this): Unit
    Definition Classes
    Data
  55. def assignFromBits(bits: Bits, hi: Int, lo: Int): Unit
    Definition Classes
    MultiDataData
  56. def assignFromBits(bits: Bits): Unit
    Definition Classes
    MultiDataData
  57. def assignFromBits(bits: Bits, offset: Int, bitCount: BitCount): Unit
    Definition Classes
    Data
  58. def assignUnassignedByName(that: MultiData): Unit
    Definition Classes
    MultiData
  59. val bitWidth: Int
  60. def ceil(): AFix

    Rounds a value up towards positive infinity

    Rounds a value up towards positive infinity

    returns

    Rounded result

  61. def ceilToInf(): AFix

    Rounds a value towards negative or positive infinity

    Rounds a value towards negative or positive infinity

    returns

    Rounded result

  62. def clone(): AFix.this.type
    Definition Classes
    AFixData → AnyRef
  63. def component: Component
    Definition Classes
    ContextUser
  64. final def compositAssignFrom(that: AnyRef, target: AnyRef, kind: AnyRef): Unit
    Definition Classes
    Assignable
  65. val compositeAssign: Assignable
    Definition Classes
    Assignable
  66. def copyDirectionOfImpl(that: Data): AFix.this.type
    Definition Classes
    MultiDataData
  67. def dirString(): String
    Definition Classes
    Data
  68. def dontSimplifyIt(): AFix.this.type
    Definition Classes
    Data
  69. def elements: ArrayBuffer[(String, Data)]
    Definition Classes
    AFixMultiData
  70. def elementsString: String
    Definition Classes
    MultiData
  71. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  72. def equals(obj: Any): Boolean
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  73. def existsTag(cond: (SpinalTag) => Boolean): Boolean
    Definition Classes
    SpinalTagReady
  74. val exp: ExpNumber
  75. def filterTag(cond: (SpinalTag) => Boolean): Iterable[SpinalTag]
    Definition Classes
    SpinalTagReady
  76. def find(name: String): Data
    Definition Classes
    MultiData
  77. def findTag(cond: (SpinalTag) => Boolean): Option[SpinalTag]
    Definition Classes
    SpinalTagReady
  78. def flatten: Seq[BaseType]
    Definition Classes
    MultiDataData
  79. def flattenForeach(body: (BaseType) => Unit): Unit
    Definition Classes
    MultiDataData
  80. def flattenLocalName: Seq[String]
    Definition Classes
    MultiDataData
  81. def flip(): AFix.this.type

    flip the direction of the data

    flip the direction of the data

    Definition Classes
    MultiDataData
  82. def floor(): AFix

    Rounds a value down towards negative infinity (truncation)

    Rounds a value down towards negative infinity (truncation)

    returns

    Rounded result

  83. def floorToZero(): AFix

    Rounds a value towards zero

    Rounds a value towards zero

    returns

    Rounded result

  84. def foreachReflectableNameables(doThat: (Any) => Unit): Unit
    Definition Classes
    Nameable
  85. def foreachTag(body: (SpinalTag) => Unit): Unit
    Definition Classes
    SpinalTagReady
  86. val fracWidth: Int
  87. def freeze(): AFix.this.type
    Definition Classes
    MultiDataData
  88. def genIf(cond: Boolean): AFix.this.type

    Generate this if condition is true

    Generate this if condition is true

    Definition Classes
    Data
  89. def getAheadValue(): AFix.this.type
    Definition Classes
    Data
  90. def getBitsWidth: Int

    Return the width of the data

    Return the width of the data

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

    Get current component with all parents

    Get current component with all parents

    Definition Classes
    InComponent
  94. def getDirection: IODirection
    Definition Classes
    Data
  95. def getDisplayName(): String
    Definition Classes
    Nameable
  96. def getInstanceCounter: Int
    Definition Classes
    ContextUser
  97. def getMode: Byte
    Attributes
    protected
    Definition Classes
    Nameable
  98. def getName(default: String): String
    Definition Classes
    NameableByComponentNameable
  99. def getName(): String
    Definition Classes
    NameableByComponentNameable
  100. def getPartialName(): String
    Definition Classes
    Nameable
  101. def getRealSource: Any
    Definition Classes
    Assignable
  102. def getRealSourceNoRec: Any
    Definition Classes
    DataAssignable
  103. def getRefOwnersChain(): List[Any]
    Definition Classes
    OwnableRef
  104. def getRootParent: Data
    Definition Classes
    Data
  105. def getRtlPath(separator: String = "/"): String
    Definition Classes
    Data
  106. def getScalaLocationLong: String
    Definition Classes
    ScalaLocated
  107. def getScalaLocationShort: String
    Definition Classes
    ScalaLocated
  108. def getScalaTrace(): Throwable
    Definition Classes
    ScalaLocated
  109. def getTag[T <: SpinalTag](clazz: Class[T]): Option[T]
    Definition Classes
    SpinalTagReady
  110. def getTags(): LinkedHashSet[SpinalTag]
    Definition Classes
    SpinalTagReady
  111. def getZero: AFix.this.type

    Create a data set to 0

    Create a data set to 0

    Definition Classes
    MultiDataData
  112. val globalData: GlobalData
    Definition Classes
    GlobalDataUser
  113. def hasTag[T <: SpinalTag](clazz: Class[T]): Boolean
    Definition Classes
    SpinalTagReady
  114. def hasTag(spinalTag: SpinalTag): Boolean
    Definition Classes
    SpinalTagReady
  115. def hashCode(): Int
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  116. final def initFrom(that: AnyRef, target: AnyRef = this): Unit
    Definition Classes
    Data
  117. def instanceAttributes(language: Language): Iterable[Attribute]
    Definition Classes
    SpinalTagReady
  118. def instanceAttributes: Iterable[Attribute]
    Definition Classes
    SpinalTagReady
  119. val intWidth: Int
  120. def isAnalog: Boolean
    Definition Classes
    Data
  121. def isComb: Boolean
    Definition Classes
    Data
  122. def isCompletelyUnnamed: Boolean
    Definition Classes
    Nameable
  123. def isDirectionLess: Boolean
    Definition Classes
    Data
  124. def isEmptyOfTag: Boolean
    Definition Classes
    SpinalTagReady
  125. def isInOut: Boolean
    Definition Classes
    Data
  126. def isInput: Boolean
    Definition Classes
    Data
  127. def isInputOrInOut: Boolean
    Definition Classes
    Data
  128. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  129. def isNamed: Boolean
    Definition Classes
    NameableByComponentNameable
  130. def isOutput: Boolean
    Definition Classes
    Data
  131. def isOutputOrInOut: Boolean
    Definition Classes
    Data
  132. def isPriorityApplicable(namePriority: Byte): Boolean
    Definition Classes
    Nameable
  133. def isReg: Boolean
    Definition Classes
    Data
  134. def isUnnamed: Boolean
    Definition Classes
    Nameable
  135. val maxValue: BigInt
  136. val minValue: BigInt
  137. val name: String
    Definition Classes
    Nameable
  138. val nameableRef: Nameable
    Attributes
    protected
    Definition Classes
    Nameable
    Annotations
    @DontName()
  139. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  140. def negate(): AFix
  141. def noBackendCombMerge: AFix.this.type
    Definition Classes
    Data
  142. def noCombLoopCheck: AFix.this.type
    Definition Classes
    Data
  143. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  144. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  145. def onEachAttributes(doIt: (Attribute) => Unit): Unit
    Definition Classes
    SpinalTagReady
  146. def overrideLocalName(name: String): AFix.this.type
    Definition Classes
    Nameable
  147. val parent: Data
    Definition Classes
    Data
  148. val parentScope: ScopeStatement
    Definition Classes
    ContextUser
  149. def pull(propagateName: Boolean): AFix.this.type
    Definition Classes
    Data
  150. 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
  151. def purify(): AFix.this.type
    Definition Classes
    Data
  152. 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
  153. val raw: Bits
  154. val refOwner: RefOwnerType
    Definition Classes
    OwnableRef
    Annotations
    @DontName()
  155. def reflectNames(): Unit
    Definition Classes
    Nameable
  156. def removeAssignments(): AFix.this.type
    Definition Classes
    Data
  157. def removeTag(spinalTag: SpinalTag): AFix.this.type
    Definition Classes
    SpinalTagReady
  158. def removeTags(tags: Iterable[SpinalTag]): AFix.this.type
    Definition Classes
    SpinalTagReady
  159. def resized: AFix.this.type

    Resized data regarding target

    Resized data regarding target

    Definition Classes
    Data
  160. def roundHalfDown(): 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

  161. def roundHalfToEven(): 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

  162. def roundHalfToInf(): 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

  163. def roundHalfToOdd(): 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

  164. def roundHalfToZero(): 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

  165. def roundHalfUp(): 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

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

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

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

  169. def saturated(): AFix
  170. val scalaTrace: Throwable
    Definition Classes
    ScalaLocated
  171. def setAsAnalog(): AFix.this.type
    Definition Classes
    Data
  172. def setAsComb(): AFix.this.type

    Set baseType to Combinatorial

    Set baseType to Combinatorial

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

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

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

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

    Set baseType to reg

    Set baseType to reg

    Definition Classes
    MultiDataData
  175. def setCompositeName(nameable: Nameable, postfix: String, namePriority: Byte): AFix.this.type
    Definition Classes
    Nameable
  176. def setCompositeName(nameable: Nameable, postfix: String, weak: Boolean): AFix.this.type
    Definition Classes
    Nameable
  177. def setCompositeName(nameable: Nameable, postfix: String): AFix.this.type
    Definition Classes
    Nameable
  178. def setCompositeName(nameable: Nameable, namePriority: Byte): AFix.this.type
    Definition Classes
    Nameable
  179. def setCompositeName(nameable: Nameable, weak: Boolean): AFix.this.type
    Definition Classes
    Nameable
  180. def setCompositeName(nameable: Nameable): AFix.this.type
    Definition Classes
    Nameable
  181. def setName(name: String, namePriority: Byte): AFix.this.type
    Definition Classes
    Nameable
  182. def setName(name: String, weak: Boolean): AFix.this.type
    Definition Classes
    Nameable
  183. def setName(name: String): AFix.this.type
    Definition Classes
    Nameable
  184. def setNameAsWeak(): AFix.this.type
    Definition Classes
    Nameable
  185. def setPartialName(name: String, namePriority: Byte, owner: Any): AFix.this.type
    Definition Classes
    Nameable
  186. def setPartialName(name: String, namePriority: Byte): AFix.this.type
    Definition Classes
    Nameable
  187. def setPartialName(name: String, weak: Boolean): AFix.this.type
    Definition Classes
    Nameable
  188. def setPartialName(owner: Nameable, name: String, namePriority: Byte): AFix.this.type
    Definition Classes
    Nameable
  189. def setPartialName(owner: Nameable, name: String, weak: Boolean): AFix.this.type
    Definition Classes
    Nameable
  190. def setPartialName(name: String): AFix.this.type
    Definition Classes
    Nameable
  191. def setPartialName(owner: Nameable, name: String): AFix.this.type
    Definition Classes
    Nameable
  192. def setRefOwner(that: Any): Unit
    Definition Classes
    OwnableRef
  193. def setScalaLocated(source: ScalaLocated): AFix.this.type
    Definition Classes
    ScalaLocated
  194. def setWeakName(name: String): AFix.this.type
    Definition Classes
    Nameable
  195. val signWidth: Int
  196. val signed: Boolean
  197. def spinalTags: LinkedHashSet[SpinalTag]
    Definition Classes
    SpinalTagReady
  198. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  199. def toIo(): AFix.this.type
    Definition Classes
    Data
  200. def toString(): String
    Definition Classes
    AFixNameable → AnyRef → Any
  201. def truncate(): AFix
  202. def truncated(saturation: Boolean = false, overflow: Boolean = true, rounding: RoundType = RoundType.FLOOR): AFix
  203. def unary_-(): AFix
  204. def unfreeze(): AFix.this.type
    Definition Classes
    MultiDataData
  205. def unsetName(): AFix.this.type
    Definition Classes
    Nameable
  206. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  207. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  208. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  209. val wholeWidth: Int
  210. def wrapNext(): AFix.this.type
    Definition Classes
    Data
  211. def zipByName(that: MultiData, rec: ArrayBuffer[(BaseType, BaseType)] = ArrayBuffer()): ArrayBuffer[(BaseType, BaseType)]
    Definition Classes
    MultiData

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

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