spinal.lib.experimental.math

RecFloating

Related Doc: package math

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, OverridedEqualsHashCode, MultiData, Data, ScalaLocated, SpinalTagReady, Assignable, NameableByComponent, Nameable, OwnableRef, ContextUser, GlobalDataUser, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RecFloating
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Bundle
  7. OverridedEqualsHashCode
  8. MultiData
  9. Data
  10. ScalaLocated
  11. SpinalTagReady
  12. Assignable
  13. NameableByComponent
  14. Nameable
  15. OwnableRef
  16. ContextUser
  17. GlobalDataUser
  18. AnyRef
  19. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

    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

    Definition Classes
    OwnableRef

Value Members

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

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

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

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

    Assign double value to the Floating

    Assign double value to the Floating

    that

    BigDecimal value

  5. def <(that: BigDecimal): Bool

    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

    Less than

    Less than

    that

    other side of the comparison

    returns

    true is this value is smaller than that

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

    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

    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

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

    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

    Equals

    Equals

    that

    other side of the comparison

    returns

    true is this value equals to that

  12. def >(that: BigDecimal): Bool

    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

    Greater than

    Greater than

    that

    other side of the comparison

    returns

    true is this value is greater than that

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

    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

    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: Set[SpinalTag]

    Definition Classes
    SpinalTagReady
  17. def abs: RecFloating

    Absolute value

    Absolute value

    returns

    Absolute value of this float

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

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

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

    Definition Classes
    SpinalTagReady
  21. def addTag(spinalTag: SpinalTag): RecFloating.this.type

    Definition Classes
    MultiData → SpinalTagReady
  22. def addTags(tags: Iterable[SpinalTag]): RecFloating.this.type

    Definition Classes
    SpinalTagReady
  23. def allowDirectionLessIo: RecFloating.this.type

    Definition Classes
    Data
  24. def allowOverride: RecFloating.this.type

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

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

    Definition Classes
    Data
  27. def allowUnsetRegToAvoidLatch: RecFloating.this.type

    Definition Classes
    Data
  28. def asBits: Bits

    Definition Classes
    MultiData → Data
  29. def asData: Data

    Definition Classes
    Data
  30. def asDirectionLess(): RecFloating.this.type

    Definition Classes
    MultiData → Data
  31. def asInOut(): RecFloating.this.type

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

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

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

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

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

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

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

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

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

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

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

    Overrides assignment operator

    Overrides assignment operator

    that

    Integer number that will be assigned to the converted floating value

  43. def assignTo(that: UInt): Unit

    Overrides assignment operator

    Overrides assignment operator

    that

    Integer number that will be assigned to the converted floating value

  44. def clone(): Bundle

    Definition Classes
    Bundle → Data → AnyRef
  45. var cloneFunc: () ⇒ AnyRef

    Definition Classes
    Bundle
  46. def component: Component

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

    Definition Classes
    Assignable
  48. var compositeAssign: Assignable

    Definition Classes
    Assignable
  49. def dirString(): String

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

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

    Definition Classes
    Bundle → MultiData
  52. def elementsString: String

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

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

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

    Definition Classes
    SpinalTagReady
  56. val exponent: Bits

    Exponent field (Berkeley encoded)

  57. val exponentSize: Int

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

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

    Definition Classes
    SpinalTagReady
  59. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  60. def find(name: String): Data

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

    Definition Classes
    SpinalTagReady
  62. def flatten: Seq[BaseType]

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

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

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

    Definition Classes
    Nameable
  66. def fromFloating(that: Floating): RecFloating

    Import from an IEEE 754 floating point number

  67. def fromSFix(that: SFix): RecFloating

    Import from SFix

  68. def fromSInt(that: SInt): RecFloating

    Import from SInt

  69. def fromUFix(that: UFix): RecFloating

    Import from UFix

  70. def fromUInt(that: UInt): RecFloating

    Import from UInt

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

    Definition Classes
    Data
  72. def getBitsWidth: Int

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

    Definition Classes
    AnyRef → Any
  74. def getComponent(): Component

    Definition Classes
    Data → NameableByComponent
  75. def getComponents(): Seq[Component]

    Definition Classes
    Data
  76. def getDisplayName(): String

    Definition Classes
    Nameable
  77. def getExponentBias: Int

    Value of the exponent bias for this float configuration

  78. def getExponentZero: Int

    Value of the recoded exponent corresponding to the smallest exponent

  79. def getInstanceCounter: Int

    Definition Classes
    ContextUser
  80. def getName(): String

    Definition Classes
    NameableByComponent → Nameable
  81. def getName(default: String): String

    Definition Classes
    Nameable
  82. def getRealSource: Any

    Definition Classes
    Assignable
  83. def getRealSourceNoRec: Any

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

    Definition Classes
    OwnableRef
  85. def getRootParent: Data

    Definition Classes
    Data
  86. def getScalaLocationLong: String

    Definition Classes
    ScalaLocated
  87. def getScalaLocationShort: String

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

    Definition Classes
    SpinalTagReady
  89. def getTypeString: String

    Definition Classes
    Bundle
  90. def getZero: RecFloating.this.type

    Definition Classes
    MultiData → Data
  91. val globalData: GlobalData

    Definition Classes
    GlobalDataUser
  92. def hasTag(spinalTag: SpinalTag): Boolean

    Definition Classes
    SpinalTagReady
  93. def hashCode(): Int

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

    Initialization function

    Initialization function

    that

    initialization value

    returns

    returns initialized object

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

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

    Definition Classes
    SpinalTagReady
  97. def instanceAttributes: Iterable[Attribute]

    Definition Classes
    SpinalTagReady
  98. def isAnalog: Boolean

    Definition Classes
    Data
  99. def isComb: Boolean

    Definition Classes
    Data
  100. def isDirectionLess: Boolean

    Definition Classes
    Data
  101. def isEmptyOfTag: Boolean

    Definition Classes
    SpinalTagReady
  102. def isInOut: Boolean

    Definition Classes
    Data
  103. def isInfinite: Bool

  104. def isInput: Boolean

    Definition Classes
    Data
  105. def isInputOrInOut: Boolean

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

    Definition Classes
    Any
  107. def isNaN: Bool

    Return true is the value is a NaN

  108. def isNamed: Boolean

    Definition Classes
    Nameable
  109. def isNormal: Bool

    Return true if the number is normal

  110. def isOutput: Boolean

    Definition Classes
    Data
  111. def isOutputOrInOut: Boolean

    Definition Classes
    Data
  112. def isPositive: Bool

    Return true if the value is positive

  113. def isQNaN: Bool

    Return true if the value is a Quiet NaN

  114. def isReg: Boolean

    Definition Classes
    Data
  115. def isSNaN: Bool

    Return true if the value is a Signalling NaN

  116. def isSpecial: Bool

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

  117. def isSubnormal: Bool

    Return true if the number is subnormal

  118. def isUnnamed: Boolean

    Definition Classes
    Nameable
  119. def isZero: Bool

    Return true if the number is +- zero

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

    Definition Classes
    Data
  121. val mantissa: Bits

    Mantissa field without the implicit first bit

  122. val mantissaSize: Int

    Mantissa field size with the implicit one not included

  123. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  124. def noBackendCombMerge: RecFloating.this.type

    Definition Classes
    Data
  125. def noCombLoopCheck: RecFloating.this.type

    Definition Classes
    Data
  126. final def notify(): Unit

    Definition Classes
    AnyRef
  127. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  128. def onEachAttributes(doIt: (Attribute) ⇒ Unit): Unit

    Definition Classes
    SpinalTagReady
  129. var parent: Data

    Definition Classes
    Data
  130. var parentScope: ScopeStatement

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

    Definition Classes
    Data
  132. def randBoot(): RecFloating.this.type

    Definition Classes
    Data
  133. var refOwner: RefOwnerType

    Definition Classes
    OwnableRef
  134. def removeAssignments(): RecFloating.this.type

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

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

    Definition Classes
    SpinalTagReady
  137. def resized: RecFloating.this.type

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

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    Nameable
  151. val sign: Bool

    Sign field (true when negative)

  152. def spinalTags: Set[SpinalTag]

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

    Definition Classes
    AnyRef
  154. def toFloating: Floating

    Convert to classic IEEE 754 floating point number

  155. def toSFix(peak: ExpNumber, resolution: ExpNumber): SFix

    Convert floating point to SFix with resolution

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

    Convert floating point to SFix with width

  157. def toSInt(width: Int): SInt

    Convert floating point to SInt

  158. def toString(): String

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

    Convert floating point to SFix with resolution

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

    Convert floating point to SFix with width

  161. def toUInt(width: Int): UInt

    Convert floating point to UInt

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

    Definition Classes
    Nameable
  163. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Bundle

Inherited from OverridedEqualsHashCode

Inherited from MultiData

Inherited from Data

Inherited from ScalaLocated

Inherited from SpinalTagReady

Inherited from Assignable

Inherited from NameableByComponent

Inherited from Nameable

Inherited from OwnableRef

Inherited from ContextUser

Inherited from GlobalDataUser

Inherited from AnyRef

Inherited from Any

Ungrouped