Trait

chiseltest.internal

BackendInstance

Related Doc: package internal

Permalink

trait BackendInstance[T <: MultiIOModule] extends BackendInterface

Backend associated with a particular circuit, and can run tests

Linear Supertypes
BackendInterface, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BackendInstance
  2. BackendInterface
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def doFork(runnable: () ⇒ Unit, name: Option[String], region: Option[Region]): AbstractTesterThread

    Permalink
    Definition Classes
    BackendInterface
  2. abstract def doJoin(threads: Seq[AbstractTesterThread], stepAfter: Option[Clock]): Unit

    Permalink
    Definition Classes
    BackendInterface
  3. abstract def doTimescope(contents: () ⇒ Unit): Unit

    Permalink
    Definition Classes
    BackendInterface
  4. abstract def expectBits(signal: Data, value: BigInt, message: Option[String], stale: Boolean): Unit

    Permalink
    Definition Classes
    BackendInterface
  5. abstract def getSinkClocks(signal: Data): Set[Clock]

    Permalink

    Returns set of clocks associated with sinks of the signal

    Returns set of clocks associated with sinks of the signal

    Definition Classes
    BackendInterface
  6. abstract def getSourceClocks(signal: Data): Set[Clock]

    Permalink

    Returns set of clocks associated with sources of the signal

    Returns set of clocks associated with sources of the signal

    Definition Classes
    BackendInterface
  7. abstract def peekBits(signal: Data, stale: Boolean): BigInt

    Permalink

    Returns the current value on a wire.

    Returns the current value on a wire. If stale is true, returns the current combinational value (after previous pokes have taken effect). If stale is false, returns the value at the beginning of the current cycle.

    Definition Classes
    BackendInterface
  8. abstract def peekClock(signal: Clock): Boolean

    Permalink

    Read the value of a clock.

    Read the value of a clock.

    Definition Classes
    BackendInterface
  9. abstract def pokeBits(signal: Data, value: BigInt): Unit

    Permalink

    Writes a value to a writable wire.

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

    Definition Classes
    BackendInterface
  10. abstract def pokeClock(signal: Clock, value: Boolean): Unit

    Permalink

    Writes a value to a clock.

    Writes a value to a clock.

    Definition Classes
    BackendInterface
  11. abstract def run(testFn: (T) ⇒ Unit): Unit

    Permalink

    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.

    Internal API

  12. abstract def setTimeout(signal: Clock, cycles: Int): Unit

    Permalink

    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
    BackendInterface
  13. abstract def step(signal: Clock, cycles: Int): Unit

    Permalink

    Advances the target clock by one cycle.

    Advances the target clock by one cycle.

    Definition Classes
    BackendInterface

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def getParentTraceElements: Seq[StackTraceElement]

    Permalink

    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
  11. def getVar(key: Any): Option[Any]

    Permalink

    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
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. def setVar(key: Any, value: Any): Unit

    Permalink

    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
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. val testMap: HashMap[Any, Any]

    Permalink
    Attributes
    protected
    Definition Classes
    BackendInterface
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from BackendInterface

Inherited from AnyRef

Inherited from Any

Ungrouped