2021-03-24 17:51:25 +00:00
|
|
|
# Privileged Test Generators
|
|
|
|
|
2021-03-30 23:44:58 +00:00
|
|
|
Create a test generator in this folder with the name testgen-NAME.py. Then, to generate and compile these tests, use:
|
2021-03-24 17:51:25 +00:00
|
|
|
|
|
|
|
```bash
|
|
|
|
sh run.sh NAME
|
|
|
|
```
|
|
|
|
|
|
|
|
For example, for `testgen-CAUSE.py`, we would run `sh run.sh CAUSE`.
|
|
|
|
|
2021-03-30 23:44:58 +00:00
|
|
|
This bash file is super basic, so only allows for a single argument after the name.
|
2021-03-24 17:51:25 +00:00
|
|
|
Provide -sim as the second argument to simulate the compiled tests using wally.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
sh run.sh NAME -sim
|
2021-03-30 23:44:58 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
To compile tests without running them in OVPsim, provide -c as the second argument
|
|
|
|
|
|
|
|
```bash
|
|
|
|
sh run.sh NAME -c
|
2021-03-24 17:51:25 +00:00
|
|
|
```
|