uvm_rookie Posted August 12, 2011 Report Share Posted August 12, 2011 What is the proper way to specify objection inside a sequence ? Do I need to add objection code in both regular sequences and virtual sequences ? Method 1 : virtual task pre_body(); uvm_test_done.raise_objection(this); endtask : pre_body virtual task post_body(); uvm_test_done.drop_objection(this); endtask : post_body Method 2: virtual task pre_body; if (starting_phase != null) starting_phase.raise_objection(this, "Starting seq"); endtask: pre_body virtual task post_body; if ((get_parent_sequence() == null) && (starting_phase != null)) starting_phase.drop_objection(this, "Ending seq"); endtask: post_body Quote Link to comment Share on other sites More sharing options...
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.