Class/Object

Chisel

Width

Related Docs: object Width | package Chisel

Permalink

class Width extends Ordered[Width]

Create a new width

Source
Width.scala
Linear Supertypes
Ordered[Width], Comparable[Width], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Width
  2. Ordered
  3. Comparable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Width(_width: Int)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(i: Int): Width

    Permalink
  4. def +(w: Width): Width

    Permalink
  5. def -(i: Int): Width

    Permalink
  6. def -(w: Width): Width

    Permalink
  7. def <(that: Width): Boolean

    Permalink
    Definition Classes
    Ordered
  8. def <=(that: Width): Boolean

    Permalink
    Definition Classes
    Ordered
  9. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def >(that: Width): Boolean

    Permalink
    Definition Classes
    Ordered
  11. def >=(that: Width): Boolean

    Permalink
    Definition Classes
    Ordered
  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def binaryOp(op: String, operand: Width): Width

    Permalink
  14. def canEqual(other: Any): Boolean

    Permalink

    check if 'other' is a Width to check if its possible to equal a Width

  15. def clone(): Width

    Permalink

    clone this width

    clone this width

    Definition Classes
    Width → AnyRef
  16. def compare(that: Width): Int

    Permalink

    Compare two widths where an unknown width is less than any known width

    Compare two widths where an unknown width is less than any known width

    Definition Classes
    Width → Ordered
  17. def compareTo(that: Width): Int

    Permalink
    Definition Classes
    Ordered → Comparable
  18. def copy(w: Int = this.widthVal.get): Width

    Permalink

    create a copy of this width

    create a copy of this width

    w

    optionally set the width for the new copy

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

    Permalink
    Definition Classes
    AnyRef
  20. def equals(other: Any): Boolean

    Permalink

    Define equality for width

    Define equality for width

    Definition Classes
    Width → AnyRef → Any
  21. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. implicit def fromInt(i: Int): Width

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

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

    Permalink

    Define the hashcode based on the width the same widths should have the same hash code unknown widths should be unique

    Define the hashcode based on the width the same widths should have the same hash code unknown widths should be unique

    Definition Classes
    Width → AnyRef → Any
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. def isKnown: Boolean

    Permalink

    Indicate whether width is actually known(set) or not

  27. def max(that: Width): Width

    Permalink
  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. def needWidth(): Int

    Permalink

    returns

    an "known" integer value

    Exceptions thrown

    NoSuchElementException if called when the width is unknown

  30. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  32. def setWidth(w: Int): Unit

    Permalink

    Set the width of a Node, w must be >= 0

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

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

    Permalink

    Print a string representation of width

    Print a string representation of width

    Definition Classes
    Width → AnyRef → Any
  35. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def widthOrValue(v: Int): Int

    Permalink

    returns

    the width or the specificed value if the width isn't set

  39. def width_=(w: Int): Unit

    Permalink

Deprecated Value Members

  1. def width: Int

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.3) Clients should not expect a Width is directly convertable to an Int

Inherited from Ordered[Width]

Inherited from Comparable[Width]

Inherited from AnyRef

Inherited from Any

Ungrouped