f's profile飞飞的家PhotosBlogLists Tools Help

Blog


    February 06

    VMware+Cadence IC5141+PDK安装(1)_zz+Revised by feifei

     

        (1)原来的破解方法中,修改.bashrcexport CDS_Netlisting_Node Analog是错误的,应该改为export CDS_Netlisting_Mode=Analog

        (2)先在PC上装的VMware Workstation 5.0.0 build-13124, Linux (我装的是CentOS-4.4-i386 4张镜像ISO文件), 自定义安装(全部软件都装了,6个多G),手动分区:定义了swap分区和/分区, ext3格式, swap分区略大于内存(虚拟机设置的),硬盘分了40G,然后spilt 2G一个个的。

       3)装完后,装VMtools,下面大部分方法zz。虚拟机菜单:VM-Instal VMware Tools...,会在CentOS系统中出现光盘

             1:  mount /dev/cdrom   /media/cdrom0

             2:  cd /tmp            如果你以前安装过VM tools,这一步,改为/tmp/vmware-tools-distrib,既然你没装上看来是用不着这句了。   
             3:  tar xvfz /media/cdrom0/VMwareTools-5.0.0-<xxxx>.tar.gz    
    红色部分改为你要安装的对应的版本,看你的版本了。          
             4:  cd vmware-tools-distrib       
             5:  ./vmware-install.pl      

             6: 双击运行了(虚拟VMTools)光盘中的VMTools-5.0.0-13124.i386.rpm(root用户)

            安装好VMtools后可以自由在主宿机中鼠标切换,还可以设置一个XPLinux共享的文件夹(这个很是方便啊,LINUX路径为/mnt/hfgs/SharedFolder/ XP下选择虚拟机--右键--Settings--Options--Shared Folders -- Add

     4)破解Cadence如下(zz)

            

    Cadence IC5.0支持比较好的Linux发行版大多比较老,比如RedHat8等,在日常使用中有些不便。但是在较新的一些发行版,如RedHat9Fedora Core 1上安装IC50会遇到一些小麻烦。最近经过好几天的折腾,多方查找,终于表面上解决了这个问题,(还没有运行过大的仿真,其性能和可靠性还有待于日后的检验)。这里主要要感谢www.edaboard.com论坛上网友gitarrelieber题为"How to install Cadence IC5.0.33 under Linux RedHat9"的文章。


    [
    安装]:我使用的是已经解压缩到硬盘上的安装文件,分别在CDROM1CDROM2目录下。
    0
    :首先查看系统上是否安装了"ncompress"工具,没有的话就下载安装一个吧,easy

    1:运行CDROM1目录下的setup.sh文件
    ./setup.sh
    然后根据提示选择IC50的安装路径,当屏幕出现 Do you want to start softload? [y/n]:时,输入"n" 结束安装

    2:进入目录/install/bin.lnx86,修改以下文件(这里install_dir是上一步选择的IC50安装路径):
    文件io_fltr.c:
    "/bin/zcat"
    改为 "/usr/bin/uncompress -c" (line 68)
    在第54行前添加新行"#define lnx86" (line 54 "#ifdef nec_ews")
    在第33行前添加新行"#include <errno.h>" (line 33 "#include <signal.h>").
    文件process_file.c:
    "#define PROD_NOS 1280"
    改为 "#define PROD_NOS 10000" (line 511)
    重新编译这些文件 "gcc -o io_fltr io_fltr.c""gcc -o process_file process_file.c"
    文件vld: 找到这两行"sort -u +2 -3 $allbundles | sort -n > $sortallbundles"
    "sort -u +2 -3 $bundles | sort -n > $sortbundles". (line 424&425)
    删除其中的字符串"+2 -3"

    3:运行softload并选择
    ./softload
    ,然后根据提示,依次选择如下选项:
    (1) Load Available Products
    (1) Local
    (2) Other
    don't view README file
    (4) Cadence Catalog
    (a) All of the above
    (2) List Installed Products
    (3) Linux Operating System (lnx86)
    (q) Quit

    4:配置licenses文件
    将文件"license.dat"复制到 "/share/license"文件夹下

    5:在目录下, 为目录tools.lnx86建一个链接
    ln -s tools.lnx86 tools

    6:修改用户目录下的配置文件.bashrc: (这里假设是/IC50)
    CDSDIR=/IC50
    CDS_ROOT=/IC50
    CDS_INST_DIR=/IC50
    CDS_INSTALL_DIR=/IC50/tools/dfII
    export CDS_LIC_FILE=$CDS_ROOT/share/license/license.dat
    export PATH=$CDS_ROOT/tools/bin:$CDS_INSTALL_DIR/bin:$CDS_ROOT/tools/spectre/bin:$PATH
    export CDS_Netlisting_Mode=Analog (原来破解方法中这步是错的,这个是我改后的)

    7:配置快捷键文件
    把目录"/tools/dfII/sample/local"下所有文件复制到
    "/tools/dfII/local"

    把文件cdsinit改名成 .cdsinit

    8:复制几个库文件 (我没有做这步)
    这时候我运行icfb,系统提示说找不到链接库libstdc++-libc6.2-2.so.3。可能是Fedora下对应的库比较新把。
    没办法,从RedHat8/usr/lib/中把这个文件复制到 Fedora core 1系统中 /usr/lib目录下,顺便把libstdc++-libc6.1-1.so.2文件也复制过来吧,后面帮助文档要用到这个库。
    然后在运行icfb,呵呵,终于看到了cadence启动的界面了。
    看到有网友说对于fedora系统,只要 export LD_ASSUME_KERNEL=2.4.1就行了,我试了试,没什么用,反正现在能用了,也就没多管它了。

    9:帮助文档的配置 (我没有做这步)
    这时候,虽然icfb可以运行了,但是如果你运行cdsdoc或者窗口下的帮助文件,系统会提示出现如下错误:
    Error occurred during initialization of VM
    Unable to load native library: /IC50/tools.lnx86/jre1.3.1/lib/i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference

    google上得到的解释大致是:That means BEA's JVM is another one of the programs which is broken.since it uses internal glibc symbols and which hasn't been fixed.
    解决办法:下载文件libcwait.c @ ftp://people.redhat.com/drepper/libcwait.c
    gcc -shared -o libcwait.so -fpic -O2 libcwait.c进行编译
    然后export LD_PRELOAD=/path/libcwait.so就行了
    我还特意为此安装了java环境j2sdk1.4.2,不能肯定这个有没有用。
    这时候再运行cdsdoc,原来的错误没有了,但是系统提示找不到Netscape浏览器。晕,我没装阿,难道不能用Mozilla
    解决办法是先打开一个浏览器窗口,比如Mozilla什么的就行了,弱智的IC50阿!

     

    [尚未解决的问题]
    运行icfb时,系统会提示出现下面2个问题,虽不影响启动,但是挺不爽的,而且不知道以后会与会产生什么问题?
    1. error
    Incorrectly built binary which accesses errno or h_errno directly. Needs to be fixed.
    2.warning: cannot convert string "-adobe-helvetica-medium-r-normal--0-100-75-75-p-o-iso8859-1" to type FontStruct
    google
    得到的解释是:1license的管理有关,2跟字体有关,具体都不太清楚了。
    对问题2,有人说运行xprop -root -remove _MOTIF_DEFAULT_BINDINGS 就可以了,我试了试,还是不行。不知谁能解决这个问题? '

     

     

    Comments (1)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    No namewrote:
    不懂啊 ~~~!
     
    Sept. 14

    Trackbacks

    The trackback URL for this entry is:
    http://songf1982.spaces.live.com/blog/cns!D4DDD8937C692E0C!163.trak
    Weblogs that reference this entry
    • None