User guide

21-6
OpenVera Native Testbench
Basics of an OpenVera Testbench
This section outlines the fundamental program structure used in all
OpenVera programs.
As Figure 21-1 illustrates, the constituents of an OpenVera program
are:
A required program block
List of any preprocessor directives
Top-level constructs
Figure 21-1 Constituents of OpenVera Program
Preprocessor Directives
An OpenVera source file can include another OpenVera source file
by reference using the include construct. This construct can occur
anywhere in the OpenVera program.
Program Block
preprocessor_directives
top_level_constructs
program program_name
{
}
The OpenVera Program