vlog参数及其含义

VLOG

The vlog command compiles Verilog source code and SystemVerilog extensions into a

specified working library (or to the work library by default).
The vlog command may be invoked from within ModelSim or from the operating system
command prompt. It may also be invoked during simulation.
Compiled libraries are major-version dependent. When moving between major versions, you
have to refresh compiled libraries using the -refresh argument to vlog. This is not true for minor
versions (letter releases).
All arguments to the vlog command are case sensitive: -WORK and -work are not equivalent.
The IEEE P1800 Draft Standard for SystemVerilog requires that the default behavior of the
vlog command is to treat each Verilog design file listed on the command line as a separate
compilation unit. This behavior is a change in vlog from versions prior to 6.2, wherein all files
in a single command line were concatenated into a single compilation unit. To treat multiple
files listed within a single command line as a single compilation unit, use either the vlog -mfcu
argument or the MultiFileCompilationUnit modelsim.ini file variable.

This command provides additional information with the -help switch.

Syntax

vlog [options] <filename> [<filename> ...]
[options]:
[-32 | -64] [-93]
[+acc[=<spec>] [+<selection> [.]]
[-addpragmaprefix <prefix>]
[-ccflags <“compileopts”>] [-compat] [-compile_uselibs[=<directory_name>]]
[-constimmedassert | -noconstimmedassert] [-convertallparams] [+cover[=<spec>]]
[-covercells | -nocovercells] [-coverdeglitch {“<n> <time_unit>”}] [-coverenhanced]
[-coverexcludedefault | -nocoverexcludedefault] [-coverfec | -nocoverfec]
[-coveropt <opt_level>] [-coverreportcancelled] [-coverudp | -nocoverudp]
[-cuname]
[+define+<macro_name>[=<macro_text>]] [-deglitchalways | -nodeglitchalways]
[+delay_mode_distributed] [+delay_mode_path] [+delay_mode_unit]
[+delay_mode_zero] [-dpicppinstall <[gcc|g++] version>] [-dpicpppath <pathname>]
[-dpiforceheader] [-dpiheader <filename>]
[-E <filename>] [-Edebug <filename>] [-enumfirstinit] [-Epretty <filename>]
[-error <msg_number>[,<msg_number>,…]] [-extendedtogglemode 1|2|3]
[-f <filename>] [-fecudpeffort {1 | 2 | 3}] [+floatparameters[+<selection>[.]]] [-
force_refresh <design_unit>]
[-fsmimplicittrans | -nofsmimplicittrans] [-fsmmultitrans]
[-fsmresettrans | -nofsmresettrans ] [-fsmsingle | -nofsmsingle]
[-fsmverbose[b | t | w]] [-fsmxassign | -nofsmxassign ]

[-gen_xml <design_unit> <filename>]
[-hazards]
[-ignorepragmaprefix <prefix>] [+incdir+<directory>] [-incr | -noincr]
[+initmem[=<spec>][+{0 | 1 | X | Z}]]
[+initreg[=<spec>][+{0 | 1 | X | Z}]] [-isymfile] [+iterevaluation]
[-l <filename>] [-L <libname>] [-Lf <libname>] [+libcell | +nolibcell]
[+libext+<suffix>] [-libmap <pathname>] [-libmap_verbose] [+librescan]
[-line <number>] [-lint] [-lowercasepragma] [-lowercasepslpragma] [-lrmclassinit]
[+maxdelays] [+mindelays] [-mixedansiports] [-mixedsvvh [b | s | v]]
[-mfcu | -sfcu] [-modelsimini <ini_filepath>]
[-nocovercells] [-nocoverfec] [-nocovershort] [-nocoverudp] [-nodbgsym]
[-nodebug[=ports | =pli | =ports+pli]] [-noexcludeternary <design_unit>]
[-noForceUnsignedToVhdlInteger] [-nologo] [-nopsl] [+nospecify]
[-note <msg_number>[,<msg_number>,…]] [-novopt] [+notimingchecks]
[-novtblfixup] [+nowarn<CODE>] [-nowarn <category_number>]
[+nosparse[+<selection> [.]]] [+num_opt_cell_conds+<value>]
[-oldsv] [-optionset <optionset_name>] [-override_timescale <time_unit> /
<time_precision>] [-O0 | -O1 | -O4 | -O5]
[-pedanticerrors] [-permissive] [-permit_defunct_sv] [-printinfilenames] [-pslext]
[-pslfile <filename>] [+protect[=<filename>]]
[-quiet]
[-R [<simargs>]] [-refresh]
[-scdpiheader <filename>] [-source] [-s] [-sv]
[-svext=[+|-]<extension>[,[+|-]<extension>]…] [-svinputport=net | var | relaxed]
[-svpkgcasesens] [-skipprotected] [-skipprotectedmodule]
[-smartdbgsym] [-suppress <msg_number>[,<msg_number>,…]] [-sv05compat]
[-sv09compat] [-sv12compat]
[-time] [-timescale <time_units>/<time_precision>] [-togglecountlimit <int>]
[-togglewidthlimit <int>] [-toggleportsonly] [+typdelays]
[-u]
[-v <library_file>] [-version] [-vlog01compat] [-vlog95compat] [-vmake]
[-vopt | -novopt]
[-warning <msg_number>[,<msg_number>,…]] [-work <library_name>]
[-writetoplevels <fileName>]
[-y <library_directory>]

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值