【FPGA】Synopsys vcs2018仿真问题汇总-FPGA常见问题社区-FPGA CPLD-ChipDebug

【FPGA】Synopsys vcs2018仿真问题汇总

 

1.重启后lisense问题

图片[1]-【FPGA】Synopsys vcs2018仿真问题汇总-FPGA常见问题社区-FPGA CPLD-ChipDebug

【问题原因】

可能是lmgrd服务不正常导致的,这边通过下面几个步骤解决

  1. 切换到root用户
su root
  1. 彻底关闭lmgrd服务
lmdown ps -aux | grep lmgrd kill -9 xxxx
  1. 验证本地lisence
sssverify /usr/lyq/software/Liscen/Synopsys.dat
  1. 修改.bashrc文件
图片[2]-【FPGA】Synopsys vcs2018仿真问题汇总-FPGA常见问题社区-FPGA CPLD-ChipDebug
  1. 重新source
source .bashrc
  1. 3-5min后启动lmli
lmli
  1. 修改.bashrc文件
图片[3]-【FPGA】Synopsys vcs2018仿真问题汇总-FPGA常见问题社区-FPGA CPLD-ChipDebug
  1. 重新source
source .bashrc
  1. 启动verdi
verdi

2. 运行vcs仿真报错

ld returned 1 exit status

图片[4]-【FPGA】Synopsys vcs2018仿真问题汇总-FPGA常见问题社区-FPGA CPLD-ChipDebug

【问题原因】

虚拟机重启导致g++/gcc版本切换到默认版本,通过编译指令或设置默认版本解决

vcs2018需要使用的g++/gcc版本均为4.8.5

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 100 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 100

可参考:https://blog.csdn.net/all_bya/article/details/124567573

3. 未定义系统任务

在使用make进行vsc仿真编译中出现未定义系统任务问题

undefined system task called to $fsdbDumpfile

【问题解决】

需要增加下面的Verdi编译文件:

 -P ${VERDI_HOME}/share/PLI/VCS/LINUX64/novas.tab ${VERDI_HOME}/share/PLI/VCS/LINUX64/pli.a
图片[5]-【FPGA】Synopsys vcs2018仿真问题汇总-FPGA常见问题社区-FPGA CPLD-ChipDebug

4.未定义参考变量

/usr/bin/ld: *** undefined reference to `vfs_set_dir_map’

/usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsnew.so: undefined reference to `vfs_set_dir_map' /usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsnew.so: undefined reference to `snpsReallocFunc' /usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsnew.so: undefined reference to `snps_mem_get_info' /usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsnew.so: undefined reference to `snpsCheckStrdupFunc' /usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsnew.so: undefined reference to `ZsExecuteNBAs' /usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsnew.so: undefined reference to `vfs_fread' /usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsnew.so: undefined reference to `snpsGetMemBytes' /usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsnew.so: undefined reference to `vfs::getDirMap()' /usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsnew.so: undefined reference to `vfs::fclose(vfs::CFile*)' /usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsnew.so: undefined reference to `vfs_stat' /usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsucli.so: undefined reference to `isUcliEngineStarted' /usr/bin/ld: _csrc0.so: undefined reference to `VCSGlobalData' ....

【问题解决】

在vcs编译中增加

-LDFLAGS -Wl,--no-as-needed
图片[6]-【FPGA】Synopsys vcs2018仿真问题汇总-FPGA常见问题社区-FPGA CPLD-ChipDebug

可参考:https://blog.csdn.net/hh199203/article/details/115553258?ops_request_misc=&request_id=&biz_id=102&utm_term=%20undefined%20reference%20to%20%60vfs_s&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-1-115553258.142^v70^control,201^v4^add_ask&spm=1018.2226.3001.4187

 

请登录后发表评论

    没有回复内容