Packages

p

chiseltest

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
  2. trait ChiselUtestTester extends TestSuite with TestEnvInterface

    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
  4. class DecoupledDriver[T <: Data] extends AnyRef
  5. class LiteralTypeException extends Exception
  6. class NotLiteralException extends Exception
  7. sealed class Region extends AnyRef

    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
  9. class ThreadOrderDependentException extends Exception
  10. class TimeoutException extends Exception
  11. class UnpokeableException extends Exception
  12. class UnsupportedOperationException extends Exception
  13. class ValidDriver[T <: Data] extends AnyRef
  14. implicit class testableClock extends AnyRef
  15. implicit class testableData[T <: Data] extends AnyRef

Value Members

  1. implicit def decoupledToDriver[T <: Data](x: ReadyValidIO[T]): DecoupledDriver[T]
  2. def parallel(run1: ⇒ Unit, run2: ⇒ Unit): Unit
  3. def timescope(contents: ⇒ Unit): Unit
  4. implicit def validToDriver[T <: Data](x: ValidIO[T]): ValidDriver[T]
  5. object ClockResolutionUtils

    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.

  6. object DecoupledDriver
  7. object Monitor extends Region
  8. object RawTester

    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.

  9. object Region
  10. object TestInstance
  11. object TestdriverMain extends Region
  12. object ValidDriver
  13. object fork extends ForkBuilder

Inherited from AnyRef

Inherited from Any

Ungrouped