In reply to dave_59:
Hi Dave,
Thanks for the quick response.
This is what Im doing :
The generic task code just takes the data @ clk whenever en is available
and dumps it to the file ‘filename’ and also sends to scoreboard.
It looks like this
task task_fileio (ref clk, ref data, ref en, ref filename);
and it is called from outside as
fork
task_fileio (output_intf.clk1x, output_intf.data1, output_intf.en1, filename1);
task_fileio (output_intf.clk2x, output_intf.data2, output_intf.en2, filename2);
task_fileio (output_intf.clk3x, output_intf.data3, output_intf.en3, filename3);
join
If I send local signals in the class and connect to ref variables in the task_fileio,
that works. ie. task_fileio (local_signal) works.
The problem only occurs, when I try to connect it to an interface signal
i.e task_fileio (output_intf.data1) gives an error message
“Invalid ref argument usage as the actual argument is not a variable”