Yan's profileDream Without A CausePhotosBlogLists Tools Help

Blog


    9/20/2007

    为ModelSim编译Xilinx仿真库

    安装了ModelSim后,需要进行仿真库编译后才能对设计进行仿真。(其实安装ModelSim并把它破解了也是一件很费RP的事,其实破解的方法就那一种,但是,却不是每次都能成功。至少我是每次都要重装个好几遍才能成功,而且似乎是必须安装在C盘才能破解成功。哎~) 
    对于用ISE来设计FPGA,使用compxlib命令就可以为Modelsim编译Xilinx仿真库。
    compxlib是Xilinx专为第三方联合仿真工具编译仿真库设计的命令,通过参数来约束编译过程。
    其主要参数有:
    -s <simulator> 选项用于指明为哪一种仿真器编译仿真库。例-s mti_se //指定为Modelsim SE编译仿真库
    -arch <arch>选项用于指明为哪一个器件族编译仿真库。例-arch all //为所有支持的器件族编译仿真了库
    以上两个参数为必选参数,必须在compxlib命令中指明。
     
    -dir <output_dir>选项指明编译后的仿真库存储的目录路径。例:-dir C:\Modeltech_*.*x\xilinxlib //指定输出目录到modelsim安装目录下的xilinxlib中
    -p <dir_path> 该选项用来指定仿真器可执行文件存在的路径,即xilinx ISE的安装路径,一般可以从系统环境变量中自动获得。但,有时候编译失败多是因为得不到ISE的路径,无法获得编译源。例:-p D:\software\Xilinx //指定ISE的安装目录
    更多的关于compxlib命令的参数信息可以在运行中输入:compxlib -help 获得。
     
    下面正式开始为ModelSim编译Xilinx仿真库。
    1.去掉modelsim.ini文件的只读属性,compxlib命令将会把库的逻辑名字和库的实际存放路径的关联信息自动写入modelsim.ini
    2.在运行中输入 compxlib -s mti_se -arch all -l all -dir C:\Modeltech_*.*x\xilinxlib -p D:\software\Xilinx -w ,并执行。
    3.查看指定输出目录下是否有文件存在,一般有文件存在就是编译成功了。可以去C:\Documents and Settings\(你的用户名)\目录下打开compxlib文本文件查看编译时的具体信息。
    4.若不成功,根据compxlib -help提供的参数具体信息修改compxlib命令,至编译成功。
     
     

    Comments (2)

    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:
    您需要二手液晶显示屏废旧液晶屏么?我们是不折不扣的二手液晶屏、旧液晶屏大批发商,长期大量供应可再利用的旧液晶屏。我公司提供的各种尺寸的二手液晶屏, 不同厚薄如笔记本屏,均已经过我们严格的分类,检验,测试流程。请访问协力液晶屏www.sceondhandlcd.com[cajdjgecbgfdhaci]
    Nov. 27
    菲菲 高wrote:
    我要报考的学校可能要求比牛学校会低一些
    所以,如果努力,可以成功
    只是,我在想,这是否是很好的决定
    也许是吧  
    Sept. 26

    Trackbacks

    The trackback URL for this entry is:
    http://sanfla.spaces.live.com/blog/cns!4B75F7389580A19E!344.trak
    Weblogs that reference this entry
    • None