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 roundToInf(n: Int, align: Boolean): T

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

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

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

    Permalink

    highest m bits Saturation Operation

  26. 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. final def asInstanceOf[T0]: T0

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

    Permalink

    lowest n bits Round Operation by BitCount

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

    Permalink
  7. def clone(): AnyRef

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

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

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

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

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

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

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

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

    Permalink

    Return the maximum value between this and right

  16. def min(right: T): T

    Permalink

    Return the minimum value between this and right

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. 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