|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
本帖最后由 zuiqiangzhe 于 2021-8-20 11:19 编辑
child extend parent;
定义function proc(parent tr)
另有,child child_tr;(chlid_tr已经new)
调用时,proc(child_tr),即传的是子类的指针,编译报错,说传入类型不同
Error-[IRPC] Illegal ref port connection
src/verif/test/debug_test/debug_1_test.svh, 108
api_pkg, "child_tr"
Illegal connection to the ref port 'tr' of function/task
'axi_access_api::axi_tr_write',formal argument should have same type as
actual argument.
|
|