Jump to content

Recommended Posts

Posted

Hi,

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?

Posted

Hi Ranjisan,

I guess update on 'register' will happen irrespective of mirrored value. What you described happens when user tries to do 'block' (register file) update. If registers desired value equals the expected value, that particular register would get dropped from update.

-Vishal

Posted

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.

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