Trait

spinal.lib

MS

Related Doc: package lib

Permalink

sealed trait MS extends AnyRef

Declare a port as master or slave

There are 4 available syntaxes, which are all equivalent:

val braces = master(Flow(Bool))

val short = master Flow (Bool)

val spaceful = master port Flow(Bool)

val variadic = Flow(Bool)
master(variadic)

The "braces" syntax is short and generic, but it uses braces.

The "short" syntax is short, but it is formatted with a space between the type and its parameters, and it can be used only with:

The "spaceful" syntax is generic and beatiful, but more verbose.

The "variadic" syntax can be used with any number of interfaces, but can be used only if the interfaces are already declared.

See also

master slave

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MS
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def applyIt[T <: IMasterSlave](i: T): T

    Permalink

    Override it to define how to apply port specification on a non-null IMasterSlave

    Override it to define how to apply port specification on a non-null IMasterSlave

    Attributes
    protected

Concrete 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. object Flow extends FlowFactory

    Permalink
  5. object Stream extends StreamFactory

    Permalink
  6. def apply(is: IMasterSlave*): Unit

    Permalink

    Declare existing interfaces as ports, variadic syntax

  7. def apply[T <: Data with IMasterSlave](data: HardType[T]): T

    Permalink
  8. def apply[T <: IMasterSlave](i: T): T

    Permalink

    Declare a port with braces

    Declare a port with braces

    See MS for other syntaxes.

  9. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  19. def port[T <: Data with IMasterSlave](i: HardType[T]): T

    Permalink

    Declare a port without braces, spaceful syntax

    Declare a port without braces, spaceful syntax

    See MS for other syntax.

  20. def port[T <: IMasterSlave](i: T): T

    Permalink

    Declare a port without braces, spaceful syntax

    Declare a port without braces, spaceful syntax

    See MS for other syntax.

  21. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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