Technical data

vcom
ModelSim EE/SE Command Reference ModelSim Commands CR-173
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
ModelSim 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.
vcom -nodebug example.vhd
Hides the internal data of example.vhd. Models compiled with -nodebug cannot use any of
the ModelSim debugging features; any subsequent user will not be able to see into the
model.
vcom -nodebug=ports level3.vhd levle2.vhd
vcom -nodebug top.vhd
The first line compiles and hides the internal data, plus the ports, of the lower-level design
units, level3.vhd and level2.vhd. The second line compiles the top-level unit, top.vhd,
without hiding the ports. It is important to compile the top level without =ports because
top-level ports must be visible for simulation.
See "Source code security and -nodebug"
(E-443) for more details.
vcom -noaccel numeric_std example.vhd
When compiling source that uses the numeric_std package, this command turns off
acceleration of the numeric_std package, located in the ieee library.
vcom -explicit example.vhd
Although it is not intuitively obvious, the = operator is overloaded in the std_logic_1164