Packages

c

chiseltest.internal

SingleThreadBackend

class SingleThreadBackend[T <: Module] extends BackendInstance[T]

Chiseltest backend that does not support fork or timescope but is generally faster since it does not need to launch any Java threads.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SingleThreadBackend
  2. BackendInstance
  3. BackendInterface
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SingleThreadBackend(dut: T, dataNames: Map[Data, String], combinationalPaths: Map[Data, Set[Data]], tester: SimulatorContext, coverageAnnotations: AnnotationSeq)

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. val combinationalPaths: Map[Data, Set[Data]]
  7. val dataNames: Map[Data, String]
  8. def doFork(runnable: () => Unit, name: Option[String], region: Option[Region]): Nothing
  9. def doJoin(threads: Seq[AbstractTesterThread], stepAfter: Option[Clock]): Unit
  10. def doTimescope(contents: () => Unit): Unit
  11. val dut: T
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def getParentTraceElements: Seq[StackTraceElement]

    Returns the stack trace elements of parent threads.

    Returns the stack trace elements of parent threads. If currently in the root thread, returns empty. TODO: refactor this, figure out how to do this in a structurally cleaner way

    Definition Classes
    BackendInterface
  16. def getSinkClocks(signal: Data): Set[Clock]

    Returns set of clocks associated with sinks of the signal

    Returns set of clocks associated with sinks of the signal

    Definition Classes
    SingleThreadBackend → BackendInterface
  17. def getSourceClocks(signal: Data): Set[Clock]

    Returns set of clocks associated with sources of the signal

    Returns set of clocks associated with sources of the signal

    Definition Classes
    SingleThreadBackend → BackendInterface
  18. def getVar(key: Any): Option[Any]

    Returns the value associated with the key in a per-test map.

    Returns the value associated with the key in a per-test map.

    Definition Classes
    BackendInterface
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. def peekBits(signal: Data): BigInt

    Returns the current value on a wire.

    Returns the current value on a wire. Returns the current combinational value (after previous pokes have taken effect).

    Definition Classes
    SingleThreadBackend → BackendInterface
  25. def peekClock(signal: Clock): Boolean

    Read the value of a clock.

    Read the value of a clock.

    Definition Classes
    SingleThreadBackend → BackendInterface
  26. def pokeBits(signal: Data, value: BigInt): Unit

    Writes a value to a writable wire.

    Writes a value to a writable wire. Throws an exception if write is not writable.

    Definition Classes
    SingleThreadBackend → BackendInterface
  27. def pokeClock(signal: Clock, value: Boolean): Unit

    Writes a value to a clock.

    Writes a value to a clock.

    Definition Classes
    SingleThreadBackend → BackendInterface
  28. def resolveName(signal: Data): String

    Returns a human readable name of a signal.

    Returns a human readable name of a signal.

    Definition Classes
    SingleThreadBackend → BackendInterface
  29. def run(testFn: (T) => Unit): AnnotationSeq

    Runs of tests are wrapped in this, for any special setup/teardown that needs to happen.

    Runs of tests are wrapped in this, for any special setup/teardown that needs to happen. Takes the test function, which takes the module used as the testing interface. TesterContext setup is done externally.

    returns

    coverage annotations Internal API

    Definition Classes
    SingleThreadBackend → BackendInstance
  30. def setTimeout(signal: Clock, cycles: Int): Unit

    Sets the timeout of the clock: the number of cycles the clock can advance without some non-nop poke operation.

    Sets the timeout of the clock: the number of cycles the clock can advance without some non-nop poke operation. Setting cycles=0 disables the timeout. Setting cycles=1 means every cycle must have some non-nop poke operation. Resets the idle counter associated with the specified clock.

    Definition Classes
    SingleThreadBackend → BackendInterface
  31. def setVar(key: Any, value: Any): Unit

    Sets the value associated with a key in a per-test map.

    Sets the value associated with a key in a per-test map.

    Definition Classes
    BackendInterface
  32. def step(signal: Clock, cycles: Int): Unit

    Advances the target clock by one cycle.

    Advances the target clock by one cycle.

    Definition Classes
    SingleThreadBackend → BackendInterface
  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. val testMap: HashMap[Any, Any]
    Attributes
    protected
    Definition Classes
    BackendInterface
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

Inherited from BackendInstance[T]

Inherited from BackendInterface

Inherited from AnyRef

Inherited from Any

Ungrouped