User guide
21-14
OpenVera Native Testbench
The configuration file, could be:
program main1.vr -ntb_define ONE
program main2.vr -ntb_incdir /usr/vera/include
One Program File is on the Command Line
You can specify one program in the configuration file and the other
program file at the command prompt.
$vcs -ntb -ntb_opts config=configfile main2.vr -ntb_incdir \
/usr/vera/include
The configuration file, in this example, is:
program main1.vr
In the above example, main1.vr is specified in the configuration
file and main2.vr is specified on the command line along with the
files need by main2.vr.
Compiling when there is a top-level module. If there is a top-
level module having an instance of an OpenVera program, then you
can compile in either of the following ways:
% vcs -ntb -ntb_opts config=configfile top.v
Note that all the program files are in the configuration file:
program test1.vr
program test2.vr
program test3.vr
or:
% vcs -ntb -ntb_opts config=configfile top.v test3.vr
The configuration file, in this example, is: