Class/Object

spinal.lib.bus.wishbone

Wishbone

Related Docs: object Wishbone | package wishbone

Permalink

case class Wishbone(config: WishboneConfig) extends Bundle with IMasterSlave with Product with Serializable

This class rappresent a Wishbone bus

config

an istance of WishboneConfig, it will be used to configurate the Wishbone Bus

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Wishbone
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. IMasterSlave
  7. Bundle
  8. OverridedEqualsHashCode
  9. MultiData
  10. Data
  11. SpinalTagReady
  12. Assignable
  13. NameableByComponent
  14. Nameable
  15. OwnableRef
  16. ContextUser
  17. ScalaLocated
  18. GlobalDataUser
  19. AnyRef
  20. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Wishbone(config: WishboneConfig)

    Permalink

    config

    an istance of WishboneConfig, it will be used to configurate the Wishbone Bus

Type Members

  1. abstract type RefOwnerType

    Permalink
    Definition Classes
    OwnableRef

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. def ##(right: Data): Bits

    Permalink

    Concatenation between two data

    Concatenation between two data

    Definition Classes
    Data
  3. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  4. def <<(that: Wishbone): Unit

    Permalink

    Connect common Wishbone signals

    Connect common Wishbone signals

    Example:
    1. wishboneSlave << wishboneMaster
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def >>(that: Wishbone): Unit

    Permalink

    Connect common Wishbone signals this fuction will auto resize the slave address line only if slave.addressWidth <= master.addressWidth

    Connect common Wishbone signals this fuction will auto resize the slave address line only if slave.addressWidth <= master.addressWidth

    Example:
    1. wishboneMaster >> wishboneSlave
  7. val ACK: Bool

    Permalink
  8. val ADR: UInt

    Permalink
  9. val BTE: Bits

    Permalink
  10. val CTI: Bits

    Permalink
  11. val CYC: Bool

    Permalink
  12. val DAT_MISO: Bits

    Permalink
  13. val DAT_MOSI: Bits

    Permalink
  14. val ERR: Bool

    Permalink
  15. val LOCK: Bool

    Permalink
  16. val RTY: Bool

    Permalink
  17. val SEL: Bits

    Permalink
  18. val STALL: Bool

    Permalink
  19. val STB: Bool

    Permalink
  20. val TGA: Bits

    Permalink
  21. val TGC: Bits

    Permalink
  22. val TGD_MISO: Bits

    Permalink
  23. val TGD_MOSI: Bits

    Permalink
  24. val WE: Bool

    Permalink
  25. var _spinalTags: Set[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  26. def addAttribute(attribute: Attribute): Wishbone.this.type

    Permalink
    Definition Classes
    DataSpinalTagReady
  27. def addAttribute(name: String, value: String): Wishbone.this.type

    Permalink
    Definition Classes
    SpinalTagReady
  28. def addAttribute(name: String): Wishbone.this.type

    Permalink
    Definition Classes
    SpinalTagReady
  29. def addTag[T <: SpinalTag](spinalTag: T): Wishbone.this.type

    Permalink
    Definition Classes
    MultiDataSpinalTagReady
  30. def addTags[T <: SpinalTag](tags: Iterable[T]): Wishbone.this.type

    Permalink
    Definition Classes
    SpinalTagReady
  31. def allowDirectionLessIo: Wishbone.this.type

    Permalink
    Definition Classes
    Data
  32. def allowOverride: Wishbone.this.type

    Permalink

    Allow a data to be overrided

    Allow a data to be overrided

    Definition Classes
    Data
  33. def allowPruning(): Wishbone.this.type

    Permalink
    Definition Classes
    Data
  34. def allowSimplifyIt(): Wishbone.this.type

    Permalink
    Definition Classes
    Data
  35. def allowUnsetRegToAvoidLatch: Wishbone.this.type

    Permalink
    Definition Classes
    Data
  36. def asBits: Bits

    Permalink

    Cast data to Bits

    Cast data to Bits

    Definition Classes
    MultiDataData
  37. def asData: Data

    Permalink
    Definition Classes
    Data
  38. def asInOut(): Wishbone.this.type

    Permalink

    set a data as inout

    set a data as inout

    Definition Classes
    MultiDataData
  39. def asInput(): Wishbone.this.type

    Permalink

    Set a data as input

    Set a data as input

    Definition Classes
    MultiDataData
  40. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  41. def asMaster(): Unit

    Permalink
    Definition Classes
    WishboneIMasterSlave
  42. def asOutput(): Wishbone.this.type

    Permalink

    Set a data as output

    Set a data as output

    Definition Classes
    MultiDataData
  43. def asSlave(): Unit

    Permalink
    Definition Classes
    IMasterSlave
  44. def assignAllByName(that: Bundle): Unit

    Permalink

    Assign the bundle with an other bundle by name

    Assign the bundle with an other bundle by name

    Definition Classes
    Bundle
  45. def assignDontCare(): Wishbone.this.type

    Permalink
    Definition Classes
    Data
  46. final def assignFrom(that: AnyRef, target: AnyRef = this): Unit

    Permalink
    Definition Classes
    Data
  47. def assignFromBits(bits: Bits, hi: Int, lo: Int): Unit

    Permalink
    Definition Classes
    MultiDataData
  48. def assignFromBits(bits: Bits): Unit

    Permalink
    Definition Classes
    MultiDataData
  49. def assignFromBits(bits: Bits, offset: Int, bitCount: BitCount): Unit

    Permalink
    Definition Classes
    Data
  50. def assignSomeByName(that: Bundle): Unit

    Permalink

    Assign all possible signal fo the bundle with an other bundle by name

    Assign all possible signal fo the bundle with an other bundle by name

    Definition Classes
    Bundle
  51. def clearAll(): Unit

    Permalink

    Clear all the relevant signals in the wishbone bus

    Clear all the relevant signals in the wishbone bus

    Example:
    1. val wishbone1 = master(Wishbone(WishboneConfig(8,8)))
      val wishbone2 = slave(Wishbone(WishboneConfig(8,8)))
      val wishbone2 = slave(Wishbone(WishboneConfig(8,8).withDataTag(8)))
      // this will clear only the following signals: CYC,ADR,DAT_MOSI,STB,WE
      wishbone1.clearAll()
      // this will clear only the following signals: DAT_MISO,ACK
      wishbone2.clearAll()
      // this will clear only the following signals: DAT_MISO,ACK,TGD_MISO
      wishbone3.clearAll()
  52. def clone(): Bundle

    Permalink
    Definition Classes
    BundleData → AnyRef
  53. var cloneFunc: () ⇒ AnyRef

    Permalink
    Definition Classes
    Bundle
  54. def component: Component

    Permalink
    Definition Classes
    ContextUser
  55. final def compositAssignFrom(that: AnyRef, target: AnyRef, kind: AnyRef): Unit

    Permalink
    Definition Classes
    Assignable
  56. var compositeAssign: Assignable

    Permalink
    Definition Classes
    Assignable
  57. val config: WishboneConfig

    Permalink

    an istance of WishboneConfig, it will be used to configurate the Wishbone Bus

  58. def connectTo(that: Wishbone, allowDataResize: Boolean = false, allowAddressResize: Boolean = false, allowTagResize: Boolean = false): Unit

    Permalink

    Connect to a wishbone bus with optional resize.

    Connect to a wishbone bus with optional resize. This will drop all the signals that are not in common

    that

    the wishbone bus that i want to connect, must be a wishbone slave

    allowDataResize

    allow the resize of the data lines, deafult to false

    allowAddressResize

    allow the resize of the address line, deafult to false

    allowTagResize

    allow the resize of the tag lines, deafult to false

  59. def dirString(): String

    Permalink
    Definition Classes
    Data
  60. def doRead: Bool

    Permalink
  61. def doSend: Bool

    Permalink
  62. def doWrite: Bool

    Permalink
  63. def dontSimplifyIt(): Wishbone.this.type

    Permalink
    Definition Classes
    Data
  64. def elements: ArrayBuffer[(String, Data)]

    Permalink

    Return all element of the bundle

    Return all element of the bundle

    Definition Classes
    BundleMultiData
  65. def elementsString: String

    Permalink
    Definition Classes
    MultiData
  66. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  67. def equals(obj: Any): Boolean

    Permalink
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  68. def existsTag(cond: (SpinalTag) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    SpinalTagReady
  69. def filterTag(cond: (SpinalTag) ⇒ Boolean): Iterable[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  70. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  71. def find(name: String): Data

    Permalink
    Definition Classes
    MultiData
  72. def findTag(cond: (SpinalTag) ⇒ Boolean): Option[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  73. def flatten: Seq[BaseType]

    Permalink
    Definition Classes
    MultiDataData
  74. def flattenForeach(body: (BaseType) ⇒ Unit): Unit

    Permalink
    Definition Classes
    MultiDataData
  75. def flattenLocalName: Seq[String]

    Permalink
    Definition Classes
    MultiDataData
  76. def flip(): Wishbone.this.type

    Permalink

    flip the direction of the data

    flip the direction of the data

    Definition Classes
    MultiDataData
  77. def foreachReflectableNameables(doThat: (Any) ⇒ Unit): Unit

    Permalink
    Definition Classes
    Nameable
  78. def genIf(cond: Boolean): Wishbone.this.type

    Permalink

    Generate this if condition is true

    Generate this if condition is true

    Definition Classes
    Data
  79. def getBitsWidth: Int

    Permalink

    Return the width of the data

    Return the width of the data

    Definition Classes
    MultiDataData
  80. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  81. def getComponent(): Component

    Permalink
    Definition Classes
    DataNameableByComponent
  82. def getComponents(): Seq[Component]

    Permalink

    Get current component with all parents

    Get current component with all parents

    Definition Classes
    Data
  83. def getDisplayName(): String

    Permalink
    Definition Classes
    Nameable
  84. def getInstanceCounter: Int

    Permalink
    Definition Classes
    ContextUser
  85. def getMode: Byte

    Permalink
    Attributes
    protected
    Definition Classes
    Nameable
  86. def getName(default: String): String

    Permalink
    Definition Classes
    NameableByComponentNameable
  87. def getName(): String

    Permalink
    Definition Classes
    Nameable
  88. def getRealSource: Any

    Permalink
    Definition Classes
    Assignable
  89. def getRealSourceNoRec: Any

    Permalink
    Definition Classes
    DataAssignable
  90. def getRefOwnersChain(): List[Any]

    Permalink
    Definition Classes
    OwnableRef
  91. def getRootParent: Data

    Permalink
    Definition Classes
    Data
  92. def getScalaLocationLong: String

    Permalink
    Definition Classes
    ScalaLocated
  93. def getScalaLocationShort: String

    Permalink
    Definition Classes
    ScalaLocated
  94. def getScalaTrace(): Throwable

    Permalink
    Definition Classes
    ScalaLocated
  95. def getTag[T <: SpinalTag](clazz: Class[T]): Option[T]

    Permalink
    Definition Classes
    SpinalTagReady
  96. def getTags(): Set[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  97. def getTypeString: String

    Permalink
    Definition Classes
    Bundle
  98. def getZero: Wishbone.this.type

    Permalink

    Create a data set to 0

    Create a data set to 0

    Definition Classes
    MultiDataData
  99. val globalData: GlobalData

    Permalink
    Definition Classes
    GlobalDataUser
  100. def hasTag[T <: SpinalTag](clazz: Class[T]): Boolean

    Permalink
    Definition Classes
    SpinalTagReady
  101. def hasTag(spinalTag: SpinalTag): Boolean

    Permalink
    Definition Classes
    SpinalTagReady
  102. def hashCode(): Int

    Permalink
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  103. final def initFrom(that: AnyRef, target: AnyRef = this): Unit

    Permalink
    Definition Classes
    Data
  104. def instanceAttributes(language: Language): Iterable[Attribute]

    Permalink
    Definition Classes
    SpinalTagReady
  105. def instanceAttributes: Iterable[Attribute]

    Permalink
    Definition Classes
    SpinalTagReady
  106. def isAck: Bool

    Permalink
  107. def isAnalog: Boolean

    Permalink
    Definition Classes
    Data
  108. def isComb: Boolean

    Permalink
    Definition Classes
    Data
  109. def isCycle: Bool

    Permalink
  110. def isDirectionLess: Boolean

    Permalink
    Definition Classes
    Data
  111. def isEmptyOfTag: Boolean

    Permalink
    Definition Classes
    SpinalTagReady
  112. def isInOut: Boolean

    Permalink
    Definition Classes
    Data
  113. def isInput: Boolean

    Permalink
    Definition Classes
    Data
  114. def isInputOrInOut: Boolean

    Permalink
    Definition Classes
    Data
  115. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  116. var isMasterInterface: Boolean

    Permalink
    Definition Classes
    IMasterSlave
  117. def isNamed: Boolean

    Permalink
    Definition Classes
    NameableByComponentNameable
  118. def isOutput: Boolean

    Permalink
    Definition Classes
    Data
  119. def isOutputOrInOut: Boolean

    Permalink
    Definition Classes
    Data
  120. def isPriorityApplicable(namePriority: Byte): Boolean

    Permalink
    Definition Classes
    Nameable
  121. def isRead: Bool

    Permalink
  122. def isReg: Boolean

    Permalink
    Definition Classes
    Data
  123. def isStall: Bool

    Permalink
  124. def isTransfer: Bool

    Permalink
  125. def isUnnamed: Boolean

    Permalink
    Definition Classes
    Nameable
  126. def isWrite: Bool

    Permalink
  127. def keep(): Wishbone.this.type

    Permalink
    Definition Classes
    Data
  128. var name: String

    Permalink
    Attributes
    protected
    Definition Classes
    Nameable
  129. var nameableRef: Nameable

    Permalink
    Attributes
    protected
    Definition Classes
    Nameable
  130. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  131. def noBackendCombMerge: Wishbone.this.type

    Permalink
    Definition Classes
    Data
  132. def noCombLoopCheck: Wishbone.this.type

    Permalink
    Definition Classes
    Data
  133. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  135. def onEachAttributes(doIt: (Attribute) ⇒ Unit): Unit

    Permalink
    Definition Classes
    SpinalTagReady
  136. var parent: Data

    Permalink
    Definition Classes
    Data
  137. var parentScope: ScopeStatement

    Permalink
    Definition Classes
    ContextUser
  138. def pull(): Wishbone.this.type

    Permalink

    Pull a signal to the top level (use for debugging)

    Pull a signal to the top level (use for debugging)

    Definition Classes
    Data
  139. def purify(): Wishbone.this.type

    Permalink
    Definition Classes
    Data
  140. def randBoot(): Wishbone.this.type

    Permalink

    Usefull for register that doesn't need a reset value in RTL, but need a randome value for simulation (avoid x-propagation)

    Usefull for register that doesn't need a reset value in RTL, but need a randome value for simulation (avoid x-propagation)

    Definition Classes
    Data
  141. var refOwner: RefOwnerType

    Permalink
    Definition Classes
    OwnableRef
  142. def removeAssignments(): Wishbone.this.type

    Permalink
    Definition Classes
    Data
  143. def removeTag(spinalTag: SpinalTag): Wishbone.this.type

    Permalink
    Definition Classes
    SpinalTagReady
  144. def removeTags(tags: Iterable[SpinalTag]): Wishbone.this.type

    Permalink
    Definition Classes
    SpinalTagReady
  145. def resized: Wishbone.this.type

    Permalink

    Resized data regarding target

    Resized data regarding target

    Definition Classes
    Data
  146. def setAsAnalog(): Wishbone.this.type

    Permalink
    Definition Classes
    Data
  147. def setAsComb(): Wishbone.this.type

    Permalink

    Set baseType to Combinatorial

    Set baseType to Combinatorial

    Definition Classes
    MultiDataData
  148. def setAsDirectionLess(): Wishbone.this.type

    Permalink

    remove the direction (in,out,inout) to a data

    remove the direction (in,out,inout) to a data

    Definition Classes
    MultiDataData
  149. def setAsReg(): Wishbone.this.type

    Permalink

    Set baseType to reg

    Set baseType to reg

    Definition Classes
    MultiDataData
  150. def setCompositeName(nameable: Nameable, postfix: String, namePriority: Byte): Wishbone.this.type

    Permalink
    Definition Classes
    Nameable
  151. def setCompositeName(nameable: Nameable, postfix: String, weak: Boolean): Wishbone.this.type

    Permalink
    Definition Classes
    Nameable
  152. def setCompositeName(nameable: Nameable, postfix: String): Wishbone.this.type

    Permalink
    Definition Classes
    Nameable
  153. def setCompositeName(nameable: Nameable, namePriority: Byte): Wishbone.this.type

    Permalink
    Definition Classes
    Nameable
  154. def setCompositeName(nameable: Nameable, weak: Boolean): Wishbone.this.type

    Permalink
    Definition Classes
    Nameable
  155. def setCompositeName(nameable: Nameable): Wishbone.this.type

    Permalink
    Definition Classes
    Nameable
  156. def setName(name: String, namePriority: Byte): Wishbone.this.type

    Permalink
    Definition Classes
    Nameable
  157. def setName(name: String, weak: Boolean): Wishbone.this.type

    Permalink
    Definition Classes
    Nameable
  158. def setName(name: String): Wishbone.this.type

    Permalink
    Definition Classes
    Nameable
  159. def setPartialName(name: String, namePriority: Byte): Wishbone.this.type

    Permalink
    Definition Classes
    Nameable
  160. def setPartialName(name: String, weak: Boolean): Wishbone.this.type

    Permalink
    Definition Classes
    Nameable
  161. def setPartialName(owner: Nameable, name: String, namePriority: Byte): Wishbone.this.type

    Permalink
    Definition Classes
    Nameable
  162. def setPartialName(owner: Nameable, name: String, weak: Boolean): Wishbone.this.type

    Permalink
    Definition Classes
    Nameable
  163. def setPartialName(name: String): Wishbone.this.type

    Permalink
    Definition Classes
    Nameable
  164. def setPartialName(owner: Nameable, name: String): Wishbone.this.type

    Permalink
    Definition Classes
    Nameable
  165. def setRefOwner(that: Any): Unit

    Permalink
    Definition Classes
    OwnableRef
  166. def setScalaLocated(source: ScalaLocated): Wishbone.this.type

    Permalink
    Definition Classes
    ScalaLocated
  167. def setWeakName(name: String): Wishbone.this.type

    Permalink
    Definition Classes
    Nameable
  168. def spinalTags: Set[SpinalTag]

    Permalink
    Definition Classes
    SpinalTagReady
  169. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    BundleNameable → AnyRef → Any
  171. def unsetName(): Wishbone.this.type

    Permalink
    Definition Classes
    Nameable
  172. final def wait(): Unit

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

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

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

Deprecated Value Members

  1. def asDirectionLess(): Wishbone.this.type

    Permalink
    Definition Classes
    Data
    Annotations
    @deprecated
    Deprecated

    use setAsDirectionLess instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from IMasterSlave

Inherited from Bundle

Inherited from OverridedEqualsHashCode

Inherited from MultiData

Inherited from Data

Inherited from SpinalTagReady

Inherited from Assignable

Inherited from NameableByComponent

Inherited from Nameable

Inherited from OwnableRef

Inherited from ContextUser

Inherited from ScalaLocated

Inherited from GlobalDataUser

Inherited from AnyRef

Inherited from Any

Ungrouped