sega Posted April 5, 2013 Report Share Posted April 5, 2013 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 Quote Link to comment Share on other sites More sharing options...
lisakb1963 Posted April 17, 2013 Report Share Posted April 17, 2013 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.