Jump to content

No checking for size n and index idx in uvm_vreg.svh


Recommended Posts

In uvm-1.2 source code uvm_vreg.svh, we can call the implement task to dynamically implement virtual register array with the size n.

In read/write method, they do not check that if idx is smaller than size n

That is, for example, we can implement a virtual register array of size 2, but access the 10th index of the virtual register.

Is it reasonable?  Or should there be an enhancement for this case?

Thank you for your feedback.

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