Jump to content

updating register value in UVM register model when DUT registers value changes internally


Recommended Posts

Hi Folks

I have a scenario where a DUT register value changes when IP reaches a certain state. This change in register value is done internally in the RTL implementation of the DUT, it is not through any bus transaction. In such cases how I update the corresponding register value (mirror or desired) in its UVM register model ?

Thanks in Advance

Thanks

Khushi

Link to comment
Share on other sites

  • 4 months later...

Hi Khushi,

If a register value is updated internally by the RTL, then the user has to update the register model by calling the predict method of that register class in order to sync the register model with the RTL values.

In such cases, wait for the event that causes the change in register value and then update the RAL model with that value.

Ex:-     @(event causing the change in value)

           <register_handle>.predict(value due to that change);

Ishanee
Agnisys Inc.

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.

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