How i can hold pwrite signal as 1 for for first 16 randomize values?

In reply to subbarao:

You can reach this by running a loop with 16 iterations and using an inline constraint in your randomize function, forcing pwrite to 1,

for (int i = 0; i < 16; i++) begin
  assert (trans.randomize with {pwrite == 1'b1;};