Jump to content

check while adding multiple fields with same name in same register


Recommended Posts

While looking at the code of function:

function void uvm_reg::add_field(uvm_reg_field field);

in uvm_reg.svh, I see that there is a checks for overlapping fields and if filed size is more than what register can accommodate but I do not see a check if name of field is same.

Such check is there for registers in add_reg function in reg block.

Is there any reason?

 

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