Array slice/part loading to the memory

In reply to m_r_m:

You cannot execute code created from a string. What does this not do what you want:

<file> load.data
// row -> 156 bit data // 1a0a2***aa0;
// column till 2048
 
   reg [155:0] loc_d [0:2048];
   initial begin 
     $readmemh("load.data", loc_d);
     for(int ii =0; ii < 2048; ii++) 
       <PATH>.Mem[ii] =  loc_d[ii][51:0];
     end