Jump to content

dropping all objections


Recommended Posts

Hello,

I've got an object which over the course of a test raises one or more objections. At some point, I need to drop all outstanding objections. It could be any amount outstanding, including none at all.

To drop all outstanding objections, I thought I could just use the count paramter of drop_objection(), like so:

drop_objection (this, .count (get_objection_count(this)));

This works fine except when there are no outstanding objections on that object. A drop_objection (.count(0)) will result in an UVM_FATAL [OBJTN_ZERO] Object "..." attempted to drop objection count below zero.

I have not found anything in the UVM documentation that I am not allowed to do this. (It does say must not go below 0, but I'm not doing that.)

I have put the drop_objection() inside an if statement, that works fine. But should I really have to do this? I think a better solution would be to do this check inside function void m_drop() in uvm_objection.svh.

Comments appreciated...

Cheers

Gunther

Link to comment
Share on other sites

  • 2 months later...

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.

Guest
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...