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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 17185|回复: 19

[解决] 关于calibre与ic615集成时出现的加载错误的解决方案

[复制链接]
发表于 2013-9-21 00:51:12 | 显示全部楼层 |阅读模式

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

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

x
说来是很弱智很小白的一个错误,就是有些教程上没有说清楚,导致有些新手(包括我)想当然的load了一个不该load的东西,或者在.cdsinit里写了一个不该写的东西。之所以要跟大家啰嗦一下,是因为我再解决问题时百度google出一堆同病相怜的小白,觉得有必要说明一下

首先,所要加载的skill脚本是/home/eda/mentor/calibre/ixl_cal_2011.3_18.12/lib/calibre.skl
这个文件被link到
/home/eda/mentor/calibre/ixl_cal_2011.3_18.12/shared/pkgs/icv/tools/queryskl/calibre.skl
在calibre安装目录里有好几个calibre.skl,还有好几个calibre.OA.skl,都不是应该加载的。这里有可能是网上流传的各种安装攻略的不同而引起的混淆。其他地方的文件根本没有skill的设置语句,只是对初始化文件的识别的东西


第二,就ic615来说,用户定义的.cdsinit文件应该在~下或者.下,这两个目录在ic615的search path下


第三,关于在~/.cdsinit里写什么的问题,网上各种版本的安装教程都说这个cdsinit是从一个地方copy过来的,然后rename成.cdsinit后放在某处.这一点cadence有说明:在cdsinit的开头,



/*
   filepath:        /samples/local/cdsinit
   dfII version:    4.4
  
   This file should be copied as /local/.cdsinit
   and customized as a site startup file. The site startup file is
   read and executed when the Design Framework II software starts.

   This file can load all the application configuration files and
   application bind key files.

   It also sets the library search path ( which may be overriden by the
   user customization file.

   Finally this file transfers control to the user by executing the
   user customization file.

   The user customization file may be

     ./.cdsinit - .cdsinit in the working directory
     ~/.cdsinit - .cdsinit in the user's home directory

   This site file checks if a .cdsinit exists in the working directory
   and executes it. If .cdsinit does not exist in the user's working
   directory then ~/.cdsinit is executed if it exists.




注意到~/.cdsinit和./.cdsinit是
user customization file,而不是site startup file。user customization file没有说是copy来的。只是说要user来edit。(其实拷不拷cdsinit我没看出有说明差别)



我一开始就犯了这个错误,吧user customization file copy来,然后在最后一行加load( strcat( getShellEnvVar("CALIBRE_HOME") "/lib/calibre.skl" ))


结果启动virtuoso后马上报错,一大堆function被redefine,最后waiting for ipc :1 to initialize。当时就纳闷为什么会申请网络连接,结果google了半天一头雾水。。。


解决方案: user customization file里应该只写load( strcat( getShellEnvVar("CALIBRE_HOME") "/lib/calibre.skl" ))


这样就不会出错了。




关于直接复制cdsinit再加一行出现的错误,在cdsinit里面,有这样一段




;################################################
;#                                          
;# LOAD USER CUSTOMIZATION FILE
;#
;################################################
;
;The site customization file is going to load the user
;customization file. In case you have copied this site
;customization file as your user customization file
;comment out or remove the next section to prevent
;recursive loading of ./.cdsinit
;
if( isFile( "./.cdsinit" ) then
    printf( "Loading ./.cdsinit init file from the site init file.\n" )
    loadi( "./.cdsinit" )
else
if( isFile( "~/.cdsinit" ) then
    printf( "Loading $HOME/.cdsinit init file from the site init file.\n" )
    loadi( "~/.cdsinit" )
)
)
;
;END OF THE SITE CUSTOMIZATION FILE




如果在~/.cdsinit中还有上面那一段,那就自己load自己死循环了。所以ciw里才会出现一大坨错误,cpu飚到100%,最后fork都出错了。关于为何会申请网络连接,我也没有搞明白

最后,关于SITE CUSTOMIZATION FILE的位置,我也没有找到,反正安装目录下的cdsinit都不是

总之就是一句话,网上的安装教程要辩证的看,最好还是参考软件自己在readme里写的设置文档。被坑几次就有经验了
发表于 2013-10-6 18:42:16 | 显示全部楼层
非常正确!这么好的经验怎么没人顶!
发表于 2014-7-23 18:11:50 | 显示全部楼层
好帖頂一下....
发表于 2014-10-23 11:30:50 | 显示全部楼层
谢谢你啊楼主,我的问题终于解决了。我也是吧.cdsinti拷贝自己目录下然后各种redefine搞晕了。。。
发表于 2014-12-12 14:40:45 | 显示全部楼层
谢谢楼主
发表于 2015-1-7 20:40:26 | 显示全部楼层
谢谢楼主,终于成功了
发表于 2015-10-9 18:36:12 | 显示全部楼层
thanks !
发表于 2015-12-9 14:58:36 | 显示全部楼层
根据这个指导,成功集成calibre和virtuoso,马克!
发表于 2015-12-9 16:08:18 | 显示全部楼层
thx  good job
发表于 2016-1-28 11:23:31 | 显示全部楼层
对我这个小白来说,你说的好乱根本没看懂。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-4-27 19:43 , Processed in 0.036650 second(s), 8 queries , Gzip On, Redis On.

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