|
| 1 | +# Testing CircuitVerse circuits |
| 2 | + |
| 3 | +The Testbench helps you test your circuits in the simulator itself |
| 4 | + |
| 5 | +### It's here in this corner |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | +### Attach a test to a circuit |
| 10 | +Each circuit in a project can be attached a test, this test is saved along with your circuits. So the next time you load your circuit, the test loads with it. |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | +### Create the test using the test creator |
| 15 | +The test creator provides an intuitive UI to create tests. |
| 16 | + - Select the type of test - `Sequential` or `Combinational` |
| 17 | + - Add inputs / outputs by clicking the `+` icon next to `INPUTS` / `OUTPUTS` label. |
| 18 | + - Add another test to the group by clicking `+` icon below |
| 19 | + - Add another group by clicking `New Group` |
| 20 | + |
| 21 | +For sequential tests, clock is ticked between each Group. For combinational tests, Groups are just a logical seperation between different types of tests. |
| 22 | + |
| 23 | +Alternatively, you can also export the created test as CSV and edit it. You can import this CSV to attch by clicking `Import from CSV` |
| 24 | + |
| 25 | +Finally, |
| 26 | + - Save and attach the test by clicking `Attach` |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | +### Label your circuit elements |
| 31 | +The testbench uses the element labels to identify Input and Output elements. So make sure they are labelled the same as that in the tests. |
| 32 | + |
| 33 | +Click `Validate` to make sure you have added all elements properly |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | +### Ready to go! |
| 38 | +Click the arrows next to Group / Test number to scroll through and run tests |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | +Click `Run All` to run all the tests in an instant |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | +And get detailed results! |
| 47 | + |
| 48 | + |
0 commit comments