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

 找回密码
 注册

手机号码,快捷登录

手机号码,快捷登录

搜全文
查看: 7527|回复: 13

[求助] 关于UVM导入C语言的问题

[复制链接]
发表于 2013-10-21 11:21:34 | 显示全部楼层 |阅读模式

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

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

×
最近遇到一个问题。求大侠们帮助。在reference model中,添加import "DPI-C" function void pass(output bit [47:0] out,input bit [47:0] in);(pass函数在UVM.cpp中定义)

import "DPI-C" function void pass(output bit [47:0] out,input bit [47:0] in);
class hello_model extends uvm_component;
...
endclass

function hello_model::new(string name,uvm_component parent);
    super.new(name,parent);
endfunction

function void hello_model::build_phase(uvm_phase phase);
    ......
endfunction

task hello_model::main_phase(uvm_phase phase);

.....输入vsim +UVM_TESTNAME=hello_case,提示有个warning:Warning: (vsim-3770) Failed to find user specified function 'pass' in DPI precompiled library search list "H:/software2/questasim10.1d/verilog_src/uvm-1.1d/lib/uvm_dpi.dll H:/software2/questasim10.1d/uvm-1.1c\win32\uvm_dpi.dll ".
这是怎么回事啊?thinks
 楼主| 发表于 2013-10-22 09:15:08 | 显示全部楼层
thanks,师兄能把“gcc将hello.c编译成hello.dll文件”的步奏和命令分享一下吗?谢谢!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-10-22 16:16:49 | 显示全部楼层
thanks,师兄能把“gcc将hello.c编译成hello.dll文件”的步奏和命令分享一下吗?谢谢!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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


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

GMT+8, 2025-9-15 07:32 , Processed in 0.016146 second(s), 6 queries , Gzip On, Redis On.

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