Packages

c

spinal.core

LiteralBuilder

implicit class LiteralBuilder extends AnyRef

Literal builder

S/U/B"[[size']base]value"

e.g.:

B"8'xFF"`
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LiteralBuilder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new LiteralBuilder(sc: StringContext)

Type Members

  1. class LList extends ArrayBuffer[Any]

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 B(args: Any*): Bits

    Create a Bits hardware literal.

    Create a Bits hardware literal.

    Example:
    1. val myBits1 = B"8'xFF"   // Base could be x,h (base 16)
                               //               d   (base 10)
                               //               o   (base 8)
                               //               b   (base 2)
      val myBits2 = B"1001_0011"  // _ can be used for readability
    See also

    Bits declaration

  5. def BS(args: Any*): BigInt
  6. def BU(args: Any*): BigInt
  7. def Bits(args: Any*): Bits
  8. def L(args: Any*): Seq[Any]
  9. def M(args: Any*): MaskedLiteral

    Create a mask hardware literal.

    Create a mask hardware literal.

    Useful for don't care comparisons.

    Example:
    1. val myBits = B"1101"
      val test1 = myBits === M"1-01" // True
      val test2 = myBits === M"0---" // False
      val test3 = myBits === M"1--1" // True
    See also

    MaskedLiteral documentation

  10. def S(args: Any*): SInt

    Create a SInt hardware literal.

    Create a SInt hardware literal.

    Example:
    1. mySInt := S"0000_0101"  // Base per default is binary => 5
      mySInt := S"h1A"        // Base could be x (base 16)
                              //               h (base 16)
                              //               d (base 10)
                              //               o (base 8)
                              //               b (base 2)
      mySInt := S"8'h1A"
    See also

    UInt/SInt declaration

  11. def SInt(args: Any*): SInt
  12. def U(args: Any*): UInt

    Create a UInt hardware literal.

    Create a UInt hardware literal.

    Example:
    1. myUInt := U"0000_0101"  // Base per default is binary => 5
      myUInt := U"h1A"        // Base could be x (base 16)
                              //               h (base 16)
                              //               d (base 10)
                              //               o (base 8)
                              //               b (base 2)
      myUInt := U"8'h1A"
    See also

    UInt/SInt declaration

  13. def UInt(args: Any*): UInt
  14. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  15. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped