Technical data
vlog
CR-204 ModelSim Commands ModelSim EE/SE Command Reference
vlog top.v -v und1
After compiling top.v, vlog will scan the file und1 for modules or primitives referenced but
undefined in top.v. Only referenced definitions will be compiled.
vlog top.v +libext+.v+.u -y vlog_lib
After compiling top.v, vlog will scan the vlog_lib library for files with modules with the
same name as primitives referenced, but undefined in top.v. The use of +libext+.v+.u
implies filenames with a .v or .u suffix (any combination of suffixes may be used). Only
referenced definitions will be compiled.
vlog -work mylib -refresh
The -work option specifies mylib as the library to regenerate. -refresh rebuilds the library
image without using source code, allowing models delivered as compiled libraries without
source code to be rebuilt for a specific release of ModelSim (4.6 and later only).
If your library contains VHDL design units be sure to regenerate the library with
vdel
(CR-175) using the -refresh option as well. See "Regenerating your design
libraries"
(2-41) for more information.
vlog module1.v -u -O0 -incr
The -incr option determines whether or not the module source or compile options have
changed as module1 is parsed. If no change is found, the code generation phase is skipped.
Differences in compile options are determined by comparing the compiler options stored
in the _info file with the compiler options given. They must match exactly.