XOR all signals of a vector of two dimensions together
I interpret your question to that you want an 8-bit output. I would do this as follows:

always_comb begin
  out = '0;
  for (int i = 0; i &lt; 16; i++)
    out ^= f[i];
end


If you want a single-bit output (i.e., xoring everything together), you can do this by defining your array with two packed dimensions, then use the reduction operator. E.g.,:

logic [15:0][7:0] f;

assign out = ^f;