Chronologic VCS (TM)
Version O-2018.09-SP2_Full64 -- Tue Jul 26 23:54:29 2022
Copyright (c) 1991-2018 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.
Warning-[DEBUG_DEP] Option will be deprecated
The option '-debug_all' will be deprecated in a future release. Please use
'-debug_acc+all -debug_region+cell+encrypt' instead.
Parsing design file 'full_adder.v'
Parsing design file 'full_adder_tb.v'
Top Level Modules:
full_adder_tb
No TimeScale specified
Starting vcs inline pass...
1 module and 0 UDP read.
However, due to incremental compilation, no re-compilation is necessary.
/home/wangning/ic/synopsys/vcs-mx/O-2018.09-SP2/bin/vcs: line 3312: dc: command not found
/home/wangning/ic/synopsys/vcs-mx/O-2018.09-SP2/bin/vcs: line 3312: dc: command not found
/home/wangning/ic/synopsys/vcs-mx/O-2018.09-SP2/bin/vcs: line 3312: dc: command not found
/home/wangning/ic/synopsys/vcs-mx/O-2018.09-SP2/bin/vcs: line 3312: dc: command not found
/home/wangning/ic/synopsys/vcs-mx/O-2018.09-SP2/bin/vcs: line 3312: dc: command not found
vcs编译时候报错 line 3312: dc: command not found.
vcs本质上是一个shell脚本 ,顺藤摸瓜,定位到3312行,发现执行${DC}这行命令出现问题
继续向上,查看在413出现dc,
分析ind_utility这个函数 。
结合这个函数,413行大致意思是。在/bin /usr/bin /usr/local/bin /usr/bsd /usr/ucb这几个路径中查找dc,要是找到dc命令就会把DC的值设为 "所在目录/dc" 否则设为“dc” 。
因此运行3312行的时候就会报错,没有找不到dc命令。
解决方法。安装dc,这是一个支持计算的工具。以Ubuntu 为例 :
sudo apt-get install dc
再运行scv不在提示dc not find.
但是报了一大堆错误 libvcsnew.so: undefined reference to xxxx
解决方法vcs命令后加参数: -LDFLAGS -Wl,--no-as-needed.参考[1]
以一个简单的例子:
vcs -full64 -sverilog -debug_all full_adder.v full_adder_tb.v -l out.log -LDFLAGS -Wl,--no-as-needed
运行成功,生成simv仿真文件