Expand description
Native testbench execution for Veryl #[test] modules.
Testbench expressions are compiled to a flat bytecode (TbOpcode) and
evaluated by a stack-based VM that reads directly from the simulator’s
memory buffer. Signals ≤64 bits use native u64 arithmetic with zero
heap allocation; wider signals fall back to BigUint.
Structs§
- Assertion
Result - Result of a single
$assertevaluation. - Limited
Testbench Result - Result of executing a testbench with an optional tick limit.
- Source
Location - Test
Result Detailed - Detailed test result with assertion outcomes observed before the test finishes or stops on a fatal failure.
Enums§
Functions§
- compile_
initial_ testbench - Compile the root module’s initial block into an executable native testbench.
- run_
compiled_ testbench - Execute a previously compiled native testbench against a built simulator.
- run_
compiled_ testbench_ with_ tick_ limit - Execute at most
tick_limitsimulator ticks from a compiled testbench.
Type Aliases§
- Clock
Count - Clock cycle count: either a compile-time constant or a runtime expression.
- Compiled
Testbench - Opaque, precompiled native testbench program for a built simulator.
- Loop
Bound