在前一节文章已经把cadence的软件安装好了,接下来就可以打补丁
本地环境的文件列出如下,仅供参考:
1 [root@localhost cadence-linux]# tree -L 1 2 . 3 ├── bashrc 4 ├── cadence_IC.06.17 5 ├── Calibre2015 6 ├── data 7 ├── eetop.cn_calibre_config.rar 8 ├── iscape -> iscape.04.23-s010 9 ├── iscape.04.23-s010 10 ├── IScape04.23-s010lnx86.t.Z 11 ├── MMSIM15.10.284 12 └── patch 13 14 7 directories, 3 files 15 [root@localhost cadence-linux]# tree -L 2 /opt/ 16 /opt/ 17 ├── cadence 18 │ ├── IC617 19 │ └── MMSIM151 20 └── mentor 21 └── Calibre2015 22 23 5 directories, 0 files 24 [root@localhost cadence-linux]#
1. IC617和MMSIM151打补丁
1 [root@localhost cadence-linux]# cd patch/ 2 [root@localhost patch]# ./cadence_patch.sh /opt/cadence/IC617/ 3 [root@localhost patch]# ./cadence_patch.sh /opt/cadence/MMSIM151/
打补丁的过程中会显示一些错误,可以忽略;执行结束之后,IC617和MMSIM151的补丁就打完了。
2. calibre打补丁
1 [root@localhost cadence-linux]# cd Calibre2015/calibre_patch/ 2 [root@localhost calibre_patch]# cp * /opt/mentor/Calibre2015/ 3 [root@localhost calibre_patch]# cd /opt/mentor/Calibre2015/ 4 [root@localhost Calibre2015]# ./patch_calibre aoi_cal_2015.2_36.27 5 [total hits/matching patterns/non-matching patterns] 6 error: unable to read: aoi_cal_2015.2_36.27_mib.exe - skipping 7 warn : empty file: install.ixl/JRE/.systemPrefs/.systemRootModFile - skipping 8 warn : empty file: install.ixl/JRE/.systemPrefs/.system.lock - skipping 9 94% aoi_cal_2015.2_36.27/pkgs/icwb.aoi/pvt/calibrewarn : empty file: aoi_cal_2015.2_36.27/pkgs/icwb.aoi/dependencies/version - skipping 10 98% aoi_cal_2015.2_36.27/pkgs/icv_comp.aoi/8.6/bin/wishwarn : empty file: aoi_cal_2015.2_36.27/pkgs/icv_comp.aoi/8.6/lib/Img1.4.2/pkgIndex.tcl - skipping 11 64% aoi_cal_2015.2_36.27/third_party_cwarn : empty file: aoi_cal_2015.2_36.27/tmp/yum-macrored-T2fnaj/x86_64/7/base/cachecookie - skipping 12 warn : empty file: aoi_cal_2015.2_36.27/tmp/yum-macrored-T2fnaj/x86_64/7/extras/cachecookie - skipping 13 warn : empty file: aoi_cal_2015.2_36.27/tmp/yum-macrored-T2fnaj/x86_64/7/updates/cachecookie - skipping 14 error: failed to read+write: sfk - skipping 15 12766 files checked, 0 changed. 16 2 errors, 7 warnings occurred. 17 [root@localhost Calibre2015]#
其实在Calibre2015的README也能看得懂打补丁方法。打补丁结束后,结果有两个错误,目前不知道什么原因。
3. 安装license
这次收集到的licence文件中,安装licence最方便的方式就是在windows环境下生成license文件再导入;首先生成cadence_IC.06.17的license,双击cadence_IC.06.17cadence_license目录下的licgen.bat文件,会得到一个license.dat的文件,cadence_IC.06.17需要删除前面四行:
SERVER ThinkPad-T510 ANY 27000 DAEMON cdslmd /opt/cadence/IC617/tools/bin/cdslmd # DO NOT REMOVE THE USE_SERVER LINE USE_SERVER
保存后放到/opt/cadence/IC617/share/license/目录下。
再生成Calibre2015的license,要注意的是需要在windows7环境下双击Calibre2015calibre_licenselicense目录下的licgen.bat文件,会得到一个license.dat文件,删除license.dat里的错误信息,只保留FEATURE开头的信息:
1 FEATURE mgc_s mgcld 2029.110 17-nov-2029 0 EEEF1511C7FF1C99670D "56F0B668" 2 FEATURE mentorall_s mgcld 2029.110 17-nov-2029 0 6E9F75F1B834ACB15722 "5608C946" 3 FEATURE dftadvisor mgcld 2029.110 17-nov-2029 0 8E1FF5C19FEC4DD432FF "29103976" 4 ......
保存后放到/opt/mentor/license/目录下。
4. 配置环境变量
这是最后一步了,也是比较关键的一步,感兴趣的也可以移步看看这里。打开bashrc文件,修改的内容如下:
1 export CADHOME=/opt/cadence 2 export CDS_LIC_FILE=$CADHOME/IC617/share/license/license.dat 3 export MGC_HOME=/opt/mentor 4 export CALIBRE_HOME=$MGC_HOME/Calibre2015/aoi_cal_2015.2_36.27 5 export MGC_LICENSE_FILE=$MGC_HOME/license/license.dat 6 export MGC_CALIBRE_SCHEMATIC_SERVER=centos 7 export MGC_CALIBRE_LAYOUT_SERVER=centos
然后将bashrc改名为.bashrc,导入环境变量,启动virtuoso即可(其中.cdsinit为Calibre2015环境的环境变量文件,跟.bashrc放在同一目录下即可,如果不需要Calibre2015的话可忽略):
[root@localhost cadence-linux]# . .bashrc
[root@localhost cadence-linux]# virtuoso &
virtuoso的界面就启动了,愉快的使用吧~
如果启动失败,提示为:
1 *WARNING* clsInit failed: Can't determine host name. Locking is not allowed with host name 'localhost'. 2 Check the host configuration.
解决方法为
1 [root@localhost cadence-linux]# hostname centos
参考文章
[1] https://blog.csdn.net/maxwell2ic/article/details/52162886