Queues of Dynamic Arrays

In reply to jin17:
Assignments only work with contiguous sets of bits. You will need to pop into an intermediate dynamic array variable, and then use a foreach loop.

module top;
   logic [7:0] Qda[$] []; // this is a Queue -> of dynamic arrays -> of logic [7:0]
   logic [7:0] DA[]={1,2,3};
   logic [7:0] temp_da[];
   logic [15:0] DA2[];
   initial begin
      Qda = '{10{ {} }}; // initializes a Queue of 10 empty dynamic arrays
      Qda.push_back(DA); // pushes the eleventh Queue element by copying the DA {1,2,3}
      //...
      temp_da = Qda.pop_front();
      DA2 = new[temp_da.size];
      foreach(DA2[ii]) DA2[ii] = temp_da[ii];
      $display("%p",DA2);
   end
endmodule