ljepson74 Posted July 20, 2015 Report Share Posted July 20, 2015 When using uvm_sequence_base's kill on a virtual sequence, will it kill child sequences? It seems to me that it will not, but I am unsure and have not explored this much, yet. Looking briefly at the UVM base class, I'm guessing that a virtual sequence should have its own function to terminate child sequences. ----- update: I added a function in the virtual sequence to terminate child sequences and everything is working fine. Quote Link to comment Share on other sites More sharing options...
ljepson74 Posted July 22, 2015 Author Report Share Posted July 22, 2015 I learned .... uvm_sequencer has the following two functions: function void kill_sequence ( uvm_sequence_base sequence_ptr) virtual function void stop_sequences () Tells the sequencer to kill all sequences and child sequences currently operating on the sequencer, and remove all requests, locks and responses that are currently queued. This essentially resets the sequencer to an idle state. Stop_sequences While this is different from my original post, and I have not tried either yet, these look useful for what I was doing and will probably allow me to replace the function I added to the virtual sequence, so that it can terminate its child sequences. What I was doing was trying to kill all activity in/from testbench, so that I can reset at a random time in the middle of a test. (I am specifically avoiding phase jumping.) (I learned this from interviewing a candidate today and doing some follow-up research. It's great to learn something in an interview.) c4brian 1 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.