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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 2840|回复: 1

[求助] 求助UVM带参数接口的问题

[复制链接]
发表于 2015-3-22 10:51:10 | 显示全部楼层 |阅读模式

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

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

x
我定义了一个带参数的接口,接口中的参数写的是"BLUE",在top中例化了三次接口,参数分别为“BLUE”,“GREEN”,"RED",blue可以过,后两个参数都报下面的错误,求大神解决!!
Error-[ICTTFC] Incompatible complex type usage
top_tb.sv, 66
  Incompatible complex type usage in task or function call.
  The following expression is incompatible with the formal parameter of the
  function. The type of the actual is 'interface encode_if#("GREEN")', while
  the type of the formal is 'virtual interface encode_if#("BLUE")'.
  Expression: top_tb.ch1_if
  Source info: uvm_config_db#(encode_if#("BLUE"))::set(null,
  "uvm_test_top.drv1", "vif", top_tb.ch1_if)
发表于 2015-3-23 15:31:09 | 显示全部楼层
The type of the actual is 'interface encode_if#("GREEN")', while
  the type of the formal is 'virtual interface encode_if#("BLUE")'.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-7-2 10:40 , Processed in 0.082790 second(s), 10 queries , Gzip On, Redis On.

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