zoukankan      html  css  js  c++  java
  • modelsim 仿真xilinx fir ip

    到现在不管fir ip 用的对不对,但是在使用modelsim是可以仿真fir ip的。

    具体步骤:

    1、仿真库,添加到modelsim目录配置文件:

    2、将这个文件中的:

    ;List of dynamically loaded objects for Verilog PLI applications
    ;Veriuser = D:/modeltech64_10.2c/convert_hex2ver.dll

    改成如下:

    List of dynamically loaded objects for Verilog PLI applications
    Veriuser = D:/modeltech64_10.2c/convert_hex2ver.dll                  

    这样的目标是完成 mif 到 hex文件的转换。   前提是convert_hex2ver.dll 文件, 存放在D:/modeltech64_10.2c/ 目录下。

    3、将调用 ip 时产生的 mif 文件,拷贝到 modelsim 的工作目录下。

    4、单独编译 .vhd 文件,因为用下面的代码无法编译 .vhd 文件。也不知道是什么问题?????????错误提示如下:

    5、再加上如下的代码:

    destroy .wave
    quit -sim
    vlib work
    vmap work work
    #编译上上层目录中的SRC目录下的所有.V文件
    vlog -cover bces -incr {../../SRC/*.v}
    #编译上层目录中的所有.v文件
    vlog -nocoverage -incr {../*.v}

    #vlog -nocoverage -incr {../../ISE/pulse_shape/ipcore_dir_test/*.vhd}
    #-L unifast_ver -L unifast
    vsim +ALL_TESTCASE -coverage -novopt -L unisims_ver -L unisim -L unimacro_ver -L unimacro -L simprims_ver -L secureip work.testcase
    #vsim +UT_TESTCASE_001 -coverage work.testcase
    #vsim +UT_TESTCASE_002 -coverage work.testcase
    #vsim +UT_TESTCASE_003 -coverage work.testcase
    do wave.do
    # 此处在保持wave.do后有效
    #simulates all signals including hidden signals
    log -r *
    run 1ms
    coverage report -recursive -select bces -file Coverage.txt
    coverage report -totals -file CoverageResult.txt
    coverage report -lines -byinstance -select bces -file CoverageDetail.txt

    完成:

  • 相关阅读:
    nodejs中 underscore 包有什么作用
    how to download a file with Nodejs(without using third-party libraries)用node下载文件
    nodejs 操作文件系统读取写入文件
    Express URL跳转(重定向)的实现
    nodejs处理页面跳转url地址的处理
    MongoDB和MySQL的区别
    Mysql简单介绍
    MongoDB索引原理
    redis GEO地理位置命令介绍
    lfyzoj104 Counting Swaps
  • 原文地址:https://www.cnblogs.com/cornhill/p/4600956.html
Copyright © 2011-2022 走看看