Hi,
I have an associative array of data_class. Can I passed array index object to the ref argument of a task.
Below is the code:
my_data_class tx_packet[int];
.
.
.
task drive(ref my_data_class pkt);
begin…
…
end
endtask : drive
…Somewhere in my driver I am calling as
for(int i =0; i < tx_packet.size; i++)
drive(tx_packet[i]);
I get compilation error for Cadence IUS as " invalid ref argument usage because actual argument is not a variable. " No compilation error comes for Questa.