I have the following queue which I create in my sequence:
bit [31:0] transfers_seq [$];
I enter the following values to the queue:
{{00000000, 12345678, 54871245},{12454612, 00000000, 12367894}}
Now I have to pass the transfers_seq to another queue which in the transaction file by initial function that I wrote in the transaction file
transaction file:
class axi_transaction extends uvm_sequence_item();
bit [31:0] transfers [$];
function init ( bit [31:0] transfers2init [$]);
endfunction: init
How can I assign the "bit [31:0] transfers2init [$]" to the "bit [31:0] transfers [$]" in the init function?