Trait

spinal.core

Num

Related Doc: package core

Permalink

trait Num[T <: Data] extends AnyRef

Base operations for numbers

T

the type which is associated with the base operation

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Num
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def %(right: T): T

    Permalink

    Modulo

  2. abstract def *(right: T): T

    Permalink

    Multiplication

  3. abstract def +(right: T): T

    Permalink

    Addition

  4. abstract def +^(right: T): T

    Permalink

    Safe Addition with 1 bit expand

  5. abstract def +|(right: T): T

    Permalink

    Safe Addition with saturation

  6. abstract def -(right: T): T

    Permalink

    Substraction

  7. abstract def -^(right: T): T

    Permalink

    Safe Substraction with 1 bit expand

  8. abstract def -|(right: T): T

    Permalink

    Safe Substraction with saturation

  9. abstract def /(right: T): T

    Permalink

    Division

  10. abstract def <(right: T): Bool

    Permalink

    Is less than right

  11. abstract def <<(shift: Int): T

    Permalink

    Logical left shift (w(T) = w(this) + shift)

  12. abstract def <=(right: T): Bool

    Permalink

    Is equal or less than right

  13. abstract def >(right: T): Bool

    Permalink

    Is greater than right

  14. abstract def >=(right: T): Bool

    Permalink

    Is equal or greater than right

  15. abstract def >>(shift: Int): T

    Permalink

    Logical right shift (w(T) = w(this) - shift)

  16. abstract def ceil(n: Int, align: Boolean): T

    Permalink
  17. abstract def ceilToInf(n: Int, align: Boolean): T

    Permalink
  18. abstract def floor(n: Int): T

    Permalink

    lowest n bits Round Operation

  19. abstract def floorToZero(n: Int): T

    Permalink
  20. abstract def round(n: Int, align: Boolean): T

    Permalink
  21. abstract def roundDown(n: Int, align: Boolean): T

    Permalink
  22. abstract def roundToEven(n: Int, align: Boolean): T

    Permalink
  23. abstract def roundToInf(n: Int, align: Boolean): T

    Permalink
  24. abstract def roundToOdd(n: Int, align: Boolean): T

    Permalink
  25. abstract def roundToZero(n: Int, align: Boolean): T

    Permalink
  26. abstract def roundUp(n: Int, align: Boolean): T

    Permalink
  27. abstract def sat(m: Int): T

    Permalink

    highest m bits Saturation Operation

  28. abstract def tag(q: QFormat): T

    Permalink
  29. abstract def trim(m: Int): T

    Permalink

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def Q: QFormat

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def ceil(width: BitCount, align: Boolean): T

    Permalink

    lowest n bits Round Operation by BitCount

  7. def ceilToInf(width: BitCount, align: Boolean): T

    Permalink
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def floor(width: BitCount): T

    Permalink
  12. def floorToZero(width: BitCount): T

    Permalink
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def max(right: T): T

    Permalink

    Return the maximum value between this and right

  17. def min(right: T): T

    Permalink

    Return the minimum value between this and right

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

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  21. def round(width: BitCount, align: Boolean): T

    Permalink
  22. def roundDown(width: BitCount, align: Boolean): T

    Permalink
  23. def roundToEven(width: BitCount, align: Boolean): T

    Permalink
  24. def roundToInf(width: BitCount, align: Boolean): T

    Permalink
  25. def roundToOdd(width: BitCount, align: Boolean): T

    Permalink
  26. def roundToZero(width: BitCount, align: Boolean): T

    Permalink
  27. def roundUp(width: BitCount, align: Boolean): T

    Permalink
  28. def sat(width: BitCount): T

    Permalink
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. def trim(width: BitCount): T

    Permalink
  32. final def wait(arg0: Long, arg1: Int): Unit

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

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

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

Deprecated Value Members

  1. 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 AnyRef

Inherited from Any

Ungrouped