Jump to content
Sign in to follow this  

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.




Share this post

Link to post
Share on other sites

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));


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this