t27.aiРусский

Tests are part of the spec

You will learn

Why every t27 spec carries its own tests, and what a waveform shows.

In t27 a spec is not finished without its claims: test blocks, invariants and benches live in the same file as the code they check, and the compiler refuses a spec with none. A test can also be run as gates in a simulator. The waves below are a real simulation of Verilog generated from a ternary multiply-accumulate spec, driven by that spec's own test vectors.

Try it

Zoom into one clock cycle and read the values on the buses at a pass mark.

Open the interactive lesson →

Test waves: a t27 spec's tests, simulated and drawn as waves
Test waves: a t27 spec's tests, simulated and drawn as waves ↗

Open the lesson's spec in the player: specs/tutorial/07_tests_invariants_benches.t27

All lessons