Asserts that the node's simulation value is equal to the given value.
Pokes a value into the circuit.
Holds the design in reset for some number (default 1) of clock cycles.
Instantiates a tester from a module generator, using default Tester options.
Instantiates a tester from a module generator, using default Tester options.
Steps the top-level clock by some number (default 1) of clock cycles.
Runs a test: runs the DUT generator, compiles it down to the requested backend, and runs the test sequence.
Runs a test: runs the DUT generator, compiles it down to the requested backend, and runs the test sequence.
This is the simple version, which uses default options.
test(new MyDut) {implicit t => c => poke(c.io.in, 0x41) step() check(c.io.out, 0x42) }
The advanced version of test, allowing custom options and requiring a custom backend.
This method has been deprecated in favor of macro assertion and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.
This method has been deprecated in favor of macro assertion and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.
This method has been deprecated in favor of macro assumption and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.
This method has been deprecated in favor of macro assumption and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.
This expect method has been deprecated. Please replace all invocations of expect with an identical invocation of assertResult instead.
This expect method has been deprecated. Please replace all invocations of expect with an identical invocation of assertResult instead.
This expectResult method has been deprecated. Please replace all invocations of expectResult with an identical invocation of assertResult instead.
This expectResult method has been deprecated. Please replace all invocations of expectResult with an identical invocation of assertResult instead.
EXPERIMENTAL test system that provides a more ScalaTest-ey way of specifying tests, making heavy use of implicits to reduce boilerplate.
API very subject to change.