User guide

xxi
Preprocessor Directives . . . . . . . . . . . . . . . . . . . . . . . . . . 21-6
Top Level Constructs . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-7
Program Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-7
"Hello World!" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-8
The Template Generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-9
Multiple Program Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-11
Configuration File Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-11
Configuration File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-11
Use Model for Multiple Programs . . . . . . . . . . . . . . . . . . . 21-12
Compiling Multiple Programs . . . . . . . . . . . . . . . . . . . . . . 21-13
NTB Options and the Configuration File. . . . . . . . . . . . . . 21-15
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-19
Example Configuration File . . . . . . . . . . . . . . . . . . . . . . . . . . 21-19
Compiling and Running the OpenVera Testbench . . . . . . . . . . . 21-24
Compiling the Testbench with the OpenVera Design . . . . . . 21-24
Compiling the Testbench Separate From the
OpenVera Design. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-25
Separate Compilation of Testbench Files for VCS . . . . . . 21-26
Compiling the Design, the Testbench Shell And
the Top-level Verilog Module. . . . . . . . . . . . . . . . . . . . 21-27
Loading the Compiled Testbench On simv. . . . . . . . . . . . 21-28
Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-29
Compile-time Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-29
Runtime Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-37
Class Dependency Based OpenVera Source File Reordering 21-41
Circular Dependencies . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-43
Dependency-based Ordering in the Presence of Encryption21-43