Run two sequences simultaneously
The role of the sequencer is to allow multiple sequences to run in parallel.
my_seq seq1 = my_seq::type_id::create("seq1");
my_seq seq2 = my_seq::type_id::create("seq2");
I need to use something similar as above, where I must run two sequences in parallel.
Driver has two independent channels connected to interface.
As soon as one transaction completes on a channel, it has to pick a new transaction without waiting for other channel's transaction to complete.
If I fork off two sequences in parallel as mentioned above, how the driver can handle to sequences at the same time if it has only one get_next_item?
If you prioritize the sequences, there would be a dependency on channels as it has to wait untill it recieves a new transaction.
For me Both channels has to start at same time and can complete its transactions at anytime and pick next data item and run independently.
Please suggest me some coding methodologies for the above scenario.