Object

Chisel

Lit

Related Doc: package Chisel

Permalink

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
Visibility
  1. Public
  2. All

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. def apply[T <: Bits](n: BigInt, width: Int)(gen: ⇒ T): T

    Permalink

    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())
  5. def apply[T <: Bits](n: BigInt)(gen: ⇒ T): T

    Permalink

    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())
  6. def apply[T <: Bits](n: String, base: Char, width: Int)(gen: ⇒ T): T

    Permalink

    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())
  7. def apply[T <: Bits](n: String, base: Char)(gen: ⇒ T): T

    Permalink

    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())
  8. def apply[T <: Bits](n: String, width: Int)(gen: ⇒ T): T

    Permalink

    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())
  9. def apply[T <: Bits](n: String)(gen: ⇒ T): T

    Permalink

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

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

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

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

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

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

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

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

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

    Permalink

    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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped