(已解决) vcs报错/home/wangning/ic/synopsys/vcs-mx/O-2018.09-SP2/bin/vcs: line 3312: dc: command not found

                         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仿真文件

 

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值