Jump to content

Does sequence.start function automatically raise an objection?

Recommended Posts

Hi all,

I'm a bit new to UVM, and I have a strange issue with the objections raised from the sequences. In my environment, I only want the test to raise/drop objections so in the sequences, I do not have a pre/post body in the sequences that would raise an objection. But the problem is that when I execute the sequence using the "start" function, the test runs past the time "phase.drop_objections" was called. However, if i execute the sequence by setting it as the default sequence, I do not have this problem anymore. So my question is, are objections being raised when I use the sequence.start function? If so, is there a way to prevent this?



Link to comment
Share on other sites

No, objections are not raised by seq.start(). It sounds something isn't balanced properly or the sequence does not actually run to completion (and/or a drain time is prolonging the test) in one case, but not the other, etc. You could try to set a break point at raise_objection(), drop_objection(), and set_drain_time, and then step out to check why and where the call was made.


Link to comment
Share on other sites


i assume that this is due to the "starting_phase" guard typically shown.

if(starting_phase!=null) phase.drop_objection(this); //or raise objection

if you do start() a sequence the starting_phase is NULL while when started via the default_sequence it is set. that means if you start() the sequence NO objections are raised/dropped.



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

  • Create New...