在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 10106|回复: 10

[原创] SystemVerilog学习(2):搭建学习环境

[复制链接]
发表于 2010-12-5 13:12:41 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x


开始学习SystemVerilog,记录相关东东~~

请多指教,欢迎访问我的blog:http://www.cnblogs.com/Sivar






1、软件:
linux下,需要有VCS的 *common.tar和*linux.tar两个包,synopsys 的安装工具,synopsys 的 scl等。

我的是RHEL5,installer_v2.0,scl_v10.9.3_linux/common,vcs 2009



2、找个教程:
比如:
http://blog.sina.com.cn/s/blog_58942aff0100cu5z.html

一、Mentor Graphics:
(一)Modelsim
1、Modesim 6.5的安装:
   终端中输入:
>./install.linux
2、出现图形化安装界面,依次选择 Agree -> 选择要安装的软件 -> 选择安装目标文件夹 -> 安装

3、配置license,在windows下用
modelsim6.5的破解器:双击MentorKG.exe,在同目录下产生LICENSE.TXT
4、配置启动脚本,在用户主目录下,用gvim打开 .bashrc文件,加入如下两行:

export LM_LICENSE_FILE=/home/mentor/modelsim/modeltech/LICENSE.TXT

export PATH=$PATH:/home/mentor/modelsim/modeltech/linux
5、把windows下的LICENSE.TXT拷贝到linux下的/home/mentor/modelsim/modeltech目录中
6、编辑/home/mentor/modelsim/modeltech目录下的modelsim.ini,找到VoptFlow = 1这一行,并将1改为0
7、启动modelsim:
>vsim


(二)Calibre
1、Calibre 2008.01.20的安装:
   终端中输入:
>install.linux
2、出现图形化安装界面,依次选择 Install Products → Agree → 选择安装文件
选择目标文件夹 → 选择组件 → next → install 开始安装,大约3分钟完成。
3、制作license,在windows下用calibre 2008可用的crack制作,

第一步,得到你的网卡MAC 地址:0040D0AE9EFD

第二步,在破解器所在的目录下,输入如下命令:

mentorkg -h 0040D0AE9EFD -all -maxlen -1 -o license.dat

第三步,用文本编辑器打开得到的license.dat文件,在开头加入如下两句话:
SERVER 0040D0AE9EFD TCP:1717
DAEMON mgcld $MGC_HOME/lib/mgcld
(1717是端口号,可以任意填写)
4、配置启动脚本,编辑用户主目录下的 .bashrc文件,加入如下几行:
export MGC_HOME=/home/mentor/calibre/ixl_cal_2008.1_20.15
export MGLS_LICENSE_FILE=/home/mentor/calibre/license.dat
export PATH=$PATH:/MGC_HOME/bin
我的情况是:没有加入“export MGLS_LICENSE_FILE=/home/mentor/calibre/license.dat”这句话,也没有为calibre专门制作license,因为modesim的license就可以启动calibre,迄今得到的 .bashrc 文件如下:
export MGC_HOME=/home/mentor/calibre/ixl_cal_2008.1_20.15
#export MGLS_LICENSE_FILE=/home/mentor/calibre/license.dat
export LM_LICENSE_FILE=/home/mentor/modelsim/modeltech/LICENSE.TXT
export PATH=$PATH:/home/mentor/modelsim/modeltech/linux
export PATH=$PATH:/MGC_HOME/bin
接着往下看,synopsys系列软件的安装


二、Synopsys:
(一) 安装installer V2.0,直接解压缩installer_v2.0.tar.Z 到某一目录下即可

(二) 安装synopsys license管理器,即scl10.9.3或scl10.9.1d,都可以。

1. 进入解压得到的installer目录,输入如下命令:>./setup.sh ,如下图:

2. 找到scl所在的目录,一路点击 next ,其间你要选择安装目标位置,如我的是

/home/synopsy/10.9.3 ,直至完成scl的安装。
(三)安装VCS

1. 进入解压得到的installer目录,输入如下命令:>./setup.sh

2. 找到vcs所在的目录,一路点击 next ,其间你要选择安装目标位置,如我的是/home/liude/soft ,如下图:

3. 一路点击next ,其间选择你要安装的目标位置,如我的是:

/home/synopsys/vcs-mx_vA-2008.09

4. 其间出现的dismiss等信息,你可以看也可以不看,直接点击 dismiss 按钮,直至完成。
(四)安装Design Compiler , IC Compiler , PrimeTime , Astro 等,方法同安装VCS时的步骤。
(五)配置license,用EFA Glic 0.4b和比较全的synopsys.src来产生license.dat ,具体产生方法见你自己下载的EFA Glic 04b压缩包里的说明,而且网上有很多的license产生教程。这里就不细说了。把得到license.dat 重新命名为synopsys.dat 放到/home/synopsy/ 下。
(六)配置启动脚本,用文本编辑器编辑用户主目录下的 .bashrc 文件,加入如下内容(具体内容省略),见下文得到的bashrc文件。
迄今得到的 .bashrc 文件如下:
##################################################################
alias lmlis='/home/synopsys/10.9.3/linux/bin/lmgrd -c /home/synopsys/synopsys.dat'
export MGC_HOME=/home/mentor/calibre/ixl_cal_2008.1_20.15
export SNPS_HOME=/home/synopsys
export VCS_HOME=$SNPS_HOME/vcs-mx_vA-2008.09
export DC_HOME=$SNPS_HOME/syn_vB-2008.09
export PT_HOME=$SNPS_HOME/pts_vB-2008.06
export ICC_HOME=$SNPS_HOME/icc_vB-2008.09
export ASTRO_HOME=$SNPS_HOME/astro_vZ-2007.03
#export MGLS_LICENSE_FILE=/home/mentor/calibre/license.dat
export LM_LICENSE_FILE=/home/mentor/modelsim/modeltech/LICENSE.TXT
export LM_LICENSE_FILE=$LM_LICENSE_FILE:/home/synopsys/synopsys.dat
export PATH=$PATH:/home/mentor/modelsim/modeltech/linux
export PATH=$PATH:/MGC_HOME/bin
export PATH=$PATH:/VCS_HOME/bin
export PATH=$PATH:/DC_HOME/bin
export PATH=$PATH:$PT_HOME/bin
export PATH=$PATH:$ICC_HOME/bin
export PATH=$PATH:$ASTRO_HOME/bin:$ASTRO_HOME/bin/IA.32
alias dv=design_vision
alias pt=primetime
alias icc='icc_shell -gui'
alias as=Astro
##################################################################
启动各个软件,一切OK。呵呵!!!!!!!!!!!!!大家对比一下上下两个bashrc文件,有些东西是要讲究顺序的。




3、编辑工具:
Vi(vim):
  systemverilog插件/语法高亮:http://www.vim.org/scripts/script.php?script_id=1573


gedit:


Emacs:
  Verilog Mode for emacs:http://www.verilog.com/verilog-mode.html



ultraEdit:http://www.ultraedit.com/support/tutorials_power_tips/ultraedit/add_a_wordfile.html





4、遇到的问题
过程中我生成的lic老是不能用。后来到eetop下了新的src文件,重新生成就可以了。
以下是以前记录的,记做参考。虚拟机的,以前装上DC,貌似不能用,虚拟机的MAC是可以更改的,可以试试改MAC和主机一样。


[xsky@localhost ~]$ uname -a
Linux localhost.localdomain 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:21 EST 2007 i686 athlon i386 GNU/Linux
[xsky@localhost ~]$ tar --version
tar (GNU tar) 1.15.1
[xsky@localhost ~]$

1. some errors like:
Qt Warning: X Error: BadWindow (invalid Window parameter) 3
Major opcode: 8 (X_MapWindow)
Resource id: 0x3600011
\e Display :0.0 Error "BadMatch (invalid parameter attributes)"
\e request 1 error 8 serial 1437

to solve this problem, add these line to the /etc/X11/xorg.conf
########################
Section "Extensions"
Option "Composite" "Disable"
EndSection
########################

2. when open cdsdoc
/tools/ic610/tools/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

Goto /CDS_ROOT/tools/bin/cdsdoc and edit cdsdoc
Search and find "LD_ASSUME_KERNEL=2.2.5" , it should be at some "if" structure. Looks like they use IF structure for some x86 and AMD adaptive
Change "2.2.5" to your KERNEL version
DONE

3. error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory
go to /usr/lib
ln -s libstdc++-libc6.2-2.so.3 libstdc++-libc6.1-1.so.2
done

用which icfb和which spectre来查看安装配置是否正确。
启动icfb吧。
如果有Bad window之类的提示,是X的问题,尝试:
gedit /etc/X11/xorg.conf
在文件末尾加入:
Section "Extensions"
Option "Composite" "Disable"
EndSection
重启X即可。ctrl+alt+backspace,之前有什么先保存一下啊,系统不会跟你确认的。
在启动icfb&,应该软件界面出现了。
现在启动cdsdoc还是启动不了,会有一些库load不进来,用土办法,直接的doc里用firefox看吧,也还算方便。

Hello,

Is there a particular command that tells you which is your kernel version?

Thanks
-Roger
Added after 2 minutes:
Ignore my previous question. I Just googled the answer.


   
Post04 Dec 2008 16:33   Re: Failed to start cdsdoc, please help !!!     
tags: cdsdoc ic610 isr cdsdoc ic610 isr ic610 cdsdoc rhel 5 libnsl ld_assume_kernel version for rhel 5.1
Hello all (again),

I changed the LD_ASSUME_KERNEL in the cdsdoc file to the the value of my kernel and it still it doesn't work. I still get the message that libnsl.so.1 cannot be opened when I double-click on a particular help topic. I've been on this bug for a week now and I think I have hit a brick wall. Hence I would appreciate if someone would answer the following questions:

1. Must the ISR patches (for IC610) be installed, for cdsdoc to function properlly?
2. Do other files besides cdsdoc need to be edited (to correct the kernel version)?
3. I am using RHEL 5.1. Must it be updated ? (if so, I do not know how.., got to do more reading:( )
4. Is it importamt that RHEL be running in client, client+workstation or client+workstation+virtualization mode? (I have installed RHEL 5 client. Since I am new to linux, I wanted to start with sometning that sounded simple)




   
Post03 Jan 2009 14:24   Re: Failed to start cdsdoc, please help !!!     
tags: cdsdoc cdsdoc java cdsdoc
Try to comment this part of your cdsdoc file:

Code:
# Set variable for Java to run on RedHat Linux 7.1
#
#if [ $PLATFORM = "lnx86" ]; then
#   if [ $ARCH = "x86_64" ]; then
#      # AMD Opteron RHEE3.0
#      LD_ASSUME_KERNEL=2.4.19
#      export LD_ASSUME_KERNEL
#   else
#      #Standard x86 systems
#      LD_ASSUME_KERNEL=2.2.5
#      export LD_ASSUME_KERNEL
#   fi
#fi

gl&hf
Back to top     
aldo.mozzi



   
Post15 Jan 2009 21:56   Re: Failed to start cdsdoc, please help !!!     
tags: cdsdoc java cdsdoc observer cdsdoc cdsdoc browser cdsdoc ic610 cdsdoc search not working
I tried to start cdsdoc on Fedora 8 and had the same issue: obServer was not starting. Using ldd I noticed that obServer was missing libjvm.so (java virtual machine). I added the directory <cds_install>/ic610/tools/jre1.50/lib/i386/client/ to the path for searching dynamic libraries in my /etc/ld.so.conf, then ran ldconfig.
After ldconfig, I tried to open a document in cdsdoc; it still complained about obServer, but if I manually ran obServer, it started complaining about the missing web browser.
I made a link named "netscape" to firefox, and then cdsdoc launched firefox, a blank page appeared with only one line saying "Starting..." but the document did not appear.
I suspect obServer should be started with some directory where the documents should be found.
I am still working on this... If I do further steps I'll let you know.




   
Post21 Mar 2009 0:12   Failed to start cdsdoc, please help !!!     
The link to firefox is needed
netscape -> firefox
Also you need to hunt down all the missing libraries it complains about and put then in any directory you like and add the path to that dir to LD_LIBRARY_PATH.
Problems about java are usually solved by renaming the jre folders that came with the program in question and making a link jre -> jre folder of the system java _and_ it needs to be sun's java not any of the alternatives.
In my experience the LD_ASSUME_KERNEL variable shouldn't even be set for things to work properly.

Initializing InstallScape using JVM at /eda_soft/Cadence/InstallScape/iscape/runtime/LNX86/bin/java. This might take some time...
Exception in thread "main" java.lang.UnsatisfiedLinkError: /eda_soft/Cadence/InstallScape/iscape/runtime/LNX86/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)

at java.lang.Runtime.loadLibrary0(Runtime.java:788)

at java.lang.System.loadLibrary(System.java:834)

at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)

at java.security.AccessController.doPrivileged(Native Method)

at java.awt.Toolkit.loadLibraries(Toolkit.java:1437)

at java.awt.Toolkit.<clinit>(Toolkit.java:1458)

at com.khanpur.installer.gui.InstallerUI.main(InstallerUI.java:70)
解决:




Search and install libxp :



启动cdsdoc之前需要先打开firefox~~~


下面这个dc的,我原来的网卡显示eth1,lic启动成功了,但出现下面的错误。重装一遍驱动,变为eth0,可以运行了。另外,生成lic的时候一点要细心,看那MAC 是一个还是两个,在别处装的时候有虚拟机的MAC,无线网卡的MAC,好几个,不删掉多余的话生成的lic里会有好几个MAC,就不能用。即使把生成的lic里的mac删生一个也不行。只在win下选MAC时细心。多数问题都在生成lic这里。不行还得重启好几次的啦。
[root@localhost root]# dv&
Unable to obtain feature 'Design-Vision ' because:
Error: This site is not licensed for 'Design-Vision'. (SEC-51)
Please contact localhost.localdomainl at root@(none), who is
your local Synopsys license administrator for Synopsys site 123.
Unable to obtain feature 'Design-Analyzer-DAP ' because:
Error: This site is not licensed for 'Design-Analyzer-DAP'. (SEC-51)
Please contact localhost.localdomainl at root@(none), who is
your local Synopsys license administrator for Synopsys site 123.
Unable to obtain feature 'Design-Analyzer ' because:
Error: This site is not licensed for 'Design-Analyzer'. (SEC-51)
Please contact localhost.localdomainl at root@(none), who is
your local Synopsys license administrator for Synopsys site 123.
Fatal: At least one of the following must be enabled : Design-Vision, Design-Analyzer-DAP, Design-Analyzer. (DCSH-10)
[root@localhost root]#





>>> From Sivar's: http://www.cnblogs.com/Sivar Thanks for your reading.
发表于 2010-12-5 19:14:38 | 显示全部楼层
多谢louzhu分享!
发表于 2010-12-6 08:11:36 | 显示全部楼层
good reference
发表于 2010-12-9 10:55:33 | 显示全部楼层
厉害~~
发表于 2010-12-14 21:44:37 | 显示全部楼层
ise12 为什么不支持sys vlog呢
发表于 2010-12-15 10:02:53 | 显示全部楼层
回复 1# sivar


    好东西   要想学好不容易阿
发表于 2015-3-11 16:46:00 | 显示全部楼层
好东西! 要想学好zhen不容易!
发表于 2015-6-14 05:56:26 | 显示全部楼层
谢谢楼主
发表于 2016-3-21 22:08:10 | 显示全部楼层
Thank you!
发表于 2023-9-6 20:58:49 | 显示全部楼层
很适合学习
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条


小黑屋| 手机版| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-12-23 13:37 , Processed in 0.039624 second(s), 12 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表