Chisel

Literal

object Literal

Source
Lit.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Literal
  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(width: Int, base: Char, literal: String): Literal

    Create a Literal value

    Create a Literal value

    width

    force the width of the Literal

    base

    can be:

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

    is a string representing the number

  7. def apply(n: String, width: Int): Literal

    Creates a Literal instance from a scala string.

    Creates a Literal instance from a scala string. The first character of the string indicates the base for the suffix characters. base can be:

    • h for hex
    • d for decimal
    • o for octal
    • b for binary
  8. def apply(x: BigInt, width: Int = 1, signed: Boolean = false): Literal

    Creates a *Literal* instance from a scala integer.

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def bitLength(b: BigInt): Int

    Derive the bit length for a Literal

  11. def clone(): AnyRef

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  17. val hexNibbles: String

  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  22. val pads: Vector[Int]

  23. def parseLit(x: String): (String, String, Int)

    Parse a binary string with don't cares as '?'

    Parse a binary string with don't cares as '?'

    x

    input binary string

    returns

    a tuple of (bits, mask, width) bits is the string with '?' replaced with '0' mask is '0' for all '?' in the string but '1' otherwise width is the number of bits

  24. def removeUnderscore(x: String): String

    remove all underscores from a string

  25. def sizeof(x: BigInt): Int

    Get the number of bits in x

  26. def stringToVal(base: Char, x: String): BigInt

    Convert a string to a BigInt

    Convert a string to a BigInt

    base

    is:

    • h for hex
    • d for decimal
    • o for octal
    • b for binary
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toHex(x: String): String

    Convert a binary string to hex

  29. def toHexNibble(x: String, off: Int): Char

    Convert 4 chars in a binary string to a hex char starting at 'off'

  30. def toLitVal(x: String, shamt: Int): BigInt

    convert a string to a BigInt with base shamt

  31. def toLitVal(x: String): BigInt

    Convert a hex string to a BigInt

  32. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def signedsizeof(x: BigInt, width: Int = 1, signed: Boolean = false): (Int, String)

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) This part of the implementation is not used anymore?

Inherited from AnyRef

Inherited from Any

Ungrouped