User guide

D-9
Compiler Directives and System Tasks
Compiler Directive for Setting the Time Scale
`timescale
Sets the timescale. See IEEE Std 1364-2001 page 357. Syntax:
‘timescale time_unit / time_precision
In VCS the default time unit is 1 s (a full second) and the default
time precision is also 1 s.
Compiler Directive for Specifying a Library
`uselib
Searches specified library for unresolved modules. You can
specify either a library file or a library directory. Syntax:
‘uselib file = filename
or
‘uselib dir = directory_name libext+.ext |
libext=.ext
Enter path names if the library file or directory is not in the current
directory. For example:
‘uselib file = /sys/project/speclib.lib
If specifying a library directory, include the libext+.ext
keyword and append to it the extensions of the source files in the
library directory, just like the +libext+.ext compile-time option,
for example:
‘uselib dir = /net/designlibs/project.lib libext+.v