Jump to content
Sign in to follow this  

Requirement of objections in UVM

Recommended Posts



I have a doubt about requirement of raise/drop_objection.


Why does a compiler need objections in run_phase?


Why can it not just wait for time given like 100ns as following example?



task run_phase(uvm_phase phase);







Share this post

Link to post
Share on other sites

Some components may have a run-time phase which operates in a "Run forever and wake up when there's something to do" mode, like this simplistic driver:

virtual task run_phase(uvm_phase phase);
   forever begin
endtask : run_phase

When there are no objections remaining, all of the tasks spawned by all of the component's run phases are killed. This is a feature, not a bug.


It just wouldn't do to kill this task's run phase while it was driving a request. And UVM cannot implicitly know how long that will take. Therefore, the objection software pattern is used for all run-time phases.

Share this post

Link to post
Share on other sites

Mainly the objections are used in testcases, which helps in simulation to end after your sequences or intented operations are performed.Hard coded delays are not good to use, because when you are doing Constaint Random testing we can't predict completion time.I think I answered your question

Share this post

Link to post
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.

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.

Sign in to follow this  

  • Create New...