Trait

chisel3.iotesters.experimental

ImplicitPokeTester

Related Doc: package experimental

Permalink

trait ImplicitPokeTester extends ChiselPokeTesterUtils

EXPERIMENTAL test system that provides a more ScalaTest-ey way of specifying tests, making heavy use of implicits to reduce boilerplate.

API very subject to change.

Source
ChiselPokeSpec.scala
Linear Supertypes
ChiselPokeTesterUtils, Assertions, TripleEquals, TripleEqualsSupport, AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ImplicitPokeTester
  2. ChiselPokeTesterUtils
  3. Assertions
  4. TripleEquals
  5. TripleEqualsSupport
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. class AssertionsHelper extends AnyRef

    Permalink
    Definition Classes
    Assertions
  2. class CheckingEqualizer[L] extends AnyRef

    Permalink
    Definition Classes
    TripleEqualsSupport
  3. class Equalizer[L] extends AnyRef

    Permalink
    Definition Classes
    TripleEqualsSupport
  4. class InnerTester extends AnyRef

    Permalink
    Definition Classes
    ChiselPokeTesterUtils
  5. class LegacyCheckingEqualizer[L] extends AnyRef

    Permalink
    Definition Classes
    TripleEqualsSupport
  6. class LegacyEqualizer[L] extends AnyRef

    Permalink
    Definition Classes
    TripleEqualsSupport

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. def !==[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  3. def !==(right: Null): TripleEqualsInvocation[Null]

    Permalink
    Definition Classes
    TripleEqualsSupport
  4. def !==[T](right: T): TripleEqualsInvocation[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  5. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. def ===[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  8. def ===(right: Null): TripleEqualsInvocation[Null]

    Permalink
    Definition Classes
    TripleEqualsSupport
  9. def ===[T](right: T): TripleEqualsInvocation[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. macro def assert(condition: Boolean, clue: Any): Unit

    Permalink
    Definition Classes
    Assertions
  12. macro def assert(condition: Boolean): Unit

    Permalink
    Definition Classes
    Assertions
  13. macro def assertCompiles(code: String): Unit

    Permalink
    Definition Classes
    Assertions
  14. macro def assertDoesNotCompile(code: String): Unit

    Permalink
    Definition Classes
    Assertions
  15. def assertResult(expected: Any)(actual: Any): Unit

    Permalink
    Definition Classes
    Assertions
  16. def assertResult(expected: Any, clue: Any)(actual: Any): Unit

    Permalink
    Definition Classes
    Assertions
  17. macro def assertTypeError(code: String): Unit

    Permalink
    Definition Classes
    Assertions
  18. val assertionsHelper: AssertionsHelper

    Permalink
    Definition Classes
    Assertions
  19. macro def assume(condition: Boolean, clue: Any): Unit

    Permalink
    Definition Classes
    Assertions
  20. macro def assume(condition: Boolean): Unit

    Permalink
    Definition Classes
    Assertions
  21. def boolean2BigInt(in: Boolean): BigInt

    Permalink
  22. def cancel(cause: Throwable): Nothing

    Permalink
    Definition Classes
    Assertions
  23. def cancel(message: String, cause: Throwable): Nothing

    Permalink
    Definition Classes
    Assertions
  24. def cancel(message: String): Nothing

    Permalink
    Definition Classes
    Assertions
  25. def cancel(): Nothing

    Permalink
    Definition Classes
    Assertions
  26. def check(ref: Bool, value: Boolean, msg: String)(implicit t: InnerTester): Unit

    Permalink
  27. def check(ref: Bool, value: Boolean)(implicit t: InnerTester): Unit

    Permalink
  28. def check(ref: Bits, value: BigInt, msg: String)(implicit t: InnerTester): Unit

    Permalink

    Asserts that the node's simulation value is equal to the given value.

  29. def check(ref: Bits, value: BigInt)(implicit t: InnerTester): Unit

    Permalink
  30. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def conversionCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], cnv: (B) ⇒ A): Constraint[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  32. def convertEquivalenceToAToBConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: <:<[A, B]): Constraint[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  33. def convertEquivalenceToAToBConversionConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: (A) ⇒ B): Constraint[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  34. def convertEquivalenceToBToAConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: <:<[B, A]): Constraint[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  35. def convertEquivalenceToBToAConversionConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: (B) ⇒ A): Constraint[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  36. def convertToCheckingEqualizer[T](left: T): CheckingEqualizer[T]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  37. implicit def convertToEqualizer[T](left: T): Equalizer[T]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  38. def convertToLegacyCheckingEqualizer[T](left: T): LegacyCheckingEqualizer[T]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  39. def convertToLegacyEqualizer[T](left: T): LegacyEqualizer[T]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  40. def defaultEquality[A]: Equality[A]

    Permalink
    Definition Classes
    TripleEqualsSupport
  41. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  43. def fail(cause: Throwable): Nothing

    Permalink
    Definition Classes
    Assertions
  44. def fail(message: String, cause: Throwable): Nothing

    Permalink
    Definition Classes
    Assertions
  45. def fail(message: String): Nothing

    Permalink
    Definition Classes
    Assertions
  46. def fail(): Nothing

    Permalink
    Definition Classes
    Assertions
  47. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  48. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  49. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  50. def intercept[T <: AnyRef](f: ⇒ Any)(implicit manifest: Manifest[T]): T

    Permalink
    Definition Classes
    Assertions
  51. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  52. def lowPriorityConversionCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], cnv: (A) ⇒ B): Constraint[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  53. def lowPriorityTypeCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], ev: <:<[A, B]): Constraint[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  54. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  57. def poke(ref: Bool, value: Boolean)(implicit t: InnerTester): Unit

    Permalink
  58. def poke(ref: Bits, value: BigInt)(implicit t: InnerTester): Unit

    Permalink

    Pokes a value into the circuit.

  59. def reset(cycles: Int = 1)(implicit t: InnerTester): Unit

    Permalink

    Holds the design in reset for some number (default 1) of clock cycles.

  60. def runTester[T <: Module](dutGen: ⇒ T, testerBackend: TesterBackend, options: TesterOptionsManager)(block: (InnerTester, T) ⇒ Unit): Unit

    Permalink

    Instantiates a tester from a module generator, using default Tester options.

    Instantiates a tester from a module generator, using default Tester options.

    Attributes
    protected
    Definition Classes
    ChiselPokeTesterUtils
  61. def step(cycles: Int = 1)(implicit t: InnerTester): Unit

    Permalink

    Steps the top-level clock by some number (default 1) of clock cycles.

  62. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  63. def test[T <: Module](dutGen: ⇒ T, testerBackend: TesterBackend = FirrtlInterpreterBackend)(block: (InnerTester) ⇒ (T) ⇒ Unit): Unit

    Permalink

    Runs a test: runs the DUT generator, compiles it down to the requested backend, and runs the test sequence.

    Runs a test: runs the DUT generator, compiles it down to the requested backend, and runs the test sequence.

    This is the simple version, which uses default options.

    Example:
    1. test(new MyDut) {implicit t => c =>
        poke(c.io.in, 0x41)
        step()
        check(c.io.out, 0x42)
      }
  64. def test[T <: Module](dutGen: ⇒ T, testerBackend: TesterBackend, options: TesterOptionsManager)(block: (InnerTester) ⇒ (T) ⇒ Unit): Unit

    Permalink

    The advanced version of test, allowing custom options and requiring a custom backend.

  65. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  66. def trap[T](f: ⇒ T): Throwable

    Permalink
    Definition Classes
    Assertions
  67. def typeCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], ev: <:<[B, A]): Constraint[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  68. implicit def unconstrainedEquality[A, B](implicit equalityOfA: Equality[A]): Constraint[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  69. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  72. def withClue[T](clue: Any)(fun: ⇒ T): T

    Permalink
    Definition Classes
    Assertions

Deprecated Value Members

  1. def assert(o: Option[String]): Unit

    Permalink
    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    This method has been deprecated in favor of macro assertion and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.

  2. def assert(o: Option[String], clue: Any): Unit

    Permalink
    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    This method has been deprecated in favor of macro assertion and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.

  3. def assume(o: Option[String]): Unit

    Permalink
    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    This method has been deprecated in favor of macro assumption and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.

  4. def assume(o: Option[String], clue: Any): Unit

    Permalink
    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    This method has been deprecated in favor of macro assumption and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.

  5. def expect(expected: Any)(actual: Any): Unit

    Permalink
    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    This expect method has been deprecated. Please replace all invocations of expect with an identical invocation of assertResult instead.

  6. def expect(expected: Any, clue: Any)(actual: Any): Unit

    Permalink
    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    This expect method has been deprecated. Please replace all invocations of expect with an identical invocation of assertResult instead.

  7. def expectResult(expected: Any)(actual: Any): Unit

    Permalink
    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    This expectResult method has been deprecated. Please replace all invocations of expectResult with an identical invocation of assertResult instead.

  8. def expectResult(expected: Any, clue: Any)(actual: Any): Unit

    Permalink
    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    This expectResult method has been deprecated. Please replace all invocations of expectResult with an identical invocation of assertResult instead.

Inherited from ChiselPokeTesterUtils

Inherited from Assertions

Inherited from TripleEquals

Inherited from TripleEqualsSupport

Inherited from AnyRef

Inherited from Any

Ungrouped