User guide
21-7
OpenVera Native Testbench
You must include the vera_defines.vrh file if you use predefined
macros such as ON, OFF, HIGH, LOW.
#include <vera_defines.vrh>
Top Level Constructs
There can be any number of the following top level constructs:
• Enumerated type definitions
• Class definitions
• Out of block class method definitions
• Global task and function definitions
• Verilog task and function prototypes
• Interface declarations
• Virtual port and bind declarations
Program Block
The program keyword indicates the program block. This block
contains:
program program_name
{
variable declarations
variable initializations
program block code
}
The program block is where:
• Global variables are declared