Class/Object

chisel3.iotesters

OrderedDecoupledHWIOTester

Related Docs: object OrderedDecoupledHWIOTester | package iotesters

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

Source
OrderedDecoupledHWIOTester.scala
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, LegacyModule, ImplicitModule, UserModule, BaseModule, HasId, InstanceId, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OrderedDecoupledHWIOTester
  2. HWIOTester
  3. BasicTester
  4. LegacyModule
  5. ImplicitModule
  6. UserModule
  7. BaseModule
  8. HasId
  9. InstanceId
  10. AnyRef
  11. 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, BigInt], 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. def IO[T <: core.Data](iodef: T): iodef.type

    Permalink
    Attributes
    protected
    Definition Classes
    BaseModule
  5. def _autoWrapPorts(): Unit

    Permalink
    Definition Classes
    BaseModule
  6. var _closed: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    BaseModule
  7. def _ioPortBound(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    LegacyModule
  8. def annotate(annotation: ChiselAnnotation): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    BaseModule
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def checkAndGetCommonDecoupledOrValidParentPort(pokes: Seq[(Data, BigInt)], 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

  11. val clock: core.Clock

    Permalink
    Definition Classes
    ImplicitModule
  12. def clone(): AnyRef

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

    Permalink
    Definition Classes
    UserModule
  14. val control_port_to_input_values: HashMap[DecoupledIO[Data], ArrayBuffer[TestingEvent]]

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

    Permalink
  16. def desiredName: String

    Permalink
    Definition Classes
    BaseModule
  17. var enable_all_debug: Boolean

    Permalink
    Definition Classes
    HWIOTester
  18. var enable_printf_debug: Boolean

    Permalink
    Definition Classes
    HWIOTester
  19. var enable_scala_debug: Boolean

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. 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
  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. def getCommands: Seq[Command]

    Permalink
    Attributes
    protected
    Definition Classes
    UserModule
  26. def getCommonValidParentPort(expects: Seq[(Data, BigInt)], 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

  27. def getIds: Seq[HasId]

    Permalink
    Attributes
    protected
    Definition Classes
    BaseModule
  28. def getModulePorts: Seq[core.Data]

    Permalink
    Attributes
    protected
    Definition Classes
    BaseModule
  29. lazy val getPorts: Seq[Port]

    Permalink
    Definition Classes
    UserModule
  30. def hashCode(): Int

    Permalink
    Definition Classes
    HasId → AnyRef → Any
  31. def inputEvent(pokes: (Data, BigInt)*): Unit

    Permalink
  32. val input_event_list: ArrayBuffer[Seq[(Data, BigInt)]]

    Permalink
  33. def instanceName: String

    Permalink
    Definition Classes
    BaseModule → HasId → InstanceId
  34. val io: core.Bundle

    Permalink
    Definition Classes
    BasicTester → LegacyModule
  35. var io_info: IOAccessor

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

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

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

    Permalink
    Definition Classes
    HWIOTester
  39. final val name: String

    Permalink
    Definition Classes
    BaseModule
  40. def nameIds(rootClass: Class[_]): HashMap[HasId, String]

    Permalink
    Attributes
    protected
    Definition Classes
    LegacyModule → BaseModule
  41. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  44. def outputEvent(expects: (Data, BigInt)*): Unit

    Permalink
  45. val output_event_list: ArrayBuffer[Seq[(Data, BigInt)]]

    Permalink
  46. var override_clock: Option[core.Clock]

    Permalink
    Attributes
    protected
    Definition Classes
    LegacyModule
  47. var override_reset: Option[core.Bool]

    Permalink
    Attributes
    protected
    Definition Classes
    LegacyModule
  48. def parentModName: String

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

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

    Permalink
    Definition Classes
    HasId → InstanceId
  51. def popCount(n: Long): Int

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

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

    Permalink
  54. def portsContains(elem: core.Data): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    BaseModule
  55. def portsSize: Int

    Permalink
    Attributes
    protected
    Definition Classes
    BaseModule
  56. 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

  57. def processOutputEvents(): Unit

    Permalink
  58. val reset: Reset

    Permalink
    Definition Classes
    ImplicitModule
  59. val rnd: Random.type

    Permalink
    Definition Classes
    HWIOTester
  60. def stop()(implicit sourceInfo: SourceInfo): Unit

    Permalink
    Definition Classes
    BasicTester
  61. def suggestName(name: ⇒ String): OrderedDecoupledHWIOTester.this.type

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

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

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

    Permalink
  65. final def wait(): Unit

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

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

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

Inherited from HWIOTester

Inherited from BasicTester

Inherited from LegacyModule

Inherited from ImplicitModule

Inherited from UserModule

Inherited from BaseModule

Inherited from HasId

Inherited from InstanceId

Inherited from AnyRef

Inherited from Any

Ungrouped