VCS仿真遇到问题以及解决办法
错误1:
vcs -sverilog +v2k -timescale=1ns/1ns -debug_all -o adder_top -l compile.log -f filelist.f
Error-[VCS_COM_UNE] Cannot find VCS compiler
VCS compiler not found. Environment variable VCS_HOME
(/home/accu/IC/synopsys/vcs_2016.06/linux) is selecting a directory in which
there isn't a compiler '/home/accu/IC/synopsys/vcs_2016.06/linux/bin/vcs1'
for a machine of this type 'linux'.
Please check whether 'VCS_HOME' is incorrect; if not, see below.
Perhaps vcs hasn't been installed for machine of type "linux".
Or the installation has been damaged.
To verify whether vcsL-2016.06 supports machine of type "Linux 4.10.0-28-generic",
please look at ReleaseNotes for more details .
We determine the machine type from uname; maybe uname is incorrect.
You can fix installation problems by reinstalling from CDROM
or downloading it from the Synopsys ftp server.
For assistance, please contact vcs technical support
at vcs_support@synopsys.com or call 1-800-VERILOG
makefile:13: recipe for target 'com' failed
make: *** [com] Error 1
解决办法:
出现这样的问题是因为装的VCS版本是64的所以要使用vcs -full64主要是加了个-full64,其他的命令都是可选的
错误2:
IC/synopsys/vcs_2016.06/linux64/lib/libvcsnew.so: undefined reference to `snpsReallocFunc'
IC/synopsys/vcs_2016.06/linux64/lib/libvcsnew.so: undefined reference to `snpsCheckStrdupFunc'
IC/synopsys/vcs_2016.06/linux64/lib/libvcsnew.so: undefined reference to `snpsGetMemBytes'
IC/synopsys/vcs_2016.06/linux64/lib/libvcsucli.so: undefined reference to `isUcliEngineStarted'
IC/synopsys/vcs_2016.06/linux64/lib/libvcsucli.so: undefined reference to `setEnvPair'
IC/synopsys/vcs_2016.06/linux64/lib/libvcsucli.so: undefined reference to `waitForUserInput'
IC/synopsys/vcs_2016.06/linux64/lib/libvcsucli.so: undefined reference to `initNativeUcli'
解决办法:
在vcs命令后面加入选项-cpp g++-4.8 -cc gcc-4.8 -LDFLAGS -Wl,--no-as-needed。(不要拷贝这里,编辑器显示有问题,拷贝下面代码区的代码)
vcs -full64 -cpp g++-4.8 -cc gcc-4.8 -LDFLAGS -Wl,--no-as-needed