在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 4069|回复: 0

[原创] 【求助】vcs 为什么增量编译总是有问题-Mlib,-Mdir

[复制链接]
发表于 2013-6-27 00:21:03 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
vcs版本是vcs-mx_vG-2012.09-SP1
查看如下网址上的小例子。
https://solvnet.synopsys.com/retrieve/022868.html?otSearchResultSrc=advSearch&otSearchResultNumber=4&otPageNum=1
但总是要recompile,

“recompiling module TOP because:
    Generated file”

为大家方便看,贴过来了。
Shared incremental compilation allows you to work on large designs to share the already generated files for a design in a central location, so that you donot have to recompile the parts of a design that are debugged and tested.To invoke shared incremental compilation, use the following compile-time options:* -Mdir: Provides VCS with a central place(SHARED) to look for the descriptor         information before it compiles a module, and a central place to get the          object files when it links together the executable.* -Mlib: Specifies the pathname of a central directory where you want VCS to          write the generated files. This option allows you to provide the          generated files for new or improved modules in a large design, so that          others do not have to compile these modules.Click the following link to download the example for shared incremental compilation.
shared_compilation.tar.gzAfter untar, run the following command:% vcs -Mdir=./NEW -Mlib=./SHARED test1.v top.v test2.v -l second.logSee the time stamp for the SHARED library. Find the SHARED directory and check if test1.v is recompiled.Complete flow is in RUNVCS script. Following is the complete flow:1. Compile test1.v using "-Mdir=[path to shared library]" option.    %vcs -Mdir=./SHARED test1.v -l first.log2. Compile test2.v, top.v, and test1.v with "-Mdir=[path to local directory]"    and "-Mlib=[path to SHARED directory]" options.    % vcs -Mdir=./NEW -Mlib=./SHARED test1.v top.v test2.v -l second.logYou can avoid recompilation of specific blocks by first compiling those blocks with "-Mdir", and then compiling top block and other blocks with "-Mlib" and "-Mdir" options. Using the above flow, you can save time in compiling large designs.Note: * For more information, see the VCS User Guide. * Valid for VCS 2006.06 release.实际本机运行的second.log
Command: vcs -Mdir=./NEW -Mlib=./SHARED test1.v top.v test2.v -l second.log
                         Chronologic VCS (TM)
          Version G-2012.09-SP1 -- Wed Jun 26 23:52:32 2013
               Copyright (c) 1991-2012 by Synopsys Inc.
                         ALL RIGHTS RESERVED

This program is proprietary and confidential information of Synopsys Inc.
and may be used and disclosed only as authorized in a license agreement
controlling such use and disclosure.

Parsing design file 'test1.v'
Parsing design file 'top.v'
Parsing design file 'test2.v'
Top Level Modules:
       TOP
No TimeScale specified
Starting vcs inline pass...
1 module and 0 UDP read.
recompiling module TOP because:
    Generated file (nltE_1) not found, or not incremental.

if [ -x /shared_compilation/simv ]; then chmod -x /shared_compilation/simv; \
fi
g++  -o /shared_compilation/simv -melf_i386    -Wl,-whole-archive \
-Wl,-no-whole-archive  _vcsobj_1_1.o  5NrI_d.o 5NrIB_d.o SIM_l.o     rmapats_mop.o \
rmapats.o       /vcs-mx_vG-2012.09-SP1/linux/lib/libnplex_stub.so \
/vcs-mx_vG-2012.09-SP1/linux/lib/libvirsim.so /vcs-mx_vG-2012.09-SP1/linux/lib/librterrorinf.so \
/vcs-mx_vG-2012.09-SP1/linux/lib/libsnpsmalloc.so     /vcs-mx_vG-2012.09-SP1/linux/lib/libvcsnew.so \
/vcs-mx_vG-2012.09-SP1/linux/lib/libuclinative.so           /vcs-mx_vG-2012.09-SP1/linux/lib/vcs_save_restore_new.o \
/vcs-mx_vG-2012.09-SP1/linux/lib/ctype-stubs_32.a -ldl  -lc -lm \
-lpthread -ldl
/shared_compilation/simv up to date
CPU time: .048 seconds to compile + .051 seconds to elab + .103 seconds to link

粗体部分不理解,按道理没有这行才对啊,这不还是recompile了啊。
附件是原文的附件。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

×

小黑屋| 手机版| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-11-15 07:03 , Processed in 0.018925 second(s), 10 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表