HasTests

chisel3.experimental.inlinetest.HasTests
trait HasTests

Provides methods to build unit testharnesses inline after this module is elaborated.

Attributes

Source
InlineTest.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

protected def elaborateTests: Boolean

Whether inline tests will be elaborated as a top-level definition to the circuit.

Whether inline tests will be elaborated as a top-level definition to the circuit.

Attributes

Source
InlineTest.scala
def getTests: Seq[TestParameters[M]]

Get all enabled tests for this module.

Get all enabled tests for this module.

Attributes

Source
InlineTest.scala
final protected def test(testName: String)(testBody: (Instance[HasTests]) => TestConfiguration)(implicit testHarnessGenerator: TestHarnessGenerator[HasTests]): Unit

Generate a public module that instantiates this module. The default testharness has clock and synchronous reset IOs and contains the test body.

Generate a public module that instantiates this module. The default testharness has clock and synchronous reset IOs and contains the test body.

Value parameters

testBody

the circuit to elaborate inside the testharness

Attributes

Source
InlineTest.scala