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

    Add implicit function to BaseType for simulation

  2. implicit class SimBitVectorPimper extends AnyRef

    Add implicit function to BitVector

  3. implicit class SimBitsPimper extends AnyRef

    Add implicit function to Bits

  4. implicit class SimBoolPimper extends AnyRef

    Add implicit function to Bool

  5. implicit class SimClockDomainPimper extends AnyRef

    Add implicit function to ClockDomain

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

    Run simulation

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

    Legacy simulation configuration

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

    Add implicit function to Data

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

    Add implicit function to Enum

  10. implicit class SimSIntPimper extends AnyRef

    Add implicit function to SInt

  11. implicit class SimUIntPimper extends AnyRef

    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

    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

    Backend configuration for verilator

  14. class SwapTagPhase extends PhaseNetlist

    Swap all oldTag with newTag

  15. type suspendable = sim.suspendable

Value Members

  1. def SimConfig: SpinalSimConfig
  2. def delayed(delay: Long)(body: ⇒ Unit): Unit
  3. def fork(body: ⇒ Unit): SimThread

    Fork

  4. def forkJoin(bodys: () ⇒ Unit*): Unit
  5. def forkSensitive(block: ⇒ Unit): Unit
  6. def forkSensitiveWhile(block: ⇒ Boolean): Unit
  7. def setBigInt(bt: BaseType, value: BigInt): Unit

    Set a BigInt value to a BaseType

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

    Set a long value to a BaseType

  9. def simDeltaCycle(): Long
  10. def simFailure(message: String = ""): Unit
  11. def simSuccess(): Unit

    Success/Failure simulation

  12. def simTime(): Long

    Return the current simulation time

  13. def sleep(cycles: Long): Unit

    Sleep / WaitUntil

  14. def waitUntil(cond: ⇒ Boolean): Unit
  15. object DoClock

    Generate a clock

  16. object DoReset

    Execute a reset sequence

  17. object ForkClock

    Fork the DoClock

  18. object SimPublic extends SpinalTag

    Tag SimPublic

  19. object SimSpeedPrinter

    Print the simulation speed

  20. object SimTimeout

    Create a Timeout for the simulation

  21. object SimWorkspace

    Simulation Workspace

  22. object SpinalVerilatorBackend

    Backend verilator

  23. object SpinalVerilatorSim

Deprecated Value Members

  1. def SimConfig[T <: Component](rtl: SpinalReport[T]): SimConfigLegacy[T]
    Annotations
    @deprecated
    Deprecated

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

  2. def SimConfig[T <: Component](rtl: ⇒ T): SimConfigLegacy[T]
    Annotations
    @deprecated
    Deprecated

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

Inherited from AnyRef

Inherited from Any

Ungrouped