Class/Object

Chisel.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
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. OrderedDecoupledHWIOTester
  2. HWIOTester
  3. BasicTester
  4. Module
  5. Nameable
  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, BigInt], event_number: Int) extends Product with Serializable

    Permalink
  3. type neededWireWraps = HashMap[StackTraceElement, ArrayBuffer[Data]]

    Permalink

    verifyWireWrap (Chisel3) - verify assignment semantics (type-only nodes must be wire-wrapped)

    verifyWireWrap (Chisel3) - verify assignment semantics (type-only nodes must be wire-wrapped)

    returns

    - HashMap of source lines (and associated nodes) requiring Wire() wrapping.

    Definition Classes
    Module

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. def <>(src: Module): Unit

    Permalink

    Connect io with matching names for two modules

    Connect io with matching names for two modules

    Definition Classes
    Module
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. var _clock: Option[Clock]

    Permalink
    Definition Classes
    Module
  6. def addClock(clock: Clock): Unit

    Permalink

    Add a clock to the module

    Add a clock to the module

    clock

    the clock to add

    Definition Classes
    Module
  7. def addDefaultReset: Unit

    Permalink

    Add a default reset to the module

    Add a default reset to the module

    Definition Classes
    Module
  8. def addModule[T <: Module](c: ⇒ T)(implicit p: Parameters = params): T

    Permalink

    Add a submodule to this module

    Add a submodule to this module

    Definition Classes
    Module
  9. def addModule[T <: Module](c: ⇒ T, f: PartialFunction[Any, Any]): T

    Permalink

    Add a submodule to this module

    Add a submodule to this module

    Definition Classes
    Module
  10. def addNode[T <: Node](node: T): T

    Permalink
    Definition Classes
    Module
  11. def addPin[T <: Data](pin: T, name: String = ""): T

    Permalink

    Add a pin with a name to the module

    Add a pin with a name to the module

    pin

    the I/O to add

    name

    A name for the pin

    Definition Classes
    Module
  12. def addResetPin(r: Bool): Bool

    Permalink

    returns

    the pin connected to the reset signal or creates a new one if no such pin exists

    Definition Classes
    Module
  13. def apply(name: String): Data

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

    Permalink
    Definition Classes
    Any
  15. def assert(cond: Bool, message: String = ""): Unit

    Permalink

    Add an assertion in the code generated by a backend.

    Add an assertion in the code generated by a backend.

    Definition Classes
    Module
  16. def bfs(visit: (Node) ⇒ Unit): Unit

    Permalink

    A breadth first search of the graph of nodes

    A breadth first search of the graph of nodes

    Definition Classes
    Module
  17. 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

  18. val children: ArrayBuffer[Module]

    Permalink
    Definition Classes
    Module
  19. def clock: Clock

    Permalink

    returns

    the implied clock for this module

    Definition Classes
    Module
  20. def clone(): AnyRef

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

    Permalink
  22. def debug(data: Aggregate): Unit

    Permalink
    Definition Classes
    Module
  23. def debug(x: Node): Unit

    Permalink

    Insures a backend does not remove a signal because it is unreachable from the outputs.

    Insures a backend does not remove a signal because it is unreachable from the outputs.

    Definition Classes
    Module
  24. val decoupled_control_port_to_output_values: HashMap[DecoupledIO[Data], ArrayBuffer[TestingEvent]]

    Permalink
  25. def dfs(visit: (Node) ⇒ Unit): Unit

    Permalink

    A depth first search of the graph of nodes

    A depth first search of the graph of nodes

    Definition Classes
    Module
  26. var enable_all_debug: Boolean

    Permalink
    Definition Classes
    HWIOTester
  27. var enable_printf_debug: Boolean

    Permalink
    Definition Classes
    HWIOTester
  28. var enable_scala_debug: Boolean

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

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

    Permalink
    Definition Classes
    Module → AnyRef → Any
  31. def error(message: String = ""): Unit

    Permalink
    Definition Classes
    BasicTester
  32. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  33. def findBinding(m: Node): Option[Binding]

    Permalink

    A method to trace the graph of nodes backwards looking at inputs

    A method to trace the graph of nodes backwards looking at inputs

    m

    Node to find bindings for

    returns

    nodes which have node m binded as their input

    Definition Classes
    Module
  34. 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
    OrderedDecoupledHWIOTesterHWIOTesterBasicTester
  35. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  36. 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

  37. def getPathName(separator: String = "_"): String

    Permalink

    separator

    The separator to use for the path name

    returns

    the absolute path to a component instance from toplevel

    Definition Classes
    Module
  38. def getPathName: String

    Permalink

    returns

    the absolute path to a component instance from toplevel

    Definition Classes
    Module
  39. val hashCode: Int

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

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

    Permalink
  42. def int(x: Bits): BigInt

    Permalink
    Definition Classes
    HWIOTester
  43. val io: Bundle { ... /* 4 definitions in type refinement */ }

    Permalink

    the I/O for this module

    the I/O for this module

    Definition Classes
    HWIOTesterBasicTesterModule
  44. var io_info: IOAccessor

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

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

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

    Permalink
    Definition Classes
    HWIOTester
  48. var moduleName: String

    Permalink

    Name of the module this component generates (defaults to class name).

    Name of the module this component generates (defaults to class name).

    Definition Classes
    Module
  49. var name: String

    Permalink

    Name of the instance.

    Name of the instance.

    Definition Classes
    Nameable
  50. var named: Boolean

    Permalink

    named is used to indicate that name was set explicitly and should not be overriden

    named is used to indicate that name was set explicitly and should not be overriden

    Definition Classes
    Nameable
  51. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  52. def nextIndex: Int

    Permalink
    Definition Classes
    Module
  53. final def notify(): Unit

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

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

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

    Permalink
  57. lazy val params: Parameters

    Permalink
    Definition Classes
    Module
  58. var parent: Module

    Permalink
    Definition Classes
    Module
  59. def popCount(n: Long): Int

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

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

    Permalink
  62. def printf(message: String, args: Node*): Unit

    Permalink

    Adds a printf to the module called each clock cycle

    Adds a printf to the module called each clock cycle

    message

    A c style sting to print out eg) %d, %x

    args

    Nodes whos data values should be printed

    Definition Classes
    Module
  63. 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

  64. def processOutputEvents(): Unit

    Permalink
  65. def reset: Bool

    Permalink

    returns

    the implied reset for this module

    Definition Classes
    Module
  66. val rnd: Random

    Permalink
    Definition Classes
    HWIOTester
  67. val setDone: Bool

    Permalink
    Definition Classes
    BasicTester
  68. val setError: Bool

    Permalink
    Definition Classes
    BasicTester
  69. def setModuleName(n: String): Unit

    Permalink

    Set the declaration name of the module to be string 'n'

    Set the declaration name of the module to be string 'n'

    Definition Classes
    Module
  70. def setName(n: String): Unit

    Permalink

    Set the name of this module to the string 'n'

    Set the name of this module to the string 'n'

    Definition Classes
    Nameable
    Example:
    1. my.io.node.setName("MY_IO_NODE")
  71. def stop(): Unit

    Permalink

    Ends the test reporting success.

    Ends the test reporting success.

    Does not fire when in reset (defined as the encapsulating Module's reset). If your definition of reset is not the encapsulating Module's reset, you will need to gate this externally.

    Definition Classes
    BasicTester
  72. def stripComponent(s: String): String

    Permalink
    Definition Classes
    Module
  73. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

    Permalink
  76. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  79. def wires: Array[(String, Bits)]

    Permalink

    Get the I/O names and connections

    Get the I/O names and connections

    Definition Classes
    Module

Inherited from HWIOTester

Inherited from BasicTester

Inherited from Module

Inherited from Nameable

Inherited from AnyRef

Inherited from Any

Ungrouped