zoukankan      html  css  js  c++  java
  • Modelsim SE自动化仿真——如何将.do文件中自定义的库链接到testbench顶层模块

    我们用Modelsim SE进行仿真时,为了方便,一般会编写.do文件来启动当前仿真。关于.do文件的编写,一般网上都有成型的模板,我们只要稍微改几个参数,就可以符合我们的仿真需求了。但是如果仿真时需要链接额外已经编译好的自定义逻辑库到testbench模块时(比如Altera(Intel PSG)或者Xilinx的仿真库),就需要在现有的模板上加一点东西。

    在下面这句话的基础上,加上需要链接的库就可以了,格式为“-L 库名”。

    vsim    -voptargs=+acc    work.tb
    

     下面是链接了cyclone、altera_primitive、altera_mf这三个库到testbench顶层模块中。

    vsim    -voptargs=+acc    -L  cyclone -L altera_primitive -L -altera_mf work.tb
    

     

  • 相关阅读:
    GIT 相关
    createFile
    值传递、指针传递、引用传递
    Sightseeing trip
    find the longest of the shortest
    Laurenty and Shop
    Dima and Lisa
    Marina and Vasya
    Kolya and Tanya
    Two Substrings
  • 原文地址:https://www.cnblogs.com/update11/p/10303763.html
Copyright © 2011-2022 走看看