Class/Object

treadle

TreadleTester

Related Docs: object TreadleTester | package treadle

Permalink

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

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

Instance Constructors

  1. new TreadleTester(input: String, optionsManager: HasTreadleSuite, circuitForm: Any = 0)

    Permalink
  2. new TreadleTester(annotationSeq: AnnotationSeq)

    Permalink

    annotationSeq

    firrtl circuit and parameters for tester are to be found here

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

    Permalink

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

    Advance time in ticks of the treadle.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. def allWaveformValues: WaveformValues

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clearForceValue(name: String): Unit

    Permalink
  8. val clockInfoList: Seq[ClockInfo]

    Permalink
  9. val clockStepper: ClockStepper

    Permalink
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val combinationalDelay: Long

    Permalink
  12. def cycleCount: Long

    Permalink
  13. def dependencyInfo(symbolName: String): String

    Permalink
  14. val engine: ExecutionEngine

    Permalink
  15. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def expect(name: String, expectedValue: BigInt, message: String = ""): Unit

    Permalink

    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

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

    Permalink

    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

  19. var expectationsMet: Int

    Permalink
  20. def fail(ex: Throwable, msg: Option[String] = None): Nothing

    Permalink

    Indicate failure due to an exception.

    Indicate failure due to an exception.

    ex

    exception causing the failure

    msg

    optional message to be printed

  21. def fail(code: Int): Unit

    Permalink
  22. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def finish: Boolean

    Permalink
  24. def forceValue(name: String, value: BigInt): Unit

    Permalink
  25. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  26. def getStopResult: Option[Int]

    Permalink
  27. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  29. def isOK: Boolean

    Permalink
  30. def isRegister(symbolName: String): Boolean

    Permalink
  31. def makeSnapshot(): Unit

    Permalink
  32. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  35. def peek(name: String): BigInt

    Permalink

    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

  36. def peekMemory(name: String, index: Int): BigInt

    Permalink
  37. def poke(name: String, value: BigInt): Unit

    Permalink

    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

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

    Permalink

    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

  39. def randomize(): Unit

    Permalink
  40. def report(): Unit

    Permalink

    A simplistic report of the number of expects that passed

  41. def reportString: String

    Permalink
  42. def reset(timeRaised: Long): Unit

    Permalink
  43. val resetName: String

    Permalink
  44. def setVerbose(value: Boolean = true): Unit

    Permalink
  45. val startTime: Long

    Permalink
  46. def step(n: Int = 1): Unit

    Permalink

    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

  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  48. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  49. val topName: String

    Permalink
  50. val vcdShowUnderscored: Boolean

    Permalink
  51. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. val wallTime: UTC

    Permalink
  55. def waveformValues(symbolNames: Array[String] = Array[String](), startCycle: Int = 0, endCycle: Int = 1): WaveformValues

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped