VCS2018 linux 安装

VCS linux 安装

自己去网上找2018版本的vcs 和verdi, 就不贴出来了,这里把安装过程中遇到的一些问题留作记录

声明:只做学术研究,不做商业用途,公司使用推荐购买正版


  6 sudo mkdir /tools/eda/synopsys/vcs
  7 sudo chown -R xxx/tools/eda/synopsys/vcs
  8 /tools/eda/installer  -batch_installer -source vcs_mx_vO-2018.09-SP2 -target  /tools/eda/synopsys/vcs

License 安装启动

  2 sudo mkdir /tools/eda/synopsys/scl
  3 sudo chown -R xxxx /tools/eda/synopsys/scl 
  4 /tools/eda/installer  -batch_installer -source scl_v2018.06-SP1 -target  /tools/eda/synopsys/scl
  5 
打开防火墙 27000端口
sudo firewall-cmd --zone=public --add-port=27000/tcp --permanent
sudo firewall-cmd --reload
启动license
lmgrd -c /tools/eda/synopsys/lic/Synopsys.dat
关闭licens
lmdown

LICENSE 问题

什么tcp 端口不对, licnese 找不到 ,都是license文件不对

v2018的lincense-gen 老版本只能生成到 30-dec-2020, 需要去网上找新的 scl_keygen.exe , 有的可以生成到31-dec-2030

1、why don’t work setting EXPIRE 12-dec-2050 ?? EXPIRE Wrong
答:只支持到31-dec-2020,表问我为啥,我也不造

安装vcs

配置环境变量

export VCS_HOME=/tools/eda/synopsys/vcs/vcs-mx/O-2018.09-SP2/
export PATH=$VCS_HOME/bin:$PATH

# export VCS_ARCH_OVERRIDE=linux

# export VERDI_HOME=/tools/eda/synopsys/verdi/
# export PATH=$VERDI_HOME/bin:$PATH

export SCL_HOME=/tools/eda/synopsys/scl/scl/2018.06-SP1/
export PATH=$SCL_HOME/linux64/bin:$PATH


export LM_LICENSE_FILE=27000@VM-4-8-centos
alias lmg="lmgrd -c /tools/eda/synopsys/lic/Synopsys.dat"
Error-[VCS_COM_UNE] Cannot find VCS compiler
  VCS compiler not found. Environment variable VCS_HOME 
  (/tools/eda/synopsys/vcs/vcs-mx/O-2018.09-SP2/linux) is selecting a 
  directory in which there isn't a compiler 
  '/tools/eda/synopsys/vcs/vcs-mx/O-2018.09-SP2/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 vcsO-2018.09 supports machine of type "Linux 3.10.0-1160.53.1.el7.x86_64",
 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 

查看$VCS_HOME 路径只有linux64, 没有linux

[xxx@VM-4-8-centos vcs]$ l /tools/eda/synopsys/vcs/vcs-mx/O-2018.09-SP2/
total 1.7M
drwxr-xr-x  3 xxx root 4.0K Mar 15 18:27 admin
lrwxrwxrwx  1 xxx root    9 Mar  2  2019 amd64 -> ./linux64
drwxr-xr-x  6 xxx root 4.0K Mar 16 01:11 bin
drwxr-xr-x  6 xxx root 4.0K Mar  2  2019 doc
drwxr-xr-x 49 xxx root 4.0K Mar  2  2019 etc
drwxr-xr-x  4 xxx root 4.0K Mar  2  2019 gui
drwxr-xr-x  9 xxx root 4.0K Mar  2  2019 include
-rw-r--r--  1 xxx root 1.6M Mar 15 18:27 install.log
drwxr-xr-x  7 xxx root 4.0K Mar  2  2019 linux64
drwxr-xr-x  3 xxx root 4.0K Mar  2  2019 mmc
drwxr-xr-x 17 xxx root 4.0K Mar  2  2019 packages
lrwxrwxrwx  1 xxx root    9 Mar  2  2019 suse64 -> ./linux64
drwxr-xr-x  8 xxx root 4.0K Mar  2  2019 vcfca
drwxr-xr-x  4 xxx root 4.0K Mar  2  2019 vgcommon
drwxr-xr-x  3 xxx root 4.0K Mar  2  2019 vms     

which vcs 找到vcs路径 打开
/tools/eda/synopsys/vcs/vcs-mx/O-2018.09-SP2/bin/vcs
vim /tools/eda/synopsys/vcs/vcs-mx/O-2018.09-SP2/

 1200 #VCS_ARCH=`${UNAME}` 2>&1  # 把这行注释掉
 1201 VCS_ARCH="linux64"  #改成这行

重跑 成功

vcs top.v 
                         Chronologic VCS (TM)
       Version O-2018.09-SP2_Full64 -- Wed Mar 16 01:26:10 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.

Parsing design file 'top.v'
Chronologic VCS simulator copyright 1991-2018
Contains Synopsys proprietary information.
Compiler version O-2018.09-SP2_Full64; Runtime version O-2018.09-SP2_Full64;  Mar 16 01:27 2022
hello world
$finish called from file "top.v", line 17.
$finish at simulation time                  900
           V C S   S i m u l a t i o n   R e p o r t 
Time: 900
CPU Time:      0.230 seconds;       Data structure size:   0.0Mb
Wed Mar 16 01:27:03 2022

SpinalHDL + VCS

安装verdi

安装完需要配置路径

  1 export VCS_HOME=/tools/eda/synopsys/vcs/vcs-mx/O-2018.09-SP2/
  2 export PATH=$VCS_HOME/bin:$PATH
  3 
  4 export VERDI_HOME=/tools/eda/synopsys/verdi/verdi/Verdi_O-2018.09-SP2/
  5 export PATH=$VERDI_HOME/bin:$PATH
  6 # 这个必须得打开, 否则FSDB 是不能dump 的
  7 export LD_LIBRARY_PATH=/tools/eda/synopsys/verdi/verdi/Verdi_O-2018.09-SP2/share/PLI/VCS/LINUX64
  8 export LD_LIBRARY_PATH=/tools/eda/synopsys/verdi/verdi/Verdi_O-2018.09-SP2/share/PLI/IUS/LINUX64:$LD_LIBRARY_PATH
  9 export LD_LIBRARY_PATH=/tools/eda/synopsys/verdi/verdi/Verdi_O-2018.09-SP2/share/PLI/lib/LINUX64:$LD_LIBRARY_PATH
 10 export LD_LIBRARY_PATH=/tools/eda/synopsys/verdi/verdi/Verdi_O-2018.09-SP2/share/PLI/Ius/LINUX64:$LD_LIBRARY_PATH
 11 export LD_LIBRARY_PATH=/tools/eda/synopsys/verdi/verdi/Verdi_O-2018.09-SP2/share/PLI/MODELSIM/LINUX64:$LD_LIBRARY_PATH

测试

vcs -P ${LD_LIBRARY_PATH}/novas.tab ${LD_LIBRARY_PATH}/pli.a  top.v

需要带上-P ${LD_LIBRARY_PATH}/novas.tab ${LD_LIBRARY_PATH}/pli.a

SpinalHDL vcs 仿真测试

 SpinalSimConfig()
 .withVcs
 .withFsdbWave

问题汇总

Q1:

[warn] Multiple main classes detected.  Run 'show discoveredMainClasses' to see the list
[info] running (fork) spinal.sim.TestVCS1
[info] SharedMemIface_wrap.cxx:178:17: fatal error: jni.h: No such file or directory #include <jni.h>                 ^compilation terminated.
[error] Exception in thread "main" java.lang.Exception: Compilation of SharedMemIface_wrap.cxx failed
[error] 	at spinal.sim.VpiBackend.doCmd(VpiBackend.scala:72)
[error] 	at spinal.sim.VpiBackend.delayed_compilation$lzycompute(VpiBackend.scala:122)

原因 :
装完verdi, 后JAVA 目录被篡改 ,
/tools/eda/synopsys/verdi/verdi/Verdi_O-2018.09-SP2/bin/java
需要重新设置JAVA目录
找到java 目录, 可以 which javap , 找链接,一直追到 Java的目录

重新设置JAVA_HOME

export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.322.b06-1.el7_9.x86_64
export PATH=$JAVA_HOME/bin:$PATH
  • 3
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值