# Compilation Error:: virtual interface XMR connected to task/function ref-port is not yet supported

**URL:** <https://verificationacademy.com/forums/t/compilation-error-virtual-interface-xmr-connected-to-task-function-ref-port-is-not-yet-supported/30968>\
**Category:** Coverage\
**Tags:** Coverage, compilation\
**Created:** [August 23, 2015, 3:40pm UTC](https://verificationacademy.com/forums/t/compilation-error-virtual-interface-xmr-connected-to-task-function-ref-port-is-not-yet-supported/30968 "2015-08-23T15:40:36Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![AnPham](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/f9ae1b/32.png) [@AnPham](https://verificationacademy.com/forums/u/AnPham)\
**Post date:** [August 25, 2015, 12:50pm UTC](https://verificationacademy.com/forums/t/compilation-error-virtual-interface-xmr-connected-to-task-function-ref-port-is-not-yet-supported/30968/6 "2015-08-25T12:50:28Z")

</div>

_In reply to [naaj\_ila](https://verificationacademy.com/forums/t/compilation-error-virtual-interface-xmr-connected-to-task-function-ref-port-is-not-yet-supported/30968/5):_

Hi naaj\_ila,

I dont understand why you get the problem if you remove “ref”. Nevertheless, if you want to keep it, there are two possible solutions for you:

1. Change the simulator. Your simulator must be VCS.
2. Write a script that generates the code for you. You can take a look at this link:  
[system verilog - How to pass a variable value to a macro in SystemVerilog? - Stack Overflow](http://stackoverflow.com/questions/18007162/how-to-pass-a-variable-value-to-a-macro-in-system-verilog)

Btw, please correct your code. It has a lot of mistakes.

An,

---

_[View the full topic](https://verificationacademy.com/forums/t/compilation-error-virtual-interface-xmr-connected-to-task-function-ref-port-is-not-yet-supported/30968)._
