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. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  5. var _spinalTags: Set[SpinalTag]

    Definition Classes
    SpinalTagReady
  6. def addAttribute(attribute: Attribute): RecFloating.this.type

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

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

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

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

    Definition Classes
    SpinalTagReady
  11. def allowSimplifyIt(): RecFloating.this.type

    Definition Classes
    Data
  12. def asBits: Bits

    Definition Classes
    MultiData → Data
  13. def asData: Data

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

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

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

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

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

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

    Definition Classes
    Data
  20. final def assignFrom(that: AnyRef, conservative: Boolean): Unit

    Definition Classes
    Assignable
  21. def assignFromBits(bits: Bits, hi: Int, lo: Int): Unit

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

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

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

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

    Overrides assignment operator

    Overrides assignment operator

    that

    Integer number that will be assigned to the converted floating value

  26. def assignTo(that: UInt): Unit

    Overrides assignment operator

    Overrides assignment operator

    that

    Integer number that will be assigned to the converted floating value

  27. def clone(): Bundle

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

    Definition Classes
    Bundle
  29. var component: Component

    Definition Classes
    ContextUser
  30. var compositeAssign: Assignable

    Definition Classes
    Assignable
  31. def dontSimplifyIt(): RecFloating.this.type

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

    Definition Classes
    Bundle → MultiData
  33. final def eq(arg0: AnyRef): Boolean

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

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

    Definition Classes
    SpinalTagReady
  36. val exponent: Bits

    Exponent field (Berkeley encoded)

  37. val exponentSize: Int

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

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

    Definition Classes
    SpinalTagReady
  39. def finalize(): Unit

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

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

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

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

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

    Definition Classes
    MultiData → Data
  45. def forEachNameables(doThat: (Any) ⇒ Unit): Unit

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

    Import from an IEEE 754 floating point number

  47. def fromSInt(that: SInt): RecFloating

    Import from SInt

  48. def fromUInt(that: UInt): RecFloating

    Import from UInt

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

    Definition Classes
    Data
  50. def getBitsWidth: Int

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

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

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

    Definition Classes
    Data
  54. def getDisplayName(): String

    Definition Classes
    Nameable
  55. def getInstanceCounter: Int

    Definition Classes
    ContextUser
  56. def getName(): String

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

    Definition Classes
    Nameable
  58. def getRefOwnersChain(): List[Any]

    Definition Classes
    OwnableRef
  59. def getRootParent: Data

    Definition Classes
    Data
  60. def getScalaLocationLong: String

    Definition Classes
    ScalaLocated
  61. def getScalaLocationShort: String

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

    Definition Classes
    SpinalTagReady
  63. def getTypeString: String

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

    Definition Classes
    MultiData → Data
  65. val globalData: GlobalData

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

    Definition Classes
    SpinalTagReady
  67. def hashCode(): Int

    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  68. def instanceAttributes: Iterable[Attribute]

    Definition Classes
    SpinalTagReady
  69. def isDirectionLess: Boolean

    Definition Classes
    Data
  70. def isEmptyOfTag: Boolean

    Definition Classes
    SpinalTagReady
  71. def isInfinite: Bool

  72. def isInput: Boolean

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

    Definition Classes
    Any
  74. def isNaN: Bool

    Return true is the value is a NaN

  75. def isNamed: Boolean

    Definition Classes
    Nameable
  76. def isNormal: Bool

    Return true if the number is normal

  77. def isOutput: Boolean

    Definition Classes
    Data
  78. def isPositive: Bool

    Return true if the value is positive

  79. def isQNaN: Bool

    Return true if the value is a Quiet NaN

  80. def isReg: Boolean

    Definition Classes
    Data
  81. def isSNaN: Bool

    Return true if the value is a Signalling NaN

  82. def isSpecial: Bool

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

  83. def isSubnormal: Bool

    Return true if the number is subnormal

  84. def isUnnamed: Boolean

    Definition Classes
    Nameable
  85. def isZero: Bool

    Return true if the number is +- zero

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

    Definition Classes
    Data
  87. val mantissa: Bits

    Mantissa field without the implicit first bit

  88. val mantissaSize: Int

    Mantissa field size with the implicit one not included

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

    Definition Classes
    AnyRef
  90. final def notify(): Unit

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

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

    Definition Classes
    SpinalTagReady
  93. var parent: Data

    Definition Classes
    Data
  94. def pull(): RecFloating.this.type

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

    Definition Classes
    Data
  96. var refOwner: RefOwnerType

    Definition Classes
    OwnableRef
  97. def removeTag(spinalTag: SpinalTag): RecFloating.this.type

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    OwnableRef
  110. def setWeakName(name: String): RecFloating.this.type

    Definition Classes
    Nameable
  111. val sign: Bool

    Sign field (true when negative)

  112. def spinalTags: Set[SpinalTag]

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

    Definition Classes
    AnyRef
  114. def toFloating: Floating

    Convert to classic IEEE 754 floating point number

  115. def toSInt(width: Int): SInt

    Convert the Floating number to a signed integer

    Convert the Floating number to a signed integer

    width

    Width ouf the output integer

    returns

    Signed integer corresponding to the Floating point value (truncated)

  116. def toString(): String

    Definition Classes
    Bundle → Nameable → AnyRef → Any
  117. def toUInt(width: Int): UInt

    Convert the Floating number to an unsigned integer

    Convert the Floating number to an unsigned integer

    width

    Width of the output intger

    returns

    Unsigned integer corresponding to the floating point value (truncated)

  118. def unsetName(): Unit

    Definition Classes
    Nameable
  119. def unused: Unit

    Definition Classes
    Data
  120. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def autoResize(): RecFloating.this.type

    Definition Classes
    Data
    Annotations
    @deprecated
    Deprecated

    Use resized instead

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