Package

spinal.core

sim

Permalink

package sim

Simulation package

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

Type Members

  1. implicit class SimBaseTypePimper extends AnyRef

    Permalink

    Add implicit function to BaseType for simulation

  2. implicit class SimBitVectorPimper extends AnyRef

    Permalink

    Add implicit function to BitVector

  3. implicit class SimBitsPimper extends AnyRef

    Permalink

    Add implicit function to Bits

  4. implicit class SimBoolPimper extends AnyRef

    Permalink

    Add implicit function to Bool

  5. implicit class SimClockDomainPimper extends AnyRef

    Permalink

    Add implicit function to ClockDomain

  6. class SimCompiled[T <: Component] extends AnyRef

    Permalink

    Run simulation

  7. case class SimConfigLegacy[T <: Component](_rtlGen: Option[() ⇒ T] = None, _spinalConfig: SpinalConfig = SpinalConfig(), _spinalReport: Option[SpinalReport[T]] = None) extends Product with Serializable

    Permalink

    Legacy simulation configuration

  8. implicit class SimDataPimper[T <: Data] extends AnyRef

    Permalink

    Add implicit function to Data

  9. implicit class SimEnumPimper[T <: SpinalEnum] extends AnyRef

    Permalink

    Add implicit function to Enum

  10. implicit class SimSIntPimper extends AnyRef

    Permalink

    Add implicit function to SInt

  11. implicit class SimUIntPimper extends AnyRef

    Permalink

    Add implicit function to UInt

  12. case class SpinalSimConfig(_workspacePath: String = ..., _workspaceName: String = null, _waveDepth: Int = 0, _spinalConfig: SpinalConfig = SpinalConfig(), _optimisationLevel: Int = 0, _simulatorFlags: ArrayBuffer[String] = ArrayBuffer[String](), _additionalRtlPath: ArrayBuffer[String] = ArrayBuffer[String](), _waveFormat: WaveFormat = WaveFormat.NONE) extends Product with Serializable

    Permalink

    SpinalSim configuration

  13. case class SpinalVerilatorBackendConfig[T <: Component](rtl: SpinalReport[T], waveFormat: WaveFormat = WaveFormat.NONE, workspacePath: String = "./", workspaceName: String = null, vcdPath: String = null, vcdPrefix: String = null, waveDepth: Int = 0, optimisationLevel: Int = 2, simulatorFlags: ArrayBuffer[String] = ArrayBuffer[String]()) extends Product with Serializable

    Permalink

    Backend configuration for verilator

  14. class SwapTagPhase extends PhaseNetlist

    Permalink

    Swap all oldTag with newTag

  15. type suspendable = sim.suspendable

    Permalink

Value Members

  1. object DoClock

    Permalink

    Generate a clock

  2. object DoReset

    Permalink

    Execute a reset sequence

  3. object ForkClock

    Permalink

    Fork the DoClock

  4. def SimConfig: SpinalSimConfig

    Permalink
  5. object SimPublic extends SpinalTag

    Permalink

    Tag SimPublic

  6. object SimSpeedPrinter

    Permalink

    Print the simulation speed

  7. object SimStatics

    Permalink
  8. object SimTimeout

    Permalink

    Create a Timeout for the simulation

  9. object SimWorkspace

    Permalink

    Simulation Workspace

  10. object SpinalVerilatorBackend

    Permalink

    Backend verilator

  11. object SpinalVerilatorSim

    Permalink
  12. def delayed(delay: Long)(body: ⇒ Unit): Unit

    Permalink
  13. def disableSimWave(): Unit

    Permalink
  14. def enableSimWave(): Unit

    Permalink
  15. def fork(body: ⇒ Unit): SimThread

    Permalink

    Fork

  16. def forkJoin(bodys: () ⇒ Unit*): Unit

    Permalink
  17. def forkSensitive(trigger: ⇒ Any)(block: ⇒ Unit): Unit

    Permalink
  18. def forkSensitive(triggers: Data*)(block: ⇒ Unit): Unit

    Permalink
  19. def forkSensitive(block: ⇒ Unit): Unit

    Permalink
  20. def forkSensitiveWhile(block: ⇒ Boolean): Unit

    Permalink
  21. def setBigInt(bt: BaseType, value: BigInt): Unit

    Permalink

    Set a BigInt value to a BaseType

  22. def setLong(bt: BaseType, value: Long): Unit

    Permalink

    Set a long value to a BaseType

  23. def simDeltaCycle(): Long

    Permalink
  24. def simFailure(message: String = ""): Unit

    Permalink
  25. def simSuccess(): Unit

    Permalink

    Success/Failure simulation

  26. def simTime(): Long

    Permalink

    Return the current simulation time

  27. def sleep(cycles: Long): Unit

    Permalink

    Sleep / WaitUntil

  28. def waitUntil(cond: ⇒ Boolean): Unit

    Permalink

Deprecated Value Members

  1. def SimConfig[T <: Component](rtl: SpinalReport[T]): SimConfigLegacy[T]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version ???) Use SimConfig.???.compile(new Dut) instead

  2. def SimConfig[T <: Component](rtl: ⇒ T): SimConfigLegacy[T]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version ???) Use SimConfig.???.compile(new Dut) instead

Inherited from AnyRef

Inherited from Any

Ungrouped