Package

chiseltest

Permalink

package chiseltest

Basic interfaces and implicit conversions for testers2

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. chiseltest
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait ChiselScalatestTester extends Assertions with TestSuiteMixin with TestEnvInterface

    Permalink
  2. trait ChiselUtestTester extends TestSuite with TestEnvInterface

    Permalink

    Using utest as test framework

    Using utest as test framework

    // define test spec in trait
    trait HasTestChipSpec {
      import chisel3.tester._
      def testChipSpec(dut: TestChip): Unit = { c =>
        // body of the unit test, c is a reference
        c.io.input.poke(1.U)
        c.io.output.expect(2.U)
      }
    }
    
    object SomeCircuitSpecTester extends ChiselUtestTester with HasSomeCircuitSpec {
      // define test by Tests macro
      val tests: Tests = Tests {
        // invoke test with test(""){}
        test("comments or name to a test"){
          // test function runs here
          testCircuit(new SomeCircuit, Seq(WriteVcdAnnotation))(SomeCircuitSpec)
        }
      }
    }
  3. class ClockResolutionException extends Exception

    Permalink
  4. class DecoupledDriver[T <: Data] extends AnyRef

    Permalink
  5. class LiteralTypeException extends Exception

    Permalink
  6. class NotLiteralException extends Exception

    Permalink
  7. sealed class Region extends AnyRef

    Permalink

    Base class for regions, akin to Verilog regions for ordering events between threads within the same timestep.

    Base class for regions, akin to Verilog regions for ordering events between threads within the same timestep. order is the order regions run in, with 0 being the default, and incrementing regions running later. TODO: have a more extensible ordering than ints.

  8. class TemporalParadox extends Exception

    Permalink
  9. class ThreadOrderDependentException extends Exception

    Permalink
  10. class TimeoutException extends Exception

    Permalink
  11. class UnpokeableException extends Exception

    Permalink
  12. class UnsupportedOperationException extends Exception

    Permalink
  13. class ValidDriver[T <: Data] extends AnyRef

    Permalink
  14. implicit class testableClock extends AnyRef

    Permalink
  15. implicit class testableData[T <: Data] extends AnyRef

    Permalink

Value Members

  1. object ClockResolutionUtils

    Permalink

    Provides clock-resolution-specific abstractions on top of getVar/setVar.

    Provides clock-resolution-specific abstractions on top of getVar/setVar. For library builders, not top-level test writers.

  2. object DecoupledDriver

    Permalink
  3. object Monitor extends Region

    Permalink
  4. object RawTester

    Permalink

    This is a simple tester that does not require that it be within the scope of a scalatest in order to run.

    This is a simple tester that does not require that it be within the scope of a scalatest in order to run. This form is suitable for running in the Jupyter notebook.

  5. object Region

    Permalink
  6. object TestInstance

    Permalink
  7. object TestdriverMain extends Region

    Permalink
  8. object ValidDriver

    Permalink
  9. package backends

    Permalink
  10. implicit def decoupledToDriver[T <: Data](x: ReadyValidIO[T]): DecoupledDriver[T]

    Permalink
  11. package experimental

    Permalink

    Your warranty is now void.

    Your warranty is now void.

    experimental contains cutting edge features that are, well, experimental, and carry no expectation of long-term support. We may break experimental APIs at any time. These may not work as expected, or may have unforeseen side effects, or may be powerful yet dangerous.

    You have been warned.

  12. object fork extends ForkBuilder

    Permalink
  13. package internal

    Permalink
  14. package legacy

    Permalink
  15. def parallel(run1: ⇒ Unit, run2: ⇒ Unit): Unit

    Permalink
  16. def timescope(contents: ⇒ Unit): Unit

    Permalink
  17. implicit def validToDriver[T <: Data](x: ValidIO[T]): ValidDriver[T]

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped