Object/Class

Chisel

Literal

Related Docs: class Literal | package Chisel

Permalink

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
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(width: Int, base: Char, literal: String): Literal

    Permalink

    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

    Permalink

    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

    Permalink

    Creates a *Literal* instance from a scala integer.

  7. final def asInstanceOf[T0]: T0

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

    Permalink

    Derive the bit length for a Literal

  9. def clone(): AnyRef

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. val hexNibbles: String

    Permalink
  16. final def isInstanceOf[T0]: Boolean

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

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

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

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

    Permalink
  21. def parseLit(x: String): (String, String, Int)

    Permalink

    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

    Permalink

    remove all underscores from a string

  23. def sizeof(x: BigInt): Int

    Permalink

    Get the number of bits in x

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

    Permalink

    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

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

    Permalink

    Convert a binary string to hex

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

    Permalink

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

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

    Permalink

    convert a string to a BigInt with base shamt

  29. def toLitVal(x: String): BigInt

    Permalink

    Convert a hex string to a BigInt

  30. def toString(): String

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

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

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

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

Deprecated Value Members

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

    Permalink
    Annotations
    @deprecated
    Deprecated

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

Inherited from AnyRef

Inherited from Any

Ungrouped