1. -f <filelist> : compile all files in filelist
------------------------------------------------------------------------
#+incdir+ D:/Documents/Work/UVM_PRJ/uvm-crc-test/src
D:/Documents/Work/UVM_PRJ/uvm-crc-test/src/crc7.v
D:/Documents/Work/UVM_PRJ/uvm-crc-test/src/crc7_if.sv
D:/Documents/Work/UVM_PRJ/uvm-crc-test/src/crc7_pkg.sv
D:/Documents/Work/UVM_PRJ/uvm-crc-test/src/crc7_tb_top.sv
------------------------------------------------------------------------
2. -quiet:不显示编译过程,关闭loading信息 ,对于编译很多文件时用此参数比较有用
3. +define+<name>:选择编译时常用此选项:例:
------------------------------------------------------------------------
module example ();
`ifdef sim_opt
sim_mode =0
`else
sim_mode =1
`endif
------------------------------------------------------------------------
编译时 :vlog +define+sim_opt 则运行`ifdef内的语句,如果不定义sim_opt则运行else内的语句。
4. -incr
增量编译,对于编译过的文件不在重新编译