worma Posted October 12, 2010 Report Share Posted October 12, 2010 For a testbench env, in which i need to run a predetermined set of directed transactions[to configure the dut] followed by any number of sequences randomly with the constraint to pick from a selected set of sequences how do i do it?? any ideas are welcome Quote Link to comment Share on other sites More sharing options...
uwes Posted October 12, 2010 Report Share Posted October 12, 2010 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.