TestBuilder

chiseltest.ChiselScalatestTester.TestBuilder
class TestBuilder[T <: Module](dutGen: => T, autoReset: Boolean, resetCyc: Int)

Builder class to support .withAnnotations() chaining

Value parameters

autoReset

Whether automatic reset is enabled

dutGen

Generator for the device under test

resetCyc

Number of reset cycles to apply

Attributes

Source
ChiselScalatestTester.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def apply(body: T => Unit): Unit

Run the test body without explicit annotations.

Run the test body without explicit annotations.

Value parameters

body

User-defined test body operating on the DUT instance

Attributes

Source
ChiselScalatestTester.scala
def withAnnotations(annotations: Seq[Any]): TestRunner[T]

Attach ChiselTest-style annotations before running the test.

Attach ChiselTest-style annotations before running the test.

Value parameters

annotations

Annotation list (for example WriteVcdAnnotation)

Attributes

Returns

A runner that executes the test with the provided annotations

Source
ChiselScalatestTester.scala