Chisel

Lit

object Lit

A factory for literal values

Source
Lit.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Lit
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def apply[T <: Bits](n: BigInt, width: Int)(gen: ⇒ T): T

    Create a Lit Value

    Create a Lit Value

    T

    type to create Lit of

    n

    a BigInt for the bits of the Lit

    width

    force the width of the Lit created

    gen

    a function generating the type to use

    Example:
    1. Lit[UInt](BigInt(987), 12)(UInt())
  7. def apply[T <: Bits](n: BigInt)(gen: ⇒ T): T

    Create a Lit Value

    Create a Lit Value

    T

    type to create Lit of

    n

    a BigInt for the bits of the Lit

    gen

    a function generating the type to use

    Example:
    1. Lit[UInt](BigInt(987))(UInt())
  8. def apply[T <: Bits](n: String, base: Char, width: Int)(gen: ⇒ T): T

    Create a Lit Value

    Create a Lit Value

    T

    type to create Lit of

    n

    string representing value of the Lit in the base specified

    base

    a character representing the base base can be:

    • h for hex
    • d for decimal
    • o for octal
    • b for binary
    width

    force the width of the Lit created

    gen

    a function generating the type to use

    Example:
    1. Lit[UInt]("987", 'a')(UInt())
  9. def apply[T <: Bits](n: String, base: Char)(gen: ⇒ T): T

    Create a Lit Value

    Create a Lit Value

    T

    type to create Lit of

    n

    string representing value of the Lit in the base specified

    base

    a character representing the base base can be:

    • h for hex
    • d for decimal
    • o for octal
    • b for binary
    gen

    a function generating the type to use

    Example:
    1. Lit[UInt]("987", 'a')(UInt())
  10. def apply[T <: Bits](n: String, width: Int)(gen: ⇒ T): T

    Create a Lit Value

    Create a Lit Value

    T

    type to create Lit of

    n

    string representing value of the Lit format is Bxxxx where B is a single char base and xxx is the number in that base base can be:

    • h for hex
    • d for decimal
    • o for octal
    • b for binary
    gen

    a function generating the type to use

    Example:
    1. Lit[UInt]("21010", 4)(UInt())
  11. def apply[T <: Bits](n: String)(gen: ⇒ T): T

    Create a Lit value

    Create a Lit value

    T

    type to create Lit of

    n

    a string representing the value of the literal format is Bxxxx where B is a single char base and xxx is the number in that base base can be:

    • h for hex
    • d for decimal
    • o for octal
    • b for binary
    gen

    a function generating the type to use

    Example:
    1. Lit[UInt]("21010")(UInt(width=4))
  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def clone(): AnyRef

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

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

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

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

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

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

    Definition Classes
    Any
  20. def makeLit[T <: Bits](x: Literal)(gen: ⇒ T): T

    A function to make a Lit from a Literal

    A function to make a Lit from a Literal

    T

    type to create Lit of

    x

    a Literal to transform into a Lit

    gen

    a function generating the type to use

    returns

    a Lit of type T with the value of x

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

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

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

    Definition Classes
    AnyRef
  25. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped