Passing arguments by reference

In reply to kulwantsingh:

Hello Dave,

I tried the following below process but still I was getting the same error i.e. “invalid ref argument usage because actual argument is not a variable”

Extern Task Instance:

extern virtual task d_c_p(int j, ref rst, ref clk, ref dbn);

Task Declaration:

task d_c_p(int j, ref rst, ref clk, ref dbn);

Task Usage: Note, this task is called multiple times recursively
logic dbn_l[MAX_LIMIT];

d_c_p(j, r_vif.rst, r_vif.clk, dbn_l[j]);

Am I making any silly mistake ? Kindly provide your comments.

Regards,
Desperado