Technical data

vcom
74
-
ModelSim Command Reference ModelSim EE/PLUS Reference Manual
-quiet
Disable 'loading' messages. Optional.
-refresh
Regenerates a library image. Optional. By default, the work library is updated; use
-work
<library>
to update a different library. See
vcom
"Examples" (p74) for more information.
-s
Instructs the compiler not to load the
standard
package. Optional. This argument should
only be used if you are compiling the
standard
package itself.
-source
Displays the associated line of source code before each error message that is generated
during compilation. Optional; by default, only the error message is displayed.
-work <library_name>
Specifies a logical name or pathname of a library that is to be mapped to the logical library
work
. Optional; by default, the compiled design units are added to the
work
library. The
specified pathname overrides the pathname specified for work in the project file.
<filename>
Specifies the name of a file containing the VHDL source to be compiled. One filename is
required; multiple filenames can be entered separated by spaces or wildcards may be used,
i.e., “*.vhd”. No switches can appear after filename(s) on the command line.
Examples
vcom example.vhd
The example compiles the VHDL source code contained in the file
example.vhd
.
vcom -87 o_units1 o_units2
vcom -93 n_unit91 n_unit92
Model
Sim
supports designs that use elements conforming to both the 1993 and the
1987 standards. Compile the design units separately using the appropriate
switches.
Note that in the example above, the
-87
switch on the first line is redundant since
the VCOM default is to compile to the 1987 standard.