Packages

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

    Modulo

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

    Multiplication

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

    Addition

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

    Safe Addition with 1 bit expand

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

    Safe Addition with saturation

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

    Substraction

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

    Safe Substraction with 1 bit expand

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

    Safe Substraction with saturation

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

    Division

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

    Is less than right

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

    Arithmetic left shift (w(T) = w(this) + (1 << shift)-1

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

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

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

    Is equal or less than right

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

    Is greater than right

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

    Is equal or greater than right

  16. abstract def >>(shift: UInt): T

    Arithmetic right shift (w(T) = w(this)

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

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

  18. abstract def ceil(n: Int, align: Boolean): T
  19. abstract def ceilToInf(n: Int, align: Boolean): T
  20. abstract def floor(n: Int): T

    lowest n bits Round Operation

  21. abstract def floorToZero(n: Int): T
  22. abstract def round(n: Int, align: Boolean): T
  23. abstract def roundDown(n: Int, align: Boolean): T
  24. abstract def roundToEven(n: Int, align: Boolean): T
  25. abstract def roundToInf(n: Int, align: Boolean): T
  26. abstract def roundToOdd(n: Int, align: Boolean): T
  27. abstract def roundToZero(n: Int, align: Boolean): T
  28. abstract def roundUp(n: Int, align: Boolean): T
  29. abstract def sat(m: Int): T

    highest m bits Saturation Operation

  30. abstract def tag(q: QFormat): T
  31. abstract def trim(m: Int): T

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def Q: QFormat
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def ceil(width: BitCount, align: Boolean): T

    lowest n bits Round Operation by BitCount

  7. def ceilToInf(width: BitCount, align: Boolean): T
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def floor(width: BitCount): T
  12. def floorToZero(width: BitCount): T
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def max(right: T): T

    Return the maximum value between this and right

  17. def min(right: T): T

    Return the minimum value between this and right

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  21. def round(width: BitCount, align: Boolean): T
  22. def roundDown(width: BitCount, align: Boolean): T
  23. def roundToEven(width: BitCount, align: Boolean): T
  24. def roundToInf(width: BitCount, align: Boolean): T
  25. def roundToOdd(width: BitCount, align: Boolean): T
  26. def roundToZero(width: BitCount, align: Boolean): T
  27. def roundUp(width: BitCount, align: Boolean): T
  28. def sat(width: BitCount): T
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. def trim(width: BitCount): T
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped