c

vexiiriscv.misc

TrapPlugin

class TrapPlugin extends FiberPlugin with TrapService

Mainly, this plugin implement a state-machine which handle regular traps (interrupt/exception), but also a set of special "hardware" trap used by the CPU to handle special cases as instruction retry/fences, MMU refill, ...

Also, as VexiiRiscv implements a few large CSR directly into a sharder memory (mepc, mtvec, ...), the TrapPlugin state-machine handles the hardware read/write with those CSR (durring trap, mret, ...).

Linear Supertypes
TrapService, FiberPlugin, Hostable, Area, OverridedEqualsHashCode, ValCallbackRec, ValCallback, NameableByComponent, Nameable, ContextUser, ScalaLocated, GlobalDataUser, OwnableRef, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TrapPlugin
  2. TrapService
  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 TrapPlugin(trapAt: Int)

Type Members

  1. abstract type RefOwnerType
    Definition Classes
    OwnableRef

Value Members

  1. val _context: Capture
    Definition Classes
    Area
  2. def addService[T](that: T): T
    Definition Classes
    FiberPlugin
  3. val api: Handle[Area { val harts: scala.collection.immutable.IndexedSeq[spinal.core.Area{val redo: spinal.core.Bool; val askWake: spinal.core.Bool; val rvTrap: spinal.core.Bool; val fsmBusy: spinal.core.Bool}] }]
  4. def askWake(hartId: Int): Unit
  5. def awaitBuild(): Unit
    Definition Classes
    FiberPlugin
  6. def buildBefore(l: ⇒ Lock): Unit
    Definition Classes
    FiberPlugin
  7. var buildCount: Int
    Definition Classes
    FiberPlugin
  8. def childNamePriority: Byte
    Definition Classes
    Area
  9. def component: Component
    Definition Classes
    ContextUser
  10. def during: AnyRef { ... /* 2 definitions in type refinement */ }
    Definition Classes
    FiberPlugin
  11. def equals(obj: Any): Boolean
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  12. def foreachReflectableNameables(doThat: (Any) ⇒ Unit): Unit
    Definition Classes
    Nameable
  13. def getDisplayName(): String
    Definition Classes
    Nameable
  14. def getInstanceCounter: Int
    Definition Classes
    ContextUser
  15. def getName(default: String): String
    Definition Classes
    NameableByComponent → Nameable
  16. def getName(): String
    Definition Classes
    NameableByComponent → Nameable
  17. def getPartialName(): String
    Definition Classes
    Nameable
  18. def getPath(from: Component, to: Component): Seq[Component]
    Definition Classes
    NameableByComponent
  19. def getRefOwnersChain(): List[Any]
    Definition Classes
    OwnableRef
  20. def getScalaLocationLong: String
    Definition Classes
    ScalaLocated
  21. def getScalaLocationShort: String
    Definition Classes
    ScalaLocated
  22. def getScalaTrace(): Throwable
    Definition Classes
    ScalaLocated
  23. val globalData: GlobalData
    Definition Classes
    GlobalDataUser
  24. def hashCode(): Int
    Definition Classes
    OverridedEqualsHashCode → AnyRef → Any
  25. var host: PluginHost
    Definition Classes
    FiberPlugin
  26. val hostLock: Lock
    Definition Classes
    FiberPlugin
  27. def isCompletelyUnnamed: Boolean
    Definition Classes
    Nameable
  28. final def isNamed: Boolean
    Definition Classes
    Nameable
  29. def isPriorityApplicable(namePriority: Byte): Boolean
    Definition Classes
    Nameable
  30. def isUnnamed: Boolean
    Definition Classes
    NameableByComponent → Nameable
  31. val lockables: LinkedHashSet[() ⇒ Lock]
    Definition Classes
    FiberPlugin
  32. val logic: Handle[Area { ... /* 19 definitions in type refinement */ }]
  33. val name: String
    Definition Classes
    Nameable
  34. def newTrap(age: Int, laneAgeWidth: Int, subAge: Int = 0): Flow[Trap]
    Definition Classes
    TrapService
  35. def newTrapPending(): Bits
    Definition Classes
    TrapService
  36. def overrideLocalName(name: String): TrapPlugin.this.type
    Definition Classes
    Nameable
  37. val parentScope: ScopeStatement
    Definition Classes
    ContextUser
  38. var pluginEnabled: Boolean
    Definition Classes
    FiberPlugin
  39. val refOwner: RefOwnerType
    Definition Classes
    OwnableRef
    Annotations
    @DontName()
  40. def reflectNames(): Unit
    Definition Classes
    Nameable
  41. def retains(head: Any, tail: Any*): RetainerGroup
    Definition Classes
    FiberPlugin
  42. def retains(that: Seq[Any]): RetainerGroup
    Definition Classes
    FiberPlugin
  43. def rework[T](body: ⇒ T): T
    Definition Classes
    Area
  44. val scalaTrace: Throwable
    Definition Classes
    ScalaLocated
  45. def setCompositeName(nameable: Nameable, postfix: String, namePriority: Byte): TrapPlugin.this.type
    Definition Classes
    Nameable
  46. def setCompositeName(nameable: Nameable, postfix: String, weak: Boolean): TrapPlugin.this.type
    Definition Classes
    Nameable
  47. def setCompositeName(nameable: Nameable, postfix: String): TrapPlugin.this.type
    Definition Classes
    Nameable
  48. def setCompositeName(nameable: Nameable, namePriority: Byte): TrapPlugin.this.type
    Definition Classes
    Nameable
  49. def setCompositeName(nameable: Nameable, weak: Boolean): TrapPlugin.this.type
    Definition Classes
    Nameable
  50. def setCompositeName(nameable: Nameable): TrapPlugin.this.type
    Definition Classes
    Nameable
  51. def setHost(h: PluginHost): Unit
    Definition Classes
    FiberPlugin → Hostable
  52. def setLambdaName(isNameBody: ⇒ Boolean)(nameGen: ⇒ String): TrapPlugin.this.type
    Definition Classes
    Nameable
  53. def setName(name: String, namePriority: Byte): TrapPlugin.this.type
    Definition Classes
    Nameable
  54. def setName(name: String, weak: Boolean): TrapPlugin.this.type
    Definition Classes
    Nameable
  55. def setName(name: String): TrapPlugin.this.type
    Definition Classes
    Nameable
  56. def setNameAsWeak(): TrapPlugin.this.type
    Definition Classes
    Nameable
  57. def setPartialName(name: String, namePriority: Byte, owner: Any): TrapPlugin.this.type
    Definition Classes
    Nameable
  58. def setPartialName(name: String, namePriority: Byte): TrapPlugin.this.type
    Definition Classes
    Nameable
  59. def setPartialName(name: String, weak: Boolean): TrapPlugin.this.type
    Definition Classes
    Nameable
  60. def setPartialName(owner: Nameable, name: String, namePriority: Byte): TrapPlugin.this.type
    Definition Classes
    Nameable
  61. def setPartialName(owner: Nameable, name: String, weak: Boolean): TrapPlugin.this.type
    Definition Classes
    Nameable
  62. def setPartialName(name: String): TrapPlugin.this.type
    Definition Classes
    Nameable
  63. def setPartialName(owner: Nameable, name: String): TrapPlugin.this.type
    Definition Classes
    Nameable
  64. def setPartialName(owner: Nameable): TrapPlugin.this.type
    Definition Classes
    Nameable
  65. def setRefOwner(that: Any): Unit
    Definition Classes
    OwnableRef
  66. def setScalaLocated(source: ScalaLocated): TrapPlugin.this.type
    Definition Classes
    ScalaLocated
  67. def setWeakName(name: String): TrapPlugin.this.type
    Definition Classes
    Nameable
  68. def setupRetain(l: ⇒ Lock): Unit
    Definition Classes
    FiberPlugin
  69. val subservices: ArrayBuffer[Any]
    Definition Classes
    FiberPlugin
  70. def toString(): String
    Definition Classes
    Area → Nameable → AnyRef → Any
  71. val trapAt: Int
  72. def trapHandelingAt: Int
    Definition Classes
    TrapPluginTrapService
  73. val trapLock: Retainer
    Definition Classes
    TrapService
  74. val trapPendings: ArrayBuffer[Bits]
    Definition Classes
    TrapService
  75. val traps: ArrayBuffer[TrapSpec]
    Definition Classes
    TrapService
  76. def unsetName(): TrapPlugin.this.type
    Definition Classes
    Nameable
  77. def valCallback[T](ref: T, name: String): T
    Definition Classes
    ValCallbackRec → ValCallback
  78. def valCallbackOn(ref: Any, name: String, refs: Set[Any]): Unit
    Definition Classes
    ValCallbackRec
  79. def valCallbackRec(obj: Any, name: String): Unit
    Definition Classes
    Area → ValCallbackRec
  80. def withPrefix(prefix: String): FiberPlugin
    Definition Classes
    FiberPlugin