Class

spinal.core

LiteralBuilder

Related Doc: package core

Permalink

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

Instance Constructors

  1. new LiteralBuilder(sc: StringContext)

    Permalink

Type Members

  1. class LList extends ArrayBuffer[Any]

    Permalink

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

    Permalink

    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

    Permalink
  6. def BU(args: Any*): BigInt

    Permalink
  7. def Bits(args: Any*): Bits

    Permalink
  8. def L(args: Any*): Seq[Any]

    Permalink
  9. def M(args: Any*): MaskedLiteral

    Permalink

    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

    Permalink

    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

    Permalink
  12. def U(args: Any*): UInt

    Permalink

    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

    Permalink
  14. final def asInstanceOf[T0]: T0

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  20. final def isInstanceOf[T0]: Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  24. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(): Unit

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

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped