c

vexiiriscv.memory

MmuPlugin

class MmuPlugin extends FiberPlugin with AddressTranslationService

Implement the RISC-V MMU using a N-way set associative TLB storage. This fit very well with FPGA which have distributed memories. For FPGA that do not have that, the MmuPortParameter can be configured to have a low number of sets or use 1 cycle delay to be inferable as block ram.

Plugins which uses the MmuPlugin can request TLB storage, then they can require the MmuPlugin to bind a new port on a existing pipeline using that TLB storage. A given TLB storage can be used by multiple MMU ports.

MMU miss will not by itself trigger a TLB refill. This is instead triggered by the TrapPlugin.

Linear Supertypes
AddressTranslationService, FiberPlugin, Hostable, Area, OverridedEqualsHashCode, ValCallbackRec, ValCallback, NameableByComponent, Nameable, ContextUser, ScalaLocated, GlobalDataUser, OwnableRef, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MmuPlugin
  2. AddressTranslationService
  3. FiberPlugin
  4. Hostable
  5. Area
  6. OverridedEqualsHashCode
  7. ValCallbackRec
  8. ValCallback
  9. NameableByComponent
  10. Nameable
  11. ContextUser
  12. ScalaLocated
  13. GlobalDataUser
  14. OwnableRef
  15. AnyRef
  16. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MmuPlugin(spec: MmuSpec, physicalWidth: Int)

