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, 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. Product
  4. Equals
  5. Bundle
  6. ValCallbackRec
  7. ValCallback
  8. MultiData
  9. Data
  10. InComponent
  11. OverridedEqualsHashCode
  12. SpinalTagReady
  13. Assignable
  14. NameableByComponent
  15. Nameable
  16. OwnableRef
  17. ContextUser
  18. ScalaLocated
  19. GlobalDataUser
  20. AnyRef
  21. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. val _spinalTags: LinkedHashSet[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: Int): RecFloating.this.type
    Definition Classes
    SpinalTagReady
  20. def addAttribute(name: String, value: String): RecFloating.this.type
    Definition Classes
    SpinalTagReady
  21. def addAttribute(name: String): RecFloating.this.type
    Definition Classes
    SpinalTagReady
  22. def addTag[T <: SpinalTag](spinalTag: T): RecFloating.this.type
    Definition Classes
    MultiData → SpinalTagReady
  23. def addTags[T <: SpinalTag](tags: Iterable[T]): RecFloating.this.type
    Definition Classes
    SpinalTagReady
  24. def allowDirectionLessIo: RecFloating.this.type
    Definition Classes
    Data
  25. def allowOverride: RecFloating.this.type
    Definition Classes
    Data
  26. def allowPartialyAssigned: RecFloating.this.type
    Definition Classes
    Data
  27. def allowPruning(): RecFloating.this.type
    Definition Classes
    Data
  28. def allowSimplifyIt(): RecFloating.this.type
    Definition Classes
    Data
  29. def allowUnsetRegToAvoidLatch: RecFloating.this.type
    Definition Classes
    Data
  30. def as[T <: Data](dataType: HardType[T]): T
    Definition Classes
    Data
  31. def asBits: Bits
    Definition Classes
    MultiData → Data
  32. def asData: Data
    Definition Classes
    Data
  33. def asInOut(): RecFloating.this.type
    Definition Classes
    MultiData → Data
  34. def asInput(): RecFloating.this.type
    Definition Classes
    MultiData → Data
  35. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  36. def asOutput(): RecFloating.this.type
    Definition Classes
    MultiData → Data
  37. def assignAllByName(that: Bundle): Unit
    Definition Classes
    Bundle
  38. def assignDontCare(): RecFloating.this.type
    Definition Classes
    Data
  39. final def assignFrom(that: AnyRef, target: AnyRef): Unit
    Definition Classes
    Data
  40. def assignFromBits(bits: Bits, hi: Int, lo: Int): Unit
    Definition Classes
    MultiData → Data
  41. def assignFromBits(bits: Bits): Unit
    Definition Classes
    MultiData → Data
  42. def assignFromBits(bits: Bits, offset: Int, bitCount: BitCount): Unit
    Definition Classes
    Data
  43. def assignSomeByName(that: Bundle): Unit
    Definition Classes
    Bundle
  44. def assignTo(that: SInt): Unit

    Overrides assignment operator

    Overrides assignment operator

    that

    Integer number that will be assigned to the converted floating value

  45. def assignTo(that: UInt): Unit

    Overrides assignment operator

    Overrides assignment operator

    that

    Integer number that will be assigned to the converted floating value

  46. def clone(): Bundle
    Definition Classes
    Bundle → Data → AnyRef
  47. def component: Component
    Definition Classes
    ContextUser
  48. final def compositAssignFrom(that: AnyRef, target: AnyRef, kind: AnyRef): Unit
    Definition Classes
    Assignable
  49. val compositeAssign: Assignable
    Definition Classes
    Assignable
  50. def copyDirectionOfImpl(that: Data): RecFloating.this.type
    Definition Classes
    MultiData → Data
  51. def dirString(): String
    Definition Classes
    Data
  52. def dontSimplifyIt(): RecFloating.this.type
    Definition Classes
    Data
  53. def elements: ArrayBuffer[(String, Data)]
    Definition Classes
    Bundle → MultiData
  54. def elementsString: String
    Definition Classes
    MultiData
  55. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  56. def equals(obj: Any): Boolean
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  57. def existsTag(cond: (SpinalTag) => Boolean): Boolean
    Definition Classes
    SpinalTagReady
  58. val exponent: Bits

    Exponent field (Berkeley encoded)

  59. val exponentSize: Int
  60. def filterTag(cond: (SpinalTag) => Boolean): Iterable[SpinalTag]
    Definition Classes
    SpinalTagReady
  61. def find(name: String): Data
    Definition Classes
    MultiData
  62. def findTag(cond: (SpinalTag) => Boolean): Option[SpinalTag]
    Definition Classes
    SpinalTagReady
  63. def flatten: Seq[BaseType]
    Definition Classes
    MultiData → Data
  64. def flattenForeach(body: (BaseType) => Unit): Unit
    Definition Classes
    MultiData → Data
  65. def flattenLocalName: Seq[String]
    Definition Classes
    MultiData → Data
  66. def flip(): RecFloating.this.type
    Definition Classes
    MultiData → Data
  67. def foreachReflectableNameables(doThat: (Any) => Unit): Unit
    Definition Classes
    Nameable
  68. def foreachTag(body: (SpinalTag) => Unit): Unit
    Definition Classes
    SpinalTagReady
  69. def freeze(): RecFloating.this.type
    Definition Classes
    MultiData → Data
  70. def fromFloating(that: Floating): RecFloating

    Import from an IEEE 754 floating point number

  71. def fromSFix(that: SFix): RecFloating

    Import from SFix

  72. def fromSInt(that: SInt): RecFloating

    Import from SInt

  73. def fromUFix(that: UFix): RecFloating

    Import from UFix

  74. def fromUInt(that: UInt): RecFloating

    Import from UInt

  75. def genIf(cond: Boolean): RecFloating.this.type
    Definition Classes
    Data
  76. def getBitsWidth: Int
    Definition Classes
    MultiData → Data
  77. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  78. def getComponent(): Component
    Definition Classes
    Data → InComponent → NameableByComponent
  79. def getComponents(): Seq[Component]
    Definition Classes
    InComponent
  80. def getDirection: IODirection
    Definition Classes
    Data
  81. def getDisplayName(): String
    Definition Classes
    Nameable
  82. def getExponentBias: Int

    Value of the exponent bias for this float configuration

  83. def getExponentZero: Int

    Value of the recoded exponent corresponding to the smallest exponent

  84. def getInstanceCounter: Int
    Definition Classes
    ContextUser
  85. def getMode: Byte
    Attributes
    protected
    Definition Classes
    Nameable
  86. def getName(default: String): String
    Definition Classes
    NameableByComponent → Nameable
  87. def getName(): String
    Definition Classes
    NameableByComponent → Nameable
  88. def getPartialName(): String
    Definition Classes
    Nameable
  89. def getRealSource: Any
    Definition Classes
    Assignable
  90. def getRealSourceNoRec: Any
    Definition Classes
    Data → Assignable
  91. def getRefOwnersChain(): List[Any]
    Definition Classes
    OwnableRef
  92. def getRootParent: Data
    Definition Classes
    Data
  93. def getScalaLocationLong: String
    Definition Classes
    ScalaLocated
  94. def getScalaLocationShort: String
    Definition Classes
    ScalaLocated
  95. def getScalaTrace(): Throwable
    Definition Classes
    ScalaLocated
  96. def getTag[T <: SpinalTag](clazz: Class[T]): Option[T]
    Definition Classes
    SpinalTagReady
  97. def getTags(): LinkedHashSet[SpinalTag]
    Definition Classes
    SpinalTagReady
  98. def getTypeString: String
    Definition Classes
    Bundle
  99. def getZero: RecFloating.this.type
    Definition Classes
    MultiData → Data
  100. val globalData: GlobalData
    Definition Classes
    GlobalDataUser
  101. var hardtype: HardType[_]
    Definition Classes
    Bundle
  102. def hasTag[T <: SpinalTag](clazz: Class[T]): Boolean
    Definition Classes
    SpinalTagReady
  103. def hasTag(spinalTag: SpinalTag): Boolean
    Definition Classes
    SpinalTagReady
  104. def hashCode(): Int
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  105. def init(that: BigDecimal): RecFloating.this.type

    Initialization function

    Initialization function

    that

    initialization value

    returns

    returns initialized object

  106. final def initFrom(that: AnyRef, target: AnyRef): Unit
    Definition Classes
    Data
  107. def instanceAttributes(language: Language): Iterable[Attribute]
    Definition Classes
    SpinalTagReady
  108. def instanceAttributes: Iterable[Attribute]
    Definition Classes
    SpinalTagReady
  109. def isAnalog: Boolean
    Definition Classes
    Data
  110. def isComb: Boolean
    Definition Classes
    Data
  111. def isCompletelyUnnamed: Boolean
    Definition Classes
    Nameable
  112. def isDirectionLess: Boolean
    Definition Classes
    Data
  113. def isEmptyOfTag: Boolean
    Definition Classes
    SpinalTagReady
  114. def isInOut: Boolean
    Definition Classes
    Data
  115. def isInfinite: Bool
  116. def isInput: Boolean
    Definition Classes
    Data
  117. def isInputOrInOut: Boolean
    Definition Classes
    Data
  118. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  119. def isNaN: Bool

    Return true is the value is a NaN

  120. def isNamed: Boolean
    Definition Classes
    NameableByComponent → Nameable
  121. def isNormal: Bool

    Return true if the number is normal

  122. def isOutput: Boolean
    Definition Classes
    Data
  123. def isOutputOrInOut: Boolean
    Definition Classes
    Data
  124. def isPositive: Bool

    Return true if the value is positive

  125. def isPriorityApplicable(namePriority: Byte): Boolean
    Definition Classes
    Nameable
  126. def isQNaN: Bool

    Return true if the value is a Quiet NaN

  127. def isReg: Boolean
    Definition Classes
    Data
  128. def isSNaN: Bool

    Return true if the value is a Signalling NaN

  129. def isSpecial: Bool

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

  130. def isSubnormal: Bool

    Return true if the number is subnormal

  131. def isUnnamed: Boolean
    Definition Classes
    Nameable
  132. def isZero: Bool

    Return true if the number is +- zero

  133. def keep(): RecFloating.this.type
    Definition Classes
    Data
  134. val mantissa: Bits

    Mantissa field without the implicit first bit

  135. val mantissaSize: Int
  136. val name: String
    Attributes
    protected
    Definition Classes
    Nameable
  137. val nameableRef: Nameable
    Attributes
    protected
    Definition Classes
    Nameable
    Annotations
    @DontName()
  138. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  139. def noBackendCombMerge: RecFloating.this.type
    Definition Classes
    Data
  140. def noCombLoopCheck: RecFloating.this.type
    Definition Classes
    Data
  141. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  142. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  143. def onEachAttributes(doIt: (Attribute) => Unit): Unit
    Definition Classes
    SpinalTagReady
  144. def overrideLocalName(name: String): RecFloating.this.type
    Definition Classes
    Nameable
  145. val parent: Data
    Definition Classes
    Data
  146. val parentScope: ScopeStatement
    Definition Classes
    ContextUser
  147. def productElementNames: Iterator[String]
    Definition Classes
    Product
  148. def pull(): RecFloating.this.type
    Definition Classes
    Data
  149. def purify(): RecFloating.this.type
    Definition Classes
    Data
  150. def randBoot(u: Unit): RecFloating.this.type
    Definition Classes
    Data
  151. val refOwner: RefOwnerType
    Definition Classes
    OwnableRef
    Annotations
    @DontName()
  152. def reflectNames(): Unit
    Definition Classes
    Nameable
  153. def removeAssignments(): RecFloating.this.type
    Definition Classes
    Data
  154. def removeTag(spinalTag: SpinalTag): RecFloating.this.type
    Definition Classes
    SpinalTagReady
  155. def removeTags(tags: Iterable[SpinalTag]): RecFloating.this.type
    Definition Classes
    SpinalTagReady
  156. def resized: RecFloating.this.type
    Definition Classes
    Data
  157. val scalaTrace: Throwable
    Definition Classes
    ScalaLocated
  158. def setAsAnalog(): RecFloating.this.type
    Definition Classes
    Data
  159. def setAsComb(): RecFloating.this.type
    Definition Classes
    MultiData → Data
  160. def setAsDirectionLess(): RecFloating.this.type
    Definition Classes
    MultiData → Data
  161. def setAsReg(): RecFloating.this.type
    Definition Classes
    MultiData → Data
  162. def setCompositeName(nameable: Nameable, postfix: String, namePriority: Byte): RecFloating.this.type
    Definition Classes
    Nameable
  163. def setCompositeName(nameable: Nameable, postfix: String, weak: Boolean): RecFloating.this.type
    Definition Classes
    Nameable
  164. def setCompositeName(nameable: Nameable, postfix: String): RecFloating.this.type
    Definition Classes
    Nameable
  165. def setCompositeName(nameable: Nameable, namePriority: Byte): RecFloating.this.type
    Definition Classes
    Nameable
  166. def setCompositeName(nameable: Nameable, weak: Boolean): RecFloating.this.type
    Definition Classes
    Nameable
  167. def setCompositeName(nameable: Nameable): RecFloating.this.type
    Definition Classes
    Nameable
  168. def setName(name: String, namePriority: Byte): RecFloating.this.type
    Definition Classes
    Nameable
  169. def setName(name: String, weak: Boolean): RecFloating.this.type
    Definition Classes
    Nameable
  170. def setName(name: String): RecFloating.this.type
    Definition Classes
    Nameable
  171. def setNameAsWeak(): RecFloating.this.type
    Definition Classes
    Nameable
  172. def setPartialName(name: String, namePriority: Byte): RecFloating.this.type
    Definition Classes
    Nameable
  173. def setPartialName(name: String, weak: Boolean): RecFloating.this.type
    Definition Classes
    Nameable
  174. def setPartialName(owner: Nameable, name: String, namePriority: Byte): RecFloating.this.type
    Definition Classes
    Nameable
  175. def setPartialName(owner: Nameable, name: String, weak: Boolean): RecFloating.this.type
    Definition Classes
    Nameable
  176. def setPartialName(name: String): RecFloating.this.type
    Definition Classes
    Nameable
  177. def setPartialName(owner: Nameable, name: String): RecFloating.this.type
    Definition Classes
    Nameable
  178. def setRefOwner(that: Any): Unit
    Definition Classes
    OwnableRef
  179. def setScalaLocated(source: ScalaLocated): RecFloating.this.type
    Definition Classes
    ScalaLocated
  180. def setWeakName(name: String): RecFloating.this.type
    Definition Classes
    Nameable
  181. val sign: Bool

    Sign field (true when negative)

  182. def spinalTags: LinkedHashSet[SpinalTag]
    Definition Classes
    SpinalTagReady
  183. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  184. def toFloating: Floating

    Convert to classic IEEE 754 floating point number

  185. def toIo(): RecFloating.this.type
    Definition Classes
    Data
  186. def toSFix(peak: ExpNumber, resolution: ExpNumber): SFix

    Convert floating point to SFix with resolution

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

    Convert floating point to SFix with width

  188. def toSInt(width: Int): SInt

    Convert floating point to SInt

  189. def toString(): String
    Definition Classes
    Bundle → Nameable → AnyRef → Any
  190. def toUFix(peak: ExpNumber, resolution: ExpNumber): UFix

    Convert floating point to SFix with resolution

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

    Convert floating point to SFix with width

  192. def toUInt(width: Int): UInt

    Convert floating point to UInt

  193. def unfreeze(): RecFloating.this.type
    Definition Classes
    MultiData → Data
  194. def unsetName(): RecFloating.this.type
    Definition Classes
    Nameable
  195. def valCallback[T](ref: T, name: String): T
    Definition Classes
    ValCallbackRec → ValCallback
  196. def valCallbackOn(ref: Any, name: String, refs: Set[Any]): Unit
    Definition Classes
    ValCallbackRec
  197. def valCallbackRec(ref: Any, name: String): Unit
    Definition Classes
    Bundle → ValCallbackRec
  198. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  199. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  200. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  201. def wrapNext(): RecFloating.this.type
    Definition Classes
    Data

Deprecated Value Members

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