I am trying to build a sequence library with 3 subsequence library in them and multiple sequences in each of them. My_seq_library - containing below three libraries.
- mode1_seq_library - contains the list of seqs which drive the DUT in serial mode and seq to enable the mode2 and mode3. (based on rsp from DUT).
- mode2_seq_library - contains the list of seqs which drive the DUT in dual mode and seq to enable the mode1 and mode3. (based on rsp from DUT).
- mode3_seq_library - contains the list of seqs which drive the DUT in quad mode and seq to enable the mode1 and mode2. (based on rsp from DUT).
Step1: by default after reset DUT comes up in mode1 and the seq from mode1_seq_library can be driven to DUT.
Step2: if the change mode cmd is initiated from mode1_seq_library and driver drives it to DUT, it is required to send rsp back.
Step3: seq should keep looking for rsp and if rsp is to change from mode1 to mode2. the following sequences should be only from mode2_seq_library.
I am not sure the best practice to implement this but thought the above mention plan of action should help me achieve it.
if there exists any simpler or better way to implement this please let me know.
Thanks & Regards,