package inlinetest
- Alphabetic
- Public
- Protected
Type Members
- trait HasTests extends AnyRef
Provides methods to build unit testharnesses inline after this module is elaborated.
- abstract class TestHarness[M <: RawModule, R] extends FixedIOModule[TestResultBundle] with Public
TestHarnesses for inline tests should extend this.
TestHarnesses for inline tests should extend this. This abstract class sets the correct desiredName for the module, instantiates the DUT, and provides methods to generate the test. The resetType matches that of the DUT, or is Synchronous if it must be inferred (this can be overriden).
A TestHarness has the following ports:
- clock: shall be driven at a constant frequency by the simulation. - reset: shall be asserted for one cycle from the first positive edge of clock by the simulation. - reset: shall be asserted for one cycle from the first positive edge of clock by the simulation. - finish: the test shall be considered complete on the first positive edge of finish.
- M
the type of the DUT module
- R
the type of the result returned by the test body
- trait TestHarnessGenerator[M <: RawModule, R] extends AnyRef
An implementation of a testharness generator.
An implementation of a testharness generator. This is a type class that defines how to generate a testharness. It is passed to each invocation of HasTests.test.
- M
the type of the DUT module
- R
the type of the result returned by the test body
- abstract class TestHarnessWithResult[M <: RawModule] extends TestHarness[M, TestResultBundle]
TestHarnesses for inline tests should extend this.
TestHarnesses for inline tests should extend this. This abstract class sets the correct desiredName for the module, instantiates the DUT, and provides methods to generate the test. The resetType matches that of the DUT, or is Synchronous if it must be inferred (this can be overriden).
- M
the type of the DUT module
- final class TestParameters[M <: RawModule, R] extends AnyRef
Per-test parametrization needed to build a testharness that instantiates the DUT and elaborates a test body.
Per-test parametrization needed to build a testharness that instantiates the DUT and elaborates a test body.
- M
the type of the DUT module
- R
the type of the result returned by the test body
- final class TestResultBundle extends Bundle
IO that reports the status of the test implemented by a testharness.
Value Members
- object TestHarnessGenerator
This is the documentation for Chisel.
Package structure
The chisel3 package presents the public API of Chisel. It contains the concrete core types
UInt
,SInt
,Bool
,Clock
, andReg
, the abstract typesBits
,Aggregate
, andData
, and the aggregate typesBundle
andVec
.The Chisel package is a compatibility layer that attempts to provide chisel2 compatibility in chisel3.
Utility objects and methods are found in the
util
package.The
testers
package defines the basic interface for chisel testers.