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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 9825|回复: 22

[求助] debussy+modelsim的仿真用Verilog可以,用VHDL就不行

[复制链接]
发表于 2010-3-4 13:41:25 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 edutainment 于 2010-3-5 10:22 编辑

我是这样做的
1、编辑modelsim根目录下的modelsim.ini文件,将; Veriuser = veriuser.sl 更换为Veriuser=C:\modeltech_6.5\win32\novas_fli.dll
2、将C:\Novas\Debussy\share\PLI\modelsim_fli54\WINNT下的novas_fli.dll 拷贝至C:\modeltech_6.5\win32中
3、将C:\Novas\Debussy\share\PLI\modelsim_fli54\WINNT下的novas.vhd拷贝至工程所在目录
4、打开modelsim,在工程所在目录新建一个novas的LIB,然后编译novas.vhd文件。
以上4步对Verilog和VHDL都是一样的
对VHDL而言,5、6步要这样做:
5、在testbentch中增加library novas;use novas.pkg.all;
6、在testbentch中添加
  debussy_debug:process
  begin   
    fsdbDumpfile("**.fsdb");
    fsdbDumpvars(0,"顶层文件名(有testbench的话即为testbench名)");
    wait;
  end process debussy_debug;
对Verilog而言,5步要这样做:
在testbench中添加
initial
begin
   $fsdbDumpfile("wave_test.fsdb");
   $fsdbDumpvars;
end
现在的问题是,用Verilog的就可以,用VHDL的就不行,用VHDL的报错如下:
# ** Warning: (vsim-FLI-3159) Failed to find foreign function 'fliparseVariableInFile' in FLI object file "C:\modeltech_6.5\win32/./novas_fli.dll".
#         Region: /
# ** Fatal: (vsim-3274) Null foreign subprogram pointer (19).
# Either this version of vsim is not compatible with the compiled
# version of the libraries that were loaded or a required shared library
# was not loaded. Please recompile the libraries with -refresh or make
# sure you specify the required shared library to vsim.
帮我看看是哪步做得不对?
发表于 2010-3-4 19:31:38 | 显示全部楼层
use work.pkg.all;    -- add to the top module

        wave1 :  process
         begin
          fsdbDumpfile("wave.fsdb");    -- file_name
          fsdbDumpvars(0,"a8259top");   -- module name
          wait for 310000NS;
        end process wave1;
 楼主| 发表于 2010-3-5 10:36:15 | 显示全部楼层


use work.pkg.all;    -- add to the top module

        wave1 :  process
         begin
          fsdbDumpfile("wave.fsdb");    -- file_name
          fsdbDumpvars(0,"a8259top");   -- module name
          wait for 310000NS;
        en ...
zhang2000 发表于 2010-3-4 19:31


还是不行
发表于 2010-3-5 11:56:45 | 显示全部楼层
帮你dd,随便赚点积分。
发表于 2010-3-6 17:25:53 | 显示全部楼层
帮顶,顺便学习
发表于 2010-3-9 18:35:44 | 显示全部楼层
谢谢无私奉献!
发表于 2010-3-25 09:54:09 | 显示全部楼层
学习了,呵呵
发表于 2010-9-28 14:14:07 | 显示全部楼层
请问楼主的问题解决了没有?我现在也碰到这个问题了,搞了好几天都没弄好!
发表于 2010-10-8 16:29:52 | 显示全部楼层
回复 1# edutainment


    1,可以把提示信息 Warning: (vsim-FLI-3159) Failed to find foreign function 'fliparseVariableInFile' in FLI object file "C:\modeltech_6.5\win32/./novas_fli.dll". 在goolge中搜索;

    2, Either this version of vsim is not compatible with the compiled
# version of the libraries that were loaded or a required shared library
# was not loaded. Please recompile the libraries with -refresh or make
# sure you specify the required shared library to vsim.
        看说明是 你编译的lib和你的vsim不兼容,可以重新编译一下原文件,右击库,选择refresh
发表于 2010-10-11 17:24:10 | 显示全部楼层
我的也是这个问题 。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-9-27 09:20 , Processed in 0.029011 second(s), 10 queries , Gzip On, Redis On.

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