Trait/Object

chisel3

Num

Related Docs: object Num | package chisel3

Permalink

trait Num[T <: Data] extends AnyRef

Abstract trait defining operations available on numeric-like hardware data types.

T

the underlying type of the number

Self Type
Num[T]
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 do_%(that: T)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): T

    Permalink

  2. abstract def do_*(that: T)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): T

    Permalink

  3. abstract def do_+(that: T)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): T

    Permalink

  4. abstract def do_-(that: T)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): T

    Permalink

  5. abstract def do_/(that: T)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): T

    Permalink

  6. abstract def do_<(that: T)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): Bool

    Permalink

  7. abstract def do_<=(that: T)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): Bool

    Permalink

  8. abstract def do_>(that: T)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): Bool

    Permalink

  9. abstract def do_>=(that: T)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): Bool

    Permalink

  10. abstract def do_abs(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): 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 macro def %(that: T): T

    Permalink

    Modulo operator

    Modulo operator

    that

    a hardware type

    returns

    the remainder of this numeric-like type divided by that

    Note

    This method generates a fully combinational divider which can result in significant cycle time and area costs.

  4. final macro def *(that: T): T

    Permalink

    Multiplication operator

    Multiplication operator

    that

    a hardware type

    returns

    the product of this numeric-like type and that

    Note

    This method generates a fully combinational multiplier which can result in significant cycle time and area costs.

    ,

    The width of the returned hardware type is width of this + width of that.

  5. final macro def +(that: T): T

    Permalink

    Addition operator

    Addition operator

    that

    a hardware type

    returns

    the sum of this numeric-like type and that

    Note

    The width of the returned hardware type is max(width of this, width of that).

  6. final macro def -(that: T): T

    Permalink

    Subtraction operator

    Subtraction operator

    that

    a hardware type

    returns

    the difference of this numeric-like type less that

    Note

    The width of the returned hardware type is max(width of this, width of that) + 1.

  7. final macro def /(that: T): T

    Permalink

    Division operator

    Division operator

    that

    a hardware type

    returns

    the quotient of this numeric-like type divided by that

    To do

    full rules

    Note

    This method generates a fully combinational divider which can result in significant cycle time and area costs.

  8. final macro def <(that: T): Bool

    Permalink

    Less than operator

    Less than operator

    that

    a hardware type

    returns

    a hardware Bool asserted if this numeric-like type is less than that

  9. final macro def <=(that: T): Bool

    Permalink

    Less than or equal to operator

    Less than or equal to operator

    that

    a hardware type

    returns

    a hardware Bool asserted if this numeric-like type is less than or equal to that

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. final macro def >(that: T): Bool

    Permalink

    Greater than operator

    Greater than operator

    that

    a hardware component

    returns

    a hardware Bool asserted if this numeric-like type is greater than that

  12. final macro def >=(that: T): Bool

    Permalink

    Greater than or equal to operator

    Greater than or equal to operator

    that

    a hardware component

    returns

    a hardware Bool asserted if this numeric-like type is greather than or equal to that

  13. final macro def abs(): T

    Permalink

    Absolute value operator

    Absolute value operator

    returns

    a hardware type with a value equal to the absolute value of this numeric-like type

    Note

    The width of the returned hardware type is unchanged, i.e., the width of this.

  14. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def do_max(that: T)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): T

    Permalink

  17. def do_min(that: T)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): T

    Permalink

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. final macro def max(that: T): T

    Permalink

    Maximum operator

    Maximum operator

    that

    a hardware type

    returns

    a hardware type with a value equal to the mimimum value of this numeric-like type and that

    Note

    The width of the returned hardware type is max(width of this, width of that).

  25. final macro def min(that: T): T

    Permalink

    Minimum operator

    Minimum operator

    that

    a hardware numeric-like type

    returns

    a hardware type with a value equal to the mimimum value of this numeric-like type and that

    Note

    The width of the returned hardware type is max(width of this, width of that).

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit

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

Inherited from AnyRef

Inherited from Any

Arithmetic

Arithmetic hardware operators

Comparison

Comparison hardware operators

SourceInfoTransformMacro

Ungrouped