Class

chisel3.iotesters

SteppedHWIOTester

Related Doc: package iotesters

Permalink

abstract class SteppedHWIOTester extends HWIOTester

Use a UnitTester to construct a test harness for a chisel module this module will be canonically referred to as the device_under_test, often simply as c in a unit test, and also dut The UnitTester is used to put series of values (as chisel3.Vec's) into the ports of the dut io which are INPUT At specified times it check the dut io OUTPUT ports to see that they match a specific value The vec's are assembled through the following API poke, expect and step, pokes

Source
SteppedHWIOTester.scala
Example:
  1. class Adder(width:Int) extends Module {
      val io = new Bundle {
        val in0 : UInt(INPUT, width=width)
        val in1 : UInt(INPUT, width=width)
        val out : UInt(OUTPUT, width=width)
      }
    }
    class AdderTester extends UnitTester {
      val device_under_test = Module( new Adder(32) )
      testBlock {
        poke(c.io.in0, 5)
        poke(c.io.in1, 7)
        expect(c.io.out, 12)
      }
    }
Linear Supertypes
HWIOTester, BasicTester, core.Module, HasId, InstanceId, AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SteppedHWIOTester
  2. HWIOTester
  3. BasicTester
  4. Module
  5. HasId
  6. InstanceId
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SteppedHWIOTester()

    Permalink

Type Members

  1. case class Step(input_map: HashMap[Data, BigInt], output_map: HashMap[Data, BigInt]) extends Product with Serializable

    Permalink

Abstract Value Members

  1. abstract val device_under_test: Module

    Permalink
    Definition Classes
    HWIOTester

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. def IO[T <: core.Data](iodef: T): iodef.type

    Permalink
    Definition Classes
    Module
  5. def annotate(annotation: core.ChiselAnnotation): Unit

    Permalink
    Definition Classes
    Module
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. val clock: core.Clock

    Permalink
    Definition Classes
    Module
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val compileOptions: CompileOptions

    Permalink
    Definition Classes
    Module
  10. def desiredName: String

    Permalink
    Definition Classes
    Module
  11. def dir(target: Data): Direction

    Permalink
  12. var enable_all_debug: Boolean

    Permalink
    Definition Classes
    HWIOTester
  13. var enable_printf_debug: Boolean

    Permalink
    Definition Classes
    HWIOTester
  14. var enable_scala_debug: Boolean

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

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

    Permalink
    Definition Classes
    HasId → AnyRef → Any
  17. def expect(io_port: Data, bool_value: Boolean): Unit

    Permalink
  18. def expect(io_port: Data, value: BigInt): Unit

    Permalink
  19. def finalize(): Unit

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

    Permalink
    Definition Classes
    SteppedHWIOTesterHWIOTester → BasicTester
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. lazy val getPorts: Seq[Port]

    Permalink
    Definition Classes
    Module
  23. def hashCode(): Int

    Permalink
    Definition Classes
    HasId → AnyRef → Any
  24. def instanceName: String

    Permalink
    Definition Classes
    Module → HasId → InstanceId
  25. val io: core.Bundle

    Permalink
    Definition Classes
    BasicTester → Module
  26. var io_info: IOAccessor

    Permalink
    Definition Classes
    HWIOTester
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def logPrintfDebug(fmt: String, args: Bits*): Unit

    Permalink
    Definition Classes
    HWIOTester
  29. def logScalaDebug(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    HWIOTester
  30. final val name: String

    Permalink
    Definition Classes
    Module
  31. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  34. def parentModName: String

    Permalink
    Definition Classes
    HasId → InstanceId
  35. def parentPathName: String

    Permalink
    Definition Classes
    HasId → InstanceId
  36. def pathName: String

    Permalink
    Definition Classes
    HasId → InstanceId
  37. def poke(io_port: Data, value: BigInt): Unit

    Permalink
  38. def popCount(n: Long): Int

    Permalink
    Definition Classes
    BasicTester
  39. val reset: core.Bool

    Permalink
    Definition Classes
    Module
  40. val rnd: Random.type

    Permalink
    Definition Classes
    HWIOTester
  41. def step(number_of_cycles: Int): Unit

    Permalink
  42. def stop()(implicit sourceInfo: SourceInfo): Unit

    Permalink
    Definition Classes
    BasicTester
  43. def suggestName(name: ⇒ String): SteppedHWIOTester.this.type

    Permalink
    Definition Classes
    HasId
  44. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from HWIOTester

Inherited from BasicTester

Inherited from core.Module

Inherited from HasId

Inherited from InstanceId

Inherited from AnyRef

Inherited from Any

Ungrouped