c

chiseltest.simulator

DebugPrintWrapper

class DebugPrintWrapper extends SimulatorContext

Wraps a SimulatorContext and prints the result of all operations performed on it to stdout

Linear Supertypes
SimulatorContext, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DebugPrintWrapper
  2. SimulatorContext
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DebugPrintWrapper(inner: SimulatorContext)

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. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finish(): Unit

    Needs to be called after the context is no longer needed.

    Needs to be called after the context is no longer needed.

    Definition Classes
    DebugPrintWrapperSimulatorContext
    Note

    only after finish has been successfully returned is a potential waveform file guaranteed to exists on disk.

    ,

    after finish no other functions besides sim or getCoverage may be called.

  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def getCoverage(): List[(String, Long)]

    Returns the current value of the coverage counters.

    Returns the current value of the coverage counters.

    Definition Classes
    DebugPrintWrapperSimulatorContext
    Note

    only some simulators support calling getCoverage _before_ finish

    ,

    for more information on the coverage format, please consult the documentation for chiseltest.coverage.TestCoverage

  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def peek(signal: String): BigInt

    Returns the latest value of an output or input port on the top-level module.

    Returns the latest value of an output or input port on the top-level module.

    Definition Classes
    DebugPrintWrapperSimulatorContext
    Note

    the simulator has to take care of recomputing signals after any change

  17. def peekMemory(signal: String, index: Long): BigInt

    Returns the latest value of a memory location.

    Returns the latest value of a memory location. Only supported by some simulators.

    Definition Classes
    DebugPrintWrapperSimulatorContext
    Note

    the simulator has to take care of recomputing signals after any change

  18. def poke(signal: String, value: BigInt): Unit

    Change the value of an input port on the top-level module.

    Change the value of an input port on the top-level module.

    Definition Classes
    DebugPrintWrapperSimulatorContext
  19. def pokeMemory(signal: String, index: Long, value: BigInt): Unit

    Change the value of memory location.

    Change the value of memory location. Only supported by some simulators.

    Definition Classes
    DebugPrintWrapperSimulatorContext
  20. def resetCoverage(): Unit

    Resets all coverage counters to zero.

    Resets all coverage counters to zero.

    Definition Classes
    DebugPrintWrapperSimulatorContext
    Note

    Not supported by all simulators. Must result in a NotImplementedError if not supported.

  21. def sim: Simulator

    Returns a reference the Simulator that created this context.

    Returns a reference the Simulator that created this context.

    Definition Classes
    DebugPrintWrapperSimulatorContext
  22. def step(n: Int): StepResult

    Step the main clock n times.

    Step the main clock n times. Throws a NoClockException if the circuit does not have a clock input.

    returns

    StepInterrupted if a stop/assert/assume statement fired during execution, StepOk otherwise.

    Definition Classes
    DebugPrintWrapperSimulatorContext
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. 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 SimulatorContext

Inherited from AnyRef

Inherited from Any

Ungrouped