Jump to content

update() method in register model is implemented irrespective of desired and mirrored

Recommended Posts


I was going through the implementation of update() method for the register model. The uvm_user_guide_1.0 says " update() method invokes the write() method if the desired value (previously modified using set() or randomize()) is different from the mirrored value"

But the implementation of update does not seem to take care of desired as well as mirrored value together. update() method invokes write() method even when desired and mirrored values are the same. Is this what expected?

Link to comment
Share on other sites

It would help, when you discuss specific code segment, to quote the file name and method name and maybe show the actual code...

After reviewing the implementation of uvm_reg::update(), I see that it is lacking a call to uvm_reg::needs_update(). I'll file a Mantis on this one.

Thank you.

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