class TreadleTester extends AnyRef

Works a lot like the chisel classic tester compiles a firrtl input string and allows poke, peek, expect and step

pokes invalidate the underlying circuit peek, expect and step, recompute (re-validate) the circuit before executing

Important note: port names in LoFirrtl have replaced dot notation with underscore notation so that io.a.b must be referenced as io_a_b

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

Instance Constructors

  1. new TreadleTester(annotationSeq: AnnotationSeq)

    annotationSeq

    firrtl circuit and parameters for tester are to be found here

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. def advanceTime(interval: Long): Unit

    Advance time in ticks of the treadle2.chronometry.UTC wallTime, the default is picoseconds, but can be read by the scaleName of the wallTime.

    Advance time in ticks of the treadle2.chronometry.UTC wallTime, the default is picoseconds, but can be read by the scaleName of the wallTime. One should probably be advancing by some simple factor of a clock period. The clockInfoList of the options should define this (could be more than one).

    interval

    units are in units of the wallTime scale.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clearForceValue(name: String): Unit
  7. val clockInfoList: Seq[ClockInfo]
  8. val clockStepper: ClockStepper
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  10. val combinationalDelay: Long
  11. def cycleCount: Long
  12. val engine: ExecutionEngine
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def expect(name: String, expectedValue: BigInt, message: String = ""): Unit

    require that a value be present on the named component

    require that a value be present on the named component

    name

    component name

    expectedValue

    the BigInt value required

  16. def expectMemory(name: String, index: Int, expectedValue: BigInt, message: String = ""): Unit

    require that a value be present on the named component

    require that a value be present on the named component

    name

    component name

    expectedValue

    the BigInt value required

  17. var expectationsMet: Int
  18. def fail(ex: Throwable, msg: Option[String] = None): Nothing

    Indicate failure due to an exception.

    Indicate failure due to an exception.

    ex

    exception causing the failure

    msg

    optional message to be printed

  19. def fail(code: Int): Unit
  20. def finish: Boolean
  21. def forceValue(name: String, value: BigInt): Unit
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  23. def getCoverage(): List[(String, Long)]

    Returns the number of times every cover statement has been true on a clock edge.

  24. def getStopResult: Option[Int]
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. def isOK: Boolean
  28. def isRegister(symbolName: String): Boolean
  29. def makeSnapshot(): Unit
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  33. def peek(name: String): BigInt

    inspect a value of a named circuit component

    inspect a value of a named circuit component

    name

    the name of a circuit component

    returns

    A BigInt value currently set at name

  34. def peekMemory(name: String, index: Int): BigInt
  35. def poke(name: String, value: BigInt): Unit

    Pokes value to the port referenced by string Warning: pokes to components other than input ports is currently not supported but does not cause an error warning This feature should be supported soon

    Pokes value to the port referenced by string Warning: pokes to components other than input ports is currently not supported but does not cause an error warning This feature should be supported soon

    name

    the name of a port

    value

    a value to put on that port

  36. def pokeMemory(name: String, index: Int, value: BigInt): Unit

    Pokes value to the named memory at offset

    Pokes value to the named memory at offset

    name

    the name of a memory

    index

    the offset in the memory

    value

    a value to put on that port

  37. def randomize(): Unit
  38. def report(): Unit

    A simplistic report of the number of expects that passed

  39. def reportString: String
  40. def reset(timeRaised: Long): Unit
  41. def resetCoverage(): Unit

    resets all coverage counters to zero

  42. val resetName: String
  43. def setVerbose(value: Boolean = true): Unit
  44. val startTime: Long
  45. def step(n: Int = 1): Unit

    Cycles the circuit n steps (with a default of one) At each step registers and memories are advanced and all other elements recomputed

    Cycles the circuit n steps (with a default of one) At each step registers and memories are advanced and all other elements recomputed

    n

    cycles to perform

  46. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  47. def toString(): String
    Definition Classes
    AnyRef → Any
  48. val topName: String
  49. val vcdShowUnderscored: Boolean
  50. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  52. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  53. val wallTime: UTC

Deprecated Value Members

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

Inherited from AnyRef

Inherited from Any

Ungrouped