Jump to content

Suggested change to uvm_algorithmic_comparator.svh

Recommended Posts

I commented out the "local" keyword preceding uvm_in_order_class_comparator in the uvm_algorithmic_comparator in order to have public access to the match and mismatch variables inside that comparator, so that at the end of simulation I was able to log how many mismatches there were.

Has anybody else encountered this issue? There is a port that could be used to monitor the pairs, but that seemed more complicated then just gaining access to these variables that already exist. Unless there is a reason to make it local, I would suggest this be changed in the UVM distribution.

By the way, I am new to UVM and this forum, so I apologize if this has already been covered or there is something easy I'm missing.


Link to comment
Share on other sites

  • 2 weeks 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.

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