title: Specman/e list of lists (multidimensional array)
body: <p>How can I create a <strong>fixed multidimensional array</strong> in Specman/e using <strong>varibles</strong>?<br>
  And then access individual elements or whole rows?</p>
  
  <p>For example in SystemVerilog I would have:</p>
  
  <pre><code>module top;
  
    function automatic my_func();
      bit [7:0] arr [4][8]; // matrix: 4 rows, 8 columns of bytes
      bit [7:0] row    [8]; // array : 8 elements        of bytes
  
      row = '{1, 2, 3, 4, 5, 6, 7, 8};
  
      $display("Array:");
      foreach (arr[i]) begin
        arr[i] = row;
        $display("row[%0d] = %p", i, row);
      end
  
      $display("\narr[2][3] = %0d", arr[2][3]);
    endfunction : my_func
  
    initial begin
      my_func();
    end
  
  endmodule : top
  </code></pre>
  
  <p>This will produce this output:</p>
  
  <pre><code>Array:
  row[0] = '{'h1, 'h2, 'h3, 'h4, 'h5, 'h6, 'h7, 'h8}
  row[1] = '{'h1, 'h2, 'h3, 'h4, 'h5, 'h6, 'h7, 'h8}
  row[2] = '{'h1, 'h2, 'h3, 'h4, 'h5, 'h6, 'h7, 'h8}
  row[3] = '{'h1, 'h2, 'h3, 'h4, 'h5, 'h6, 'h7, 'h8}
  
  arr[2][3] = 4
  </code></pre>
  
  <p>Can someone rewrite my_func() in Specman/e?</p>