Class

firrtl_interpreter

InterpretiveTester

Related Doc: package firrtl_interpreter

Permalink

class InterpretiveTester 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
InterpretiveTester.scala
Linear Supertypes
AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. InterpretiveTester
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new InterpretiveTester(input: String, optionsManager: ExecutionOptionsManager with HasInterpreterOptions = ...)

    Permalink

    input

    a firrtl program contained in a string

    optionsManager

    collection of options for the interpreter

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. val commonOptions: CommonOptions

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def expect(name: String, expectedValue: BigInt): 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

  10. var expectationsMet: Int

    Permalink
  11. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. val interpreter: FirrtlTerp

    Permalink
  15. val interpreterOptions: InterpreterOptions

    Permalink
  16. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  20. 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

  21. def peekConcrete(name: String): Concrete

    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

    An internal concrete value currently set at name

  22. def poke(name: String, value: Concrete): 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

  23. 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

  24. def report(): Unit

    Permalink

    A simplistic report of the number of expects that passed and

  25. def reportString: String

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

    Permalink
  27. val startTime: Long

    Permalink
  28. 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

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped