Class

spinal.lib.experimental.math

RecFloating

Related Doc: package math

Permalink

case class RecFloating(exponentSize: Int, mantissaSize: Int) extends Bundle with Product with Serializable

Floating point value recoded using Berkeley encoding (see https://github.com/ucb-bar/berkeley-hardfloat)

exponentSize

Recoded exponent size (1 bit wider than the IEEE754 equivalent float)

mantissaSize

Mantissa field size with the implicit one not included

Linear Supertypes
Serializable, Serializable, Product, Equals, Bundle, ValCallbackRec, ValCallback, MultiData, Data, InComponent, OverridedEqualsHashCode, SpinalTagReady, Assignable, NameableByComponent, Nameable, OwnableRef, ContextUser, ScalaLocated, GlobalDataUser, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RecFloating
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Bundle
  7. ValCallbackRec
  8. ValCallback
  9. MultiData
  10. Data
  11. InComponent
  12. OverridedEqualsHashCode
  13. SpinalTagReady
  14. Assignable
  15. NameableByComponent
  16. Nameable
  17. OwnableRef
  18. ContextUser
  19. ScalaLocated
  20. GlobalDataUser
  21. AnyRef
  22. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RecFloating(exponentSize: Int, mantissaSize: Int)

    Permalink

    exponentSize

    Recoded exponent size (1 bit wider than the IEEE754 equivalent float)

    mantissaSize

    Mantissa field size with the implicit one not included

Type Members

  1. abstract type RefOwnerType

    Permalink
    Definition Classes
    OwnableRef

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def :=(that: BigDecimal): Unit

    Permalink

    Assign double value to the Floating

    Assign double value to the Floating

    that

    BigDecimal value

  5. def <(that: BigDecimal): Bool

    Permalink

    Less than constant

    Less than constant

    that

    other side of the comparison

    returns

    true is this value is smaller than that

  6. def <(that: RecFloating): Bool

    Permalink

    Less than

    Less than

    that

    other side of the comparison

    returns

    true is this value is smaller than that

  7. def <=(that: BigDecimal): Bool

    Permalink

    Less than or equal to constant

    Less than or equal to constant

    that

    other side of the comparison

    returns

    true is this value is smaller or equal to that

  8. def <=(that: RecFloating): Bool

    Permalink

    Less than or equal

    Less than or equal

    that

    other side of the comparison

    returns

    true is this value is smaller or equal to that

  9. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def ===(that: BigDecimal): Bool

    Permalink

    Equals to constant

    Equals to constant

    that

    other side of the comparison

    returns

    true is this value equals to that

  11. def ===(that: RecFloating): Bool

    Permalink

    Equals

    Equals

    that

    other side of the comparison

    returns

    true is this value equals to that

  12. def >(that: BigDecimal): Bool

    Permalink

    Greater than constant

    Greater than constant

    that

    other side of the comparison

    returns

    true is this value is greater than that

  13. def >(that: RecFloating): Bool

    Permalink

    Greater than

    Greater than

    that

    other side of the comparison

    returns

    true is this value is greater than that

  14. def >=(that: BigDecimal): Bool

    Permalink

    Greater than or equal to constant

    Greater than or equal to constant

    that

    other side of the comparison

    returns

    true is this value is greater of equal to that

  15. def >=(that: RecFloating): Bool

    Permalink

    Greater than or equal

    Greater than or equal

    that

    other side of the comparison

    returns

    true is this value is greater of equal to that

  16. var _spinalTags: LinkedHashSet[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  17. def abs: RecFloating

    Permalink

    Absolute value

    Absolute value

    returns

    Absolute value of this float

  18. def addAttribute(attribute: Attribute): RecFloating.this.type

    Permalink
    Definition Classes
    Data → SpinalTagReady
  19. def addAttribute(name: String, value: Int): RecFloating.this.type

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

    Permalink
    Definition Classes
    SpinalTagReady
  21. def addAttribute(name: String): RecFloating.this.type

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

    Permalink
    Definition Classes
    MultiData → SpinalTagReady
  23. def addTags[T <: SpinalTag](tags: Iterable[T]): RecFloating.this.type

    Permalink
    Definition Classes
    SpinalTagReady
  24. def allowDirectionLessIo: RecFloating.this.type

    Permalink
    Definition Classes
    Data
  25. def allowOverride: RecFloating.this.type

    Permalink
    Definition Classes
    Data
  26. def allowPartialyAssigned: RecFloating.this.type

    Permalink
    Definition Classes
    Data
  27. def allowPruning(): RecFloating.this.type

    Permalink
    Definition Classes
    Data
  28. def allowSimplifyIt(): RecFloating.this.type

    Permalink
    Definition Classes
    Data
  29. def allowUnsetRegToAvoidLatch: RecFloating.this.type

    Permalink
    Definition Classes
    Data
  30. def as[T <: Data](dataType: HardType[T]): T

    Permalink
    Definition Classes
    Data
  31. def asBits: Bits

    Permalink
    Definition Classes
    MultiData → Data
  32. def asData: Data

    Permalink
    Definition Classes
    Data
  33. def asInOut(): RecFloating.this.type

    Permalink
    Definition Classes
    MultiData → Data
  34. def asInput(): RecFloating.this.type

    Permalink
    Definition Classes
    MultiData → Data
  35. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  36. def asOutput(): RecFloating.this.type

    Permalink
    Definition Classes
    MultiData → Data
  37. def assignAllByName(that: Bundle): Unit

    Permalink
    Definition Classes
    Bundle
  38. def assignDontCare(): RecFloating.this.type

    Permalink
    Definition Classes
    Data
  39. final def assignFrom(that: AnyRef, target: AnyRef): Unit

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

    Permalink
    Definition Classes
    MultiData → Data
  41. def assignFromBits(bits: Bits): Unit

    Permalink
    Definition Classes
    MultiData → Data
  42. def assignFromBits(bits: Bits, offset: Int, bitCount: BitCount): Unit

    Permalink
    Definition Classes
    Data
  43. def assignSomeByName(that: Bundle): Unit

    Permalink
    Definition Classes
    Bundle
  44. def assignTo(that: SInt): Unit

    Permalink

    Overrides assignment operator

    Overrides assignment operator

    that

    Integer number that will be assigned to the converted floating value

  45. def assignTo(that: UInt): Unit

    Permalink

    Overrides assignment operator

    Overrides assignment operator

    that

    Integer number that will be assigned to the converted floating value

  46. def clone(): Bundle

    Permalink
    Definition Classes
    Bundle → Data → AnyRef
  47. def component: Component

    Permalink
    Definition Classes
    ContextUser
  48. final def compositAssignFrom(that: AnyRef, target: AnyRef, kind: AnyRef): Unit

    Permalink
    Definition Classes
    Assignable
  49. var compositeAssign: Assignable

    Permalink
    Definition Classes
    Assignable
  50. def copyDirectionOfImpl(that: Data): RecFloating.this.type

    Permalink
    Definition Classes
    MultiData → Data
  51. def dirString(): String

    Permalink
    Definition Classes
    Data
  52. def dontSimplifyIt(): RecFloating.this.type

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

    Permalink
    Definition Classes
    Bundle → MultiData
  54. def elementsString: String

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

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  58. val exponent: Bits

    Permalink

    Exponent field (Berkeley encoded)

  59. val exponentSize: Int

    Permalink

    Recoded exponent size (1 bit wider than the IEEE754 equivalent float)

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

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  63. def flatten: Seq[BaseType]

    Permalink
    Definition Classes
    MultiData → Data
  64. def flattenForeach(body: (BaseType) ⇒ Unit): Unit

    Permalink
    Definition Classes
    MultiData → Data
  65. def flattenLocalName: Seq[String]

    Permalink
    Definition Classes
    MultiData → Data
  66. def flip(): RecFloating.this.type

    Permalink
    Definition Classes
    MultiData → Data
  67. def foreachReflectableNameables(doThat: (Any) ⇒ Unit): Unit

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

    Permalink
    Definition Classes
    SpinalTagReady
  69. def fromFloating(that: Floating): RecFloating

    Permalink

    Import from an IEEE 754 floating point number

  70. def fromSFix(that: SFix): RecFloating

    Permalink

    Import from SFix

  71. def fromSInt(that: SInt): RecFloating

    Permalink

    Import from SInt

  72. def fromUFix(that: UFix): RecFloating

    Permalink

    Import from UFix

  73. def fromUInt(that: UInt): RecFloating

    Permalink

    Import from UInt

  74. def genIf(cond: Boolean): RecFloating.this.type

    Permalink
    Definition Classes
    Data
  75. def getBitsWidth: Int

    Permalink
    Definition Classes
    MultiData → Data
  76. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Data → InComponent → NameableByComponent
  78. def getComponents(): Seq[Component]

    Permalink
    Definition Classes
    InComponent
  79. def getDirection: IODirection

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

    Permalink
    Definition Classes
    Nameable
  81. def getExponentBias: Int

    Permalink

    Value of the exponent bias for this float configuration

  82. def getExponentZero: Int

    Permalink

    Value of the recoded exponent corresponding to the smallest exponent

  83. def getInstanceCounter: Int

    Permalink
    Definition Classes
    ContextUser
  84. def getMode: Byte

    Permalink
    Attributes
    protected
    Definition Classes
    Nameable
  85. def getName(default: String): String

    Permalink
    Definition Classes
    NameableByComponent → Nameable
  86. def getName(): String

    Permalink
    Definition Classes
    NameableByComponent → Nameable
  87. def getPartialName(): String

    Permalink
    Definition Classes
    Nameable
  88. def getRealSource: Any

    Permalink
    Definition Classes
    Assignable
  89. def getRealSourceNoRec: Any

    Permalink
    Definition Classes
    Data → Assignable
  90. def getRefOwnersChain(): List[Any]

    Permalink
    Definition Classes
    OwnableRef
  91. def getRootParent: Data

    Permalink
    Definition Classes
    Data
  92. def getScalaLocationLong: String

    Permalink
    Definition Classes
    ScalaLocated
  93. def getScalaLocationShort: String

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

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  97. def getTypeString: String

    Permalink
    Definition Classes
    Bundle
  98. def getZero: RecFloating.this.type

    Permalink
    Definition Classes
    MultiData → Data
  99. val globalData: GlobalData

    Permalink
    Definition Classes
    GlobalDataUser
  100. var hardtype: HardType[_]

    Permalink
    Definition Classes
    Bundle
  101. def hasTag[T <: SpinalTag](clazz: Class[T]): Boolean

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

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

    Permalink
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  104. def init(that: BigDecimal): RecFloating.this.type

    Permalink

    Initialization function

    Initialization function

    that

    initialization value

    returns

    returns initialized object

  105. final def initFrom(that: AnyRef, target: AnyRef): Unit

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  108. def isAnalog: Boolean

    Permalink
    Definition Classes
    Data
  109. def isComb: Boolean

    Permalink
    Definition Classes
    Data
  110. def isCompletelyUnnamed: Boolean

    Permalink
    Definition Classes
    Nameable
  111. def isDirectionLess: Boolean

    Permalink
    Definition Classes
    Data
  112. def isEmptyOfTag: Boolean

    Permalink
    Definition Classes
    SpinalTagReady
  113. def isInOut: Boolean

    Permalink
    Definition Classes
    Data
  114. def isInfinite: Bool

    Permalink
  115. def isInput: Boolean

    Permalink
    Definition Classes
    Data
  116. def isInputOrInOut: Boolean

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

    Permalink
    Definition Classes
    Any
  118. def isNaN: Bool

    Permalink

    Return true is the value is a NaN

  119. def isNamed: Boolean

    Permalink
    Definition Classes
    NameableByComponent → Nameable
  120. def isNormal: Bool

    Permalink

    Return true if the number is normal

  121. def isOutput: Boolean

    Permalink
    Definition Classes
    Data
  122. def isOutputOrInOut: Boolean

    Permalink
    Definition Classes
    Data
  123. def isPositive: Bool

    Permalink

    Return true if the value is positive

  124. def isPriorityApplicable(namePriority: Byte): Boolean

    Permalink
    Definition Classes
    Nameable
  125. def isQNaN: Bool

    Permalink

    Return true if the value is a Quiet NaN

  126. def isReg: Boolean

    Permalink
    Definition Classes
    Data
  127. def isSNaN: Bool

    Permalink

    Return true if the value is a Signalling NaN

  128. def isSpecial: Bool

    Permalink

    Return true if the number is a special case (NaN or Inf)

  129. def isSubnormal: Bool

    Permalink

    Return true if the number is subnormal

  130. def isUnnamed: Boolean

    Permalink
    Definition Classes
    Nameable
  131. def isZero: Bool

    Permalink

    Return true if the number is +- zero

  132. def keep(): RecFloating.this.type

    Permalink
    Definition Classes
    Data
  133. val mantissa: Bits

    Permalink

    Mantissa field without the implicit first bit

  134. val mantissaSize: Int

    Permalink

    Mantissa field size with the implicit one not included

  135. var name: String

    Permalink
    Attributes
    protected
    Definition Classes
    Nameable
  136. var nameableRef: Nameable

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

    Permalink
    Definition Classes
    AnyRef
  138. def noBackendCombMerge: RecFloating.this.type

    Permalink
    Definition Classes
    Data
  139. def noCombLoopCheck: RecFloating.this.type

    Permalink
    Definition Classes
    Data
  140. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  142. def onEachAttributes(doIt: (Attribute) ⇒ Unit): Unit

    Permalink
    Definition Classes
    SpinalTagReady
  143. def overrideLocalName(name: String): RecFloating.this.type

    Permalink
    Definition Classes
    Nameable
  144. var parent: Data

    Permalink
    Definition Classes
    Data
  145. var parentScope: ScopeStatement

    Permalink
    Definition Classes
    ContextUser
  146. def pull(): RecFloating.this.type

    Permalink
    Definition Classes
    Data
  147. def purify(): RecFloating.this.type

    Permalink
    Definition Classes
    Data
  148. def randBoot(u: Unit): RecFloating.this.type

    Permalink
    Definition Classes
    Data
  149. var refOwner: RefOwnerType

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

    Permalink
    Definition Classes
    Nameable
  151. def removeAssignments(): RecFloating.this.type

    Permalink
    Definition Classes
    Data
  152. def removeTag(spinalTag: SpinalTag): RecFloating.this.type

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

    Permalink
    Definition Classes
    SpinalTagReady
  154. def resized: RecFloating.this.type

    Permalink
    Definition Classes
    Data
  155. def setAsAnalog(): RecFloating.this.type

    Permalink
    Definition Classes
    Data
  156. def setAsComb(): RecFloating.this.type

    Permalink
    Definition Classes
    MultiData → Data
  157. def setAsDirectionLess(): RecFloating.this.type

    Permalink
    Definition Classes
    MultiData → Data
  158. def setAsReg(): RecFloating.this.type

    Permalink
    Definition Classes
    MultiData → Data
  159. def setCompositeName(nameable: Nameable, postfix: String, namePriority: Byte): RecFloating.this.type

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

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

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

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

    Permalink
    Definition Classes
    Nameable
  164. def setCompositeName(nameable: Nameable): RecFloating.this.type

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

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

    Permalink
    Definition Classes
    Nameable
  167. def setName(name: String): RecFloating.this.type

    Permalink
    Definition Classes
    Nameable
  168. def setNameAsWeak(): RecFloating.this.type

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

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

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

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

    Permalink
    Definition Classes
    Nameable
  173. def setPartialName(name: String): RecFloating.this.type

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

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

    Permalink
    Definition Classes
    OwnableRef
  176. def setScalaLocated(source: ScalaLocated): RecFloating.this.type

    Permalink
    Definition Classes
    ScalaLocated
  177. def setWeakName(name: String): RecFloating.this.type

    Permalink
    Definition Classes
    Nameable
  178. val sign: Bool

    Permalink

    Sign field (true when negative)

  179. def spinalTags: LinkedHashSet[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  180. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  181. def toFloating: Floating

    Permalink

    Convert to classic IEEE 754 floating point number

  182. def toIo(): RecFloating.this.type

    Permalink
    Definition Classes
    Data
  183. def toSFix(peak: ExpNumber, resolution: ExpNumber): SFix

    Permalink

    Convert floating point to SFix with resolution

  184. def toSFix(peak: ExpNumber, width: BitCount): SFix

    Permalink

    Convert floating point to SFix with width

  185. def toSInt(width: Int): SInt

    Permalink

    Convert floating point to SInt

  186. def toString(): String

    Permalink
    Definition Classes
    Bundle → Nameable → AnyRef → Any
  187. def toUFix(peak: ExpNumber, resolution: ExpNumber): UFix

    Permalink

    Convert floating point to SFix with resolution

  188. def toUFix(peak: ExpNumber, width: BitCount): UFix

    Permalink

    Convert floating point to SFix with width

  189. def toUInt(width: Int): UInt

    Permalink

    Convert floating point to UInt

  190. def unsetName(): RecFloating.this.type

    Permalink
    Definition Classes
    Nameable
  191. def valCallback[T](ref: T, name: String): T

    Permalink
    Definition Classes
    ValCallbackRec → ValCallback
  192. def valCallbackOn(ref: Any, name: String, refs: Set[Any]): Unit

    Permalink
    Definition Classes
    ValCallbackRec
  193. def valCallbackRec(ref: Any, name: String): Unit

    Permalink
    Definition Classes
    Bundle → ValCallbackRec
  194. final def wait(arg0: Long, arg1: Int): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Bundle

Inherited from ValCallbackRec

Inherited from ValCallback

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