Other tools can use this information to, for example, collect all modules marked as simulation tests and run them in a simulator. This is particularly useful in combination with the UnitTest trait.
Value parameters
module
The module to be marked.
name
Optional name for the test. Uses the module name by default.
params
Optional user-defined test parameters.
Attributes
Example
The following creates a module marked as a simulation test:
class TestHarness extends RawModule {
SimulationTest(this)
}
Additional parameters may be passed to the test, which other tools may use to control how the test is interpreted or executed: