前言
使用流程
编译选项
elaboration选项
仿真选项
性能优化
部分编译/增量编译
% rm -rf simv* csrc* partition* *dir*
% vlogan -sverilog ./src/rtl.v ./src/test.v
% vcs -sverilog -partcomp -simcopy top
% cp -r simv.daidir/partitionlib ./some/user/path/last_pc_db
% cd ./some/user/path/
并行编译
You can improve the compile-time performance by specifying the number of parallel processes VCS can launch for the native code generation phase of the compilation/elaboration. You should specify this using the compile-time option -j, as shown below:
% vcs -j<num_of_process> [options] top_entity/module/config
vcs -j4 top
问题集
编译
Top module/entity/config "uvm_custom_install_recording" is not found
Question:
I get the following error. What is the cause of this issue? Error-[TMENF-ILL] Top Module/Entity not found Top module/entity/config "uvm_custom_install_recording" is not found in the following library list. Liblist: DEFAULT 1 error CPU time: .091 seconds to compile common elaboration failed make: *** [error] Error 255
Answer:
The above error occurs in VCSMX UUM flow with partition compile when UVM package is not analyzed separately without any source files. As per VCSMX documentation at "VCS� MX / VCS� MXi Release Notes > VCS� MX / VCS� MXi Release Notes F-2011.12-SP1 > Using UVM With VCS > Natively Compiling and Elaborating UVM-1.1a", the use model is as follows: ----------------------------------------------- For a mixed-HDL or UUM environment, compile UVM-1.1a with vlogan using the following command: % vlogan -ntb_opts uvm [compile_options] // no source files here! % vlogan -ntb_opts uvm [compile_options] \ Note: - Complete the first step that compiles the UVM library before using the subsequent command. The first vlogan call compiles the UVM library. This is without any user source files specified. - In specific cases, the subsequent vlogan command might error out with Error-[UM] Undefined Macro. In this scenario you must explicitly add `include uvm_macros.svh to the file getting this error. Elaborate the design as follows: % vcs -ntb_opts uvm [elab_options] ----------------------------------------------- Add "vlogan -ntb_opts <Your UVM version>" before any other analysis commands like 'vlogan' to avoid this issue.
[TMENF-ILL] Top Module/Entity not found:Top module/entity/config "tb" is not found in the following library list: DEFAULT
在elaboration阶段报出上面问题。
如果是三步法编译,可能是在前面compilation阶段没有编译到top module或者.f,所以在后面elaborate的时候,在DEFAULT library中找不到tb module。
需要看一下vlogan或者vhdlan的编译选项中的filelist有没有缺失