Jump to content

how to restrict the uvm sequencer to pick from a set of user sequences


Recommended Posts

hi worma,

you can build something along the lines of uvm_random_sequence. basically you can

1. create a sequence (uvm_constraint_seq having a member "string valid_seqs[]" )

2. add the valid_seqs member

3. translate all valid_seq strings into their seq_kind using get_seq_kind() (you should now have a list of valid sequence idx)

4. pick an element from that list

5. exec that sequence (do_sequence_kind(idx))

from your user-seq you can now say 'ovm_do_with(subseq,{valid_seqs=["my1_seq","my_two_seq"})

regards

/uwe

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...