Jump to content

Register Field Mirroring


Recommended Posts

I have a register R with several fields, A and B. R is read-only and volatile as it is a status register. I am finding that a read of R does not seem to update the mirrored values of the fields. Is it supposed too? If not how do I get a single bus read transaction to update all the fields in a register.

e.g.

R.read(stat, rd_data)

R.A.get(aval);

R.B.get(bval);

R.get(rval);

With the above code,

- rval and rd_data match and are as expected.

- aval and bval contain the reset value.

What am I doing wrong here?

Thanks,

Michael

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