Chisel

Literal

Related Docs: class Literal | package Chisel

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: Any): Boolean

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

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

    Definition Classes
    AnyRef → Any
  4. 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

  5. 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
  6. def apply(x: BigInt, width: Int = 1, signed: Boolean = false): Literal

    Creates a *Literal* instance from a scala integer.

  7. final def asInstanceOf[T0]: T0

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

    Derive the bit length for a Literal

  9. def clone(): AnyRef

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  15. val hexNibbles: String

  16. final def isInstanceOf[T0]: Boolean

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

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

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

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

  21. 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

  22. def removeUnderscore(x: String): String

    remove all underscores from a string

  23. def sizeof(x: BigInt): Int

    Get the number of bits in x

  24. 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
  25. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Convert a binary string to hex

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

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

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

    convert a string to a BigInt with base shamt

  29. def toLitVal(x: String): BigInt

    Convert a hex string to a BigInt

  30. def toString(): String

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

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

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