User guide
3-24
Compiling and Elaborating Your Design
If the csrc working directory is not located on a local disk, set the
incremental compile directory so that it is. Or change to the local disk
(cd local_disk)
and run the compilation there. This ensures that
VCS can quickly access the compilation directory. If the link step takes
more than a few seconds on a small design, then you know that you’re
accessing files over the network.
Managing Temporary Disk Space on UNIX
The temporary disk space partition (/tmp) causes errors if it becomes
full. Two major users of this disk space during a Verilog compile are
VCS and the C compiler. Either of these can cause large amounts of
data to be written to the temporary disk space. Solutions to the
problem are as follows:
• The solution to the C compiler’s use of temporary disk space is
to use the current directory, or other large disk. This is done by
adding the appropriate arguments to the C compiler via the VCS
compile-time argument -CC, as in the following examples for Sun’s
C compiler on SPARC:
vcs -CC "-temp=." a.v
vcs -CC "-temp=/bigdisk" a.v
• You can also set the TMPDIR environment variable to a large disk
location that is different from /tmp.
On Sun SPARC, and most other machines that use a C compiler
other than Sun’s C compiler, the environment variable TMPDIR is
used to specify compiler temporary storage.