Passing data through constructor

In reply to dave_59:

Thats useful.

Although if one needs to set ID’s for sequences while they get created. It may be easier to actually pass it through the constructor. Instead now, i have to call a function that sets the ID after I create the sequence.

Ex:

lane_seq lane_seq_h[NUM_LANES];

foreach(lane_seq_h[i])
if(lane_seq_h[i] == ACTIVE)
begin
lane_seq_h[i] = lane_seq::type_id::create(“lane_seq_h”);
lane_seq_h[i].set_lane_id(i);
end