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): T

    Permalink
    Attributes
    protected
    Definition Classes
    BaseModule
  5. def _bindIoInPlace(iodef: core.Data): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    BaseModule
  6. var _closed: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    BaseModule
  7. def _compatAutoWrapPorts(): Unit

    Permalink
    Definition Classes
    BaseModule
  8. def _compatIoPortBound(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    LegacyModule
  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. def circuitName: String

    Permalink
    Attributes
    protected
    Definition Classes
    HasId
  12. val clock: core.Clock

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

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

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

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

    Permalink
  17. def desiredName: String

    Permalink
    Definition Classes
    BaseModule
  18. var enable_all_debug: Boolean

    Permalink
    Definition Classes
    HWIOTester
  19. var enable_printf_debug: Boolean

    Permalink
    Definition Classes
    HWIOTester
  20. var enable_scala_debug: Boolean

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    UserModule
  27. 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

  28. def getIds: Seq[HasId]

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

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

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

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

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

    Permalink
  34. def instanceName: String

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

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

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

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

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

    Permalink
    Definition Classes
    HWIOTester
  40. final val name: String

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  58. def processOutputEvents(): Unit

    Permalink
  59. val reset: Reset

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  64. final def toNamed: ModuleName

    Permalink
    Definition Classes
    BaseModule → InstanceId
  65. def toString(): String

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

    Permalink
  67. final def wait(): Unit

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

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

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

Deprecated Value Members

  1. def annotate(annotation: ChiselAnnotation): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    BaseModule
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1) Use chisel3.experimental.annotate instead

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