Will add a TargetDirAnnotation with defaultDir with "test_run_dir" path prefix to the annotations if there is not a TargetDirAnnotation already present
Will add a TargetDirAnnotation with defaultDir with "test_run_dir" path prefix to the annotations if there is not a TargetDirAnnotation already present
a default directory
annotations to add it to, unless one is already there
If there are any failures, reports them and end the test now.
If there are any failures, reports them and end the test now.
Since utest.test collides with chisel3.tester.RawTester.test, it is renamed to testCircuit, Here is a example to constructs a unit test harness for the Chisel Module PlusOne generated as dutGen.
Since utest.test collides with chisel3.tester.RawTester.test, it is renamed to testCircuit, Here is a example to constructs a unit test harness for the Chisel Module PlusOne generated as dutGen.
testCircuit(new PlusOne) { c => // body of the unit test, c is a a reference c.io.input.poke(1.U) c.io.output.expect(2.U) }
If you need to add your own AnnotationSeq to this test, you can add it as second parameter.
For example:
// WriteVcdAnnotation will ask backend export VCD file testCircuit(new PlusOne, Seq(WriteVcdAnnotation)) { c => // body of the unit test, c is a a reference c.io.input.poke(1.U) c.io.output.expect(2.U) }
The DUT type, must be a subclass of MultiIOModule
A generator of a Chisel Module
This API is experimental and forward compatibility is not yet guaranteed
Expect a specific value on a wire, calling testerFail if the expectation isn't met.
Expect a specific value on a wire, calling testerFail if the expectation isn't met. Failures queued until the next checkpoint.
Logs a tester failure at this point.
Logs a tester failure at this point. Failures queued until the next checkpoint.
Using utest as test framework