Type Members

  1. case class PortSpec(stages: Seq[NodeBaseApi], preAddress: Payload[UInt], forcePhysical: Payload[Bool], usage: AddressTranslationPortUsage, pp: MmuPortParameter, ss: StorageSpec, rsp: AddressTranslationRsp) extends Product with Serializable
  2. abstract type RefOwnerType
    Definition Classes
    OwnableRef
  3. case class StorageSpec(p: MmuStorageParameter, pmuEventId: Int) extends Nameable with Product with Serializable

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. val _context: Capture
    Definition Classes
    Area
  5. def addService[T](that: T): T
    Definition Classes
    FiberPlugin
  6. val api: Handle[Area { ... /* 2 definitions in type refinement */ }]
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def awaitBuild(): Unit
    Definition Classes
    FiberPlugin
  9. def buildBefore(l: ⇒ Lock): Unit
    Definition Classes
    FiberPlugin
  10. var buildCount: Int
    Definition Classes
    FiberPlugin
  11. def childNamePriority: Byte
    Definition Classes
    Area
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  13. def component: Component
    Definition Classes
    ContextUser
  14. def during: AnyRef { ... /* 2 definitions in type refinement */ }
    Definition Classes
    FiberPlugin
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(obj: Any): Boolean
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  17. def foreachReflectableNameables(doThat: (Any) ⇒ Unit): Unit
    Definition Classes
    Nameable
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  19. def getDisplayName(): String
    Definition Classes
    Nameable
  20. def getInstanceCounter: Int
    Definition Classes
    ContextUser
  21. def getMode: Byte
    Attributes
    protected
    Definition Classes
    Nameable
  22. def getName(default: String): String
    Definition Classes
    NameableByComponent → Nameable
  23. def getName(): String
    Definition Classes
    NameableByComponent → Nameable
  24. def getPartialName(): String
    Definition Classes
    Nameable
  25. def getPath(from: Component, to: Component): Seq[Component]
    Definition Classes
    NameableByComponent
  26. def getRefOwnersChain(): List[Any]
    Definition Classes
    OwnableRef
  27. def getScalaLocationLong: String
    Definition Classes
    ScalaLocated
  28. def getScalaLocationShort: String
    Definition Classes
    ScalaLocated
  29. def getScalaTrace(): Throwable
    Definition Classes
    ScalaLocated
  30. def getSignExtension(kind: AddressTranslationPortUsage, rawAddress: UInt): Bool
    Definition Classes
    MmuPluginAddressTranslationService
  31. def getStorageId(s: Any): Int
    Definition Classes
    MmuPluginAddressTranslationService
  32. def getStorageIdWidth(): Int
    Definition Classes
    MmuPluginAddressTranslationService
  33. val globalData: GlobalData
    Definition Classes
    GlobalDataUser
  34. def hashCode(): Int
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  35. var host: PluginHost
    Definition Classes
    FiberPlugin
  36. val hostLock: Lock
    Definition Classes
    FiberPlugin
  37. val invalidationPorts: ArrayBuffer[AddressTranslationInvalidation]
    Definition Classes
    AddressTranslationService
  38. def isCompletelyUnnamed: Boolean
    Definition Classes
    Nameable
  39. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  40. final def isNamed: Boolean
    Definition Classes
    Nameable
  41. def isPriorityApplicable(namePriority: Byte): Boolean
    Definition Classes
    Nameable
  42. def isUnnamed: Boolean
    Definition Classes
    NameableByComponent → Nameable
  43. val lockables: LinkedHashSet[() ⇒ Lock]
    Definition Classes
    FiberPlugin
  44. val logic: Handle[Area { ... /* 24 definitions in type refinement */ }]
  45. def mayNeedRedo: Boolean
    Definition Classes
    MmuPluginAddressTranslationService
  46. val name: String
    Definition Classes
    Nameable
  47. val nameableRef: Nameable
    Attributes
    protected
    Definition Classes
    Nameable
    Annotations
    @DontName()
  48. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  49. def newInvalidationPort(): AddressTranslationInvalidation
    Definition Classes
    AddressTranslationService
  50. def newRefillPort(): AddressTranslationRefill
    Definition Classes
    AddressTranslationService
  51. def newStorage(pAny: Any, pmuEventId: Int): Any
    Definition Classes
    MmuPluginAddressTranslationService
  52. def newTranslationPort(stages: Seq[NodeBaseApi], preAddress: Payload[UInt], forcePhysical: Payload[Bool], usage: AddressTranslationPortUsage, portSpec: Any, storageSpec: Any): AddressTranslationRsp
    Definition Classes
    MmuPluginAddressTranslationService
  53. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  54. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  55. def overrideLocalName(name: String): MmuPlugin.this.type
    Definition Classes
    Nameable
  56. val parentScope: ScopeStatement
    Definition Classes
    ContextUser
  57. var physicalWidth: Int
  58. var pluginEnabled: Boolean
    Definition Classes
    FiberPlugin
  59. val portSpecs: ArrayBuffer[PortSpec]
  60. val portsLock: Retainer
    Definition Classes
    AddressTranslationService
  61. val refOwner: RefOwnerType
    Definition Classes
    OwnableRef
    Annotations
    @DontName()
  62. val refillPorts: ArrayBuffer[AddressTranslationRefill]
    Definition Classes
    AddressTranslationService
  63. def reflectNames(): Unit
    Definition Classes
    Nameable
  64. val regionRetainer: Retainer
    Definition Classes
    AddressTranslationService
  65. def retains(head: Any, tail: Any*): RetainerGroup
    Definition Classes
    FiberPlugin
  66. def retains(that: Seq[Any]): RetainerGroup
    Definition Classes
    FiberPlugin
  67. def rework[T](body: ⇒ T): T
    Definition Classes
    Area
  68. val scalaTrace: Throwable
    Definition Classes
    ScalaLocated
  69. def setCompositeName(nameable: Nameable, postfix: String, namePriority: Byte): MmuPlugin.this.type
    Definition Classes
    Nameable
  70. def setCompositeName(nameable: Nameable, postfix: String, weak: Boolean): MmuPlugin.this.type
    Definition Classes
    Nameable
  71. def setCompositeName(nameable: Nameable, postfix: String): MmuPlugin.this.type
    Definition Classes
    Nameable
  72. def setCompositeName(nameable: Nameable, namePriority: Byte): MmuPlugin.this.type
    Definition Classes
    Nameable
  73. def setCompositeName(nameable: Nameable, weak: Boolean): MmuPlugin.this.type
    Definition Classes
    Nameable
  74. def setCompositeName(nameable: Nameable): MmuPlugin.this.type
    Definition Classes
    Nameable
  75. def setHost(h: PluginHost): Unit
    Definition Classes
    FiberPlugin → Hostable
  76. def setLambdaName(isNameBody: ⇒ Boolean)(nameGen: ⇒ String): MmuPlugin.this.type
    Definition Classes
    Nameable
  77. def setName(name: String, namePriority: Byte): MmuPlugin.this.type
    Definition Classes
    Nameable
  78. def setName(name: String, weak: Boolean): MmuPlugin.this.type
    Definition Classes
    Nameable
  79. def setName(name: String): MmuPlugin.this.type
    Definition Classes
    Nameable
  80. def setNameAsWeak(): MmuPlugin.this.type
    Definition Classes
    Nameable
  81. def setPartialName(name: String, namePriority: Byte, owner: Any): MmuPlugin.this.type
    Definition Classes
    Nameable
  82. def setPartialName(name: String, namePriority: Byte): MmuPlugin.this.type
    Definition Classes
    Nameable
  83. def setPartialName(name: String, weak: Boolean): MmuPlugin.this.type
    Definition Classes
    Nameable
  84. def setPartialName(owner: Nameable, name: String, namePriority: Byte): MmuPlugin.this.type
    Definition Classes
    Nameable
  85. def setPartialName(owner: Nameable, name: String, weak: Boolean): MmuPlugin.this.type
    Definition Classes
    Nameable
  86. def setPartialName(name: String): MmuPlugin.this.type
    Definition Classes
    Nameable
  87. def setPartialName(owner: Nameable, name: String): MmuPlugin.this.type
    Definition Classes
    Nameable
  88. def setPartialName(owner: Nameable): MmuPlugin.this.type
    Definition Classes
    Nameable
  89. def setRefOwner(that: Any): Unit
    Definition Classes
    OwnableRef
  90. def setScalaLocated(source: ScalaLocated): MmuPlugin.this.type
    Definition Classes
    ScalaLocated
  91. def setWeakName(name: String): MmuPlugin.this.type
    Definition Classes
    Nameable
  92. def setupRetain(l: ⇒ Lock): Unit
    Definition Classes
    FiberPlugin
  93. var spec: MmuSpec
  94. val storageLock: Retainer
    Definition Classes
    AddressTranslationService
  95. val storageSpecs: ArrayBuffer[StorageSpec]
  96. val subservices: ArrayBuffer[Any]
    Definition Classes
    FiberPlugin
  97. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  98. def toString(): String
    Definition Classes
    Area → Nameable → AnyRef → Any
  99. def unsetName(): MmuPlugin.this.type
    Definition Classes
    Nameable
  100. def valCallback[T](ref: T, name: String): T
    Definition Classes
    ValCallbackRec → ValCallback
  101. def valCallbackOn(ref: Any, name: String, refs: Set[Any]): Unit
    Definition Classes
    ValCallbackRec
  102. def valCallbackRec(obj: Any, name: String): Unit
    Definition Classes
    Area → ValCallbackRec
  103. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  104. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  105. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  106. def withPrefix(prefix: String): FiberPlugin
    Definition Classes
    FiberPlugin

Deprecated Value Members

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

Inherited from AddressTranslationService

Inherited from FiberPlugin

Inherited from Hostable

Inherited from Area

Inherited from OverridedEqualsHashCode

Inherited from ValCallbackRec

Inherited from ValCallback

Inherited from NameableByComponent

Inherited from Nameable

Inherited from ContextUser

Inherited from ScalaLocated

Inherited from GlobalDataUser

Inherited from OwnableRef

Inherited from AnyRef

Inherited from Any

Ungrouped