Technical data
vlog
ModelSim EE/PLUS Reference Manual ModelSim Command Reference
-
83
vlog
The
vlog
command is used to invoke VLOG, the Model Technology Verilog
compiler. Use
vcom
(p71) to compile Verilog source code into a specified
working library (or to the
work
library by default). The
vlog
command is used just
like
vcom
(p71), except that you do not need to compile a module before it is
referenced (unless the module is referenced from VHDL).
This command may also be invoked from within the simulator with all of the
options shown below.
Syntax
vlog
[-help] [-compat] [+define+<macro_name>[=<macro_text>]]
[-f <filename>][-hazards] [+libext+<suffix>] [+librescan]
[-line <number>] [+incdir+<directory>] [-nodebug[=ports | =pli]]
[+nolibcell] [-O0 | -O4] [-quiet] [-R <simargs>] [-refresh]
[-source] [-u] [-v <library_file>] [-work <library_name>]
[-y <library_directory>] [-93] <filename>
Arguments
-help
Displays the command’s options and arguments. Optional.
-compat
The Verilog language does not specify the order that a simulator must execute simultaneous
events; however, some models depend on the event ordering of the simulator that the model
was developed on. The
-compat
switch disables optimizations that result in an event order
that is different from some other widely used Verilog simulators. You can also use the
-
hazards
switch to help find code that depends on a specific event ordering.
+define+<macro_name> [ =<macro_text> ]
Same as compiler directive:
‘define macro_name macro_text
. Optional.
-f <filename>
Specifies a file with more command line arguments. Allows complex arguments to be
reused without retyping. Optional.
-hazards
Enables the run-time hazard checking code. Optional.