jalilm Posted October 15, 2012 Report Share Posted October 15, 2012 Hi, What's the most appropriate way to raise and drop objections of a future phase from the current phase? For example, I have a sequence that runs on run_phase however I want it to be able to stop simulation from passing the shutdown_phase. Is that possible and if yes, how it should be done? Thanks in advance, Quote Link to comment Share on other sites More sharing options...
mastrick Posted October 16, 2012 Report Share Posted October 16, 2012 Hi jalilm, I'd be very interested to hear the scenario that is addressed by objecting to the shutdown phase in this sequence. In general, if you are OK with finding the phase in the domain that the sequencer belongs to, you could use get_sequencer().get_domain().find_by_name("shutdown") to return the phase handle. Be aware raising and dropping objections is pretty expensive if you do it very frequently. Quote Link to comment Share on other sites More sharing options...
jalilm Posted October 25, 2012 Author Report Share Posted October 25, 2012 What worked for me is the following: uvm_shutdown_phase shutdown_phase = uvm_shutdown_phase::get(); shutdown_phase.raise_objection(this); Considering the scenario, I found a rather easier solution for it than this one. 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.