Class/Object

Chisel.hwiotesters

OrderedDecoupledHWIOTester

Related Docs: object OrderedDecoupledHWIOTester | package hwiotesters

Permalink

abstract class OrderedDecoupledHWIOTester extends HWIOTester

Base class supports implementation of test circuits of modules that use Decoupled inputs and either Decoupled or Valid outputs Multiple decoupled inputs are supported. Testers that subclass this will be strictly ordered. Input will flow into their devices asynchronously but in order they were generated be compared in the order they are generated

Example:
  1. class XTimesXTester extends [[OrderedDecoupledHWIOTester]] {
      val device_under_test = new XTimesY
      test_block {
        for {
          i <- 0 to 10
          j <- 0 to 10
        } {
          input_event(device_under_test.io.in.x -> i, device_under_test.in.y -> j)
          output_event(device_under_test.io.out.z -> i*j)
        }
      }
    }

    an input event is a series of values that will be gated into the decoupled input interface at the same time an output event is a series of values that will be tested at the same time independent small state machines are set up for input and output interface all inputs regardless of interfaces are submitted to the device under test in the order in which they were created likewise, all outputs regardless of which interface are tested in the same order that they were created

Linear Supertypes
HWIOTester, BasicTester, Module, HasId, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. OrderedDecoupledHWIOTester
  2. HWIOTester
  3. BasicTester
  4. Module
  5. HasId
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OrderedDecoupledHWIOTester()

    Permalink

Type Members

  1. class GlobalEventCounter extends AnyRef

    Permalink
  2. case class TestingEvent(port_values: Map[Data, Int], event_number: Int) 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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def checkAndGetCommonDecoupledOrValidParentPort(pokes: Seq[(Data, Int)], must_be_decoupled: Boolean = true, event_number: Int): Either[DecoupledIO[Data], ValidIO[Data]]

    Permalink

    Validate that all pokes ports are members of the same DecoupledIO makes a list of all decoupled parents based on the ports referenced in pokes

  6. val clock: Clock

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val control_port_to_input_values: HashMap[DecoupledIO[Data], ArrayBuffer[TestingEvent]]

    Permalink
  9. val decoupled_control_port_to_output_values: HashMap[DecoupledIO[Data], ArrayBuffer[TestingEvent]]

    Permalink
  10. var enable_all_debug: Boolean

    Permalink
    Definition Classes
    HWIOTester
  11. var enable_printf_debug: Boolean

    Permalink
    Definition Classes
    HWIOTester
  12. var enable_scala_debug: Boolean

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

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

    Permalink

    this builds a circuit to load inputs and circuits to test outputs that are controlled by either a decoupled or valid

    this builds a circuit to load inputs and circuits to test outputs that are controlled by either a decoupled or valid

    Definition Classes
    OrderedDecoupledHWIOTesterHWIOTester → BasicTester
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def getCommonValidParentPort(expects: Seq[(Data, Int)], event_number: Int): Either[DecoupledIO[Data], ValidIO[Data]]

    Permalink

    Validate that all pokes ports are members of the same DecoupledIO or ValidIO makes a list of all decoupled parents based on the ports referenced in pokes

  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. def inputEvent(pokes: (Data, Int)*): Unit

    Permalink
  21. val input_event_list: ArrayBuffer[Seq[(Data, Int)]]

    Permalink
  22. val io: Bundle

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

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

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

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

    Permalink
    Definition Classes
    HWIOTester
  27. val name: String

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

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

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

    Permalink
    Definition Classes
    AnyRef
  31. def outputEvent(expects: (Data, Int)*): Unit

    Permalink
  32. val output_event_list: ArrayBuffer[Seq[(Data, Int)]]

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

    Permalink
    Definition Classes
    BasicTester
  34. val port_to_decoupled: HashMap[Data, DecoupledIO[Data]]

    Permalink
  35. val port_to_valid: HashMap[Data, ValidIO[Data]]

    Permalink
  36. def processInputEvents(): Unit

    Permalink

    iterate over recorded events, checking constraints on ports referenced, etc.

    iterate over recorded events, checking constraints on ports referenced, etc. use poke and expect to record

  37. def processOutputEvents(): Unit

    Permalink
  38. val reset: Bool

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

    Permalink
    Definition Classes
    HWIOTester
  40. def stop(): Unit

    Permalink
    Definition Classes
    BasicTester
  41. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  43. val valid_control_port_to_output_values: HashMap[ValidIO[Data], ArrayBuffer[TestingEvent]]

    Permalink
  44. final def wait(): Unit

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

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

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

Inherited from HWIOTester

Inherited from BasicTester

Inherited from Module

Inherited from HasId

Inherited from AnyRef

Inherited from Any

Ungrouped