Jump to content

Register read via register model.


Recommended Posts

I am reading a register with using uvm_reg method read_reg.

so while doing this read transaction is happening on to the actual bus through agent  ,but the I am not getting read value in read_reg task in to a register sequence.

so I want to know what could be the issue for not getting read value on to the read_reg task.

 

Regards

sega 

Link to comment
Share on other sites

  • 2 weeks later...

Try this method instead.

 

model.my_reg.read(status, value,.parent(this);

 

The read_reg is a convenience method for not specifying .parent(this):

 

 

Reads the given register rg using uvm_reg::read, supplying ‘this’ as the parent argument.  Thus,

read_reg(model.regA, status, value);

is equivalent to

model.regA.read(status, value, .parent(this));

Lisa

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