Class

spinal.lib.experimental.math

Floating

Related Doc: package math

Permalink

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

Floating point value

exponentSize

Size of the exponent field

mantissaSize

Size of the mantissa field with the implicit one not included

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

Instance Constructors

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

    Permalink

    exponentSize

    Size of the exponent field

    mantissaSize

    Size of the mantissa field 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

    Concatenation between two data

    Concatenation between two data

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

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

    Permalink

    Assign decimal value to the Floating

    Assign decimal value to the Floating

    that

    BigDecimal value

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  7. def abs: Floating

    Permalink

    Absolute value

    Absolute value

    returns

    Absolute value of this float

  8. def addAttribute(attribute: Attribute): Floating.this.type

    Permalink
    Definition Classes
    DataSpinalTagReady
  9. def addAttribute(name: String, value: String): Floating.this.type

    Permalink
    Definition Classes
    SpinalTagReady
  10. def addAttribute(name: String): Floating.this.type

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

    Permalink
    Definition Classes
    MultiDataSpinalTagReady
  12. def addTags[T <: SpinalTag](tags: Iterable[T]): Floating.this.type

    Permalink
    Definition Classes
    SpinalTagReady
  13. def allowDirectionLessIo: Floating.this.type

    Permalink
    Definition Classes
    Data
  14. def allowOverride: Floating.this.type

    Permalink

    Allow a data to be overrided

    Allow a data to be overrided

    Definition Classes
    Data
  15. def allowPruning(): Floating.this.type

    Permalink
    Definition Classes
    Data
  16. def allowSimplifyIt(): Floating.this.type

    Permalink
    Definition Classes
    Data
  17. def allowUnsetRegToAvoidLatch: Floating.this.type

    Permalink
    Definition Classes
    Data
  18. def asBits: Bits

    Permalink

    Cast data to Bits

    Cast data to Bits

    Definition Classes
    MultiDataData
  19. def asData: Data

    Permalink
    Definition Classes
    Data
  20. def asInOut(): Floating.this.type

    Permalink

    set a data as inout

    set a data as inout

    Definition Classes
    MultiDataData
  21. def asInput(): Floating.this.type

    Permalink

    Set a data as input

    Set a data as input

    Definition Classes
    MultiDataData
  22. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  23. def asOutput(): Floating.this.type

    Permalink

    Set a data as output

    Set a data as output

    Definition Classes
    MultiDataData
  24. def assignAllByName(that: Bundle): Unit

    Permalink

    Assign the bundle with an other bundle by name

    Assign the bundle with an other bundle by name

    Definition Classes
    Bundle
  25. def assignDontCare(): Floating.this.type

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

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

    Permalink
    Definition Classes
    MultiDataData
  28. def assignFromBits(bits: Bits): Unit

    Permalink
    Definition Classes
    MultiDataData
  29. def assignFromBits(bits: Bits, offset: Int, bitCount: BitCount): Unit

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

    Permalink

    Assign all possible signal fo the bundle with an other bundle by name

    Assign all possible signal fo the bundle with an other bundle by name

    Definition Classes
    Bundle
  31. def clone(): Bundle

    Permalink
    Definition Classes
    BundleData → AnyRef
  32. var cloneFunc: () ⇒ AnyRef

    Permalink
    Definition Classes
    Bundle
  33. def component: Component

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

    Permalink
    Definition Classes
    Assignable
  35. var compositeAssign: Assignable

    Permalink
    Definition Classes
    Assignable
  36. def dirString(): String

    Permalink
    Definition Classes
    Data
  37. def dontSimplifyIt(): Floating.this.type

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

    Permalink

    Return all element of the bundle

    Return all element of the bundle

    Definition Classes
    BundleMultiData
  39. def elementsString: String

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

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  43. val exponent: Bits

    Permalink

    Exponent field (127 excess encoded)

  44. val exponentSize: Int

    Permalink

    Size of the exponent field

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

    Permalink
    Definition Classes
    SpinalTagReady
  46. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    MultiDataData
  50. def flattenForeach(body: (BaseType) ⇒ Unit): Unit

    Permalink
    Definition Classes
    MultiDataData
  51. def flattenLocalName: Seq[String]

    Permalink
    Definition Classes
    MultiDataData
  52. def flip(): Floating.this.type

    Permalink

    flip the direction of the data

    flip the direction of the data

    Definition Classes
    MultiDataData
  53. def foreachReflectableNameables(doThat: (Any) ⇒ Unit): Unit

    Permalink
    Definition Classes
    Nameable
  54. def fromRecFloating(that: RecFloating): Floating

    Permalink

    Import number from a Berkeley encoded float number

  55. def genIf(cond: Boolean): Floating.this.type

    Permalink

    Generate this if condition is true

    Generate this if condition is true

    Definition Classes
    Data
  56. def getBitsWidth: Int

    Permalink

    Return the width of the data

    Return the width of the data

    Definition Classes
    MultiDataData
  57. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    DataNameableByComponent
  59. def getComponents(): Seq[Component]

    Permalink

    Get current component with all parents

    Get current component with all parents

    Definition Classes
    Data
  60. def getDisplayName(): String

    Permalink
    Definition Classes
    Nameable
  61. def getExponentBias: Int

    Permalink

    Value of the exponent bias for this float configuration

  62. def getInstanceCounter: Int

    Permalink
    Definition Classes
    ContextUser
  63. def getMode: Byte

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

    Permalink
    Definition Classes
    NameableByComponentNameable
  65. def getName(): String

    Permalink
    Definition Classes
    Nameable
  66. def getRealSource: Any

    Permalink
    Definition Classes
    Assignable
  67. def getRealSourceNoRec: Any

    Permalink
    Definition Classes
    DataAssignable
  68. def getRefOwnersChain(): List[Any]

    Permalink
    Definition Classes
    OwnableRef
  69. def getRootParent: Data

    Permalink
    Definition Classes
    Data
  70. def getScalaLocationLong: String

    Permalink
    Definition Classes
    ScalaLocated
  71. def getScalaLocationShort: String

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  74. def getTags(): Set[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  75. def getTypeString: String

    Permalink
    Definition Classes
    Bundle
  76. def getZero: Floating.this.type

    Permalink

    Create a data set to 0

    Create a data set to 0

    Definition Classes
    MultiDataData
  77. val globalData: GlobalData

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

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

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

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

    Permalink

    Initialization function

    Initialization function

    that

    initialization value

    returns

    returns initialized object

  82. final def initFrom(that: AnyRef, target: AnyRef = this): Unit

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

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

    Permalink
    Definition Classes
    SpinalTagReady
  85. def isAnalog: Boolean

    Permalink
    Definition Classes
    Data
  86. def isComb: Boolean

    Permalink
    Definition Classes
    Data
  87. def isDirectionLess: Boolean

    Permalink
    Definition Classes
    Data
  88. def isEmptyOfTag: Boolean

    Permalink
    Definition Classes
    SpinalTagReady
  89. def isInOut: Boolean

    Permalink
    Definition Classes
    Data
  90. def isInput: Boolean

    Permalink
    Definition Classes
    Data
  91. def isInputOrInOut: Boolean

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

    Permalink
    Definition Classes
    Any
  93. def isNamed: Boolean

    Permalink
    Definition Classes
    NameableByComponentNameable
  94. def isOutput: Boolean

    Permalink
    Definition Classes
    Data
  95. def isOutputOrInOut: Boolean

    Permalink
    Definition Classes
    Data
  96. def isPositive: Bool

    Permalink

    Return true if the number is positive

  97. def isPriorityApplicable(namePriority: Byte): Boolean

    Permalink
    Definition Classes
    Nameable
  98. def isReg: Boolean

    Permalink
    Definition Classes
    Data
  99. def isUnnamed: Boolean

    Permalink
    Definition Classes
    Nameable
  100. def isZero: Bool

    Permalink

    Return true if number is +/- 0

  101. def keep(): Floating.this.type

    Permalink
    Definition Classes
    Data
  102. val mantissa: Bits

    Permalink

    Mantissa field without the implicit first bit

  103. val mantissaSize: Int

    Permalink

    Size of the mantissa field with the implicit one not included

  104. var name: String

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

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

    Permalink
    Definition Classes
    AnyRef
  107. def noBackendCombMerge: Floating.this.type

    Permalink
    Definition Classes
    Data
  108. def noCombLoopCheck: Floating.this.type

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

    Permalink
    Definition Classes
    AnyRef
  110. final def notifyAll(): Unit

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

    Permalink
    Definition Classes
    SpinalTagReady
  112. var parent: Data

    Permalink
    Definition Classes
    Data
  113. var parentScope: ScopeStatement

    Permalink
    Definition Classes
    ContextUser
  114. def pull(): Floating.this.type

    Permalink

    Pull a signal to the top level (use for debugging)

    Pull a signal to the top level (use for debugging)

    Definition Classes
    Data
  115. def purify(): Floating.this.type

    Permalink
    Definition Classes
    Data
  116. def randBoot(): Floating.this.type

    Permalink

    Usefull for register that doesn't need a reset value in RTL, but need a randome value for simulation (avoid x-propagation)

    Usefull for register that doesn't need a reset value in RTL, but need a randome value for simulation (avoid x-propagation)

    Definition Classes
    Data
  117. var refOwner: RefOwnerType

    Permalink
    Definition Classes
    OwnableRef
  118. def removeAssignments(): Floating.this.type

    Permalink
    Definition Classes
    Data
  119. def removeTag(spinalTag: SpinalTag): Floating.this.type

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

    Permalink
    Definition Classes
    SpinalTagReady
  121. def resized: Floating.this.type

    Permalink

    Resized data regarding target

    Resized data regarding target

    Definition Classes
    Data
  122. def setAsAnalog(): Floating.this.type

    Permalink
    Definition Classes
    Data
  123. def setAsComb(): Floating.this.type

    Permalink

    Set baseType to Combinatorial

    Set baseType to Combinatorial

    Definition Classes
    MultiDataData
  124. def setAsDirectionLess(): Floating.this.type

    Permalink

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

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

    Definition Classes
    MultiDataData
  125. def setAsReg(): Floating.this.type

    Permalink

    Set baseType to reg

    Set baseType to reg

    Definition Classes
    MultiDataData
  126. def setCompositeName(nameable: Nameable, postfix: String, namePriority: Byte): Floating.this.type

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

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

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

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

    Permalink
    Definition Classes
    Nameable
  131. def setCompositeName(nameable: Nameable): Floating.this.type

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

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

    Permalink
    Definition Classes
    Nameable
  134. def setName(name: String): Floating.this.type

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

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

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

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

    Permalink
    Definition Classes
    Nameable
  139. def setPartialName(name: String): Floating.this.type

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

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

    Permalink
    Definition Classes
    OwnableRef
  142. def setScalaLocated(source: ScalaLocated): Floating.this.type

    Permalink
    Definition Classes
    ScalaLocated
  143. def setWeakName(name: String): Floating.this.type

    Permalink
    Definition Classes
    Nameable
  144. val sign: Bool

    Permalink

    Sign field (true when negative)

  145. def spinalTags: Set[SpinalTag]

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

    Permalink
    Definition Classes
    AnyRef
  147. def toRecFloating: RecFloating

    Permalink

    return this number recoded into Berkeley encoding

  148. def toString(): String

    Permalink
    Definition Classes
    BundleNameable → AnyRef → Any
  149. def unsetName(): Floating.this.type

    Permalink
    Definition Classes
    Nameable
  150. final def wait(): Unit

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

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

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

Deprecated Value Members

  1. def asDirectionLess(): Floating.this.type

    Permalink
    Definition Classes
    Data
    Annotations
    @deprecated
    Deprecated

    use setAsDirectionLess 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 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